/* ============================================================
   AUTOESCUELAS.CSS
   Estilos específicos para la página de CEAs / Autoescuelas.
   Complementa css/landing.css sin duplicar reglas base.
   ============================================================ */

/* ── Page-level overrides ── */
.cea-page .hero {
    padding: 130px 24px 72px;
}

/* ── Nav CTA: mismo estilo amarillo + icono WA que el hero (btn-primary-lg) ── */
.cea-page .nav-links .cea-nav-wa {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    animation: none;
    white-space: nowrap;
    line-height: 1.2;
}

.cea-page .nav-links .cea-nav-wa:hover {
    animation-play-state: paused;
}

@media (max-width: 1024px) {
    .cea-page .nav-links .cea-nav-wa {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cea-page .nav-links .cea-nav-wa {
        width: 100%;
        font-size: 15px;
        padding: 12px 18px;
    }
}

/* ── Hero badge ── */
.cea-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(100, 85, 218, 0.15);
    border: 1px solid rgba(100, 85, 218, 0.35);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s 0.1s both;
}

.cea-hero-content h1 {
    animation: fadeInUp 0.7s 0.2s cubic-bezier(0.4,0,0.2,1) both;
}

.cea-hero-content .subtitle {
    animation: fadeInUp 0.7s 0.35s cubic-bezier(0.4,0,0.2,1) both;
}

/* ── Hero CTA ── */
.cea-hero-cta {
    animation: fadeInUp 0.7s 0.5s cubic-bezier(0.4,0,0.2,1) both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cea-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ── Hero stats ── */
.cea-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px 32px;
    animation: fadeInUp 0.7s 0.65s cubic-bezier(0.4,0,0.2,1) both;
}

.cea-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cea-stat-number {
    font-family: 'Patrick Hand', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.cea-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
}

.cea-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    margin: 0 24px;
    flex-shrink: 0;
}

/* ── Problema: 2×2 grid ── */
.cea-problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.cea-problem-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cea-problem-card:hover {
    border-color: rgba(248, 113, 113, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(248,113,113,0.1);
}

.cea-problem-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cea-problem-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.cea-problem-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ── Solución: flow visual ── */
.cea-solution-visual {
    margin-top: 52px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.cea-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
    margin: 0 auto;
    justify-content: center;
}

.cea-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    min-width: 140px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
}

.cea-flow-step:hover { transform: translateY(-3px); }

.cea-flow-step--ai {
    background: rgba(100,85,218,0.12);
    border-color: rgba(100,85,218,0.35);
    color: var(--white);
}

.cea-flow-step--action {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
}

.cea-flow-icon {
    font-size: 28px;
}

.cea-flow-arrow {
    font-size: 20px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* ── Features: 3×2 grid ── */
.cea-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.cea-feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cea-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #10B981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cea-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100,85,218,0.35);
    box-shadow: 0 16px 40px rgba(100,85,218,0.18);
}

.cea-feature-card:hover::before { opacity: 1; }

.cea-feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cea-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(100,85,218,0.14);
    border: 1px solid rgba(100,85,218,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cea-feature-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin: 0;
}

.cea-feature-card > p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.cea-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.cea-feature-list li {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}

.cea-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

/* ── Results: 4 stat cards ── */
.cea-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.cea-result-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cea-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(100,85,218,0.2);
}

.cea-result-card--primary {
    background: rgba(100,85,218,0.1);
    border-color: rgba(100,85,218,0.3);
}

.cea-result-number {
    font-family: 'Patrick Hand', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.cea-result-metric {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.cea-result-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* ── Mid CTA ── */
.cea-mid-cta {
    text-align: center;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cea-mid-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}

/* ── Process steps override ── */
.cea-steps {
    grid-template-columns: repeat(3, 1fr);
}

/* ── FAQ accordion ── */
.cea-faq-list {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cea-faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.cea-faq-item[open] {
    border-color: rgba(100,85,218,0.35);
}

.cea-faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-family: 'Patrick Hand', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    gap: 16px;
    user-select: none;
    transition: color 0.2s ease;
}

.cea-faq-question::-webkit-details-marker { display: none; }

.cea-faq-item[open] .cea-faq-question { color: var(--primary-light); }

.cea-faq-icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    font-family: 'Comfortaa', sans-serif;
}

.cea-faq-answer {
    padding: 0 24px 20px;
}

.cea-faq-answer p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ── CTA section extras ── */
.cea-cta-badge {
    display: inline-block;
    background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.22);
    color: #25d366;
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cea-trust-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* ── Footer back link ── */
.cea-back-link {
    font-size: 13px;
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cea-back-link:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .cea-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cea-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cea-page .hero {
        padding: 100px 16px 56px;
    }

    .cea-hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .cea-stat-divider {
        width: 80%;
        height: 1px;
        margin: 0;
    }

    .cea-problems-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cea-flow {
        flex-direction: column;
        min-width: unset;
        width: 100%;
    }

    .cea-flow-step {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        text-align: left;
        padding: 16px 20px;
    }

    .cea-flow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .cea-features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cea-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cea-steps {
        grid-template-columns: 1fr;
    }

    .cea-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cea-faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .cea-faq-answer {
        padding: 0 18px 16px;
    }
}

@media (max-width: 480px) {
    .cea-results-grid {
        grid-template-columns: 1fr;
    }

    .cea-result-card {
        padding: 20px 16px;
    }

    .cea-hero-stats {
        padding: 16px 20px;
    }

    .cea-problem-card {
        padding: 18px;
        gap: 12px;
    }
}
