:root {
    --afyra-navy: #0B2A4A;
    --afyra-navy-deep: #071C31;
    --afyra-navy-soft: #143A5F;
    --afyra-green: #1F8A4C;
    --afyra-green-dark: #17703C;
    --afyra-yellow: #F5C518;
    --afyra-orange: #E67A1F;
    --afyra-surface: #F4F6FA;
    --afyra-surface-2: #EEF2F8;
    --afyra-border: #DFE6EF;
    --afyra-muted: #5B6B82;
    --pub-nav-h: 76px;
    --pub-primary: var(--afyra-green);
    --pub-primary-dark: var(--afyra-navy);
    --shadow-sm: 0 4px 14px rgba(11, 42, 74, 0.06);
    --shadow-md: 0 14px 34px rgba(11, 42, 74, 0.09);
    --shadow-lg: 0 24px 52px rgba(11, 42, 74, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--pub-nav-h) + 16px);
    overflow-x: clip;
}
body.teach-site {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--afyra-navy);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(31, 138, 76, 0.06), transparent 55%),
        var(--afyra-surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}
a { color: var(--afyra-green); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--afyra-navy); }
img { max-width: 100%; height: auto; display: block; }
video, iframe, svg, table { max-width: 100%; }
::selection { background: rgba(245, 197, 24, 0.35); color: var(--afyra-navy); }
.container {
    width: min(1140px, calc(100% - 2.25rem));
    margin: 0 auto;
    max-width: 100%;
}

.teach-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223, 230, 239, 0.9);
    box-shadow: var(--shadow-sm);
}
.teach-navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--afyra-navy), var(--afyra-green) 45%, var(--afyra-yellow) 75%, var(--afyra-orange));
}
.teach-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--pub-nav-h);
    padding: 0.45rem 0;
}
.teach-brand {
    display: flex;
    align-items: center;
    transition: opacity 0.2s var(--ease);
}
.teach-brand:hover { opacity: 0.88; }
.teach-brand__logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}
.teach-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.teach-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.78rem;
    border-radius: var(--radius-sm);
    font-weight: 650;
    color: var(--afyra-navy);
    font-size: 0.9rem;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.teach-nav-links a:hover,
.teach-nav-links a.active {
    color: var(--afyra-green-dark);
    background: rgba(31, 138, 76, 0.1);
}
.teach-nav-cta { margin-left: 0.35rem; }
.teach-nav-pdf {
    gap: 0.35rem;
    color: var(--afyra-green-dark) !important;
}
.teach-nav-pdf i {
    color: #c0392b;
}
.teach-nav-whatsapp {
    padding: 0.55rem 1rem !important;
    font-size: 0.88rem !important;
    box-shadow: 0 8px 20px rgba(31, 138, 76, 0.28);
}
.teach-nav-toggle {
    display: none;
    border: 1.5px solid var(--afyra-border);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    color: var(--afyra-navy);
}

body.teach-nav-open {
    overflow: hidden;
}

.teach-footer {
    position: relative;
    color: #cbd5e1;
    padding: 3rem 0 1.75rem;
    margin-top: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(31, 138, 76, 0.12), transparent 45%),
        linear-gradient(180deg, #0f1d33 0%, #0a1526 100%);
}
.teach-footer::before {
    content: "";
    display: block;
    height: 4px;
    margin: -3rem 0 2.5rem;
    background: linear-gradient(90deg, var(--afyra-green), var(--afyra-yellow), var(--afyra-orange));
}
.teach-footer a {
    color: #e2e8f0;
    transition: color 0.2s var(--ease);
}
.teach-footer a:hover { color: var(--afyra-yellow); }
.teach-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    margin-bottom: 2rem;
}
.teach-footer h3 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.85rem;
}
.teach-footer p { margin: 0; line-height: 1.65; max-width: 22rem; opacity: 0.9; }
.teach-footer ul { list-style: none; margin: 0; padding: 0; }
.teach-footer li { margin: 0.5rem 0; }
.teach-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.86rem;
    opacity: 0.92;
}

.teach-footer-bottom p {
    margin: 0;
    opacity: 0.9;
}

.teach-footer-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.teach-footer-admin:hover {
    background: rgba(31, 138, 76, 0.22);
    border-color: rgba(198, 229, 122, 0.45);
    color: #fff !important;
}

.teach-footer-admin i {
    font-size: 0.78rem;
    opacity: 0.95;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0.72rem 1.2rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.pub-btn-primary {
    background: linear-gradient(135deg, var(--afyra-green), var(--afyra-green-dark));
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(31, 138, 76, 0.25);
}
.pub-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 138, 76, 0.32);
    color: #fff !important;
}
.pub-btn-outline {
    background: transparent;
    border: 1.5px solid currentColor;
    color: inherit !important;
}
.pub-btn-outline:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.afyra-landing-hero-kicker,
.afyra-landing-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--afyra-yellow);
}
.afyra-landing-eyebrow {
    color: var(--afyra-green);
    background: rgba(31, 138, 76, 0.1);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}
.afyra-landing-accent { color: var(--afyra-yellow); }
.afyra-landing-promises {
    list-style: none;
    padding: 0;
    margin: 0 0 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
}
.afyra-landing-promises li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.92rem;
}
.afyra-landing-promises i { color: var(--afyra-yellow); }
.afyra-landing-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.teach-section-head {
    max-width: 44rem;
    margin-bottom: 1.75rem;
}
.pub-section-title {
    font-size: clamp(1.55rem, 1.05rem + 1.8vw, 2.15rem);
    font-weight: 800;
    margin: 0.5rem 0 0.7rem;
    color: var(--afyra-navy);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.pub-section-sub {
    color: var(--afyra-muted);
    max-width: 46rem;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
}

.afyra-page-logo__img { max-width: min(300px, 72vw); margin-bottom: 0.85rem; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2)); }

.afyra-landing-faq {
    padding: 3.5rem 0;
    background: #fff;
}
.afyra-landing-faq-list { display: grid; gap: 0.65rem; }
.afyra-landing-faq-item {
    border: 1px solid var(--afyra-border);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.15rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.afyra-landing-faq-item[open] {
    border-color: rgba(31, 138, 76, 0.35);
    box-shadow: var(--shadow-md);
}
.afyra-landing-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--afyra-navy);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.afyra-landing-faq-item summary::-webkit-details-marker { display: none; }
.afyra-landing-faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--afyra-surface-2);
    color: var(--afyra-navy);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}
.afyra-landing-faq-item[open] summary::after {
    content: "−";
    background: rgba(31, 138, 76, 0.12);
    color: var(--afyra-green-dark);
}
.afyra-landing-faq-item p { margin: 0.75rem 0 0; color: var(--afyra-muted); line-height: 1.6; }

.afyra-stepper { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.afyra-stepper li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1.05rem 1.15rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--afyra-border);
    box-shadow: var(--shadow-sm);
}
.afyra-stepper-num {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(31, 138, 76, 0.15), rgba(245, 197, 24, 0.2));
    color: var(--afyra-green-dark);
    font-weight: 800;
    font-size: 0.88rem;
}

.teach-page { padding: calc(var(--pub-nav-h) + 2rem) 0 3.5rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 0.88rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 0.35rem; color: var(--afyra-muted); }
.alert { padding: 0.95rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: var(--radius-sm); padding: 0.55rem 0.9rem; font-weight: 700; border: none; cursor: pointer; }
.btn-success { background: var(--afyra-green); color: #fff; }
.btn-sm { font-size: 0.85rem; padding: 0.4rem 0.7rem; }
.sc-round-bottom { border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }

@media (max-width: 900px) {
    :root { --pub-nav-h: 68px; }
    .container { width: min(1140px, calc(100% - 1.5rem)); }
    .teach-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.65rem;
        min-height: 2.65rem;
    }
    .teach-brand__logo { max-height: 34px; }
    .teach-nav-links {
        display: none;
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        top: calc(100% + 0.35rem);
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid var(--afyra-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .teach-nav-links.is-open { display: flex; }
    .teach-nav-links a {
        min-height: 2.75rem;
        padding: 0.7rem 0.85rem;
        font-size: 0.95rem;
    }
    .teach-nav-cta { margin-left: 0; margin-top: 0.25rem; }
    .teach-nav-whatsapp {
        width: 100%;
        justify-content: center;
        min-height: 2.85rem;
    }
    .teach-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .teach-footer { padding: 2.25rem 0 1.35rem; }
    .teach-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .pub-btn {
        min-height: 2.75rem;
        padding: 0.7rem 1.05rem;
    }
    .afyra-landing-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .afyra-landing-hero-cta .pub-btn {
        width: 100%;
        justify-content: center;
    }
    .afyra-landing-promises {
        justify-content: flex-start;
    }
    .teach-page { padding: calc(var(--pub-nav-h) + 1.35rem) 0 2.75rem; }
}

@media (max-width: 575.98px) {
    .container { width: min(1140px, calc(100% - 1.15rem)); }
    .afyra-page-logo__img { max-width: min(220px, 62vw); }
    .afyra-landing-hero-title,
    .pub-section-title {
        font-size: clamp(1.35rem, 1.05rem + 2.4vw, 1.85rem);
        line-height: 1.2;
    }
    .pub-section-sub { font-size: 0.95rem; }
}

@media (max-width: 380px) {
    .container { width: calc(100% - 0.95rem); }
    .teach-brand__logo { max-height: 30px; }
}