/* =========================
   Global containers
   ========================= */

.nav-container,
.hero-container,
.problem-container,
.features-container,
.before-after-container,
.how-container,
.testimonials-container,
.pricing-container,
.faq-container,
.cta-container,
.contact-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* =========================
   Navigation layout
   ========================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* =========================
   Hero layout
   ========================= */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        var(--bg-light) 0%,
        var(--bg-white) 100%
    );
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(26, 86, 219, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 55%);
    animation: aurora 18s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    animation-direction: reverse;
    opacity: 0.7;
}

@keyframes aurora {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-2%, 2%) scale(1.06);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero .gradient-text {
    background: none;
    -webkit-text-fill-color: #081c41;
    color: #081c41;
}

.hero p {
    font-size: 1.3rem;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #081c41;
    line-height: 1;
}

.hero-stats .stat-label {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #081c41;
}

/* =========================
   Problem section
   ========================= */

.problem {
    padding: 5rem 2rem;
    background: var(--text-dark);
    text-align: center;
}

.problem h2 {
    font-size: 2.5rem;
    color: white;
    max-width: 720px;
    margin: 0 auto 1rem;
}

.problem p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.85;
    max-width: 720px;
    margin: 0 auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.problem-card h3 {
    color: white;
    margin: 1rem;
}

/* =========================
   Before / After
   ========================= */

.before-after h2 {
    font-size: 2.5rem;      /* mismo tamaño que “¿Te suena familiar?” */
    color: #081c41;         /* azul que venimos usando */
    text-align: center;
    margin-bottom: 1rem;
}

.before-after p {
    font-size: 1.1rem;      /* mismo tamaño que el subtítulo de Problem */
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.comparison-card h3 {
    margin-bottom: 1rem; /* ajustás acá */
}


.before-after {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.comparison-wrapper {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 3rem;
}

.comparison-card {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.arrow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(
        180deg,
        #e5e7eb 0%,
        var(--primary-dark) 50%,
        #e5e7eb 100%
    );
}

.arrow-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}


/* =========================
   Features
   ========================= */

.features {
    padding: 6rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.features h2 {
    font-size: 2.5rem;      /* mismo tamaño que Before / After */
    color: #081c41;         /* mismo azul */
    text-align: center;
    margin-bottom: 1rem;
}

.features p {
    font-size: 1.1rem;      /* mismo tamaño de subtítulo */
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   How it works
   ========================= */

.how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

/* Header */
.how-it-works .section-header h2 {
    font-size: 2.5rem;
    color: #081c41;
    text-align: center;
    margin-bottom: 1rem;
}

.how-it-works .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Steps container */
.how-it-works .steps {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Step */
.how-it-works .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Step number (badge) */
.how-it-works .step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    color: white;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Step content */
.how-it-works .step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.how-it-works .step-content p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-light);
    text-align: left;
    max-width: none;
    margin: 0;
}

/* =========================
   Testimonials
   ========================= */

.testimonials {
    padding: 6rem 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


/* =========================
   Pricing
   ========================= */

.pricing {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing .section-header h2 {
    font-size: 2.5rem;
    color: #081c41;
    text-align: center;
    margin-bottom: 1rem;
}

.pricing .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   FAQ
   ========================= */

.faq {
    padding: 6rem 2rem;
}

.faq .section-header h2 {
    font-size: 2.5rem;
    color: #081c41;
    text-align: center;
    margin-bottom: 1rem;
}

.faq-container {
    max-width: 1000px;
}

.faq .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 3rem;
}


/* =========================
   CTA
   ========================= */

.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--gradient);
}

.cta-section h2,
.cta-section p {
    color: white;
}

.cta {
    display: flex;
    justify-content: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
.cta h2 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.cta p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA button override */
.cta .btn-primary {
    background: white;
    color: var(--primary-dark);
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .cta h2 {
        font-size: 2.1rem;
    }

    .cta p {
        font-size: 1.05rem;
    }
}

/* =========================
   Contact
   ========================= */

.contact-section {
    padding: 6rem 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

/* Contact columns */
.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-dark);
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Contact details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Form wrapper */
.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive contact */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* =========================
   Footer
   ========================= */

.footer {
    padding: 5rem 2rem 2.5rem;
    background: var(--text-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

/* First column (description) */
.footer-description {
    max-width: 420px;
}

/* Footer bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Responsive footer layout */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .comparison-wrapper {
        flex-direction: column;
    }

    .arrow-connector {
        flex-direction: row;
        gap: 1rem;
    }

    .arrow-line {
        width: 40px;
        height: 2px;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        margin-top: 2rem;
    }
}
/* Responsive How it works */
@media (max-width: 768px) {
    .how-it-works .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .how-it-works .step-number {
        margin: 0 auto;
    }

    .how-it-works .step-content p {
        text-align: center;
    }
}