

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Secciones */
.section-dark {
    background-color: var(--dark-navy);
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--navy);
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Feature Section */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-text {
    max-width: 600px;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mockup */
.mockup-container {
    perspective: 1000px;
}

.mockup-screen {
    background: var(--light-navy);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}



.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27ca3f; }

.mockup-title {
    font-weight: 600;
    color: var(--white);
}

.mockup-content {
    padding: 2rem;
}

.mockup-invoice {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.invoice-header h4 {
    color: var(--white);
    margin: 0;
}

.verifactu-badge {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.invoice-details {
    margin-bottom: 1.5rem;
}

.invoice-line {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 4px;
    position: relative;
}

.qr-code::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--dark-navy);
    border-radius: 2px;
}

.qr-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Pricing */
.pricing-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Wider pricing card variant for subscription page */
.pricing-card--wide {
    width: 100%;
    max-width: none;
}

.pricing-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Billing toggle (monthly/annual) */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0.25rem 0 0.75rem;
}

.billing-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.billing-label.active { color: var(--white); }

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.2s ease;
}
.switch .slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.switch input:checked + .slider {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* Price animation on toggle */
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price-amount { transition: color 0.2s ease; }
.price-period { transition: color 0.2s ease; }
.price.price-animate .price-amount,
.price.price-animate .price-period {
    animation: priceSwitch 260ms ease;
}
@keyframes priceSwitch {
    0% { opacity: 0; transform: translateY(-4px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Save badge (annual savings) */
.save-badge {
    display: inline-flex;
    position: absolute;
    bottom: 35px;
    left: 30%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: var(--white);
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.1;
    letter-spacing: 0.2px;
    margin: 0.375rem 0 0.25rem;
    box-shadow: 0 12px 24px -8px rgba(79, 172, 254, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: saturate(150%) blur(2px);
    backdrop-filter: saturate(150%) blur(2px);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.save-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -10px rgba(79, 172, 254, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pricing-header .segmented + .save-badge { margin-top: 0.5rem; }

.badge-animate { animation: badgePop 260ms ease; }
@keyframes badgePop {
    0% { opacity: 0; transform: translateY(-4px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}



/* Segmented control (alternative to switch) */
.segmented {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
}

.segmented-option {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.12s ease;
    min-width: 110px;
}

.segmented-option.active {
    color: var(--white);
    background: var(--gradient-secondary);
    box-shadow: 0 6px 14px rgba(240, 147, 251, 0.22);
    transform: translateY(-1px);
}

.segmented-option:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

.segmented-option:not(.active):hover {
    color: var(--text-light);
}

@keyframes segmentedActivate {
    0% { opacity: 0.9; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.price {
    margin: 1.5rem 0;
}

/* Placement tweaks: segmented just above price in subscription pricing card */
.subscription-page .pricing-card .pricing-header .segmented {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}
.subscription-page .pricing-card .pricing-header .price {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-body {
    padding: 2rem;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.guarantee-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.faq-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .pricing-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .pricing-body {
        padding: 1.5rem;
    }
}