/* --- 1. VARIABLES Y RESET --- */
:root {
    --brand-dark: #0f172a;
    --brand-primary: #1e40af;
    --brand-primary-hover: #1e3a8a;
    --brand-accent: #f59e0b;
    --brand-accent-hover: #d97706;
    --brand-light: #f8fafc;
    --text-main: #334155;
    --text-light: #94a3b8;
    --text-light-a11y: #9eaab8;
    /* a11y-safe variant for dark backgrounds */
    --white: #ffffff;
    --azul-logo: #37596f;
    --rojo-logo: #e94c44;
    --amarillo-logo: #f3c823;
    --card-precios: #283971;

    --font-sans: 'Lato', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 15px 30px -10px rgba(0, 0, 0, 0.2);


    --dark-blue: #1E2B58;
    --medium-blue: #2B3D7A;
    --light-blue: #3B5299;
    --footer-blue: #162044;
    --text: #334155;
    --slate-500: #64748b;
    --gray-200: #e2e8f0;
    --dot: #d1d5db;
    --gold: #FFD700;
    --gold-light: #FFF5B7;

    --green: #cfe0c6;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #f9fafb;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. UTILIDADES GENERALES --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

.block {
    display: block;
}

/* TipografÃ­a */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-brand-primary {
    color: var(--brand-primary);
}

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

.text-brand-dark {
    color: var(--brand-dark);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.50rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-accent {
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-accent:hover {
    /*background-color: var(--brand-accent-hover);*/
    background: #F8F8FF;
    color: var(--brand-dark);
}

@media (hover: hover) and (pointer: fine) {
    .btn-accent:hover {
        transform: translateY(-2px);
    }
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--brand-dark);
}

.btn-primary-block {
    background-color: var(--brand-primary);
    color: var(--white);
    width: 100%;
    border-radius: 0.5rem;
}

.btn-primary-block:hover {
    background-color: var(--brand-primary-hover);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 5px;
}

/* --- 3. TOP BAR --- */
/*topbar tipo publicidad*/
.top-bar {
    background: #0f172a;
    color: #fff;
    overflow: hidden;
    padding: 0.5rem 0;
}

.marquee {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    width: max-content;
    will-change: transform;
    animation: marquee-left 55s linear infinite;
    -webkit-animation: marquee-left 55s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding-right: 2.5rem;
    /* separaciÃ³n entre repeticiones */
}

.sep {
    opacity: .7;
    margin: 2rem;
}

/* Loop perfecto: se mueve exactamente una copia */
@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) and (pointer: fine) {

    /* Opcional: pausar al pasar el ratÃ³n */
    .marquee:hover .marquee-track {
        animation-play-state: paused;
    }
}

@media (hover: hover) and (pointer: fine) {

    /* Opcional: pausar al pasar el ratÃ³n */
    .top-bar-marquee:hover .top-bar-track {
        animation-play-state: paused;
    }
}



/* --- 4. NAVBAR --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================
   Hover solo en items del menÃº
   ========================= */

/* Base del item */
.desktop-menu a:not(.btn) {
    display: block;
    position: relative;
    padding: 12px 16px;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

/* LÃ­nea inferior EXACTAMENTE como el nav de referencia */
.desktop-menu a:not(.btn)::after {
    content: '';
    position: absolute;

    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;

    background: #000066;
    border-radius: 2px;

    transition:
        width 0.3s ease,
        left 0.3s ease;
}

/* Hover */
.desktop-menu a:not(.btn):hover::after,
.desktop-menu a:not(.btn):focus-visible::after {
    width: 100%;
    left: 0;
}

/* Micro-lift igual que en el otro nav */
.desktop-menu a:not(.btn):hover {
    background-color: rgba(146, 146, 146, 0.1);
}

@media (hover: hover) and (pointer: fine) {

    /* Micro-lift igual que en el otro nav */
    .desktop-menu a:not(.btn):hover {
        transform: translateY(-2px);
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    background-color: var(--brand-primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    align-items: center;
    /*gap: 2rem;*/
    font-size: 0.875rem;
    font-weight: 500;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.desktop-menu a {
    white-space: nowrap;
}


.desktop-menu a:not(.btn) {
    color: var(--text-main);
}

.desktop-menu a:not(.btn):hover {
    color: #000066;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* solo mÃ³vil */
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 10px;
    line-height: 1;
    z-index: 10000;
    /* por encima del overlay */
}


/* Overlay (lo creamos por JS, pero lo estilamos aquÃ­) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 9998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenedor del menÃº mÃ³vil: lo convertimos en panel lateral */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);

    padding: 20px 18px 18px;
    /* deja hueco arriba */

    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);

    z-index: 9999;

    /* por si tu clase "hidden" usa display:none,
     forzamos a que el panel exista y se oculte por transform */

    /* âœ… MUY IMPORTANTE: estructura para que el contenido no â€œcorteâ€ */
    display: flex !important;
    flex-direction: column;

    /* âœ… si el contenido es mÃ¡s grande, scroll dentro del panel */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Estado abierto */
#mobile-menu.is-open {
    transform: translateX(0);
    box-shadow: -40px 0 90px rgba(0, 0, 0, .35);
}

/* FORZADO FINAL: el panel nunca se oscurece */
#mobile-menu,
#mobile-menu.is-open {
    background: #0f172a;
    color: var(--brand-light);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    filter: none;
    -webkit-filter: none;
}

/* Links del menÃº mÃ³vil */
#mobile-menu .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#mobile-menu .mobile-links a {
    text-decoration: none;
    color: inherit;
    padding: 12px 12px;
    border-radius: 12px;
    transition: transform .2s ease, background .2s ease;
}

#mobile-menu .mobile-links a:hover {
    background: rgba(198, 198, 198, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    #mobile-menu .mobile-links a:hover {
        transform: translateX(6px);
    }
}

/* Evitar scroll del body cuando el menÃº estÃ¡ abierto */
body.menu-open {
    overflow: hidden;
}

.mobile-links {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-links a {
    font-weight: 500;
    color: var(--text-main);
}

.mobile-links .btn-mobile-cta {
    background-color: #d97706;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.mobile-links #btn-inicio-login {
    width: 100%;
}

/* Si tu clase .hidden aplica display:none y te rompe el panel,
   esto lo neutraliza SOLO para el menÃº mÃ³vil */
#mobile-menu.hidden {
    display: block !important;
}

/* Header del menÃº mÃ³vil (imagen superior) */
.mobile-menu-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Imagen */
.mobile-menu-header img {
    display: block;
}

/* --- 5. HERO SECTION --- */
.hero {
    position: relative;
    overflow: hidden;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: clamp(4rem, 8vh, 8rem) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 100%;
    align-items: center;
}

.eyebrow {
    color: var(--amarillo-logo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    /*flex-direction: column;*/
    justify-content: space-between;
    gap: 1rem;
    width: 80%;
}

.hero-button-bottom {
    width: 100%;
    /*display: flex;*/
    justify-content: center;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--brand-dark);
    margin-right: -0.5rem;
}

/*--- columna derecha header - FORMULARIO ---*/
.hero-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 6rem;
}

.hero-form-container.is-logged {
    width: 50%;
    margin-left: 150px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}



.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--brand-dark);
    transition: box-shadow 0.3s ease, outline 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Accessibility: min 48x48 tap target */
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-submit-btn {
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: white;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit-btn:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover), #1e3a8a);
}

@media (hover: hover) and (pointer: fine) {
    .form-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }
}







.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* MÃ³vil */
@media (max-width: 767px) {
    .hero {
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 1rem;
    }

    /* Botones en columna en mÃ³vil */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* El formulario que respire y sea mÃ¡s â€œmobile-friendlyâ€ */
    .hero-form-container {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .form-input {
        padding-left: 2.5rem;
        /* icono */
    }
}

/* --- CONTACT SECTION --- */
.contact-deco-1 {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.contact-deco-2 {
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    width: 12rem;
    height: 12rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.section-header-contact {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.section-header-contact h2 {
    /*color: var(--white);*/
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header-contact p {
    /*color: #cbd5e1;*/
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 10;
}



/* =========================
   CONTACT Â· Responsive
   ========================= */

/* Tablet hacia abajo: 2 columnas -> 1 columna */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* En tablet/mÃ³vil, que el form no se quede â€œpegadoâ€ a la derecha */
    .hero-form-container {
        max-width: 520px;
        margin: 0;
    }

    .hero-form-container.is-logged {
        width: 100%;
        max-width: 400px;
        margin-left: 0;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
        min-height: auto;
        align-items: stretch;
    }

    .contact-section {
        padding: 4rem 0;
        /* un poco menos que en desktop */
    }

    .contact-layout {
        grid-template-columns: 1fr;
        /* âœ… una columna */
        gap: 2rem;
    }

    .section-header-contact h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-header-contact p {
        font-size: 1rem;
    }

    /* Cards: que no queden raras de ancho */
    .contact-info {
        gap: 1.25rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-form-container {
        padding: 1.75rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .benefit-item {
        justify-content: center;
    }

    .cta-button {
        margin: 0 auto;
    }

    .description {
        margin: 0 auto;
    }

    .business-video-hero {
        min-height: 40vh;
        padding: clamp(3rem, 6vh, 5rem) 0;
    }

    #gramatica {
        padding: 4rem 0 2rem;
    }
}

/* MÃ³vil: mÃ¡s compacto y cÃ³modo */
@media (max-width: 767px) {
    .contact-section {
        padding: 3.5rem 0;
    }

    .section-header-contact {
        margin-bottom: 2rem;
        text-align: left;
        /* suele leerse mejor en mÃ³vil */
    }

    .section-header-contact h2 {
        font-size: 1.6rem;
    }

    .section-header-contact p {
        font-size: 0.95rem;
    }

    /* Icono + textos mÃ¡s proporcionados */
    .contact-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .contact-title {
        font-size: 1.1rem;
    }

    .contact-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Form */
    .contact-form-title {
        font-size: 1.25rem;
    }

    .contact-form-container {
        padding: 1.25rem;
        border-radius: 1rem;
    }



    .contact-form-submit-btn {
        width: 100%;
    }

    /* Consent: en mÃ³vil mejor que se adapte */
    #contactForm>div[style*="display: flex"] {
        align-items: flex-start !important;
        gap: 0.6rem;
    }
}

/* Extra: mÃ³vil muy pequeÃ±o */
@media (max-width: 420px) {
    .contact-card {
        padding: 1.1rem;
    }

    .contact-form-container {
        padding: 1.1rem;
    }
}


/* --- 6. METHODOLOGY (Features) --- */
.section-py {
    padding: 2rem 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    color: var(--brand-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*background: rgba(255, 255, 255, 0.7);*/
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card .btn {
    margin-top: auto;
}

.feature-card:hover {
    border-color: rgba(30, 64, 175, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-2xl);
    }
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #dbeafe;
    color: var(--brand-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background-color: var(--brand-primary);
    color: var(--white);
}

/* --- 8. TEACHER SECTION --- */
#teacher {
    background: var(--brand-light);
}

.teacher-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.teacher-img-wrapper {
    position: relative;
    width: 100%;
}

.teacher-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 10;
}

/* Decoraciones */
.deco-circle-1 {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.deco-circle-2 {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.float-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 18rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.timeline-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon {
    font-size: 4rem;
    color: var(--brand-primary);
    /*width: 200px;
    height: 200px;*/
    /*display: flex;*/
    align-items: center;
    /*justify-content: center;*/
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.08);
    border: 2px solid rgba(30, 64, 175, 0.15);
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .timeline-item:hover .timeline-icon {
        transform: scale(1.08);
    }
}

/* --- 9. CTA FINAL --- */

.cta-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--brand-dark), #1e293b);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-rainbow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            #f59e0b, #ef4444, #8b5cf6, #3b82f6, #22c55e, #f59e0b);
    animation: rotate 20s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 10. FOOTER --- */
.footer {
    background-color: #0f172a;
    /* Slate 900 */
    color: #cbd5e1;
    /* Slate 300 */
    padding: 3rem 0 0.8rem 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    place-items: start;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    /*margin-bottom: 2rem;*/
    align-items: start;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #9eaab8;
    margin-top: 1.5rem;
    text-align: left;
    line-height: 1.6;
    max-width: 320px;
}

.footer h4 {}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
    background-color: #1e293b;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .social-icon:hover {
        transform: scale(1.25);
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
        -webkit-filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    }
}

/* Colores originales por red */
.social-icon:hover .fa-linkedin-in {
    color: #0A66C2;
}

.social-icon:hover .fa-instagram {
    color: #E4405F;
}

.social-icon,
.social-icon:hover,
.social-icon:focus,
.social-icon:active {
    text-decoration: none;
}

/* --- 11. ANIMACIONES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease-out;
    /*background: #D3D3D3;*/
    -webkit-transition: all 0.4s ease-out;
    -moz-transition: all 0.4s ease-out;
    -ms-transition: all 0.4s ease-out;
    -o-transition: all 0.4s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MÃ³vil: 1 columna y centrado */
@media (max-width: 767px) {
    .footer {
        padding: 2.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        place-items: center;
        text-align: center;
        gap: 1.75rem;
    }

    .footer-grid>div {
        width: 100%;
        max-width: 420px;
    }

    .footer-grid>div[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .footer-logo {
        grid-column: span 1;
        align-items: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto;
        width: min(180px, 70%);
        height: auto;
    }

    .footer ul {
        padding: 0;
        margin: 0;
    }

    .footer ul li {
        margin-bottom: 0.875rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-copy {
        padding-top: 1.25rem;
        font-size: 0.75rem;
    }
}

/*-----------------------------  CURSO ESPAÃ‘OL PROFESIONAL  -------------------------------------------*/
.btn-outline-dark {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

.btn-outline-dark:hover {
    background-color: var(--brand-dark);
    color: var(--white);
}

.btn-dark {
    background-color: var(--brand-dark);
    color: var(--white);
    font-weight: 700;
}

.btn-dark:hover {
    background-color: #1e293b;
}

@media (hover: hover) and (pointer: fine) {
    .btn-dark:hover {
        transform: translateY(-2px);
    }
}



.hero-content-cp {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.hero-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons-cp {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* --- 6. TABS SECTION WITH INNOVATIVE EFFECTS --- */
.tabs-section {
    padding: 2rem 0;
    background: white;
}

.tabs-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tabs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--brand-primary);
    color: var(--brand-dark);
}

.tab-btn:hover::before,
.tab-btn.active::before {
    opacity: 0.1;
}

.tab-btn.active {
    color: var(--brand-primary);
    font-weight: 700;
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- 7. FEATURES SECTION WITH GLASS EFFECT --- */


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.feature-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.feature-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover .feature-icon-bg {
        transform: scale(1.2) rotate(10deg);
        box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
    }
}

.feature-icon {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

/* --- 8. REMEMBER SECTION WITH ANIMATED LIST --- */
.remember-section {
    padding: 3rem 0;
    background: white;
}

.remember-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.remember-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.remember-title {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-title i {
    color: var(--brand-primary);
}

.remember-list {
    display: grid;
    gap: 1rem;
}

.remember-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.remember-item.appear {
    opacity: 1;
    transform: translateX(0);
}

.remember-item:nth-child(2) {
    transition-delay: 0.1s;
}

.remember-item:nth-child(3) {
    transition-delay: 0.2s;
}

.remember-check {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.remember-check i {
    color: white;
    font-size: 0.875rem;
}

.remember-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.remember-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: #64748b;
    border-left: 4px solid var(--brand-accent);
}

/* --- 9. COURSE SECTIONS WITH INNOVATIVE CARD EFFECTS --- */
.course-sections {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-grid-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (hover: hover) and (pointer: fine) {
    .section-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: var(--shadow-2xl);
    }
}

.section-header-card {
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    padding: 1.5rem 2rem;
    color: white;
    position: relative;
}

.section-title-card {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.section-count {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.section-content {
    padding: 2rem;
}

/* Innovative Lesson Cards */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lesson-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .lesson-card:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: var(--shadow-xl);
    }
}

.lesson-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lesson-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lesson-card:hover .lesson-image {
        transform: scale(1.1);
    }
}

.lesson-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.lesson-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brand-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.lesson-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-dark);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.lesson-lock {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    color: var(--brand-dark);
}

.lesson-content {
    padding: 1.5rem;
}

.lesson-title {
    font-size: 1.125rem;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.lesson-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Section-specific backgrounds */
.section-1 .section-header-card {
    background: linear-gradient(135deg, #f59e0b, #eab308);
}

.section-2 .section-header-card {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.section-3 .section-header-card {
    background: linear-gradient(135deg, #10b981, #059669);
}



/* --- 10. COURSE SUMMARY SECTION --- */
.summary-section {
    padding: 4rem 0;
    background: white;
}

.summary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.summary-title {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.summary-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.stats-grid-cp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-number-cp {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label-cp {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- 13. FLOATING BUTTON WITH PULSE --- */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transform: scale(0);
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .floating-button:hover::before {
        transform: scale(1);
    }
}

@media (hover: hover) and (pointer: fine) {
    .floating-button:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: var(--shadow-2xl);
    }
}

.floating-button::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* Section reveal with stagger */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.section-reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.section-reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.section-reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.section-reveal:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- 15. RESPONSIVE DESIGN --- */

@media (max-width: 767px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    /*.hero-title {
        font-size: 1.75rem;
    }*/

    .section-title,
    .summary-title,
    .cta-title {
        font-size: 1.75rem;
    }

    .hero-buttons-cp {
        flex-direction: column;
    }

    .section-grid,
    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }

    .floating-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1.25rem;
        font-size: 0.875rem;
    }
}

/*-------------------------------index curso conversacion------------------------------------------------*/
#section-conversacion-index {
    width: 100%;
    max-width: 1280px;
    /*margin: 0 auto;*/
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 2rem;
    padding-bottom: 0;
    background: var(--brand-light);
    margin-bottom: 1rem;
}

.div-section-curso-index {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--brand-accent);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}

.animated-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--brand-primary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 900px;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordReveal 0.6s forwards;
    color: #000066;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.content-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
    height: 100%;
}

.description {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.6;
    max-width: 540px;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
    animation-delay: 0.6s;
}

.title-description-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.description-seccion {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    max-width: 80%;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
    animation-delay: 0.6s;
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.check-icon-curso {
    color: var(--brand-accent);
    background: rgba(245, 158, 11, 0.15);
    padding: 6px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    color: var(--white);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    width: fit-content;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
    animation-delay: 1.4s;
    margin-top: auto;
}

.cta-button:hover {
    background: var(--white);
    color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.3);
    }
}

.cta-button-beginner-level-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    color: var(--white);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    width: fit-content;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
    animation-delay: 1.4s;
    margin-top: auto;
}

.cta-button-beginner-level-page:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
    .cta-button-beginner-level-page:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.3);
    }
}

.cta-button span.sbc-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cta-button:hover span.sbc-icon {
        transform: translateX(18px);
        -webkit-transform: translateX(18px);
        -moz-transform: translateX(18px);
        -ms-transform: translateX(18px);
        -o-transform: translateX(18px);
    }
}

.cta-button-blog-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cta-button-blog-index {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    color: var(--white);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    width: fit-content;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 0.8s forwards;
    animation-delay: 1.4s;
    margin-top: 2rem;
}

.cta-button-blog-index:hover {
    background: var(--white);
    color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
    .cta-button-blog-index:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(30, 64, 175, 0.3);
    }
}

.main-image-wrapper-small {
    max-width: 400px;
    margin: 0 auto;
}

.image-col {
    position: relative;
    display: flex;
    align-items: center;
}

.main-image-wrapper {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    background: var(--white);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(100px);
    animation: slideInFromRight 0.8s forwards;
    animation-delay: 0.2s;
    max-height: 500px;
}

.main-image,
.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    display: block;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.avatars {
    display: flex;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -15px;
    background-size: cover;
    background-position: center;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar.count {
    background: var(--brand-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.tag-info {
    display: flex;
    flex-direction: column;
}

.tag-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stars {
    display: flex;
    color: var(--brand-accent);
}

.stars .sbc-icon {
    font-size: 1.1rem;
}

/*------------------------------------beginner index------------------------------------------------------------------------------*/
.starter-course-section {
    /*background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);*/
    position: relative;
    overflow: hidden;
}

.starter-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 3rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2rem;
    padding: clamp(2rem, 5vw, 2rem);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.starter-course-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    background: rgba(245, 180, 75, 0.18);
    border-radius: 50%;
}

.starter-course-card::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -140px;
    width: 300px;
    height: 300px;
    background: rgba(30, 58, 138, 0.08);
    border-radius: 50%;
}

.starter-course-content,
.starter-course-visual {
    position: relative;
    z-index: 2;
}

.starter-course-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--brand-primary, #1e3a8a);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.starter-course-title {
    color: var(--brand-dark, #0f172a);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.05;
    /*margin-bottom: 1.5rem;*/
    width: 100%;
}

.starter-course-title span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85em;
    line-height: 1.1;
    color: var(--brand-primary, #1e3a8a);
}

.starter-course-description {
    max-width: 680px;
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.starter-course-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: grid;
    gap: 1rem;
}

.starter-course-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--brand-dark, #0f172a);
    font-weight: 700;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
}

.starter-course-dot {
    width: 28px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f4c430, #e8a923);
    flex-shrink: 0;
    margin-top: 0.35rem;
    box-shadow: 0 6px 16px rgba(232, 169, 35, 0.25);
}

.starter-course-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.starter-course-visual {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.starter-course-level-card {
    width: 150px;
    height: 150px;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 50px rgba(30, 58, 138, 0.25);
    transform: rotate(-6deg);
    position: relative;
    z-index: 2;
}

.starter-course-level-card span {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.starter-course-level-card small {
    margin-top: 0.5rem;
    font-weight: 700;
    opacity: 0.9;
}

.starter-course-level-card-alt {
    background: linear-gradient(135deg, #f4c430, #d99a1e);
    color: var(--brand-dark, #0f172a);
    transform: rotate(7deg);
    margin-left: -1rem;
    margin-top: 8rem;
}

.starter-course-path {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px dashed rgba(30, 58, 138, 0.25);
    border-radius: 50%;
}

@media (max-width: 992px) {
    .starter-course-card {
        grid-template-columns: 1fr;
    }

    .starter-course-visual {
        min-height: 260px;
        order: -1;
    }
}

@media (max-width: 640px) {
    .starter-course-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .starter-course-description {
        font-size: 1rem;
    }

    .starter-course-list li {
        padding: 0.9rem 1rem;
    }

    .starter-course-visual {
        min-height: 220px;
    }

    .starter-course-level-card {
        width: 115px;
        height: 115px;
        border-radius: 1.5rem;
    }

    .starter-course-level-card span {
        font-size: 2.3rem;
    }
}

/*----------------------------------------------------------------------------------------------------------------------------*/


/*-----------------------------  FAQ  -------------------------------------------*/
.faq-deco-1 {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.faq-deco-2 {
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    width: 8rem;
    height: 8rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.faq-container {
    max-width: 60rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.reveal-faq {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-faq.active {
    opacity: 1;
}

/* FAQ Base & Content Styles (Legacy clean-up) */
.faq-item.hidden-faq {
    display: none;
}

.faq-answer-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content a {
    color: var(--brand-primary);
    font-weight: 600;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

.faq-answer-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/*-------------------------------- BLOG -----------------------------------------*/
.blog-deco-1 {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 12rem;
    height: 12rem;
    background: rgba(30, 64, 175, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.blog-deco-2 {
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    width: 10rem;
    height: 10rem;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 50%;
    z-index: 0;
}

/* Blog Grid - 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Innovative Blog Card */
.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* 3D effect base */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Card Hover Effects */
.blog-card:hover {
    z-index: 10;
}

@media (hover: hover) and (pointer: fine) {

    /* Card Hover Effects */
    .blog-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-2xl);
    }
}

/* Card Image Container */
.card-image-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Single Post specific override to avoid cropping the featured image */
.single-sbc_gramatica .card-image-container,
.single-sbc_blog .card-image-container {
    height: auto;
    max-width: 860px !important;
    max-height: 480px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-xl, 16px);
}

.single-sbc_gramatica .card-image,
.single-sbc_blog .card-image {
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

/* --- REDISEÑO EDITORIAL SINGLE (Blog & Grammar) --- */

/* Hero adjustments */
.single-sbc_gramatica .hero-title,
.single-sbc_blog .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.single-sbc_gramatica .card-meta,
.single-sbc_blog .card-meta {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Layout de lectura */
.single-sbc_gramatica .blog-article,
.single-sbc_blog .blog-article {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    /* ~18.4px */
    line-height: 1.85;
    color: var(--text-main);
    padding: 0 1rem;
    /* Extra seguridad para móvil */
}

.single-sbc_gramatica .article-footer-nav,
.single-sbc_blog .article-footer-nav {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.single-sbc_gramatica .article-pdf-gate-spacer,
.single-sbc_blog .article-pdf-gate-spacer {
    height: 40px;
}

/* Headings */
.single-sbc_gramatica .blog-article h2,
.single-sbc_blog .blog-article h2 {
    font-size: 1.85rem;
    color: var(--brand-dark);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.single-sbc_gramatica .blog-article h3,
.single-sbc_blog .blog-article h3 {
    font-size: 1.4rem;
    color: var(--brand-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.single-sbc_gramatica .blog-article h4,
.single-sbc_blog .blog-article h4 {
    font-size: 1.15rem;
    color: var(--brand-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Párrafos */
.single-sbc_gramatica .blog-article p,
.single-sbc_blog .blog-article p {
    margin-bottom: 1.75rem;
}

/* Blockquotes / Citas (Más sobrio) */
.single-sbc_gramatica .blog-article blockquote,
.single-sbc_blog .blog-article blockquote {
    background: transparent;
    border-left: 3px solid var(--brand-accent);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--brand-dark);
    font-size: 1.25rem;
    line-height: 1.6;
}

.single-sbc_gramatica .blog-article blockquote p:last-child,
.single-sbc_blog .blog-article blockquote p:last-child {
    margin-bottom: 0;
}

/* Listas */
.single-sbc_gramatica .blog-article ul,
.single-sbc_blog .blog-article ul {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.single-sbc_gramatica .blog-article ul li,
.single-sbc_blog .blog-article ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.single-sbc_gramatica .blog-article ul li::before,
.single-sbc_blog .blog-article ul li::before {
    content: "—";
    /* Viñeta editorial más elegante que un punto gigante */
    color: var(--brand-primary);
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    line-height: inherit;
}

.single-sbc_gramatica .blog-article ol,
.single-sbc_blog .blog-article ol {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
}

.single-sbc_gramatica .blog-article ol li,
.single-sbc_blog .blog-article ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

/* Imágenes dentro del contenido */
.single-sbc_gramatica .blog-article img,
.single-sbc_blog .blog-article img {
    border-radius: 8px;
    /* Radio sutil */
    margin: 3rem auto;
    display: block;
    height: auto;
}

/* Tablas (si las hay) - Limpias, sin fondo ni sombras pesadas */
.single-sbc_gramatica .blog-article table,
.single-sbc_blog .blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: transparent;
}

.single-sbc_gramatica .blog-article th,
.single-sbc_blog .blog-article th {
    background: transparent;
    color: var(--brand-dark);
    padding: 1rem 0.5rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-primary);
}

.single-sbc_gramatica .blog-article td,
.single-sbc_blog .blog-article td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.single-sbc_gramatica .blog-article tr:last-child td,
.single-sbc_blog .blog-article tr:last-child td {
    border-bottom: 1px solid var(--gray-200);
}

/* Componentes Modernos (Clases de utilidad para WP Editor - Limpios) */
.single-sbc_gramatica .blog-article .grammar-box,
.single-sbc_blog .blog-article .grammar-box {
    background: #f8fafc;
    /* Color sólido sutil, sin gradiente */
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
}

.single-sbc_gramatica .blog-article .grammar-box-title,
.single-sbc_blog .blog-article .grammar-box-title {
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (hover: hover) and (pointer: fine) {
    /* --- FIN REDISEÑO EDITORIAL --- */

    /* Image hover effect */

    .blog-card:hover .card-image {
        transform: scale(1.1) rotate(2deg);
        filter: brightness(1.1);
    }
}

/* Gradient overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

/* Animated corner decoration */
.card-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 0 0 0 10px;
    background: var(--brand-primary);
    top: 0;
    right: 0;
    opacity: 0;
    transform: translateX(20px) translateY(-20px);
    transition: all 0.3s ease;
}

.blog-card:hover .card-corner {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .blog-card:hover .card-corner {
        transform: translateX(0) translateY(0);
    }
}

.card-corner::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    top: 10px;
    left: 10px;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-meta i {
    color: var(--brand-accent);
    font-size: 1rem;
}

.card-category {
    background: rgba(30, 64, 175, 0.1);
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card:hover .card-title {
    color: var(--brand-primary);
}

.card-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Breve descripciÃ³n */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more button */
.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.875rem;
}

.card-read-more i {
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .blog-card:hover .card-read-more i {
        transform: translateX(5px);
    }
}

/* Animated border effect */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(45deg,
            var(--brand-primary),
            var(--brand-accent),
            var(--brand-primary),
            var(--brand-accent));
    background-size: 400% 400%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover .card-border {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .blog-card:hover .card-border {
        animation: borderAnimation 3s ease infinite;
    }
}

@keyframes borderAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating elements */
.card-float {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    top: 20px;
    left: 20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: 1;
}

.blog-card:hover .card-float {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .blog-card:hover .card-float {
        transform: scale(1);
    }
}

.card-float:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60px;
    left: 60px;
    background: rgba(30, 64, 175, 0.1);
    transition-delay: 0.1s;
}

.card-float:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 80px;
    background: rgba(245, 158, 11, 0.15);
    transition-delay: 0.2s;
}

/*----------------------- TEACHER  ----------------------------------*/
.intro-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.intro-eyebrow {
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.intro-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 1px;
}

.intro-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

/* --- 6. COMPACT VIDEO SECTION --- */
.video-section {
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.section-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.section-deco-1 {
    top: -3rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    background: rgba(30, 64, 175, 0.05);
}

.section-deco-2 {
    bottom: -3rem;
    left: -3rem;
    width: 8rem;
    height: 8rem;
    background: rgba(245, 158, 11, 0.05);
}

/*--------- VIDEO TEACHER ------------*/

/* Compact Video Layout */
.video-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 900px) {
    .video-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact Video Card - Left side */
.video-info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
}

.video-info-card:hover {
    border-color: rgba(30, 64, 175, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .video-info-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
    }
}

.sbc-video-embed iframe,
.sbc-video-embed video {
    width: 100%;
    height: 100%;
    display: block;
}

.sbc-video-empty {
    color: #fff;
    padding: 24px;
    font-family: sans-serif;
}

/******************************************************/

.card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.card-eyebrow {
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    font-weight: 700;
}

.card-subtitle {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 300;
}

.card-points {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.card-point {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.point-icon {
    width: 20px;
    height: 20px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.point-icon i {
    color: var(--brand-primary);
    font-size: 0.625rem;
}

.point-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Compact Video Container - Right side */
.video-container {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-header {
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    padding: 1rem 1.5rem;
    color: white;
}

.video-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

.teacher-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--brand-primary);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .teacher-circle:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-xl);
    }
}

.teacher-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-compact {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-accent), #eab308);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease, border-radius 0.3s ease;
}

.play-button-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .play-button-compact:hover::before {
        transform: scale(1);
    }
}

.play-button-compact i {
    color: white;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.video-text {
    color: var(--brand-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.video-subtext {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 300;
}

/* --- 7. COMPACT CONTENT SECTIONS --- */
.content-section {
    padding: 3.5rem 0;
    background: white;
    position: relative;
}

.content-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    color: var(--brand-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 1px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.content-text-wrapper {
    max-width: 450px;
}

.content-title {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.content-title span {
    color: var(--brand-primary);
    position: relative;
}

.content-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-points {
    display: grid;
    gap: 1rem;
}

.content-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.content-icon {
    width: 24px;
    height: 24px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.content-icon i {
    color: var(--brand-primary);
    font-size: 0.75rem;
}

.content-point-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.content-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .content-image-wrapper:hover .content-image {
        transform: scale(1.02);
    }
}

/* --- 8. ANIMATED TIMELINE SECTION --- */
.timeline-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}

.timeline-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.timeline-title {
    font-size: 1.75rem;
    color: var(--brand-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
    border-radius: 1px;
}

.timeline-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 90%;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-accent));
    z-index: 1;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-image-wrapper {
    width: 80px;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-image-wrapper.appear {
    opacity: 1;
    transform: translateX(0);
}

.timeline-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid white;
}

.timeline-content {
    flex-grow: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f3f4f6;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0.1s;
}

.timeline-content.appear {
    opacity: 1;
    transform: translateX(0);
}

.timeline-year {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.timeline-item-title {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-text {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 300;
}

.timeline-year-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 15px;
    z-index: 2;
}

/* Timeline connector dots */
.timeline-section .timeline-dot {
    position: absolute;
    background: var(--brand-primary);
    border: 3px solid white;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

/* --- 9. COMPACT CONVERSATION SECTION --- */
.conversation-section {
    padding: 3.5rem 0;
    background: white;
    position: relative;
}

.conversation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.conversation-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 250px;
}

.conversation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.conversation-quote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.conversation-author {
    font-weight: 600;
    font-size: 0.875rem;
}

.conversation-text-wrapper {
    max-width: 450px;
}

.conversation-title {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.conversation-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- 10. COMPACT START SECTION --- */


.start-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.start-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.start-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.start-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

/* --- 11. FOOTER --- */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo__img {
    max-width: 140px;
    width: 100%;
    height: auto;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer ul li a {
    text-decoration: none;
}

.footer a:hover {
    color: var(--amarillo-logo);
}

.footer-copy {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* Staggered animations */
.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- 13. RESPONSIVE DESIGN --- */

@media (max-width: 767px) {

    .video-layout,
    .content-layout,
    .conversation-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-item {
        flex-direction: column !important;
        gap: 1rem;
        text-align: left;
    }

    .timeline-image-wrapper {
        width: 100%;
        max-width: 80px;
        margin: 0 auto;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-items {
        gap: 2rem;
    }

    .start-buttons {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/***************----------------- CURSO CONVERSACION  ---------------------------*/
.hero-section {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
    padding-top: 3rem;
}

.hero-content-conversacion {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.hero-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 1px;
}

.sbc-title-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.starter-course-title .starter-course-title-black {
    color: #000;
}

.starter-course-title .sbc-title-underline {
    display: inline-block;
    width: fit-content;
    max-width: max-content;
    white-space: nowrap;
}

.starter-course-title .sbc-title-underline::after {
    left: 0;
    right: 0;
    width: 100%;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .sbc-title-underline::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        top: 90%;
        transform: translateX(-50%);
        width: 40%;
        height: 4px;
        /*background: var(--card-precios);
        */
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
        opacity: 0.8;
        border-radius: 4px;
        z-index: -1;
        transition: width 0.4s ease, left 0.4s ease, transform 0.4s ease;
        -webkit-transition: width 0.4s ease, left 0.4s ease, transform 0.4s ease;
        -moz-transition: width 0.4s ease, left 0.4s ease, transform 0.4s ease;
        -ms-transition: width 0.4s ease, left 0.4s ease, transform 0.4s ease;
        -o-transition: width 0.4s ease, left 0.4s ease, transform 0.4s ease;
    }

    .sbc-title-underline:hover::after {
        width: 100%;
        left: 0;
    }

    @media (hover: hover) and (pointer: fine) {
        .sbc-title-underline:hover::after {
            transform: translateX(0);
        }
    }
}

@media (max-width: 1024px),
(hover: none),
(pointer: coarse) {
    .sbc-title-underline::after {
        content: none;
        display: none;
    }
}

.hero-text {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

#p-text {
    color: var(--brand-dark);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .hero-image-wrapper:hover .hero-image {
        transform: scale(1.05);
    }
}

/* Floating elements */
.hero-floating {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.floating-1 {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.2);
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    width: 40px;
    height: 40px;
    background: rgba(30, 64, 175, 0.2);
    bottom: 15%;
    right: 8%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(10px, 10px) rotate(-5deg);
    }

    75% {
        transform: translate(-5px, 5px) rotate(3deg);
    }
}

/* --- 6. INNOVATIVE CAROUSEL SECTION --- */
.section-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* 3D Carousel Container */
.carousel-container {
    max-width: 690px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    perspective: 1000px;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* 3D Carousel Card */
.carousel-card {
    flex: 0 0 calc(80% - 3rem);
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    height: 18rem;
    opacity: 0.45;
    transition: transform 0.4s ease, opacity 0.4s ease;
    -webkit-transition: transform 0.4s ease, opacity 0.4s ease;
    -moz-transition: transform 0.4s ease, opacity 0.4s ease;
    -ms-transition: transform 0.4s ease, opacity 0.4s ease;
    -o-transition: transform 0.4s ease, opacity 0.4s ease;
}

.carousel-card.active {
    transform: scale(1.13);
    opacity: 1;
    -webkit-transform: scale(1.13);
    -moz-transform: scale(1.13);
    -ms-transform: scale(1.13);
    -o-transform: scale(1.13);
}

.carousel-card-inner {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    height: 100%;
}

.carousel-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-card.active .carousel-card-inner::before {
    opacity: 1;
}

/* Card front and back for 3D flip effect */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.card-face-front {
    transform: rotateY(0deg);
}

.card-face-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: white;
}

.feature-icon-3d {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.feature-icon-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transform: scale(0);
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-card:hover .feature-icon-3d::before {
        transform: scale(1);
    }
}

.feature-title-3d {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.carousel-card.active .feature-title-3d {
    color: var(--brand-primary);
}

.card-face-back .feature-title-3d {
    color: white;
}

.feature-text-3d {
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    width: 70%;
}

.card-face-back .feature-text-3d {
    color: rgba(255, 255, 255, 0.9);
}

.feature-cta-3d {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
    transition: transform 0.3s ease;
}

.feature-cta-3d i {
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-card:hover .feature-cta-3d i {
        transform: translateX(3px);
    }
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-arrow:hover {
    border-color: var(--brand-primary);
}

@media (hover: hover) and (pointer: fine) {
    .carousel-arrow:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: var(--shadow-xl);
    }
}

.carousel-arrow:hover::before {
    opacity: 0.1;
}

.carousel-arrow i {
    font-size: 1.25rem;
    color: var(--brand-dark);
    position: relative;
    z-index: 2;
}

.carousel-arrow:hover i {
    color: var(--brand-primary);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--brand-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-dot.active {
    background: var(--brand-primary);
}

.carousel-dot.active::before {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .carousel-dot:hover {
        transform: scale(1.2);
    }
}

/* Parallax Background Elements */
.parallax-bg {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

.parallax-circle-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1), transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 10%;
}

.parallax-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    border-radius: 50%;
    bottom: 15%;
    right: 15%;
}

/* === MODERN STEPS CARD === */
.steps-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
    overflow: hidden;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 1;
}

/* Staircase SVG Timeline */
.steps-container {
    position: relative;
}

.steps-section .timeline-dot {
    position: absolute;
    width: 26px;
    height: 26px;
    z-index: 5;
    animation: scalePulseDot 1.8s ease-in-out infinite;
}

.timeline-dot-center {
    top: 106px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes scalePulseDot {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.35);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.staircase-timeline {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.steps-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--brand-dark);
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
    margin-top: 130px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    /*overflow: hidden;*/
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card:nth-child(odd) {
    flex-direction: row;
}

.step-card:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    position: absolute;
    top: -20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    z-index: 10;
    border: 3px solid var(--brand-primary);
    transition: all 0.4s ease;
}

.step-card:nth-child(odd) .step-number {
    left: -35px;
}

.step-card:nth-child(even) .step-number {
    right: -35px;
}

.step-card.revealed .step-number {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.3),
        0 10px 25px -5px rgba(30, 64, 175, 0.25);
    transform: scale(1.05);
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.step-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.step-image-wrapper {
    flex: 0 0 220px;
    height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.step-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .step-card:hover .step-image {
        transform: scale(1.05);
    }
}

.step-card {
    opacity: 0;
}

.step-card.revealed {
    opacity: 1;
}

.step-card:nth-child(odd).revealed {
    animation: slideInLeft 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.step-card:nth-child(even).revealed {
    animation: slideInRight 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    .step-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }
}

/* --- 8. NO INTERRUPTIONS SECTION --- */
.no-interruptions-section {
    padding: 2rem 0;
    background: white;
    position: relative;
}

.no-interruptions-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 900px) {
    .no-interruptions-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.no-interruptions-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.no-interruptions-title {
    color: var(--brand-dark);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.no-interruptions-title span {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.no-interruptions-section .benefits-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.no-interruptions-section .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.benefit-check {
    width: 24px;
    height: 24px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-check i {
    color: #22c55e;
    font-size: 0.75rem;
}

.benefit-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-interruptions-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
}

.no-interruptions-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 10. STATS SECTION --- */


.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/*---------------------------------  PRECIOS -------------------------------------------*/

/*PARA QUE SE VEA EL SVG CON  LOS MIMSO COLORES*/
/* Para que los SVG hereden el color como antes */
.sbc-icon {
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Antes era .left .icons span, ahora el elemento serÃ¡ svg */
.left .icons .sbc-icon {
    color: var(--dark-blue);
}

/* Animated background */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--light-grey);
}

/* Header */
header {
    background: var(--dark-blue);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

header .brand span {
    color: #fff;
}

header h1 {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}

/* Layout */
main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 24px;
}

.layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media(min-width:1025px) {
    .layout {
        flex-direction: row;
    }

    .left {
        width: 33%;
    }

    .right {
        width: 67%;
    }
}

/* Left column */
.left .icons {
    display: flex;
    gap: 6px;
}

.left .icons span {
    color: var(--dark-blue);
}

.left .subtitle {
    font-style: italic;
    font-size: 24px;
    color: var(--slate-500);
}

.left .divider {
    height: 2px;
    background: var(--gray-200);
    margin: 8px 0;
}

.left .title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .2em;
    color: var(--dark-blue);
}

.features {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    /*width: 78%;*/
}

.features li {
    border-left: 4px solid var(--dark-blue);
    padding: 6px 0 6px 20px;
    margin-bottom: 13px;
    font-weight: 600;
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width:1025px) {
    .pricing {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan {
    border-radius: 40px;
    padding: 40px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    /* importante para que ::before se limite al plan */
}

.plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* âœ… deja pasar el clic al botÃ³n */
}

@media (hover: hover) and (pointer: fine) {
    .plan:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    }
}

.plan:hover::before {
    opacity: 1;
}


.plan button {
    position: relative;
    z-index: 5;
    /* âœ… por encima del overlay */
}


.plan.dark {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a244a 100%);
    border: 3px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18), 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.plan.medium {
    background: linear-gradient(135deg, var(--medium-blue) 0%, #253568 100%);
}

.plan.light {
    background: linear-gradient(135deg, var(--light-blue) 0%, #334888 100%);
}

.plan.beginner-level {
    background: #ffeb99;
    color: #0f172a;
}

/* Force mobile layout on beginner levels pricing */
.beginner-levels-pricing .layout {
    display: block !important;
}

.beginner-levels-pricing .left {
    display: none !important;
}

.beginner-levels-pricing .pricing {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .beginner-levels-pricing .pricing {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.beginner-levels-pricing .checks {
    display: none !important;
}

.beginner-levels-pricing .plan {
    position: relative !important;
    padding: 32px 24px !important;
    border-radius: 26px !important;
    text-align: left !important;
}

.beginner-levels-pricing .price {
    margin-bottom: 24px !important;
    border-color: rgba(15, 23, 42, 0.4);
    background: rgba(255, 255, 255, 0.5);
    color: #0f172a;
}

.beginner-levels-pricing .plan-features {
    display: grid !important;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beginner-levels-pricing .plan-features li {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.35;
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.beginner-levels-pricing .plan-features .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
}

.beginner-levels-pricing .plan-features .icon svg {
    width: 20px;
    height: 20px;
    fill: #0f172a !important;
}

.beginner-levels-pricing .plan-features li.is-off {
    opacity: 0.55;
}

.beginner-levels-pricing .plan button {
    margin-top: 24px;
    background: #0f172a;
    color: #fff;
}


/* Recommended badge */
.recommended-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gold);
    color: var(--dark-blue);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 24px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.plan h3 {
    margin: 0 0 8px;
    /*letter-spacing: .18em;*/
    text-transform: uppercase;
    text-align: center;
}

.plan .line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, .4);
    margin: 18px auto 25px;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.right.pricing .plan:hover .line {
    width: 120px;
    background: #000000;
}

.price {
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    padding: 8px 60px;
    font-size: 22px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 0 auto 30px auto;
}

.plan:hover .price {
    border-color: rgba(255, 255, 255, 0.8);
}

@media (hover: hover) and (pointer: fine) {
    .plan:hover .price {
        transform: scale(1.05);
    }
}

.checks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.check-icon {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
}

@media (hover: hover) and (pointer: fine) {
    .plan:hover .check-icon {
        transform: scale(1.2) rotate(5deg);
    }
}

.note {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 48px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

/* Button */
.plan button {
    width: 100%;
    margin-top: 40px;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    background: #fff;
    color: var(--dark-blue);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.plan button:hover {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    border-color: #f5d76e;
    color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
    .plan button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    }
}

.close-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, .3);
    transition: all 0.3s ease;
    width: 22px;
    height: 22px;
}

.plan:hover .close-icon {
    opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
    .plan:hover .close-icon {
        transform: scale(0.8) rotate(-5deg);
    }
}

.plan-full-width {
    grid-column: 1 / -1;
}

.plan-includes {
    background: #ffeb99;
    color: #0f172a;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.plan-includes-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #283971;
    letter-spacing: 0.03em;
}

.plan-includes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 2rem;
    text-align: left;
}

.plan-includes-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #0f172a;
}

.plan-includes-arrow {
    color: #b8860b;
    font-weight: 900;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.plan-includes-item strong {
    font-weight: 900;
    color: #0f172a;
}

@media (max-width: 768px) {
    .plan-includes {
        padding: 1.5rem;
    }

    .plan-includes-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .plan-includes-title {
        font-size: 1.1rem;
    }

    .plan-includes-item {
        font-size: 0.95rem;
    }
}

.right.pricing .plan,
.right.pricing .plan-includes-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-origin: center;
}

.right.pricing .plan:hover,
.right.pricing .plan-includes-full:hover {
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {

    .right.pricing .plan:hover,
    .right.pricing .plan-includes-full:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 22px 45px rgba(15, 23, 42, 0.28);
    }
}

/*-----------------------------  PRUEBA DE NIVEL  -------------------------------------------*/

.container-pn {
    width: min(var(--container-width), calc(100% - 48px));
    margin: 0 auto;
}

/* ---------------- HERO IMAGE + CURVE ---------------- */


/* curva blanca como en la captura */


/* ---------------- INTRO ---------------- */
.intro {
    text-align: center;
}

.intro h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 500;
    /* parecido al de la captura */
}

.intro p {
    margin: 14px auto 0;
    max-width: 780px;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
}

.intro p .hl {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(245, 158, 11, .75);
}

.intro p .wavy {
    text-decoration: underline wavy rgba(11, 92, 255, .9);
    text-underline-offset: 3px;
    font-weight: 500;
}

/** calendly*/
.calendly-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 16px;
}

.after-embed {
    text-align: center;
    padding: 8px 0 54px;
    color: #111827;
    font-size: 14px;
}

.after-embed .mark {
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, .9);
    text-decoration-thickness: 3px;
    text-underline-offset: 2px;
}


/* ---------------- LEVELS (GREEN STRIP) ---------------- */
.levels {
    background: var(--green);
    padding: 34px 0 34px;
    position: relative;
}

.levels h2 {
    margin: 6px 0 18px;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.levels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 4px;
}

@media (min-width: 520px) {
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.level-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .10);
    padding: 18px 18px 14px;
    min-height: 170px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}

.level-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.level-card:nth-child(1).visible {
    animation-delay: 0.2s;
}

.level-card:nth-child(2).visible {
    animation-delay: 0.4s;
}

.level-card:nth-child(3).visible {
    animation-delay: 0.6s;
}

/* Efectos elegantes al pasar el ratÃ³n */
.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(11, 92, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s ease;
    transform: scale(0.8);
    z-index: -1;
}

.level-card:hover::before {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .level-card:hover::before {
        transform: scale(1);
    }
}

.level-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.level-card:hover::after {
    opacity: 1;
}

.level-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .level-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 20px 40px rgba(2, 6, 23, 0.25);
    }
}

.level-card .name {
    text-align: center;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.3s ease;
}

.level-card:hover .name {
    color: var(--brand-accent);
    text-decoration-color: var(--brand-accent);
}

.level-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #1f2937;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
}

.level-card.visible p {
    opacity: 1;
    transform: translateY(0);
}

.level-card b {
    font-weight: 800;
    position: relative;
    transition: all 0.3s ease;
}

.level-card:hover b {
    color: var(--brand-accent);
}

@media (hover: hover) and (pointer: fine) {
    .level-card:hover b {
        transform: scale(1.05);
    }
}

.level-card b::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .level-card:hover b::before {
        transform: scaleX(1);
    }
}

.levels-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    color: #111827;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.levels-bottom .left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
}

.cap {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .18);
    background: rgba(255, 255, 255, .55);
    font-size: 16px;
    animation: pulseCap 2s infinite;
}

@keyframes pulseCap {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.levels-bottom .cta {
    margin-left: auto;
    background: #0b0b0f;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .02em;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .18);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.levels-bottom .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.levels-bottom .cta:hover::before {
    left: 100%;
}

/* ---------------- WHITE STRIP (TEXT) ---------------- */
.promise {
    background: #fff;
    text-align: center;
    padding: 28px 0 52px;
    font-size: 36px;
    font-weight: 500;
}

/* floating buttons bottom right */
.float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 60;
}

.float .contact {
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .15);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    color: #111827;
}

.float .mail {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #ff4b4b;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .22);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {

    .levels-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .levels-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .levels-bottom .cta {
        margin-left: 0;
    }

    .promise {
        font-size: 30px;
        padding: 18px 0 44px;
    }

    .float {
        right: 12px;
        bottom: 12px;
    }

    .level-card {
        transform: translateY(20px);
    }

    @media (hover: hover) and (pointer: fine) {
        .level-card:hover {
            transform: translateY(-4px) !important;
        }
    }
}

@media (max-width: 520px) {
    .intro h1 {
        font-size: 28px;
    }

    .promise {
        font-size: 26px;
    }

    .brand .title {
        font-size: 13px;
    }

    .pill {
        padding: 10px 12px;
        font-size: 11px;
    }
}

/* âœ… MÃ“VIL: mantener tabla (features + 3 planes en la misma fila) */
/* Por defecto ocultamos la lista mÃ³vil (se usa solo en mÃ³vil) */
.plan-features {
    display: none;
}

/* Footer */
footer {
    /*background: var(--footer-blue);*/

    color: #fff;
    padding: 32px;
    margin-top: auto;
}





footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === FLOTANTE WHATSAPP === */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;

    width: 56px;
    height: 56px;

    background-color: #25D366;
    color: #fff;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    text-decoration: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Tooltip */
.whatsapp-float::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    /* separaciÃ³n del botÃ³n */
    bottom: 50%;
    transform: translateY(50%) translateX(10px);

    background: #111827;
    /* gris oscuro elegante */
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Flechita del tooltip */
.whatsapp-float::before {
    content: '';
    position: absolute;
    right: 62px;
    bottom: 50%;
    transform: translateY(50%) translateX(10px);

    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #111827;

    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Mostrar tooltip al hover */
.whatsapp-float:hover::after,
.whatsapp-float:hover::before {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {

    /* Mostrar tooltip al hover */
    .whatsapp-float:hover::after,
    .whatsapp-float:hover::before {
        transform: translateY(50%) translateX(0);
    }
}

@media (hover: hover) and (pointer: fine) {

    /* Hover del botÃ³n */
    .whatsapp-float:hover {
        transform: scale(1.08);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
}

.whatsapp-float i {
    line-height: 1;
}

/* =========================================
   LOGIN (solo page-template-login-php)
   Centrar formulario en el viewport
========================================= */

/* Evita scroll vertical y horizontal */
body.page-template-login-php,
body.page-template-recover-password-php,
body.page-template-reset-password-php {
    height: 100vh;
    overflow: hidden;
}

/* Asegura que no haya scroll interno raro */
body.page-template-login-php html,
body.page-template-recover-password-php html,
body.page-template-reset-password-php html {
    overflow: hidden;
}

body.page-template-login-php .hero,
body.page-template-recover-password-php .hero,
body.page-template-reset-password-php .hero {
    min-height: 100vh;
    /* ocupa toda la pantalla */
    display: flex;
    /* permite centrar vertical */
    align-items: center;
    /* centro vertical */
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Asegura que el contenido estÃ© por encima del background */
body.page-template-login-php .hero .container,
body.page-template-recover-password-php .hero .container,
body.page-template-reset-password-php .hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* El wrapper donde estÃ¡ el form */
body.page-template-login-php .hero-content,
body.page-template-recover-password-php .hero-content,
body.page-template-reset-password-php .hero-content {
    display: flex;
    justify-content: center;
    /* centro horizontal */
    align-items: center;
    /* centro vertical */
    min-height: 100vh;
    /* clave: centra dentro del viewport */
    width: 100%;
}

/* El formulario */
body.page-template-login-php .hero-form-container,
body.page-template-recover-password-php .hero-form-container,
body.page-template-reset-password-php .hero-form-container {
    width: 100%;
    max-width: 560px;
    /* ajusta ancho del form */
    margin: 0 auto;
    /* por si acaso */
    margin-bottom: 9rem;
}

/* Si en el index el hero-content tenÃ­a "grid" o 2 columnas,
   forzamos a que aquÃ­ sea 1 sola columna centrada */
body.page-template-login-php .hero-content.active,
body.page-template-recover-password-php .hero-content.active,
body.page-template-reset-password-php .hero-content.active {
    width: 100%;
}

/* Opcional: si el header fijo te empuja el centrado, compensa:
   ajusta 80px al alto real de tu header si lo tienes fijo */
body.page-template-login-php .hero,
body.page-template-recover-password-php .hero,
body.page-template-reset-password-php .hero {
    padding-top: 80px;
    /* pon 0 si no tienes header fijo */
    box-sizing: border-box;
}

@media (max-height: 700px) {

    body.page-template-login-php,
    body.page-template-recover-password-php,
    body.page-template-reset-password-php {
        overflow-y: auto;
    }
}

/* --- FOOTER NAV COLUMN RESPONSIVE --- */
.footer-nav-col {
    margin-left: 0;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }

    #navbar:not(.scrolled) {
        top: 32px;
        /*padding: 1rem 0;*/
    }

    .hero-desc {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .courses-header {
        flex-direction: row;
    }

    .link-arrow {
        display: inline-flex;
    }

    .course-card-highlight {
        transform: translateY(-1rem);
    }

    .cta-buttons {
        flex-direction: row;
    }



    .hero-subtitle {
        font-size: 1.25rem;
    }


    .container,
    .section-grid-container {
        padding: 0 2rem;
    }


    .intro-subtitle {
        font-size: 1.125rem;
    }

    .video-info-card {
        padding: 2rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .conversation-title {
        font-size: 1.5rem;
    }

    .start-title {
        font-size: 2rem;
    }


    .container,
    .content-wrapper,
    .timeline-wrapper,
    .conversation-layout {
        padding: 0 2rem;
    }

    .footer-nav-col {
        margin-left: 2rem;
    }
}

/* =========================
   PAGINATION STYLES
   ========================= */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem;
    padding: 0 1.5rem;
}

.pagination-wrapper ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    background: white;
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

@media (hover: hover) and (pointer: fine) {
    .pagination-wrapper .page-numbers:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

.pagination-wrapper .page-numbers.current {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    pointer-events: none;
}

.pagination-wrapper .page-numbers.dots {
    background: transparent;
    border: none;
    pointer-events: none;
}

.pagination-wrapper .page-numbers i {
    margin: 0 0.25rem;
}

/* Responsive pagination */
@media (max-width: 767px) {
    .pagination-wrapper .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }

    .pagination-wrapper .prev,
    .pagination-wrapper .next {
        font-size: 0;
    }

    .pagination-wrapper .prev i,
    .pagination-wrapper .next i {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Tap targets mÃ­nimos 44px para accesibilidad */
    .mobile-links a {
        min-height: 44px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        place-items: start;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: span 2;
    }

    .footer-tagline {
        text-align: center;
        max-width: 100%;
    }

    .footer-grid>div[style*="margin-left"] {
        margin-left: 0 !important;
    }

    .footer-logo p {
        text-align: left !important;
    }

    .social-links {
        justify-content: center;
    }

    /* --- BASE RESPONSIVE (MOBILE & TABLET): CURSO CONVERSACION --- */
    .curso-conversacion-page .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
        text-align: center;
    }

    .curso-conversacion-page .hero-content-conversacion {
        width: 100%;
        padding: 0 1rem;
        order: 1;
        /* Explicitly ensure text is first */
    }

    .curso-conversacion-page .hero-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
        position: relative;
        order: 2;
        /* Explicitly ensure image is second */
    }

    .curso-conversacion-page .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .curso-conversacion-page .hero-buttons {
        align-items: center;
    }


    /* Steps Section */
    .curso-conversacion-page .steps-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .curso-conversacion-page .step-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Hide complex SVG Timeline */
    .curso-conversacion-page .staircase-timeline {
        display: none !important;
    }

    /* Carousel: Disable 3D, use horizontal scroll */
    .curso-conversacion-page .carousel-container {
        perspective: none;
        overflow: hidden;
    }

    .curso-conversacion-page .carousel-track {
        transform: none !important;
        /* Override JS */
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 1rem 2rem 1rem;
        scroll-snap-type: x mandatory;
        width: 100%;
        margin-left: 0;
    }

    .curso-conversacion-page .carousel-track {
        -webkit-overflow-scrolling: touch;
    }

    .curso-conversacion-page .carousel-card {
        position: relative;
        flex: 0 0 85%;
        opacity: 1 !important;
        transform: none !important;
        left: auto;
        top: auto;
        margin: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 1rem;
        margin-right: 1rem;
        scroll-snap-align: center;
        /* Mobile Fixes for Card Content */
        height: auto;
        min-height: 280px;
    }

    .curso-conversacion-page .carousel-card-inner {
        height: auto;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Reset 3D faces for flat mobile view */
    .curso-conversacion-page .card-face {
        position: relative;
        height: auto;
        transform: none !important;
        backface-visibility: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ensure Icon Visibility */
    .curso-conversacion-page .feature-icon-3d {
        flex: 0 0 auto;
        /* Prevent shrinking */
        width: 64px;
        height: 64px;
        margin: 0 auto 1.5rem auto;
        /* Center horizontally */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Text Adjustments */
    .curso-conversacion-page .feature-title-3d {
        width: 100%;
        font-size: 1.25rem;
    }

    .curso-conversacion-page .feature-text-3d {
        width: 100%;
        flex-grow: 0;
        margin-bottom: 0;
    }

    .curso-conversacion-page .carousel-controls {
        display: none;
    }

    /* No Interruptions Section */
    .curso-conversacion-page .no-interruptions-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .curso-conversacion-page .no-interruptions-image-wrapper {
        width: 100%;
        min-height: auto;
        border-radius: 1rem;
        order: -1;
        /* Image on top */
    }

    .curso-conversacion-page .no-interruptions-content {
        padding: 0 1rem;
    }

    /* General Fixes */
    .curso-conversacion-page img,
    .curso-conversacion-page video,
    .curso-conversacion-page iframe {
        max-width: 100%;
        /*height: auto;*/
    }

    .timeline-dot-center {
        display: none;
    }
}

/* --- MOBILE SPECIFIC (0-767) --- */
@media (max-width: 767px) {
    .curso-conversacion-page .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .curso-conversacion-page .section-title {
        font-size: 1.75rem;
    }

    .curso-conversacion-page .carousel-card {
        flex: 0 0 85%;
    }
}

/* --- TABLET SPECIFIC (768-1023) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .curso-conversacion-page .hero-layout {
        padding: 0 2rem;
    }

    .curso-conversacion-page .carousel-card {
        flex: 0 0 45%;
    }

    /*.curso-conversacion-page .steps-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }*/
}

/* =========================
   CONTACT FORM 7 - FOOTER FORM STYLES
   Scoped to .footer-contact-form to avoid global conflicts
   ========================= */

/* Form wrapper reset */
.footer-contact-form .wpcf7 {
    width: 100%;
}

.footer-contact-form .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Form rows spacing */
.footer-contact-form .wpcf7 form p {
    margin-bottom: 1.25rem;
    margin-top: 0;
}

/* Labels */
.footer-contact-form .wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Text inputs, email, and textarea */
.footer-contact-form .wpcf7 input[type="text"],
.footer-contact-form .wpcf7 input[type="email"],
.footer-contact-form .wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--brand-dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.footer-contact-form .wpcf7 input[type="text"]:focus,
.footer-contact-form .wpcf7 input[type="email"]:focus,
.footer-contact-form .wpcf7 textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.footer-contact-form .wpcf7 textarea {
    min-height: 10rem;
    resize: vertical;
}

/* Checkbox (acceptance) styling */
.footer-contact-form .wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-contact-form .wpcf7 input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--brand-primary);
    flex-shrink: 0;
}

.footer-contact-form .wpcf7 .wpcf7-list-item {
    margin: 0;
}

.footer-contact-form .wpcf7 .wpcf7-list-item-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-contact-form .wpcf7 .wpcf7-list-item-label a {
    font-weight: 700;
    color: inherit;
}

.footer-contact-form .wpcf7 .wpcf7-list-item-label a:hover {
    text-decoration: underline;
}

/* Submit button */
.footer-contact-form .wpcf7 input[type="submit"] {
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: white;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.footer-contact-form .wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover), #1e3a8a);
}

@media (hover: hover) and (pointer: fine) {
    .footer-contact-form .wpcf7 input[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }
}

/* Response messages */
.footer-contact-form .wpcf7-response-output {
    margin-top: 12px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Success message */
.footer-contact-form .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #16a34a;
}

/* Error message */
.footer-contact-form .wpcf7 form.invalid .wpcf7-response-output,
.footer-contact-form .wpcf7 form.failed .wpcf7-response-output {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #dc2626;
}

/* Validation error tips */
.footer-contact-form .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #dc2626;
}

/* Spinner during ajax */
.footer-contact-form .wpcf7 .wpcf7-spinner {
    margin-left: 8px;
}

/* =========================
   CONTACT FORM 7 - FOOTER RESPONSIVE
   ========================= */

@media (max-width: 767px) {

    .footer-contact-form .wpcf7 input[type="text"],
    .footer-contact-form .wpcf7 input[type="email"],
    .footer-contact-form .wpcf7 textarea {
        font-size: 1rem;
        padding: 0.8rem 0.9rem;
    }

    .footer-contact-form .wpcf7 input[type="submit"] {
        width: 100%;
    }

    .footer-contact-form .wpcf7 .wpcf7-acceptance {
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* Honeypot field - ensure hidden from users */
.footer-contact-form .wpcf7 .wpcf7-form-control-wrap[data-name="website"],
.footer-contact-form .wpcf7-form-control-wrap.website {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
}

/* =========================
   LOGIN BUTTON â€“ LONG NAME FIX
   ========================= */

#btn-inicio-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: min(360px, 40vw);
}

#btn-inicio-login i {
    flex: 0 0 auto;
}

#btn-inicio-login .user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    #btn-inicio-login {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    #btn-inicio-login {
        max-width: 56px;
        padding: 10px 12px;
    }

    #btn-inicio-login .user-name {
        display: none;
    }
}

/* =========================
   FOOTER â€“ LEGAL LINKS ROW
   ========================= */

.footer-legal {
    text-align: center;
    font-size: 0.75rem;
    color: #9eaab8;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 16px;
}

.footer-legal a {
    color: #9eaab8;
    text-decoration: none;
    transition: color .2s;
}

.footer-legal a:hover {
    color: #e2e8f0;
}

.footer-legal__sep {
    margin: 0 8px;
    opacity: .4;
}

@media (max-width: 600px) {
    .footer-legal__sep {
        display: none;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }
}

/* 9) SCROLL REVEAL (.home-page & .sbc-page scope)
--------------------------------------------------------- */
/* Default (Mobile/Tablet <= 1024px) */
.home-page [data-reveal],
.sbc-page [data-reveal] {
    opacity: 0;
    /*will-change: transform, opacity;*/
    transition: transform 850ms cubic-bezier(0.22, 1, 0.36, 1), opacity 850ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

/* Direcciones iniciales (Mobile) */
.home-page [data-reveal="left"],
.sbc-page [data-reveal="left"] {
    transform: translate3d(-32px, 0, 0);
}

.home-page [data-reveal="right"],
.sbc-page [data-reveal="right"] {
    transform: translate3d(32px, 0, 0);
}

.home-page [data-reveal="up"],
.sbc-page [data-reveal="up"] {
    transform: translate3d(0, 24px, 0);
}

/* Estado Visible */
.home-page [data-reveal].is-visible,
.sbc-page [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    margin-bottom: 1rem;
}


/* Desktop override (>= 1025px) */
@media (min-width: 1025px) {

    .mobile-menu-header {
        display: none !important;
    }

    #mobile-menu {
        display: none !important;
    }

    /* Force hide mobile menu */

    .teacher-layout {
        flex-direction: row;
    }

    .teacher-img-wrapper,
    .teacher-content {
        width: 50%;
    }

    .desktop-menu {
        display: flex;
    }


    .levels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 42px;
    }

    .hero-layout {
        grid-template-columns: 1fr 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-page [data-reveal],
    .sbc-page [data-reveal] {
        transition-duration: 1300ms;
    }

    .home-page [data-reveal="left"],
    .sbc-page [data-reveal="left"] {
        transform: translate3d(-48px, 0, 0);
    }

    .home-page [data-reveal="right"],
    .sbc-page [data-reveal="right"] {
        transform: translate3d(48px, 0, 0);
    }

    .home-page [data-reveal="up"],
    .sbc-page [data-reveal="up"] {
        transform: translate3d(0, 32px, 0);
    }

    .beginner-videos-section .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Accesibilidad: Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .home-page [data-reveal],
    .sbc-page [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* FIX LCP: hero above-fold pinta inmediatamente, sin esperar JS.
   Rollback: borrar este bloque de 5 lineas. */
.hero [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* FIX LCP Mobile: on small screens the first sections after the hero
   are near or at the fold. Showing them instantly avoids blank/invisible
   content that delays LCP and causes "content visually complete" to lag.
   Also removes marquee will-change to reduce GPU compositing before LCP.
   Desktop animations stay untouched (this is mobile-only).
   Rollback: remove this entire @media block. */
@media (max-width: 767px) {

    /* Near-fold sections: show immediately on mobile */
    .home-page>section:nth-child(-n+3) [data-reveal],
    .home-page>section:nth-child(-n+3) .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Marquee: keep running but remove will-change to free
       the compositor thread for LCP image decode */
    .marquee-track {
        will-change: auto;
    }

    /* .reveal: second animation system (main.js) — bypass on mobile.
       Without this, elements start at opacity:0 + background:#D3D3D3
       and wait for getBoundingClientRect() + class toggle in main.js,
       which forces reflow and delays LCP paint. */
    .home-page .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        /*background: transparent !important;*/
    }
}

/* 10) VIDEO EMBED FIX
--------------------------------------------------------- */
.video-content {
    width: 100%;
    position: relative;
    /* En desktop suele ser columna de grid/flex, dejamos que crezca */
    height: 100%;
    flex-grow: 1;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.sbc-video-embed {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Aspect ratio default para evitar colapso si no hay altura heredada */
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.sbc-video-embed video,
.sbc-video-embed iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   SEO SECTIONS  Utility classes (Phase 1)
   ========================================================================== */

.bg-white {
    background-color: #ffffff;
}

.text-brand-dark {
    color: var(--brand-dark, #0f172a);
}

/* =============================================
   Level Test Page  hide plugin-generated heading
   Scoped ONLY to page-prueba-nivel template
   ============================================= */
body.page-template-page-prueba-nivel .sbc-date-title,
body.page-template-page-prueba-nivel .sbc-card-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SBC Pricing SEO Section */
.sbc-pricing-seo {
    padding: 3rem 0;
}

.sbc-pricing-seo__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.sbc-pricing-seo__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.sbc-pricing-seo__card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.sbc-pricing-seo__card h2,
.sbc-pricing-seo__card h3,
.sbc-pricing-seo__card h4 {
    margin: 0 0 .75rem 0;
    font-size: 1.25rem;
    line-height: 1.25;
    text-align: left;
    color: #0f172a;
}

.sbc-pricing-seo__card p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 900px) {
    .sbc-pricing-seo__grid {
        grid-template-columns: 1fr;
    }
}

/* SBC Logo Aspect Ratio */
.site-logo img,
.mobile-menu-header img {
    height: auto;
    object-fit: contain;
    display: block;
}


/* SVG Icon overrides */
svg.sbc-icon {
    width: 1.2em;
    height: 0.7em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

@media (max-width: 1024px) {

    .layout {
        display: block;
    }

    .layout .left {
        display: none;
    }

    .pricing {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checks {
        display: none;
    }

    .plan {
        position: relative;
        padding: 24px 18px;
        border-radius: 26px;
        text-align: left;
    }

    .price {
        margin-bottom: 18px;
    }

    .plan-features {
        display: grid;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .plan-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        line-height: 1.25;
        font-weight: 600;
        font-size: 14px;
    }

    .plan-features .icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin-top: 2px;
    }

    .plan-features .icon svg {
        width: 18px;
        height: 18px;
        fill: #ffffff;
    }

    .plan-features li.is-off {
        opacity: 0.55;
    }

    .plan button {
        margin-top: 18px;
    }

    .steps-container {
        width: 100%;
        max-width: 100%;
        padding-left: clamp(3rem, 5vw, 4rem);
        padding-right: clamp(3rem, 5vw, 4rem);
        box-sizing: border-box;
        overflow: visible;
    }

    .steps-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .step-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ====== MOBILE CENTERING – HOME (index) ====== */
@media (max-width: 768px) {

    .single-sbc_gramatica .blog-article,
    .single-sbc_blog .blog-article {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }

    .single-sbc_gramatica .blog-article h2,
    .single-sbc_blog .blog-article h2 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
    }

    .single-sbc_gramatica .blog-article h3,
    .single-sbc_blog .blog-article h3 {
        font-size: 1.3rem;
        margin-top: 2rem;
    }

    .single-sbc_gramatica .blog-article blockquote,
    .single-sbc_blog .blog-article blockquote {
        padding: 1rem 0 1rem 1.25rem;
        font-size: 1.15rem;
    }

    .single-sbc_gramatica .card-image-container,
    .single-sbc_blog .card-image-container {
        margin-bottom: 2rem;
    }

    .no-interruptions-title {
        font-size: 1.5em;
    }

    .calendly-inline-widget {
        height: 860px !important;
    }

    .whatsapp-float {
        left: 20px;
        right: auto;
    }

    /* Tooltip en mÃ³vil (sale hacia la derecha del botÃ³n) */
    .whatsapp-float::after {
        left: 70px;
        right: auto;

        transform: translateY(50%) translateX(-10px);
    }

    .whatsapp-float::before {
        left: 62px;
        right: auto;

        border-color: transparent #111827 transparent transparent;
        transform: translateY(50%) translateX(-10px);
    }

    @media (hover: hover) and (pointer: fine) {

        .whatsapp-float:hover::after,
        .whatsapp-float:hover::before {
            transform: translateY(50%) translateX(0);
        }
    }

    .sbc-video-embed {
        aspect-ratio: 16 / 9;
        height: auto;
        /* Permitir que sea auto en base al ratio */
    }

    .hero-section {
        padding: 3rem 0 0;
    }

    /* 1) Feature cards: center icon + text */
    .feature-card {
        text-align: center;
    }

    .feature-card .icon-box {
        margin-left: auto;
        margin-right: auto;
    }

    /* 2) Pricing section title */
    .title-description-section .hero-title {
        text-align: center;
    }

    /* 3) Plan cards: center h3 and price (keep feature list left) */
    .plan h3 {
        text-align: center;
    }

    .plan .price {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .video-modal-close {
        top: -3rem;
        right: -0.5rem;
        font-size: 1.75rem;
    }
}


/* ============================================================
   BUSINESS VIDEO HERO — SEO / Performance-first video section
   ============================================================ */

/* --- Section wrapper --- */
.business-video-hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: clamp(4rem, 8vh, 7rem) 0;
}

/* --- Media container (poster + video + overlay) --- */
.business-video-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* --- Poster image: fills from first paint, prevents CLS --- */
.business-video-hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* --- Video: starts invisible, fades in once playing --- */
.business-video-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.business-video-hero__video.is-playing {
    opacity: 1;
}

/* --- Overlay: dark navy gradient for text legibility --- */
.business-video-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8), rgba(30, 64, 175, 0.4));
}

/* --- Content: above overlay --- */
.business-video-hero__content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Typography on dark overlay --- */
.business-video-hero__content .section-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.business-video-hero__text {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
}

.business-video-hero__text p {
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.business-video-hero__text p:last-child {
    margin-bottom: 0;
}

.business-video-hero__text strong {
    color: #ffffff;
    font-weight: 700;
}


/* --- Responsive: mobile — poster only, no video download --- */
@media (max-width: 767px) {
    .business-video-hero {
        min-height: 35vh;
        padding: 3rem 0;
    }

    .business-video-hero__video {
        display: none;
    }

    .business-video-hero__content .section-header h2 {
        font-size: 1.5rem;
    }

    .business-video-hero__text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* --- prefers-reduced-motion: no video --- */
@media (prefers-reduced-motion: reduce) {
    .business-video-hero__video {
        display: none;
    }
}

/* ===========================================================
   Accessibility utilities
   =========================================================== */

/* Visually hidden but screen-reader accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global focus-visible for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--brand-primary, #1e40af);
    outline-offset: 2px;
}

/* ===========================================================
   Beginner Levels - Dynamic Videos Section
   =========================================================== */

.beginner-videos-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Grid Layout */
.beginner-videos-section .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-inline: auto;
}

/* 2 columnas en tablet */
@media (min-width: 640px) {
    .beginner-videos-section .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 3 columnas en escritorio */
@media (min-width: 1024px) {
    .beginner-videos-section .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Video Card */
.video-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
}

/* Vídeo destacado */
.video-card-featured {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .video-card-featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .video-card-featured {
        grid-column: span 3;
        display: grid;
        grid-template-columns: 1.35fr 1fr;
        align-items: stretch;
    }
}

/* Thumbnail Wrapper */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--brand-light);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .video-card-featured .video-thumbnail-wrapper {
        aspect-ratio: auto;
        min-height: 320px;
    }
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .video-card:hover .video-thumbnail {
        transform: scale(1.03);
    }
}

/* Play Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(15, 23, 42, 0.3);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--brand-primary);
    font-size: 1.25rem;
    padding-left: 4px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}

.video-card:hover .play-button {
    background: var(--brand-primary);
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .video-card:hover .play-button {
        transform: scale(1.1);
    }
}

/* Card Content */
.video-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .video-card-featured .video-card-content {
        padding: 2rem;
        justify-content: center;
    }
}

.video-title {
    font-size: 1.15rem;
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .video-card-featured .video-title {
        font-size: 1.6rem;
    }
}

.video-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Ocultar vídeos extra */
.video-card-hidden {
    display: none;
}

.video-card-hidden.is-visible {
    display: flex;
}

/* Botón ver más */
.video-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* ===========================================================
   Video Modal
   =========================================================== */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.video-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.video-modal-container {
    position: relative;
    width: min(1000px, calc(100vw - 3rem));
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal-container {
    transform: scale(1);
}

.video-modal-content {
    position: relative;
    width: 100%;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-responsive-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #000000;
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    z-index: 2;
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    border: 2px solid #ffffff;
}

.video-modal-close:hover {
    background: #1e40af;
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .video-modal-close:hover {
        transform: rotate(90deg);
    }
}

/* Responsive: tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .video-modal-container {
        width: min(90vw, 800px);
    }
}

/* Responsive: mobile */
@media (max-width: 767px) {
    .video-modal-container {
        width: calc(100vw - 2rem);
    }

    .video-modal-close {
        top: -50px;
        right: 0;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}

/* Accessibility */
.video-modal .btn-link {
    color: #ffffff;
}

/* Footer Responsive Overrides */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   FAQ MODERN REDESIGN - PHASE 1
   ========================================================= */

/* Categories */
.faq-categories.modern-faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 3rem;
}

.faq-categories.modern-faq-categories .category-btn {
    cursor: pointer;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-categories.modern-faq-categories .category-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
    .faq-categories.modern-faq-categories .category-btn:hover {
        transform: translateY(-1px);
    }
}

.faq-categories.modern-faq-categories .category-btn.active {
    background: var(--brand-primary, #1e3a8a);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    transform: translateY(-2px);
}

/* FAQ Items (Premium Header Design) */
.faq-container.modern-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item.modern-faq-item {
    background: transparent;
    border: none;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .faq-item.modern-faq-item:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
}

/* Question Button (Premium Header) */
.faq-item.modern-faq-item .faq-question {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    font-family: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 1.5rem 1.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary, #1e3a8a), #152b66);
    line-height: 1.4;
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* When open, remove bottom radius */
.faq-item.modern-faq-item.active .faq-question,
.faq-item.modern-faq-item .faq-question[aria-expanded="true"] {
    border-radius: 16px 16px 0 0;
    background: var(--brand-dark, #0f172a);
}

@media (hover: hover) and (pointer: fine) {
    .faq-item.modern-faq-item:hover .faq-question {
        filter: brightness(1.05);
    }
}

/* Modern Icon (Inside a capsule/circle) */
.faq-item.modern-faq-item .faq-question::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-item.modern-faq-item:hover .faq-question::after {
    background: rgba(255, 255, 255, 0.25);
}

.faq-item.modern-faq-item.active .faq-question::after,
.faq-item.modern-faq-item .faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
    content: '\f078';
    /* Keep chevron */
    background: rgba(255, 255, 255, 0.2);
}

/* Answer Area */
.faq-item.modern-faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.faq-item.modern-faq-item.active .faq-answer,
.faq-item.modern-faq-item .faq-question[aria-expanded="true"]+.faq-answer {
    padding: 0 1.75rem 1.75rem;
}

.faq-item.modern-faq-item .faq-answer-content {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 1.5rem;
    margin-top: 0;
}

/* Disable hover transforms on touch devices for better performance */
@media (hover: none),
(pointer: coarse) {

    .faq-categories.modern-faq-categories .category-btn:hover,
    .faq-item.modern-faq-item:hover {
        transform: none !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .faq-item.modern-faq-item .faq-question {
        padding: 1.25rem;
        font-size: 1.05rem;
    }

    .faq-item.modern-faq-item .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.modern-faq-item.active .faq-answer,
    .faq-item.modern-faq-item .faq-question[aria-expanded="true"]+.faq-answer {
        padding: 0 1.25rem 1.25rem;
    }

    .faq-categories.modern-faq-categories .category-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS FOR INDEX.PHP (Business Conversation & Starter)
   ========================================================================== */

/* Removed Inline Styles */
#section-conversacion-index .hero-title .word {
    color: var(--brand-dark);
}

.benefits-list .benefit-item:nth-child(1) {
    animation-delay: 0.8s;
}

.benefits-list .benefit-item:nth-child(2) {
    animation-delay: 1.0s;
}

.benefits-list .benefit-item:nth-child(3) {
    animation-delay: 1.2s;
}

.cta-button-wrapper {
    display: flex;
    align-items: center;
}

.main-image-wrapper-small img {
    border-radius: 2.5rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fix .description animation lateral overflow */
@media (max-width: 767px) {

    .description,
    .description-seccion {
        transform: translateY(20px) !important;
        animation-name: fadeInUpMobile !important;
    }
}

@keyframes fadeInUpMobile {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Business Spanish Conversation Course Responsive */
@media (max-width: 1024px) {
    #section-conversacion-index .split-layout {
        grid-template-columns: 1fr;
        /*gap: 2.5rem;*/
        gap: 0;
        text-align: center;
    }

    #section-conversacion-index .image-col {
        order: 1;
        display: flex;
        justify-content: center;
    }

    #section-conversacion-index .content-col {
        order: 2;
        align-items: center;
        text-align: center;
    }

    #section-conversacion-index .description {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    #section-conversacion-index .benefits-list {
        flex-direction: column;
        align-items: flex-start;
        display: inline-flex;
        text-align: left;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }

    #section-conversacion-index .cta-button-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .main-image-wrapper-small {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .main-image-wrapper-small img {
        border-radius: 1.5rem;
    }

    .benefits-list {
        gap: 0.75rem;
    }

    .benefit-item {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.50rem 8px 1rem;
        font-size: 16px;
    }

    .cta-button-blog-index {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.50rem 8px 1rem;
        font-size: 16px;
    }
}

/* 2. Spanish Starter Course Grid Restructure */
.starter-course-heading {
    position: relative;
    z-index: 2;
}

@media (min-width: 1025px) {
    .starter-course-section .starter-course-card {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
        grid-template-areas:
            "heading visual"
            "content visual";
    }

    .starter-course-section .starter-course-heading {
        grid-area: heading;
    }

    .starter-course-section .starter-course-content {
        grid-area: content;
    }

    .starter-course-section .starter-course-visual {
        grid-area: visual;
    }
}

/* 2. Spanish Starter Course Responsive */
@media (max-width: 1024px) {
    .starter-course-section .starter-course-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "visual"
            "content";
        gap: 0rem;
        padding: 2.5rem;
    }

    .starter-course-section .starter-course-heading {
        grid-area: heading;
        text-align: center;
    }

    .starter-course-section .starter-course-visual {
        grid-area: visual;
        order: initial;
    }

    .starter-course-section .starter-course-content {
        grid-area: content;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .steps-grid {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .starter-course-section .starter-course-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .starter-course-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        text-align: center;
    }

    .starter-course-eyebrow {
        justify-content: center;
        width: 100%;
    }

    .starter-course-description {
        text-align: center;
        font-size: 1rem;
    }

    .starter-course-list {
        display: inline-block;
        text-align: left;
    }

    .starter-course-list li {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .starter-course-btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Fix A1/A2 overlapping in mobile */
    .starter-course-visual {
        min-height: 200px;
    }

    .starter-course-level-card {
        width: 100px;
        height: 100px;
        border-radius: 1.2rem;
    }

    .starter-course-level-card span {
        font-size: 2rem;
    }

    .starter-course-level-card small {
        font-size: 0.75rem;
    }

    .starter-course-path {
        width: 160px;
        height: 160px;
    }

    .starter-course-level-card-alt {
        margin-top: 5rem;
        margin-left: -0.5rem;
    }
}

@media (max-width: 480px) {
    .starter-course-level-card {
        width: 80px;
        height: 80px;
    }

    .starter-course-level-card span {
        font-size: 1.6rem;
    }

    .starter-course-path {
        width: 120px;
        height: 120px;
    }

    .starter-course-level-card-alt {
        margin-top: 4rem;
    }
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS FOR TEACHER SECTION
   ========================================================================== */

#teacher {
    overflow: hidden;
}

.teacher-eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    display: inline-block;
}

.teacher-title {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    line-height: 1.15;
}

.teacher-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.teacher-text:last-of-type {
    margin-bottom: 2rem;
}

.teacher-cta-wrapper {
    display: flex;
    align-items: center;
}

@media (min-width: 1025px) {
    #teacher .teacher-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "image heading"
            "image content";
        column-gap: 3rem;
        row-gap: 0;
        align-items: center;
    }

    #teacher .teacher-img-wrapper {
        grid-area: image;
    }

    #teacher .teacher-heading {
        grid-area: heading;
        align-self: end;
        text-align: left;
    }

    #teacher .teacher-content {
        grid-area: content;
        align-self: start;
        text-align: left;
    }

    #teacher .teacher-cta-wrapper {
        justify-content: flex-start;
    }

    #teacher .teacher-title {
        margin-bottom: 1rem;
    }

    #teacher .teacher-text:first-child {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    #teacher .teacher-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "image"
            "content";
        gap: 2rem;
        text-align: center;
    }

    #teacher .teacher-heading {
        grid-area: heading;
        text-align: center;
    }

    #teacher .teacher-img-wrapper {
        grid-area: image;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    #teacher .teacher-content {
        grid-area: content;
        text-align: center;
    }

    #teacher .teacher-cta-wrapper {
        justify-content: center;
    }

    #teacher .stats-grid {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    #teacher .teacher-title {
        font-size: clamp(1.7rem, 8vw, 2rem);
    }

    #teacher .teacher-img {
        height: auto;
        max-height: 420px;
        object-fit: cover;
    }

    #teacher .float-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.85rem;
    }

    #teacher .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =========================================================
   TEACHER SECTION · Desktop compact legacy layout
   Mantiene el diseño antiguo, pero en tamaño más equilibrado
   ========================================================= */

@media (min-width: 1024px) {

    #teacher {
        background: #f8fafc;
        margin-top: 0;
        padding: 1.5rem 0 2rem;
        overflow: hidden;
    }

    #teacher .container {
        max-width: 1280px;
        padding-left: 50px;
        padding-right: 50px;
    }

    #teacher .teacher-layout {
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        gap: 0 48px;
        align-items: stretch;
    }

    #teacher .teacher-heading {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin: 0;
    }

    #teacher .teacher-img-wrapper {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: relative;
        width: 100%;
        max-width: 720px;
        height: 500px;
        align-self: stretch;
        background: none;
    }

    #teacher .teacher-content {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        max-width: 560px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 0;
        height: 100%;
    }

    #teacher .teacher-eyebrow {
        display: block;
        color: #f59e0b;
        font-size: 0.9rem;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 0.7rem;
    }

    #teacher .teacher-title {
        color: #0f172a;
        font-weight: 900;
        letter-spacing: -0.03em;
        margin: 0 0 1.2rem;
    }

    #teacher .teacher-text {
        color: #475569;
        font-size: 1.02rem;
        line-height: 1.55;
        margin-bottom: 1rem;
        max-width: 560px;
    }

    #teacher .teacher-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0.9rem;
        box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
        position: relative;
        z-index: 2;
    }

    #teacher .deco-circle-1 {
        position: absolute;
        top: -18px;
        left: -18px;
        width: 105px;
        height: 105px;
        background: rgba(245, 158, 11, 0.22);
        border-radius: 50%;
        z-index: 1;
    }

    #teacher .deco-circle-2 {
        position: absolute;
        bottom: -18px;
        right: -18px;
        width: 135px;
        height: 135px;
        background: rgba(30, 64, 175, 0.10);
        border-radius: 50%;
        z-index: 1;
    }

    #teacher .float-card {
        position: absolute;
        left: 32px;
        bottom: 32px;
        z-index: 3;
        max-width: 315px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(6px);
        border-radius: 10px;
        padding: 16px 18px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
        color: #0f172a;
        font-size: 0.95rem;
        font-weight: 800;
        line-height: 1.45;
    }

    #teacher .float-card p {
        margin: 0;
    }

    #teacher .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
        margin-top: 1.3rem;
        margin-bottom: 1.3rem;
    }

    #teacher .stat-number {
        color: #1e40af;
        font-size: 2.15rem;
        line-height: 1;
        font-weight: 900;
        margin-bottom: 0.45rem;
    }

    #teacher .stat-label {
        color: #334155;
        font-size: 0.95rem;
        line-height: 1.35;
        margin: 0;
    }

    #teacher .teacher-cta-wrapper {
        margin-top: auto;
    }

    #teacher .cta-button {
        opacity: 1;
        transform: none;
        animation: none;
        margin-top: 0;
        padding: 1rem 2.5rem;
        background: #000066;
        color: #ffffff;
        border-radius: 9999px;
        font-size: 1.05rem;
        font-weight: 800;
        box-shadow: 0 16px 34px rgba(30, 64, 175, 0.18);
    }

    #teacher .cta-button:hover {
        background: #000066;
        color: #ffffff;
    }

    #teacher .cta-button .sbc-icon {
        margin-left: 0.45rem;
    }
}

/* =========================================================
   MEJORA TIPOGRÁFICA SEGURA (FASE 1: Home y Teacher Desktop)
   Selectores estrictamente encapsulados. No afecta a globales,
   ni a móvil/tablet, ni a WooCommerce/LMS/Footer.
   ========================================================= */

/* 1. Variables de Escala Tipográfica */
:root {
    --sbc-font-hero-title: clamp(2.6rem, 3.6vw, 3.6rem);
    --sbc-font-section-title: clamp(2rem, 2.6vw, 2.6rem);
    --sbc-font-teacher-title: clamp(2.2rem, 2.8vw, 2.8rem);
    --sbc-font-card-title: 1.25rem;
    --sbc-font-body: 1.05rem;
    --sbc-font-small: 0.95rem;
    --sbc-font-button: 1.05rem;
}

/* 2. Ajustes Desktop */
@media (min-width: 1024px) {

    /* --- Ajuste títulos principales de la Home --- */

    body.home .hero-title,
    body.home-page .hero-title {
        font-size: var(--sbc-font-hero-title);
        line-height: 1.12;
    }

    body.home .animated-title,
    body.home-page .animated-title {
        font-size: clamp(2.4rem, 3.4vw, 3.4rem);
        line-height: 1.12;
    }

    body.home .section-header h2,
    body.home-page .section-header h2,
    body.home .section-title,
    body.home-page .section-title {
        font-size: var(--sbc-font-section-title);
        line-height: 1.2;
    }

    /* --- Ajuste seguro para la sección #teacher --- */

    #teacher .teacher-eyebrow {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    #teacher .teacher-text {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }

    #teacher .stat-number {
        font-size: 1.9rem;
        margin-bottom: 0.4rem;
    }

    #teacher .stat-label {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    #teacher .stats-grid {
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
        gap: 2.5rem;
    }

    #teacher .cta-button {
        font-size: 1rem;
        padding: 0.85rem 2rem;
    }
}

/* =========================================================
   MEJORA TIPOGRÁFICA SEGURA (FASE 2: Ajustes finos Home)
   Ajustes quirúrgicos tras revisión visual.
   No afecta a móvil/tablet ni a áreas privadas.
   ========================================================= */

@media (min-width: 1024px) {

    /* --- 1. Ajuste fino sección #teacher --- */

    #teacher .teacher-title {
        font-size: clamp(2.1rem, 2.6vw, 2.65rem);
        line-height: 1.13;
        margin-bottom: 1.2rem;
    }

    #teacher .teacher-text {
        font-size: 1rem;
        line-height: 1.62;
        margin-bottom: 1.05rem;
    }

    #teacher .stats-grid {
        margin-top: 1.4rem;
        margin-bottom: 1.4rem;
    }

    #teacher .teacher-cta-wrapper {
        margin-top: 0.4rem;
    }

    /* --- 2. Textos secundarios de cards en la Home --- */

    body.home .feature-text,
    body.home-page .feature-text,
    body.home .card-excerpt,
    body.home-page .card-excerpt {
        font-size: 0.92rem;
        line-height: 1.55;
    }
}

/* =========================================================
   MEJORA VISUAL SEGURA (FASE 3: Contact Section)
   Rediseño visual encapsulado de la sección de contacto.
   No afecta a WooCommerce, TutorLMS, área privada ni footer.
   ========================================================= */

.contact-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: clamp(4rem, 6vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-header-contact {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.contact-section .section-header-contact h2 {
    color: #0f172a;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.contact-section .section-header-contact p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 auto;
}

.contact-section .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-section .contact-info {
    display: grid;
    gap: 1rem;
}

.contact-section .contact-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .contact-section .contact-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
        border-color: rgba(30, 64, 175, 0.18);
    }
}

.contact-section .contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-section .contact-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.contact-section .contact-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-section .contact-text a {
    color: #1e40af;
    font-weight: 700;
}



/* Responsive controlado para contacto */
@media (max-width: 1024px) {

    .contact-section .contact-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .sbc-public-form {
        padding: 1.75rem;
    }
}

/* =========================================================
   MEJORA TIPOGRÁFICA SEGURA (FASE 3.3: Section Titles Compact)
   Reduce títulos internos de cursos en la Home.
   ========================================================= */

@media (min-width: 1024px) {

    body.home #section-conversacion-index .hero-title,
    body.home-page #section-conversacion-index .hero-title {
        font-size: clamp(2rem, 2.5vw, 2.65rem);
        line-height: 1.12;
        margin-bottom: 1.2rem;
    }

    body.home #section-conversacion-index .hero-title .word,
    body.home-page #section-conversacion-index .hero-title .word {
        font-size: inherit;
        line-height: inherit;
    }

    body.home .starter-course-section .starter-course-title,
    body.home-page .starter-course-section .starter-course-title {
        font-size: clamp(2rem, 2.5vw, 2.65rem);
        line-height: 1.12;
        /*margin-bottom: 1.3rem;*/
    }

    body.home .starter-course-section .starter-course-title span,
    body.home-page .starter-course-section .starter-course-title span {
        font-size: 0.85em;
        line-height: 1.1;
    }
}

/* =========================================================
   FORMULARIOS PÚBLICOS SBC · Estilo unificado
   Aplica solo a formularios públicos con clase .sbc-public-form
   No afecta WooCommerce, TutorLMS, login ni área privada.
   ========================================================= */

.sbc-public-form {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.sbc-public-form .contact-form-title,
.sbc-public-form .form-title,
.sbc-public-form h2,
.sbc-public-form h3 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.1rem;
}

.sbc-public-form .contact-form-group,
.sbc-public-form .form-group,
.sbc-public-form p {
    margin-bottom: 0.85rem;
}

.sbc-public-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.sbc-public-form input[type="text"],
.sbc-public-form input[type="email"],
.sbc-public-form input[type="tel"],
.sbc-public-form input[type="url"],
.sbc-public-form input[type="number"],
.sbc-public-form select,
.sbc-public-form textarea {
    width: 100%;
    display: block;
    background: #ffffff;
    border: 1.5px solid rgba(15, 23, 42, 0.28);
    border-radius: 12px;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    appearance: none;
    -webkit-appearance: none;
}

.sbc-public-form textarea {
    min-height: 125px;
    resize: vertical;
}

.sbc-public-form input::placeholder,
.sbc-public-form textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.sbc-public-form input:focus,
.sbc-public-form select:focus,
.sbc-public-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
    background: #ffffff;
}

.sbc-public-form input[type="submit"],
.sbc-public-form button[type="submit"],
.sbc-public-form .contact-form-submit-btn,
.sbc-public-form .form-submit-btn,
.sbc-public-form .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #1e40af, #172554);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .sbc-public-form input[type="submit"]:hover,
    .sbc-public-form button[type="submit"]:hover,
    .sbc-public-form .contact-form-submit-btn:hover,
    .sbc-public-form .form-submit-btn:hover,
    .sbc-public-form .wpcf7-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(30, 64, 175, 0.30);
        background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    }
}

/* Contact Form 7 compatibility */
.sbc-public-form .wpcf7 form p {
    margin-bottom: 0.85rem;
}

.sbc-public-form .wpcf7-not-valid-tip {
    margin-top: 0.35rem;
    color: #dc2626;
    font-size: 0.85rem;
}

.sbc-public-form .wpcf7-response-output {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 1rem 0 0;
    font-size: 0.9rem;
}


/* Responsive */
@media (max-width: 767px) {
    .contact-section {
        padding: 3.5rem 0;
    }

    .contact-section .section-header-contact {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-section .section-header-contact h2 {
        font-size: 1.8rem;
    }

    .contact-section .section-header-contact p {
        font-size: 0.95rem;
    }

    .contact-section .contact-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .sbc-public-form {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .sbc-public-form textarea {
        min-height: 120px;
    }

    .sbc-teacher .video-layout {
        display: flex;
        flex-direction: column;
    }

    .sbc-teacher .video-container {
        order: 1;
    }

    .sbc-teacher .video-info-card {
        order: 2;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

    .split-layout {
        gap: 0;
    }

    .sbc-course-title {
        display: none;
    }
}

/* ============================================================
   TEACHER CREDENTIALS BADGES (Phase 2.2)
   ============================================================ */
.teacher-credentials-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.teacher-credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--slate-100, #f1f5f9);
    color: var(--brand-dark, #0f172a);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .teacher-credentials-badges {
        justify-content: center;
    }
}

/* ============================================================
   PHASE 2.3 - SEO HOME BLOCKS
   ============================================================ */
.seo-section-title {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.bg-slate-50 {
    background-color: var(--slate-50, #f8fafc);
}

/* How It Works Grid */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.hiw-step {
    position: relative;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hiw-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

.hiw-number {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--brand-accent, #3b82f6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.hiw-icon {
    font-size: 2rem;
    color: var(--brand-primary, #1e3a8a);
    margin-bottom: 1rem;
}

.hiw-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-dark, #0f172a);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hiw-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.hiw-cta-wrapper {
    text-align: center;
    margin-top: 3.5rem;
}

/* Connector line for desktop */
@media (min-width: 1024px) {
    .how-it-works-grid {
        position: relative;
    }

    .how-it-works-grid::before {
        content: '';
        position: absolute;
        top: -1.25rem;
        left: 12.5%;
        right: 12.5%;
        height: 2.5rem;
        border-top: 2px dashed rgba(59, 130, 246, 0.3);
        z-index: 0;
        pointer-events: none;
    }

    .hiw-step {
        z-index: 1;
    }
}

/* ============================================================
   STARTER COURSE MOBILE RESPONSIVE FIX
   ============================================================ */
@media (max-width: 768px) {
    .starter-course-section {
        padding-top: 56px;
        padding-bottom: 56px;
        overflow-x: hidden;
    }

    .starter-course-section .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .starter-course-card {
        width: 100%;
        max-width: 100%;
        padding: 32px 20px;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }

    .starter-course-heading {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .starter-course-eyebrow {
        display: block;
        font-size: 0.78rem;
        line-height: 1.3;
        letter-spacing: 0.08em;
        margin-bottom: 12px;
    }

    .starter-course-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        line-height: 1.1;
        text-align: center;
        margin-bottom: 24px;
        overflow-wrap: normal;
        word-break: normal;
    }

    .starter-course-title .sbc-title-underline {
        display: inline;
        white-space: normal;
        width: auto;
        max-width: 100%;
    }

    .starter-course-title .sbc-title-underline::after {
        left: 0;
        right: 0;
        width: 100%;
    }

    .starter-course-visual {
        width: 100%;
        max-width: 320px;
        margin: 8px auto 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .starter-course-level-card {
        flex: 0 0 auto;
        width: 86px;
        min-width: 86px;
        padding: 16px 12px;
        border-radius: 18px;
    }

    .starter-course-level-card span {
        font-size: 1.6rem;
        line-height: 1;
    }

    .starter-course-level-card small {
        font-size: 0.8rem;
    }

    .starter-course-path {
        flex: 1 1 auto;
        min-width: 36px;
        max-width: 72px;
    }

    .starter-course-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .starter-course-description {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .starter-course-list {
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
        padding-left: 0;
    }

    .starter-course-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .starter-course-dot {
        flex: 0 0 auto;
        margin-top: 0.45em;
    }

    .starter-course-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin-top: 28px;
        text-align: center;
    }
}

/* ============================================================
   LEVEL TEST MOBILE RESPONSIVE FIX
   ============================================================ */
@media (max-width: 768px) {
    .level-test-icon-list li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px;
        line-height: 1.65 !important;
    }

    .level-test-icon-list li i,
    .level-test-icon-list li svg {
        flex: 0 0 18px;
        width: 18px;
        min-width: 18px;
        margin-top: 0.25em;
        margin-right: 0 !important;
    }

    .level-test-icon-list li span {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }
}