/* ============================================================================
   UNIVERSITAS — Design System
   Derivado de Portal Central (app.tuweb-ya.com). Misma gramática visual:
   minimalismo SaaS plano, un solo acento, mucho aire, esquinas suaves.
   Lo que cambia: el acento, el peso de la fotografía y la voz.

   Tokens muestreados del logotipo original, no estimados.
   ============================================================================ */

:root {
    --pc-brand-radius: 14px;

    /* Acento — azul marino del escudo UNIVERSITAS */
    --pc-accent:        #132043;
    --pc-accent-dark:   #0D1E3C;   /* navy del wordmark */
    --pc-accent-soft:   rgba(19, 32, 67, .08);
    --pc-accent-softer: rgba(19, 32, 67, .045);

    /* Secundario — bronce del laurel. CONDIMENTO, NO INGREDIENTE.
       Subrayados, viñetas de logro, separadores. NUNCA en botones ni fondos
       grandes: en cuanto crece se ve barato. */
    --edu-bronze:       #A75106;
    --edu-bronze-soft:  rgba(167, 81, 6, .10);

    /* Neutros */
    --pc-ink:     #0f172a;
    --pc-muted:   #64748b;
    --pc-border:  #e2e8f0;
    --pc-surface: #f8fafc;

    /* Apoyos */
    --pc-success:  #0ab39c;
    --pc-whatsapp: #25d366;
}

/* --- Base ------------------------------------------------------------------ */
body.public-site {
    background: #fff;
    color: var(--pc-ink);
    -webkit-font-smoothing: antialiased;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.public-site h1, .public-site h2, .public-site h3,
.public-site h4, .public-site h5 {
    color: var(--pc-ink);
    letter-spacing: -0.02em;
    font-weight: 700;
}
.public-site .text-muted { color: var(--pc-muted) !important; }
.card { border-radius: var(--pc-brand-radius); }

/* Espaciado entre secciones.
   Antes eran 5rem, y 6.5rem en escritorio. Como cada sección lleva padding
   arriba Y abajo, entre el contenido de dos secciones quedaban 13rem —más de
   200 px de nada— y había que hacer scroll para encontrar la siguiente idea.
   Ahora escala con el ancho de la pantalla en vez de saltar de golpe. */
.py-6 {
    padding-top: clamp(2rem, 3.6vw, 3.25rem) !important;
    padding-bottom: clamp(2rem, 3.6vw, 3.25rem) !important;
}

/* Dos secciones seguidas del mismo color no necesitan dos paddings: sin una
   línea ni un cambio de fondo en medio, ese doble espacio se lee como hueco. */
.public-surface + .public-surface { padding-top: 0 !important; }

/* --- Navbar: blanca translúcida con blur al hacer scroll ------------------- */
.public-site .navbar {
    background: rgba(255, 255, 255, .88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent !important;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.public-site .navbar.is-scrolled {
    border-bottom-color: var(--pc-border) !important;
    box-shadow: 0 1px 12px rgba(15, 23, 42, .05);
}
.public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link {
    display: flex !important;
    align-items: center !important;
    color: #475569 !important;
    font-size: .95rem !important;
    font-weight: 500 !important;
    padding: .55rem .9rem !important;
    transition: color .15s ease;
}
.public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link:hover,
.public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link.active {
    color: var(--pc-accent) !important;
}
.public-site .navbar-brand img { max-height: 46px; width: auto; }

/* Con "En línea" y "Alumnas" el menú completo ya no cabe en 992 px: se
   despliega completo desde 1200 px (navbar-expand-xl) y abajo va en hamburguesa. */
@media (max-width: 1199.98px) {
    .public-site .navbar .navbar-collapse {
        background: #fff;
        border: 1px solid var(--pc-border);
        border-radius: 12px;
        padding: .75rem 1rem;
        margin-top: .6rem;
        box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .08);
    }
}

/* --- Hero a sangre con velo (la fotografía manda) -------------------------- */
.pc-hero-full {
    position: relative;
    width: 100%;
    /* 82vh dejaba la oferta educativa completamente abajo del pliegue: había
       que hacer scroll a ciegas para saber que el sitio seguía. Ahora el borde
       de la primera tarjeta ya asoma y se entiende que hay más. */
    min-height: clamp(420px, 64vh, 600px);
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
}
.pc-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(19, 32, 67, .88) 0%,
        rgba(19, 32, 67, .66) 45%,
        rgba(19, 32, 67, .14) 100%);
}
@media (max-width: 767.98px) {
    .pc-hero-veil { background: rgba(19, 32, 67, .74); }
}
.pc-hero-copy {
    position: relative;
    max-width: 660px;
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    color: #fff;
}
.pc-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    color: #dfe5f2;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.pc-hero-copy h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.pc-hero-copy .pc-hero-sub {
    /* blanco al ~82%, nunca gris: sobre el acento el gris se ensucia */
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
    max-width: 36rem;
}
.pc-hero-trust { color: rgba(255, 255, 255, .62); font-size: .85rem; margin-top: 1.25rem; }

/* --- Botones --------------------------------------------------------------- */
.btn-pc-primary {
    background: var(--pc-accent);
    border: 1px solid var(--pc-accent);
    color: #fff;
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: 10px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-pc-primary:hover {
    background: #0b1730;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 .6rem 1.4rem rgba(19, 32, 67, .28);
}
.btn-pc-ghost {
    background: transparent;
    border: 1px solid var(--pc-border);
    color: var(--pc-ink);
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: 10px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.btn-pc-ghost:hover {
    border-color: var(--pc-accent);
    color: var(--pc-accent);
    background: var(--pc-accent-softer);
}
.btn-pc-light {
    background: #fff; color: var(--pc-accent); font-weight: 700;
    border: 1px solid #fff; padding: .7rem 1.6rem; border-radius: 10px;
}
.btn-pc-light:hover { background: #e8ecf6; color: var(--pc-accent); }
.btn-pc-outline-light {
    background: transparent; color: #e6ebf7; font-weight: 600;
    border: 1px solid rgba(255,255,255,.45); padding: .7rem 1.6rem; border-radius: 10px;
}
.btn-pc-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* --- Secciones ------------------------------------------------------------- */
.public-section-label {
    color: var(--pc-accent);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.public-surface { background: var(--pc-surface); }

/* --- Tarjetas de programa -------------------------------------------------- */
.public-card {
    border: 1px solid var(--pc-border) !important;
    box-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.public-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 32, 67, .35) !important;
    box-shadow: 0 1.2rem 2.4rem rgba(15, 23, 42, .09) !important;
}
.public-card-thumb {
    height: 180px;
    border-radius: calc(var(--pc-brand-radius) - 2px) calc(var(--pc-brand-radius) - 2px) 0 0;
    background: var(--pc-accent-softer);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.public-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjeta grande del programa base: es la decisión de vida, va sola */
.edu-card-hero .public-card-thumb { height: 100%; min-height: 260px; border-radius: 0; }

/* Ficha de dato dentro de la tarjeta */
.edu-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; font-size: .88rem; color: var(--pc-muted); }
.edu-meta i { color: var(--pc-accent); }

/* Precio: se muestra la colegiatura, NO el total.
   "$400 semanales" alguien se lo imagina pagando; "$24,000" la manda
   a cotizar a otra escuela. El total vive en la FAQ. */
.edu-price { font-size: 1.5rem; font-weight: 800; color: var(--pc-accent); line-height: 1; }
.edu-price small { font-size: .82rem; font-weight: 500; color: var(--pc-muted); }

/* Requisito de ingreso — va visible, nunca en letra chica */
.edu-requisito {
    display: flex; gap: .5rem; align-items: flex-start;
    background: var(--edu-bronze-soft);
    border-left: 3px solid var(--edu-bronze);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .86rem;
    color: #6b3a08;
}

/* --- Lista de documentos que se expiden (el argumento más desaprovechado) --- */
.edu-docs { list-style: none; padding: 0; margin: 0; }
.edu-docs li {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .45rem 0;
    border-bottom: 1px dashed var(--pc-border);
    font-size: .92rem;
}
.edu-docs li:last-child { border-bottom: 0; }
.edu-docs i { color: var(--edu-bronze); margin-top: .15rem; flex: 0 0 auto; }
.edu-docs .edu-doc-qty {
    background: var(--pc-accent); color: #fff;
    border-radius: 999px; font-size: .72rem; font-weight: 700;
    padding: .05rem .45rem; margin-right: .1rem;
}

/* --- Plan de estudios por módulos ----------------------------------------- */
.edu-modulos { list-style: none; padding: 0; margin: 0; counter-reset: modulo; }
.edu-modulos li {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px solid var(--pc-border);
}
.edu-modulos li:last-child { border-bottom: 0; }
.edu-modulo-num {
    flex: 0 0 auto;
    width: 2rem; height: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--pc-accent-soft);
    color: var(--pc-accent);
    font-weight: 700; font-size: .85rem;
}

/* --- Chips de valor -------------------------------------------------------- */
.public-feature-chip {
    display: flex; align-items: center; gap: .6rem;
    padding: .9rem 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    transition: border-color .15s ease, transform .15s ease;
}
.public-feature-chip:hover { border-color: rgba(19,32,67,.4); transform: translateY(-2px); }
.public-feature-chip i { font-size: 1.15rem; color: var(--edu-bronze); }

/* --- Sello de acreditación (nunca en el hero: va donde ya hay duda) -------- */
.edu-badge-oficial {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--pc-border);
    border-left: 3px solid var(--edu-bronze);
    border-radius: 10px;
    background: #fff;
    padding: .55rem .9rem;
    font-size: .82rem;
    color: var(--pc-muted);
}
.edu-badge-oficial strong { color: var(--pc-ink); font-weight: 600; }

/* --- WhatsApp flotante ----------------------------------------------------- */
.edu-wa {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--pc-whatsapp); color: #fff;
    border-radius: 999px;
    padding: .7rem 1.1rem;
    font-weight: 600; text-decoration: none;
    box-shadow: 0 .8rem 1.8rem rgba(37, 211, 102, .35);
    transition: transform .15s ease;
}
.edu-wa:hover { color: #fff; transform: translateY(-2px); }
.edu-wa i { font-size: 1.3rem; }
@media (max-width: 575.98px) { .edu-wa span { display: none; } .edu-wa { padding: .85rem; } }

/* --- Footer ---------------------------------------------------------------- */
.public-footer { background: var(--pc-surface); border-top: 1px solid var(--pc-border); }
.public-footer a { color: var(--pc-muted); text-decoration: none; }
.public-footer a:hover { color: var(--pc-accent); }
.public-footer .edu-legal { font-size: .78rem; color: var(--pc-muted); line-height: 1.7; }

/* --- Animación de entrada --------------------------------------------------
   Solo se ocultan los elementos si el JS cargó y agregó .pc-js al <html>.
   Sin JS, todo el contenido es visible. */
.pc-js .pc-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.pc-js .pc-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .pc-js .pc-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   FOTOGRAFÍA
   La imagen del hero va como <img> detrás del velo, no como background:
   un background no acepta srcset y ésta es la imagen que debe cargar primero.
--------------------------------------------------------------------------- */
.pc-hero-full { background: var(--pc-accent); overflow: hidden; }
.pc-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}
@media (max-width: 767.98px) {
    /* En vertical el encuadre útil está al centro, no a la derecha */
    .pc-hero-img { object-position: 60% center; }
}

/* Galería ------------------------------------------------------------------ */
.edu-foto {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--pc-radius, 14px);
    overflow: hidden;
    background: var(--pc-surface);
    cursor: zoom-in;
}
.edu-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.edu-foto:hover img,
.edu-foto:focus-visible img { transform: scale(1.05); }
.edu-foto:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 3px; }

.edu-foto-lupa {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(19, 32, 67, .72);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.edu-foto:hover .edu-foto-lupa,
.edu-foto:focus-visible .edu-foto-lupa { opacity: 1; }

/* Visor: fondo oscuro y la foto entera, sin recorte */
#eduVisor .modal-content { background: transparent; border: 0; }
#eduVisor .modal-body { padding: 0; }
#eduVisor img {
    width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--pc-radius, 14px);
}
#eduVisor .btn-close {
    position: absolute;
    top: -2.6rem;
    right: 0;
    filter: invert(1) grayscale(1) brightness(2);
    opacity: .9;
}

@media (prefers-reduced-motion: reduce) {
    .edu-foto img { transition: none; }
    .edu-foto:hover img { transform: none; }
}

/* ---------------------------------------------------------------------------
   MINIATURAS DE PROGRAMA
--------------------------------------------------------------------------- */
/* Ícono de respaldo cuando un programa todavía no tiene foto */
.public-card-thumb i { font-size: 2.6rem; color: var(--pc-accent); opacity: .3; }
.edu-card-hero .public-card-thumb i { font-size: 4rem; opacity: .35; }

/* La tarjeta de taller es compacta: la foto acompaña, no manda */
.public-card-thumb-sm { height: 132px; }

/* La foto se acerca un poco al pasar el cursor, igual que en la galería */
.public-card-thumb img { transition: transform .5s ease; }
.public-card:hover .public-card-thumb img { transform: scale(1.04); }

/* Banda de la ficha: ancha y baja, para que el título se lea debajo sin scroll */
.edu-ficha-banner {
    position: relative;
    height: clamp(200px, 32vw, 340px);
    overflow: hidden;
    background: var(--pc-accent);
}
.edu-ficha-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

@media (prefers-reduced-motion: reduce) {
    .public-card-thumb img { transition: none; }
    .public-card:hover .public-card-thumb img { transform: none; }
}

/* ---------------------------------------------------------------------------
   CONTACTO
--------------------------------------------------------------------------- */
.edu-contacto-dato {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.15rem 0; border-bottom: 1px solid var(--pc-border);
}
.edu-contacto-dato:first-child { padding-top: 0; }
.edu-contacto-dato i { font-size: 1.35rem; color: var(--pc-accent); line-height: 1.4; }
.edu-contacto-dato p { margin: 0; }
.edu-contacto-dato a { color: var(--pc-accent); text-decoration: none; }
.edu-contacto-dato a:hover { text-decoration: underline; }
.edu-contacto-etiqueta {
    display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--pc-muted); margin-bottom: .25rem;
}

/* Lista del horario */
.edu-horario li {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .6rem 0; border-bottom: 1px dashed var(--pc-border); font-size: .95rem;
}
.edu-horario li:last-child { border-bottom: 0; }
.edu-horario li.es-hoy { font-weight: 700; color: var(--pc-accent); }

/* El aviso de hoy: es lo único que la mayoría va a leer de esta tarjeta */
.edu-hoy {
    font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
    background: var(--pc-accent-softer); color: var(--pc-accent); white-space: nowrap;
}
.edu-hoy-cerrado { background: rgba(167, 81, 6, .12); color: var(--edu-bronze); }

/* Mapa a lo ancho */
.edu-mapa { line-height: 0; background: var(--pc-surface); }
.edu-mapa iframe { width: 100%; height: clamp(260px, 38vw, 420px); border: 0; }

/* ===========================================================================
   FASE 17 — secciones que ahora administra el panel
   =========================================================================== */

/* --- grupos en formación ------------------------------------------------- */
.edu-inicio {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.edu-inicio-promo {
    position: absolute;
    top: -.7rem;
    left: 1.25rem;
    background: var(--pc-success);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .25rem .7rem;
    border-radius: 999px;
}
.edu-inicio-programa { font-size: 1.05rem; font-weight: 700; margin: .25rem 0 .9rem; }
.edu-inicio-cuando,
.edu-inicio-fecha {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    margin-bottom: .45rem;
    color: var(--pc-ink);
}
.edu-inicio-cuando i, .edu-inicio-fecha i { color: var(--pc-accent); }
.edu-inicio-formando { color: var(--pc-muted); }

/* "Faltan 6" es lo único de la tarjeta que hace hablar hoy en vez de
   "ahorita lo pienso". Por eso es lo que resalta. */
.edu-inicio-faltan {
    margin: .75rem 0 0;
    padding: .55rem .75rem;
    background: rgba(19, 32, 67, .05);
    border-radius: 9px;
    font-size: .85rem;
    color: var(--pc-accent);
}
.edu-inicio-faltan strong { font-size: 1.05rem; }
.edu-inicio .btn { margin-top: auto; }

/* --- testimonios --------------------------------------------------------- */
.edu-testimonio {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius);
    padding: 1.5rem;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.edu-testimonio blockquote {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--pc-ink);
    margin: 0 0 1.25rem;
}
.edu-testimonio blockquote::before { content: '“'; font-size: 2rem; line-height: 0; color: var(--pc-accent); }
.edu-testimonio figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.edu-testimonio figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.edu-testimonio figcaption strong { display: block; font-size: .9rem; }
.edu-testimonio figcaption em { font-style: normal; font-size: .8rem; color: var(--pc-muted); }
.edu-testimonio-video {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--pc-accent);
}

/* --- asesores ------------------------------------------------------------ */
.edu-asesor {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.edu-asesor-foto {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto .9rem;
    border: 3px solid rgba(19, 32, 67, .08);
}
.edu-asesor-inicial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-accent-soft);
    color: var(--pc-accent);
    font-size: 2rem;
    font-weight: 700;
}
.edu-asesor-nombre { font-size: 1.05rem; font-weight: 700; margin-bottom: .15rem; }
.edu-asesor-puesto { font-size: .85rem; color: var(--pc-muted); margin-bottom: .35rem; }
.edu-asesor-horario { font-size: .82rem; color: var(--pc-muted); margin-bottom: 0; }
.edu-asesor .d-flex { margin-top: auto; }

.btn-pc-whatsapp {
    background: var(--pc-whatsapp);
    color: #fff;
    border: 1px solid var(--pc-whatsapp);
    font-weight: 600;
    border-radius: 9px;
}
.btn-pc-whatsapp:hover { background: #1fb955; border-color: #1fb955; color: #fff; }

/* ===========================================================================
   FASE 21 — preguntas frecuentes
   =========================================================================== */

.edu-faq-indice {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    border-left: 2px solid var(--pc-border);
    padding-left: 1rem;
}
.edu-faq-indice a {
    font-size: .88rem;
    color: var(--pc-muted);
    text-decoration: none;
    padding: .35rem 0;
}
.edu-faq-indice a:hover { color: var(--pc-accent); }

/* En celular el índice se vuelve una fila que se desliza. Una columna de
   enlaces arriba de todo empuja el contenido fuera de la pantalla. */
@media (max-width: 991px) {
    .edu-faq-indice {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: .5rem;
        border-left: 0;
        border-bottom: 1px solid var(--pc-border);
        padding: 0 0 .75rem;
    }
    .edu-faq-indice a { white-space: nowrap; font-weight: 600; }
}

.edu-faq-grupo { margin-bottom: 2.5rem; }
.edu-faq-grupo:last-child { margin-bottom: 0; }
.edu-faq-grupo h2 { color: var(--pc-accent); }

.edu-faq {
    border-bottom: 1px solid var(--pc-border);
}
.edu-faq summary {
    cursor: pointer;
    padding: 1rem 2rem 1rem 0;
    font-weight: 600;
    font-size: .98rem;
    list-style: none;
    position: relative;
}
.edu-faq summary::-webkit-details-marker { display: none; }

/* La flechita se dibuja con CSS y gira al abrir: sin iconos, sin JS. */
.edu-faq summary::after {
    content: '';
    position: absolute;
    right: .35rem;
    top: 1.35rem;
    width: 8px; height: 8px;
    border-right: 2px solid var(--pc-accent);
    border-bottom: 2px solid var(--pc-accent);
    transform: rotate(45deg);
    transition: transform .18s;
}
.edu-faq[open] summary::after { transform: rotate(-135deg); }
.edu-faq summary:hover { color: var(--pc-accent); }

.edu-faq-respuesta {
    padding: 0 2rem 1.25rem 0;
    color: var(--pc-muted);
    font-size: .93rem;
    line-height: 1.7;
}
.edu-faq-respuesta strong { color: var(--pc-ink); }

/* ===========================================================================
   FASE 22 — becas
   =========================================================================== */

.edu-beca {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius);
    padding: 2.25rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* El descuento es lo primero que se ve. No es decoración: es la única cifra
   que decide si alguien sigue leyendo. */
.edu-beca-monto {
    position: absolute;
    top: -.85rem;
    left: 1.5rem;
    background: var(--pc-accent);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
    padding: .3rem .9rem;
    border-radius: 999px;
}
.edu-beca-nombre { font-size: 1.05rem; font-weight: 700; margin: .35rem 0 .4rem; }
.edu-beca-para { font-size: .88rem; color: var(--pc-muted); margin-bottom: 1.1rem; }

.edu-beca-etiqueta {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pc-muted);
    font-weight: 700;
    margin-bottom: .5rem;
}
.edu-beca-lista { list-style: none; padding: 0; margin: 0 0 .5rem; }
.edu-beca-lista li {
    position: relative;
    padding-left: 1.4rem;
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: .45rem;
}
/* Palomita dibujada con CSS: dice "ya casi lo tienes" en vez de "falta esto". */
.edu-beca-lista li::before {
    content: '';
    position: absolute;
    left: 0; top: .35rem;
    width: 5px; height: 9px;
    border-right: 2px solid var(--pc-success);
    border-bottom: 2px solid var(--pc-success);
    transform: rotate(45deg);
}
.edu-beca-nota {
    font-size: .8rem;
    color: var(--pc-muted);
    font-style: italic;
    margin: .5rem 0 0;
}
.edu-beca .btn { margin-top: auto; }

.edu-beca-regla {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: var(--pc-accent-softer);
    border-radius: var(--pc-brand-radius);
    padding: 1.1rem 1.35rem;
    margin-top: 2rem;
    font-size: .88rem;
    color: var(--pc-muted);
}
.edu-beca-regla i { color: var(--pc-accent); font-size: 1.1rem; flex: none; }

/* ===========================================================================
   FASE 23 — nosotros
   =========================================================================== */

.edu-cifra {
    padding: 1.5rem 1rem;
    border-left: 3px solid var(--pc-accent);
}
@media (max-width: 767px) {
    .edu-cifra { border-left: 0; border-top: 3px solid var(--pc-accent); }
}
.edu-cifra-dato {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--pc-accent);
    margin-bottom: .5rem;
}
.edu-cifra-texto {
    display: block;
    font-size: .9rem;
    color: var(--pc-muted);
    line-height: 1.5;
}

.edu-proposito {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-left: 3px solid var(--pc-accent);
    border-radius: var(--pc-brand-radius);
    padding: 1.75rem;
    height: 100%;
}
.edu-proposito p { font-size: .95rem; line-height: 1.7; margin-top: .75rem; }

.edu-respaldo {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}
.edu-respaldo i { font-size: 1.75rem; color: var(--pc-accent); display: block; margin-bottom: .65rem; }
.edu-respaldo-titulo { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.edu-respaldo-detalle { display: block; font-size: .82rem; color: var(--pc-muted); }

/* ===========================================================================
   PREINSCRIPCIÓN — el formulario al que lleva el código QR

   Campos grandes y pasos numerados: se llena de pie, con una mano, en un
   celular, muchas veces frente a la recepción o una lona.
   =========================================================================== */
.edu-form .form-control,
.edu-form .form-select { border-radius: 10px; }

.edu-paso {
    display: flex;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(19, 32, 67, .1);
}
.edu-paso:first-of-type { border-top: 0; padding-top: 0; }
.edu-paso-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--pc-accent);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edu-paso-cuerpo { flex: 1; min-width: 0; }
.edu-paso-titulo { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.edu-paso-nota   { font-size: .88rem; color: #64748b; margin-bottom: .9rem; }

.edu-pregunta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .8rem 0;
    border-bottom: 1px dashed rgba(19, 32, 67, .12);
}
.edu-pregunta:last-child { border-bottom: 0; }

/* Sí / No como botones y no como radios chiquitos: el objetivo es que se
   puedan picar con el pulgar sin acercarse la pantalla a la cara. */
.edu-si-no { display: flex; gap: .4rem; }
.edu-si-no label { cursor: pointer; }
.edu-si-no input { position: absolute; opacity: 0; pointer-events: none; }
.edu-si-no span {
    display: inline-block;
    padding: .45rem 1.1rem;
    border: 1px solid rgba(19, 32, 67, .18);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    background: #fff;
}
.edu-si-no input:checked + span {
    background: var(--pc-accent);
    border-color: var(--pc-accent);
    color: #fff;
}
/* Sin esto, quien navega con teclado no ve dónde está parado. */
.edu-si-no input:focus-visible + span { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

.edu-privacidad {
    background: var(--pc-accent-softer);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 2.6rem;
    font-size: .86rem;
    line-height: 1.5;
}
.edu-privacidad .form-check-input { margin-left: -1.75rem; }

/* La trampa para robots. Fuera de la pantalla y no display:none, porque hay
   robots que ignoran lo que está oculto con display. */
.edu-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.edu-gracias-check {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================================================
   FASE 28 — aviso de privacidad
   =========================================================================== */

/* Texto legal largo: renglón a medida de lectura y títulos discretos. El
   índice lateral es el mismo de preguntas frecuentes (.edu-faq-indice). */
.edu-aviso { max-width: 72ch; line-height: 1.7; }
.edu-aviso h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pc-accent);
    margin: 2.25rem 0 .75rem;
    scroll-margin-top: 6rem;   /* que el encabezado fijo no tape el título al brincar */
}
.edu-aviso p { color: var(--pc-ink); }
.edu-aviso-lista { padding-left: 1.2rem; margin-bottom: 1rem; }
.edu-aviso a { color: var(--pc-accent); overflow-wrap: anywhere; }

.edu-aviso-responsable {
    background: var(--pc-accent-softer);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    scroll-margin-top: 6rem;
}
.edu-aviso-responsable dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .4rem 1.25rem;
}
.edu-aviso-responsable dt {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pc-muted);
    padding-top: .15rem;
}
.edu-aviso-responsable dd { margin: 0; }

@media (max-width: 575px) {
    .edu-aviso-responsable dl { grid-template-columns: 1fr; gap: 0; }
    .edu-aviso-responsable dd { margin-bottom: .6rem; }
}

/* En celular, las filas .g-5 (medianil de 3rem) se salían 12px del contenedor
   —su margen negativo es mayor que el relleno de .container— y la página se
   podía arrastrar de lado. Pasaba en la portada, en preguntas frecuentes y en
   el aviso. Se reduce SÓLO el medianil horizontal; el vertical queda igual. */
@media (max-width: 575.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ===========================================================================
   ESCUELA EN LÍNEA (/escuela-en-linea) y acceso de alumnas
   Un solo acento (--pc-accent), superficies planas, mismo radio que el resto.
   =========================================================================== */
.edu-linea-hero { background: var(--pc-accent); color: #fff; padding: 4.5rem 0; }
.edu-linea-hero h1 { color: #fff; letter-spacing: -.02em; }
.edu-linea-eyebrow {
    display: inline-flex; align-items: center; font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.75); margin-bottom: 1rem;
}
.edu-linea-lead { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 36rem; }
.edu-linea-lead strong { color: #fff; }
.edu-linea-chips { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.edu-linea-chips li {
    display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--pc-brand-radius);
}
.edu-linea-chips i { font-size: 1.4rem; color: #fff; line-height: 1; margin-top: .1rem; }
.edu-linea-chips span { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.45; }
.edu-linea-chips strong { display: block; color: #fff; font-size: .98rem; margin-bottom: .15rem; }

.edu-linea-grupo {
    background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-brand-radius);
    padding: 1.6rem; height: 100%; display: flex; flex-direction: column;
}
.edu-linea-estado {
    align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px;
    background: var(--pc-accent-soft); color: var(--pc-accent); margin-bottom: .9rem;
}
.edu-linea-estado.is-curso { background: rgba(10,179,156,.12); color: #07876f; }
.edu-linea-grupo-nombre { font-size: 1.2rem; font-weight: 700; margin-bottom: .9rem; }
.edu-linea-datos { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; font-size: .93rem; }
.edu-linea-datos li { display: flex; gap: .55rem; align-items: baseline; }
.edu-linea-datos i { color: var(--edu-bronze); font-size: 1.05rem; }
.edu-linea-precio { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--pc-accent); margin: auto 0 1rem; }
.edu-linea-precio span { font-size: .9rem; font-weight: 600; color: var(--pc-muted); letter-spacing: 0; }
.edu-linea-vacio {
    max-width: 560px; margin: 0 auto; text-align: center; padding: 2rem 1.5rem;
    border: 1px dashed var(--pc-border); border-radius: var(--pc-brand-radius);
}
.edu-linea-vacio > i { font-size: 2rem; color: var(--pc-accent); display: block; margin-bottom: .5rem; }

.edu-linea-paso {
    position: relative; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-brand-radius);
    padding: 1.6rem 1.4rem; height: 100%;
}
.edu-linea-paso > i { font-size: 1.6rem; color: var(--pc-accent); display: block; margin-bottom: .75rem; }
.edu-linea-paso h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.edu-linea-paso p { font-size: .9rem; color: var(--pc-muted); margin: 0; }
.edu-linea-paso-num {
    position: absolute; top: 1.2rem; right: 1.2rem; width: 1.8rem; height: 1.8rem; border-radius: 999px;
    background: var(--pc-accent-soft); color: var(--pc-accent); font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}

.edu-linea-feature { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: var(--pc-surface); height: 100%; }
.edu-linea-feature i { font-size: 1.3rem; color: var(--pc-accent); line-height: 1; margin-top: .1rem; }
.edu-linea-feature strong { display: block; font-size: .95rem; }
.edu-linea-feature span { font-size: .85rem; color: var(--pc-muted); }
.edu-linea-necesitas { border: 1px solid var(--pc-border); border-radius: var(--pc-brand-radius); padding: 1.75rem 1.5rem; }

/* Franja de la portada */
.edu-linea-banda {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    background: var(--pc-accent-softer); border: 1px solid var(--pc-accent-soft); border-radius: var(--pc-brand-radius);
    padding: 1.6rem 1.75rem;
}
.edu-linea-banda-icono {
    width: 3rem; height: 3rem; border-radius: 12px; background: var(--pc-accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}

/* Botón "Alumnas" del menú: discreto, para no competir con "Solicita información". */
.public-site .navbar .btn-pc-acceso {
    border: 1px solid var(--pc-border); color: var(--pc-ink); font-weight: 600; border-radius: 10px;
    background: #fff; padding: .35rem .8rem;
}
.public-site .navbar .btn-pc-acceso:hover { border-color: var(--pc-accent); color: var(--pc-accent); }

/* Preinscripción: presencial / en línea */
.edu-modalidad { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.edu-modalidad label { cursor: pointer; margin: 0; }
.edu-modalidad input { position: absolute; opacity: 0; pointer-events: none; }
.edu-modalidad .edu-modalidad-op {
    display: flex; gap: .6rem; align-items: flex-start; height: 100%;
    border: 1.5px solid var(--pc-border); border-radius: 12px; padding: .85rem .9rem; transition: border-color .15s, background .15s;
}
.edu-modalidad .edu-modalidad-op i { font-size: 1.3rem; color: var(--pc-muted); line-height: 1; }
.edu-modalidad .edu-modalidad-op strong { display: block; font-size: .95rem; }
.edu-modalidad .edu-modalidad-op small { color: var(--pc-muted); font-size: .8rem; }
.edu-modalidad input:checked + .edu-modalidad-op { border-color: var(--pc-accent); background: var(--pc-accent-softer); }
.edu-modalidad input:checked + .edu-modalidad-op i { color: var(--pc-accent); }
.edu-modalidad input:focus-visible + .edu-modalidad-op { box-shadow: 0 0 0 4px var(--pc-accent-soft); }
@media (max-width: 420px) { .edu-modalidad { grid-template-columns: 1fr; } }

/* Menú con "En línea" y "Alumnas": entre 1200 y 1400 px se aprieta un poco
   para que ningún renglón se parta en dos ("Oferta / educativa"). */
.public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link { white-space: nowrap; }
.public-site .navbar .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link {
        padding: .55rem .36rem !important;
        font-size: .87rem !important;
    }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .public-site nav.navbar ul.navbar-nav li.nav-item a.nav-link { padding: .55rem .28rem !important; font-size: .85rem !important; }
}
@media (min-width: 1200px) { .edu-linea-hero .btn { white-space: nowrap; } }

/* Preinscripción: video de invitación + formulario (paquete 30) */
.edu-preins { display: grid; gap: 1.75rem; grid-template-areas: "head" "video" "form"; }
.edu-preins-head { grid-area: head; text-align: center; max-width: 54ch; margin: 0 auto; }
.edu-preins-video { grid-area: video; }
.edu-preins-form {
    grid-area: form; background: #fff; border: 1px solid var(--pc-border);
    border-radius: var(--pc-brand-radius); padding: 1.25rem 1.25rem 1.5rem;
}
.edu-video {
    position: relative; margin: 0 auto; aspect-ratio: 9 / 16; overflow: hidden;
    width: min(100%, calc(44vh * 9 / 16)); border-radius: var(--pc-brand-radius);
    background: var(--pc-accent); box-shadow: 0 24px 60px -24px rgba(19, 32, 67, .45);
}
.edu-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-video-sonido {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); white-space: nowrap;
    display: inline-flex; align-items: center; gap: .45rem; border: 0; border-radius: 999px;
    background: #fff; color: var(--pc-accent); font-weight: 700; font-size: .92rem; padding: .65rem 1.1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.edu-video-sonido i { font-size: 1.15rem; }
.edu-video-pie { display: block; text-align: center; margin: .9rem 0 0; text-decoration: none; }
.edu-video-pie strong { display: block; color: var(--pc-accent); font-size: 1rem; }
.edu-video-pie span { display: block; color: var(--pc-muted); font-size: .85rem; }
@media (min-width: 992px) {
    .edu-preins { grid-template-columns: 5fr 7fr; grid-template-areas: "video head" "video form"; column-gap: 3rem; row-gap: 1.5rem; }
    .edu-preins-head { text-align: left; margin: 0; }
    .edu-preins-video { position: sticky; top: 6rem; align-self: start; }
    .edu-video { width: min(100%, calc((100vh - 13rem) * 9 / 16)); }
    .edu-preins-form { padding: 1.5rem 2rem 2rem; }
}

/* Preinscripción para campañas (paquete 31) */
.edu-preins-confianza { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font-size: .88rem; font-weight: 600; color: var(--pc-ink); }
.edu-preins-confianza li { display: inline-flex; align-items: center; gap: .3rem; }
.edu-preins-confianza i { color: #16a34a; font-size: 1.05rem; }
@media (min-width: 992px) { .edu-preins-confianza { justify-content: flex-start; } }

.edu-modalidad-fija { margin-top: 1rem; border: 1.5px solid var(--pc-accent); background: var(--pc-accent-softer); border-radius: 12px; padding: .75rem .9rem; }
.edu-modalidad-fija-eti { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-muted); margin-bottom: .35rem; }
.edu-modalidad-fija-op { display: flex; gap: .6rem; align-items: flex-start; }
.edu-modalidad-fija-op i { font-size: 1.35rem; color: var(--pc-accent); line-height: 1; }
.edu-modalidad-fija-op strong { display: block; font-size: .95rem; }
.edu-modalidad-fija-op small { color: var(--pc-muted); font-size: .82rem; }
.edu-modalidad-cambiar { background: none; border: 0; padding: .5rem 0 0; font-size: .82rem; color: var(--pc-muted); text-decoration: underline; min-height: 44px; }

.edu-wa-label { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.edu-wa-label i { color: #25d366; font-size: 1.2rem; }
.edu-wa-input { border-width: 1.5px; border-color: var(--pc-accent); font-size: 1.15rem; letter-spacing: .02em; }

.edu-gracias-nombre { font-size: 1.1rem; font-weight: 600; color: var(--pc-accent); margin-bottom: 1.25rem; }
.edu-gracias-temas { list-style: none; padding: 0; margin: 0 auto 1.5rem; display: inline-block; text-align: left; }
.edu-gracias-temas li { display: flex; gap: .5rem; align-items: flex-start; padding: .2rem 0; }
.edu-gracias-temas i { color: #16a34a; font-size: 1.1rem; line-height: 1.4; }
.edu-gracias-wa {
    display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
    background: #25d366; border-color: #25d366; color: #fff; font-weight: 800; letter-spacing: .02em;
    text-transform: uppercase; padding: 1rem 1.25rem; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .7);
}
.edu-gracias-wa:hover, .edu-gracias-wa:focus { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.edu-gracias-wa i { font-size: 1.5rem; }

/* Próximos inicios en las tarjetas de la oferta (vienen de Intelli → tabla inicios).
   Cada fecha es un enlace a la preinscripción con ese grupo elegido.
   OJO: .edu-inicio ya es la tarjeta de "Grupos abiertos" de la portada. */
.edu-proximos {
    background: color-mix(in srgb, var(--pc-accent) 6%, transparent);
    border-left: 3px solid var(--pc-accent);
    border-radius: 8px;
    padding: .6rem .7rem;
}
.edu-proximos-titulo {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--pc-accent); margin-bottom: .35rem;
}
.edu-proximos-fecha {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .4rem .55rem; margin-top: .25rem;
    background: #fff; border: 1px solid var(--pc-border, #e5e7eb); border-radius: 6px;
    font-size: .88rem; font-weight: 600; color: var(--pc-accent); text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.edu-proximos-fecha:hover, .edu-proximos-fecha:focus-visible { border-color: var(--pc-accent); transform: translateX(2px); color: var(--pc-accent); }
