/* ==============================================
   EDUCAVIA — CSS para páginas públicas/SEO
   ============================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4338CA;
    --primary-light: #6366F1;
    --primary-soft: rgba(67,56,202,0.12);
    --accent: #F59E0B;
    --accent-soft: rgba(245,158,11,0.12);
    --success: #059669;
    --success-soft: rgba(5,150,105,0.12);
    --bg-dark: #0B0E1A;
    --bg-surface: #141829;
    --bg-elevated: #1C2236;
    --text-white: #F8FAFC;
    --text-light: #CBD5E1;
    --text-muted: #94A3B8;
    --border-subtle: rgba(99,102,241,0.1);
    --border-light: rgba(255,255,255,0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--accent); }

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(11,14,26,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border-subtle);
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-brand svg { width: 32px; height: 32px; }
.nav-center {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-center a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-center a:hover, .nav-center a.active { color: var(--text-white); }
.nav-mobile-extra { display: none; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-login {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-login:hover { color: var(--text-white); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(67,56,202,0.3);
}
.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* === PAGE HERO === */
.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(67,56,202,0.18) 0%, transparent 60%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}
.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}
.page-hero .hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--text-light);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 88px 24px 0;
    max-width: 1140px;
    margin: 0 auto;
}
.breadcrumbs a, .breadcrumbs span {
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumbs a:hover { color: var(--text-white); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* === SECTIONS === */
.section {
    padding: 80px 24px;
}
.section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.15;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 640px;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}
.card-icon.primary { background: var(--primary-soft); color: var(--primary-light); }
.card-icon.accent { background: var(--accent-soft); color: var(--accent); }
.card-icon.success { background: var(--success-soft); color: var(--success); }
.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}
.timeline-step {
    position: relative;
    padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.timeline-step p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
}

/* === CTA SECTION === */
.cta-section {
    padding: 60px 24px;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-section p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 16px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(67,56,202,0.3);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(67,56,202,0.4);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s;
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--primary-light);
}

/* === FORM === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
}
.faq-answer p {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === ALERT === */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(5,150,105,0.2);
}
.alert-error {
    background: rgba(220,38,38,0.1);
    color: #EF4444;
    border: 1px solid rgba(220,38,38,0.2);
}

/* === FOOTER === */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 48px 24px 24px;
}
.footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 12px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-white); }
.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-copy a {
    color: var(--text-muted);
    text-decoration: underline;
}
.footer-copy a:hover { color: var(--text-white); }
.footer-brand-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
}
.footer-brand-inline svg { width: 24px; height: 24px; }

/* === PROSE (for legal pages) === */
.prose h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-white);
}
.prose h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-white);
}
.prose p, .prose li {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 12px;
}
.prose ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.prose a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* === TWO COLUMNS === */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* WhatsApp float */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .two-cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-center {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        transform: translateY(-120%);
        transition: transform 0.3s;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-center.open { transform: translateY(0); }
    .nav-center a {
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }
    .nav-mobile-extra { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
    .nav-right { display: none; }
    .nav-mobile-btn { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .cards-grid { grid-template-columns: 1fr; }
}
