/* =========================================================
   AICC — Asesorías Integrales y Capacitación
   Home simplificado · blanco + navy + dorado
   ========================================================= */

:root {
    --navy: #07182F;
    --blue: #164A8A;
    --blue-2: #2474B5;
    --white: #FFFFFF;
    --gold: #D9A928;
    --gold-light: #F3D66B;
    --bg-light: #F5F7FA;
    --text: #243444;
    --muted: #5B6B7B;
    --line: #E3E8EF;

    --font-title: "Montserrat", system-ui, sans-serif;
    --font-text: "Inter", "Open Sans", system-ui, sans-serif;

    --container: 1240px;
    --gutter: 20px;
    --radius: 14px;
    --header-h: 76px;
    --shadow: 0 10px 30px rgba(7, 24, 47, .08);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* las anclas no quedan debajo del header fijo */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* texto solo para lectores de pantalla y buscadores */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-lg { padding: 16px 28px; font-size: .95rem; }
.btn-sm { padding: 10px 18px; font-size: .8rem; }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-ghost {
    padding: 0;
    border: 0;
    color: var(--blue);
    font-size: .82rem;
}
.btn-ghost i { transition: transform .2s; }
.btn-ghost:hover { transform: none; color: var(--navy); }
.btn-ghost:hover i { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(7, 24, 47, .06); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand img { width: auto; height: 46px; }

.main-nav .nav-list { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    border-radius: 8px;
    transition: color .2s;
}
.main-nav a:hover { color: var(--blue); }
/* Página actual (main.js pone .is-active): texto azul y una barra dorada corta debajo */
.main-nav a { position: relative; text-decoration: none; }
.main-nav a.is-active { color: var(--blue); }
.main-nav .nav-list > li > a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.main-nav .has-sub > a.is-active::after { right: 4px; }

.main-nav .nav-cta-mobile { display: none; }
.header-cta i, .nav-cta-mobile i { margin: 0 6px 0 0; }

/* Submenú (opción del panel con menú asociado) */
.main-nav .has-sub { position: relative; display: flex; align-items: center; }
.main-nav .has-sub > a { padding-right: 4px; }
.sub-toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: .65rem;
    cursor: pointer;
    transition: transform .2s, color .2s;
}
.sub-toggle:hover { color: var(--blue); }
.has-sub.is-open > .sub-toggle { transform: rotate(180deg); color: var(--blue); }
.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(7, 24, 47, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
/* puente invisible para que el hover no se corte entre la opción y el submenú */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu,
.has-sub.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: 10px 14px; border-radius: 8px; font-size: .88rem; white-space: nowrap; }
.sub-menu a:hover { background: var(--bg-light); }
.main-nav .sub-menu a.is-active { background: var(--bg-light); color: var(--blue); }

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

.icon-wsp {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--navy);
    font-size: 1.35rem;
    border: 1px solid var(--line);
    transition: background-color .2s, color .2s;
}
.icon-wsp:hover { background: #25D366; border-color: #25D366; color: var(--white); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Secciones ---------- */

.section { padding: 104px 0; }
.section-light { background: #EEF3F8; } /* un poco más marcado que --bg-light para separar bloques */
/* Tinte azul suave: para separar bloques seguidos sin repetir el gris */
.section-tinte { background: linear-gradient(180deg, #E8F1FA 0%, #F2F7FC 100%); }
.section-tight { padding-top: 0; }
/* después de una sección con fondo gris, la sección "tight" necesita su propio aire arriba */
.section-light + .section-tight { padding-top: 104px; }

.section-head {
    max-width: 650px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.section-foot {
    margin-top: 56px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    font-family: var(--font-title);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold);
}

/* ---------- 1. Hero: carrusel a todo el ancho ---------- */

.hero-carrusel {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}
.hero-slides { position: relative; display: grid; }
/* Todas las diapositivas en la misma celda: el alto lo da la más alta */
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 78vh, 720px);
    padding: 72px 0 132px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
/* Velo navy: oscuro a la izquierda (texto) y abierto a la derecha (foto) */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 24, 47, .96) 0%, rgba(7, 24, 47, .86) 38%, rgba(7, 24, 47, .35) 72%, rgba(7, 24, 47, .15) 100%),
        linear-gradient(0deg, rgba(7, 24, 47, .85) 0%, rgba(7, 24, 47, 0) 35%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 680px; min-width: 0; }

.hero-carrusel .eyebrow { color: var(--gold); }
.hero-title {
    margin: 0 0 22px;
    font-family: var(--font-title);
    font-size: clamp(2.3rem, 5.4vw, 4.3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.025em;
    color: var(--white);
}
.hero-hl {
    display: block;
    color: var(--gold);
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    max-width: 540px;
    margin-bottom: 34px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .82);
}
.hero-apoyo { margin: 20px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.hero-apoyo i { color: var(--gold); margin-right: 6px; }
.hero-carrusel .btn i { margin-left: 0; margin-right: 6px; }

/* Entrada del texto al cambiar de diapositiva */
.hero-slide .hero-text > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-text > :nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-text > :nth-child(3) { transition-delay: .24s; }
.hero-slide.is-active .hero-text > :nth-child(4) { transition-delay: .36s; }

/* Franja inferior: datos + controles */
.hero-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(7, 24, 47, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 0;
    font-size: .92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
}
.hero-points i { color: var(--gold); margin-right: 8px; }

.hero-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hero-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
    position: relative;
    width: 34px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero-dot span {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
}
.hero-dot span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}
.hero-dot.is-active span::after { animation: heroProgreso var(--hero-ms, 6500ms) linear forwards; }
.hero-carrusel.is-pausado .hero-dot.is-active span::after { animation-play-state: paused; }
.hero-carrusel.sin-auto .hero-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes heroProgreso { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-bg, .hero-slide .hero-text > * { transition: none !important; }
    .hero-bg { transform: none; }
}

/* ---------- 2. Cursos ---------- */

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
/* Home: las columnas se ajustan a cuántos cursos haya para llenar el ancho en el PC */
.course-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-grid--2 .course-img img { aspect-ratio: 16 / 9; }
.course-grid--1 { grid-template-columns: minmax(0, 1fr); }
.course-grid--1 .course-card { flex-direction: row; }
.course-grid--1 .course-img { flex: 0 0 48%; }
.course-grid--1 .course-img img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.course-grid--1 .course-body { padding: 40px; justify-content: center; }

.course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.course-img { display: block; overflow: hidden; }
.course-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s;
}
.course-card:hover .course-img img { transform: scale(1.04); }

.course-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 22px 26px;
}
.course-body h2, .course-body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.course-body h2 a, .course-body h3 a { color: var(--navy); }
.course-body h2 a:hover, .course-body h3 a:hover { color: var(--blue); }
.course-body > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.course-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .88rem;
}
.course-meta i { width: 18px; color: var(--gold); }

.course-body .btn-ghost { margin-top: auto; align-self: flex-start; }

.quiz-link { margin: 26px 0 0; color: var(--muted); font-size: .95rem; }
.quiz-link a { font-weight: 600; }
.quiz-link i { font-size: .8em; margin-left: 4px; }

/* ---------- 3. Por qué AICC ---------- */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    text-align: center;
}
.why-grid li { min-width: 0; }

.why-icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px var(--line);
}
.why-grid h3 { font-size: 1.05rem; font-weight: 700; }
.why-grid p { color: var(--muted); font-size: .95rem; margin: 0 auto; max-width: 240px; }

/* ---------- 4. Cómo comenzar ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: 1040px;
    margin: 0 auto;
    counter-reset: none;
}
.steps li { position: relative; min-width: 0; padding-top: 26px; border-top: 2px solid var(--line); }
.steps li::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--gold);
}
.step-num {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.steps h3 { font-size: 1.1rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- 5. Beneficio ---------- */

.benefit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 52px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
}
.benefit-text { max-width: 650px; min-width: 0; }
.benefit .eyebrow { margin-bottom: 12px; }
.benefit h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 10px; }
.benefit-text > p { margin-bottom: 10px; }
.benefit-note { font-size: .85rem; color: var(--muted); margin: 0 !important; }
.benefit .btn { flex-shrink: 0; }

/* Home: bloque "Ver beneficios" (tarjeta navy con cifras) */
.ben-home {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px 56px;
    align-items: center;
    padding: 56px 60px 40px;
    border-radius: var(--radius);
    background: radial-gradient(circle at 100% 0%, rgba(36, 116, 181, .45) 0%, rgba(36, 116, 181, 0) 55%), var(--navy);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
}
.ben-home::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(217, 169, 40, .25);
    border-radius: 50%;
    pointer-events: none;
}
.ben-home-text { min-width: 0; }
.ben-home .eyebrow { color: var(--gold); margin-bottom: 14px; }
.ben-home h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.12; color: var(--white); margin-bottom: 16px; }
.ben-home h2 .hero-hl { display: inline; }
.ben-home-text > p { max-width: 520px; margin-bottom: 28px; }
.ben-home-stats { display: grid; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.ben-home-stats li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
}
.ben-home-stats strong { flex: 0 0 128px; font-family: var(--font-title); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--gold-light); }
.ben-home-stats span { font-size: .95rem; }
.ben-home-nota { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* ---------- 6. CTA final ---------- */

.cta-final {
    padding: 104px 0;
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
    text-align: center;
}
.cta-final h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.cta-final > .container > p { font-size: 1.1rem; margin-bottom: 34px; }

.cta-address { margin: 40px 0 0; font-size: .9rem; }
.cta-address a { color: rgba(255, 255, 255, .7); }
.cta-address a:hover { color: var(--gold-light); }
.cta-address i { color: var(--gold); margin-right: 6px; }

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    background: #051226;
    color: rgba(255, 255, 255, .68);
    font-size: .92rem;
    /* la barra de anuncios del panel agrega padding-bottom al body: esa franja
       se pinta del color del footer en vez de quedar blanca bajo la página */
    box-shadow: 0 400px 0 #051226;
}
/* filete dorado que separa el footer del CTA navy */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, calc(100% - 2 * var(--gutter)));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(217, 169, 40, .55), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .9fr .9fr 1.35fr;
    gap: 48px;
    padding: 80px 0 64px;
}
.footer-grid > * { min-width: 0; }

.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { width: auto; height: 64px; }

.footer-brand > p { max-width: 300px; margin-bottom: 28px; line-height: 1.7; }

.footer-seal {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}
.footer-seal img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.footer-seal strong {
    display: block;
    font-family: var(--font-title);
    font-size: .82rem;
    color: var(--white);
    line-height: 1.3;
}
.footer-seal span { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); }

/* QR de la bio */
.footer-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .7);
    transition: border-color .2s, background-color .2s;
}
.footer-qr:hover { border-color: rgba(217, 169, 40, .5); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); }
.footer-qr-code {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
}
.footer-qr-code img, .footer-qr-code canvas { width: 88px; height: 88px; }
.footer-qr-text { min-width: 0; font-size: .8rem; line-height: 1.45; }
.footer-qr-text strong { display: block; margin-bottom: 2px; font-family: var(--font-title); font-size: .85rem; color: var(--white); }
/* Solo en el PC: en celular no tiene sentido escanear la pantalla que ya tienes en la mano */
@media (max-width: 960px) { .footer-qr { display: none; } }

.footer-title {
    font-family: var(--font-title);
    line-height: 1.2;
    margin-bottom: 22px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    position: relative;
    color: rgba(255, 255, 255, .72);
    transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-more { color: var(--gold-light) !important; font-weight: 600; }
.footer-more i { font-size: .75em; margin-left: 4px; transition: transform .2s; }
.footer-more:hover { padding-left: 0 !important; }
.footer-more:hover i { transform: translateX(4px); }

.footer-contact li { margin-bottom: 16px; }
.footer-contact a,
.footer-contact .fc-static {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.45;
}
.footer-contact small {
    display: block;
    margin-bottom: 2px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
.fc-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: var(--gold);
    transition: background-color .2s, color .2s;
}
.footer-contact a:hover { color: var(--white); }
.footer-contact a:hover .fc-icon { background: var(--gold); color: var(--navy); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-width: 0; }
.footer-credit a { color: rgba(255, 255, 255, .7); font-weight: 600; }
.footer-credit a:hover { color: var(--gold-light); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .8);
    transition: background-color .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
/* sin margen lateral suficiente, el botón flotante de WhatsApp tapaba la última red */
@media (max-width: 1360px) { .footer-social { margin-right: 72px; } }

/* ---------- Páginas interiores: cabecera ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 72px;
    background:
        radial-gradient(ellipse 60% 90% at 85% 50%, rgba(36, 116, 181, .35), transparent 70%),
        linear-gradient(120deg, var(--navy) 0%, #0B2445 60%, var(--blue) 140%);
    color: rgba(255, 255, 255, .78);
}
/* filete dorado inferior */
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light) 40%, transparent 85%);
}

.page-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
}
.page-hero-text { min-width: 0; }

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero-lead { max-width: 600px; font-size: 1.1rem; color: rgba(255, 255, 255, .75); margin: 0; }

.page-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    font-size: .85rem;
    font-weight: 500;
    transition: background-color .2s, border-color .2s;
}
.hero-pill i { color: var(--gold); }
.hero-pill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: var(--white); }

/* Ilustración: anillos concéntricos con un icono al centro */
.page-hero-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    margin-right: 24px;
    flex-shrink: 0;
}
.page-hero-art::before,
.page-hero-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
}
.page-hero-art::before { inset: 0; }
.page-hero-art::after { inset: -46px; border-color: rgba(255, 255, 255, .06); }
.page-hero-art span {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(217, 169, 40, .45);
    color: var(--gold);
    font-size: 3rem;
}
.page-hero-art span::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 34px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(217, 169, 40, .18);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}
.breadcrumb a { color: rgba(255, 255, 255, .6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .6rem; opacity: .6; }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* ---------- Lista de cursos ---------- */

.section-list { padding-top: 56px; }

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }

.chip {
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-title);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.list-count { margin: 0; flex-shrink: 0; font-size: .9rem; color: var(--muted); }

.course-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.course-card[hidden] { display: none; }

.course-img { position: relative; }
.course-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-family: var(--font-title);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.list-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Bloque de ayuda ---------- */

.help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 52px;
    border-radius: var(--radius);
    background: var(--bg-light);
}
.help-text { max-width: 560px; min-width: 0; }
.help-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 8px; }
.help-text p { margin: 0; color: var(--muted); }
.help-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }

/* ---------- Contacto ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.contact-form-box,
.contact-info {
    min-width: 0;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.contact-form-box h2,
.contact-info h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.form-note { color: var(--muted); margin-bottom: 30px; }

.contact-form { display: grid; gap: 20px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.field label {
    font-family: var(--font-title);
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
}
.optional { font-family: var(--font-text); font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #8A98A8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(36, 116, 181, .15);
}

.input-prefix { display: flex; min-width: 0; }
.input-prefix span {
    display: grid;
    place-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--white);
    font-weight: 600;
    color: var(--navy);
}
.input-prefix input { border-radius: 0 10px 10px 0; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
    content: "\f078";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .75rem;
    color: var(--muted);
    pointer-events: none;
}

.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-legal { margin: -6px 0 0; font-size: .8rem; color: var(--muted); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field.is-invalid .input-prefix span { border-color: #C0392B; }
.field-error { color: #C0392B; font-size: .8rem; font-weight: 500; }

/* Campos propios del motivo (consulta-campos.js los agrega con el mismo envoltorio .field) */
.consulta-campos-motivo, .campos-motivo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campos-motivo[hidden] { display: none; }
.campos-motivo > * { min-width: 0; }
.campos-motivo .field-ancho { grid-column: 1 / -1; }
.consulta-campos-motivo > * { min-width: 0; }
.consulta-campos-motivo .field:has(textarea) { grid-column: 1 / -1; }
.consulta-campos-motivo select, .campos-motivo select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%235B6B7B%27 stroke-width=%273%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.consulta-campo-ayuda { color: var(--muted); font-size: .8rem; }
#consulta-submit[disabled] { cursor: default; }
.form-message:empty { display: none; }
.form-message {
    padding: 14px 18px;
    border-radius: 10px;
    background: #EAF5EE;
    color: #1E6B3A;
    font-weight: 500;
}

.contact-info { background: var(--bg-light); border-color: transparent; }
.contact-info h2 { margin-bottom: 26px; }

.contact-list { display: grid; gap: 20px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.contact-list div { min-width: 0; overflow-wrap: anywhere; }
.contact-list small {
    display: block;
    margin-bottom: 2px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list a { color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--blue); }

.ci-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--white);
    color: var(--gold);
    font-size: 1.05rem;
}

.contact-wsp { width: 100%; }

/* ---------- WhatsApp flotante (igual que Terra Magik) ---------- */

.float-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform .2s, box-shadow .2s;
    animation: pulse-whatsapp 2.5s infinite;
}
.float-whatsapp:hover {
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}
@keyframes pulse-whatsapp {
    0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .3); }
    70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .float-whatsapp { animation: none; }
}

.contact-wsp-note { margin: 0; font-size: .9rem; color: var(--muted); }
.contact-wsp-note i { color: #25D366; margin-right: 6px; }

/* ---------- Contacto: dirección + mapa ---------- */

.location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.location-info { min-width: 0; padding: 48px 44px; }
.location-info h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 28px; }
.location-info .eyebrow { margin-bottom: 12px; }
.location-info .contact-list { margin-bottom: 34px; }
.location-info .ci-icon { background: var(--bg-light); }
.location-address { color: var(--navy); font-weight: 600; }

.location-map { position: relative; min-width: 0; min-height: 420px; background: var(--bg-light); }
.location-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Ficha de curso ---------- */

.course-hero { padding: 56px 0 64px; }
.course-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.course-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.course-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}
.course-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: var(--white);
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.3;
}
.course-facts i { color: var(--gold); font-size: 1.05rem; flex-shrink: 0; }
.course-facts small {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.course-hero-media { position: relative; min-width: 0; }
.course-hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.course-hero-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -14px;
    bottom: -14px;
    width: 45%;
    height: 45%;
    border-right: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-radius: 0 0 22px 0;
}
.course-hero-media { z-index: 0; }

/* Contenido + tarjeta de valor */
.course-section { padding-top: 72px; }
.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: start;
}
.course-content { min-width: 0; }

.course-block { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.course-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.course-block h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 16px; }
.course-block > p { max-width: 680px; }
.block-lead { color: var(--muted); margin-bottom: 26px; }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(217, 169, 40, .15);
    color: #A87F12;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .65rem;
}

.modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    counter-reset: modulo;
}
.modules li {
    position: relative;
    min-width: 0;
    padding: 20px 20px 20px 66px;
    border: 1px solid var(--line);
    border-radius: 12px;
    counter-increment: modulo;
}
.modules li::before {
    content: counter(modulo, decimal-leading-zero);
    position: absolute;
    left: 20px;
    top: 20px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--blue);
}
.modules h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.modules p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.method-grid li {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 12px;
    background: var(--bg-light);
}
.method-grid i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--white);
    color: var(--blue);
    font-size: 1.1rem;
}
.method-grid strong { font-family: var(--font-title); color: var(--navy); font-size: .95rem; }
.method-grid span { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.outcome { display: grid; gap: 24px; }
.outcome-cert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: var(--bg-light);
}
.outcome-cert i { color: var(--gold); font-size: 1.6rem; margin-top: 2px; }
.outcome-cert strong { display: block; font-family: var(--font-title); color: var(--navy); }
.outcome-cert span { font-size: .92rem; color: var(--muted); }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq details[open] { border-color: rgba(36, 116, 181, .35); }
.faq summary {
    position: relative;
    padding: 18px 56px 18px 20px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: .98rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "\2b";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--blue);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .75rem;
    transition: transform .2s;
}
.faq details[open] summary::after { content: "\f068"; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq details .faq-answer p { padding: 0; margin: 0 0 .8em; }
.faq details .faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { list-style: disc; padding-left: 20px; margin: 0 0 .8em; }
.faq-answer h3 { font-size: 1rem; margin: 14px 0 6px; }

.course-aside { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.price-card {
    display: grid;
    padding: 32px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.price-label {
    margin: 0 0 4px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.price { margin: 0; font-family: var(--font-title); color: var(--navy); }
.price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.price span { color: var(--muted); font-weight: 600; }
.price-detail { margin: 2px 0 20px; font-weight: 600; color: var(--text); }
.price-benefit {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(217, 169, 40, .1);
    font-size: .86rem;
    line-height: 1.5;
}
.price-benefit i { color: #A87F12; margin-top: 3px; }
.price-card .btn-gold { width: 100%; }
.price-card .btn-ghost { justify-self: center; margin-top: 14px; }
.price-points { display: grid; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.price-points i { color: var(--gold); margin-right: 8px; font-size: .8rem; }

.course-grid-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Lista de cursos: casos del panel ---------- */

/* curso sin foto cargada */
.course-img-empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--navy), var(--blue));
}
.course-img-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(217, 169, 40, .45);
    color: var(--gold);
    font-size: 1.8rem;
}

/* categoría sin cursos publicados */
.list-empty-box {
    display: grid;
    justify-items: center;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 32px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}
.list-empty-box p { margin: 0; }

/* texto SEO de la categoría (descripción del panel) */
.seo-text {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: .95rem;
}
.seo-text > :first-child { margin-top: 0; }
.seo-text h2 { font-size: 1.25rem; font-weight: 800; margin: 28px 0 10px; }
.seo-text h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.seo-text ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.seo-text img, .seo-text iframe { max-width: 100%; height: auto; }

/* ---------- Lista de cursos: datos de la categoría ---------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}
.about-grid-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.about-text { min-width: 0; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 20px; }

.rich-text { color: var(--text); }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 1em; }
.rich-text h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.rich-text ul, .rich-text ol { padding-left: 20px; margin: 0 0 1em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.rich-text img, .rich-text iframe { max-width: 100%; height: auto; border-radius: 12px; }

.about-media { position: relative; min-width: 0; }
.video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 18px;
    background: var(--navy);
    box-shadow: var(--shadow);
    overflow: hidden;
    object-fit: cover;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.cat-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.cat-gallery figure { margin: 0; min-width: 0; }
.cat-gallery a { display: block; overflow: hidden; border-radius: 12px; }
.cat-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s;
}
.cat-gallery a:hover img { transform: scale(1.05); }
.cat-gallery figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
/* la primera foto ocupa dos columnas y dos filas para dar jerarquía */
.cat-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.cat-gallery figure:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.cat-gallery figure:first-child a { height: 100%; }

/* ---------- Lista de cursos: características y descripción adicional ---------- */

.feature-list { margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.about-grid-solo .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-list li { font-weight: 500; color: var(--navy); }

.extra-section { position: relative; overflow: hidden; }
.extra-intro { max-width: 720px; margin: -24px auto 56px; text-align: center; color: var(--muted); }

/* Formato con fotos o video: filas en zigzag */
.extra-blocks { display: grid; gap: 88px; max-width: 1120px; margin: 0 auto; counter-reset: none; }
.extra-block {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}
.extra-block:nth-child(even) .extra-media { order: 2; }
.extra-block-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }

.extra-media { position: relative; min-width: 0; z-index: 0; }
.extra-media img,
.extra-media video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: var(--navy);
    box-shadow: 0 20px 44px rgba(7, 24, 47, .14);
}
/* marco dorado desplazado, como en el hero */
.extra-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 42%;
    height: 42%;
    right: -14px;
    bottom: -14px;
    border-right: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
    border-radius: 0 0 22px 0;
}
.extra-block:nth-child(even) .extra-media::after {
    right: auto;
    left: -14px;
    border-right: 0;
    border-left: 3px solid var(--gold);
    border-radius: 0 0 0 22px;
}

.extra-text { min-width: 0; }
.extra-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .12em;
    color: var(--gold);
}
.extra-num::after { content: ""; width: 36px; height: 2px; background: var(--gold); opacity: .6; }
.extra-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.extra-lead { font-size: 1.05rem; color: var(--blue); font-weight: 600; margin-bottom: 16px; }
.extra-text .rich-text { color: var(--muted); }
.extra-text .rich-text h4 { font-size: 1rem; margin: 18px 0 6px; color: var(--navy); }
.extra-text .rich-text ul { list-style: none; padding-left: 0; }
.extra-text .rich-text ul li { position: relative; padding-left: 26px; }
.extra-text .rich-text ul li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .75rem;
    color: var(--gold);
}

/* Formato sin fotos: tarjetas numeradas */
.extra-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
}
.extra-cards .extra-block,
.extra-cards .extra-block-solo {
    display: block;
    max-width: none;
    margin: 0;
    padding: 34px 32px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .25s, transform .25s;
}
.extra-cards .extra-block:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.extra-cards .extra-text h3 { font-size: 1.2rem; }
.extra-cards .extra-lead { font-size: .98rem; }

/* ---------- Ficha de curso: datos del panel ---------- */

.price-old { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.price-text strong { font-size: 1.5rem; letter-spacing: 0; }
.price-text { margin-bottom: 18px; }
.price-options { display: grid; gap: 8px; margin: 0 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .9rem; }
.price-options li { display: flex; justify-content: space-between; gap: 12px; }
.price-options span { color: var(--muted); min-width: 0; }
.price-options strong { color: var(--navy); font-family: var(--font-title); white-space: nowrap; }
.price-card .price-extra-btn { width: 100%; margin-top: 10px; }
.price-extra-bajada { margin: 6px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); text-align: center; }

.course-block .video-frame { margin-top: 8px; }
.course-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.course-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- Guía: cómo cotizar un curso ---------- */

.guide-summary-section { padding: 48px 0 56px; }
.guide-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    counter-reset: none;
}
.guide-summary li { min-width: 0; }
.guide-summary a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.25;
    transition: border-color .2s, box-shadow .2s;
}
.guide-summary a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.guide-summary span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    font-size: .85rem;
}

.guide-section { padding: 0; }
.guide-step {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 64px;
    padding: 88px 0;
}
/* Fondos alternos a todo el ancho para separar los pasos: el color se estira
   fuera del .container con box-shadow y clip-path (sin cambiar el marcado) */
.guide-step:nth-of-type(odd) {
    background: var(--bg-light);
    box-shadow: 0 0 0 100vmax var(--bg-light);
    clip-path: inset(0 -100vmax);
}
.guide-step:nth-of-type(even) {
    background: var(--white);
    box-shadow: 0 0 0 100vmax var(--white);
    clip-path: inset(0 -100vmax);
}
.guide-step:nth-of-type(odd) .guide-note { background: var(--white); }
/* alterna: texto a la izquierda y a la derecha */
.guide-step:nth-of-type(even) .guide-text { order: 2; }
.guide-step-narrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

.guide-text { min-width: 0; }
.guide-num {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--gold-light);
    font-family: var(--font-title);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.guide-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin-bottom: 14px; }
.guide-text > p { color: var(--muted); }
.guide-text .check-list { margin: 6px 0 4px; }
.guide-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    background: var(--bg-light);
    color: var(--text) !important;
    font-size: .92rem;
}
.guide-note i { color: var(--gold); margin-top: 4px; }

/* Captura con marco de ventana */
.guide-shot { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 22px 50px rgba(7, 24, 47, .12); }
.guide-shot img { display: block; width: 100%; height: auto; }
.shot-frame {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-light);
}
.shot-frame span { width: 10px; height: 10px; border-radius: 50%; background: #D6DDE6; }
.shot-frame span:first-child { background: #E8A6A0; }
.shot-frame span:nth-child(2) { background: #EED18A; }
.shot-frame span:nth-child(3) { background: #A9D6A8; }
.shot-frame em { margin-left: 8px; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--muted); }
.guide-shot-small { max-width: 380px; justify-self: center; width: 100%; }

.guide-shots-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 20px; min-width: 0; }
.guide-shots-pair .guide-shot-small { max-width: none; }

/* Cierre de la guía: ayuda por WhatsApp */
.cta-help {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 720px;
    margin: 44px auto 0;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    text-align: left;
}
.cta-help-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 211, 102, .15);
    color: #25D366;
    font-size: 1.5rem;
}
.cta-help-text { flex: 1; min-width: 0; line-height: 1.45; }
.cta-help-text strong { display: block; color: var(--white); font-family: var(--font-title); font-size: 1rem; }
.cta-help-text span { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.btn-wsp { flex-shrink: 0; background: #15803D; color: var(--white); } /* #25D366 con texto blanco no llega a contraste AA */
.btn-wsp:hover { background: #116932; color: var(--white); }

/* ---------- Certificaciones ---------- */

.cert-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}
.cert-facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cert-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    background: var(--white);
}
.cert-facts i { flex-shrink: 0; color: var(--blue); font-size: 1.35rem; }
.cert-facts strong { display: block; font-family: var(--font-title); font-size: .95rem; color: var(--navy); line-height: 1.3; }
.cert-facts span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.cert-grid-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.cert-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.cert-media {
    position: relative;
    display: grid;
    place-items: center;
    height: 240px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}
.cert-media img { max-width: 100%; max-height: 192px; width: auto; height: auto; object-fit: contain; }
.cert-media-doc { background: var(--bg-light); }
.cert-media-doc > img:first-child { max-height: 200px; border-radius: 6px; box-shadow: 0 10px 26px rgba(7, 24, 47, .16); }
.cert-seal { position: absolute; right: 20px; bottom: 16px; width: 72px !important; height: 72px !important; border-radius: 50%; box-shadow: 0 6px 16px rgba(7, 24, 47, .2); }

.cert-body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 32px; }
.cert-tag { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.cert-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); font-weight: 800; margin-bottom: 10px; }
.cert-body > p { color: var(--muted); }
.cert-data { display: grid; gap: 0; margin: 6px 0 26px; border-top: 1px solid var(--line); }
.cert-data div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-data dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.cert-data dd { margin: 0; color: var(--navy); font-weight: 500; font-size: .92rem; }
.cert-body .btn { margin-top: auto; align-self: flex-start; }

.cert-areas {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    counter-reset: area;
}
.cert-areas li {
    position: relative;
    min-width: 0;
    padding: 56px 20px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    counter-increment: area;
}
.cert-areas li::before {
    content: counter(area, decimal-leading-zero);
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gold);
}
.cert-areas h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cert-areas p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

.cert-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1080px; margin: 0 auto; }
.cert-benefit { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cert-benefit h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; }
.cert-benefit h3 i { color: var(--gold); }
.cert-benefit .check-list li { color: var(--muted); }
.cert-benefit .check-list strong { color: var(--navy); }

/* ---------- Nosotros ---------- */

.nos-highlights { display: grid; gap: 16px; }
.nos-highlights li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.nos-highlights .ci-icon { background: var(--bg-light); }
.nos-highlights strong { display: block; margin-bottom: 4px; font-family: var(--font-title); color: var(--navy); }
.nos-highlights span { font-size: .92rem; color: var(--muted); line-height: 1.55; }

.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1080px; margin: 0 auto; }
.mv-card {
    position: relative;
    min-width: 0;
    padding: 40px 36px;
    border-radius: var(--radius);
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    overflow: hidden;
}
.mv-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid rgba(217, 169, 40, .35);
}
.mv-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: var(--gold);
    font-size: 1.3rem;
}
.mv-card h2 { color: var(--white); font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.mv-card p { margin: 0; line-height: 1.7; }

.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.values-grid li {
    min-width: 0;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.values-grid li:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.values-grid i { display: block; margin-bottom: 14px; color: var(--gold); font-size: 1.4rem; }
.values-grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.values-grid p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

.nos-cert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 44px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
}
.nos-cert-logos { display: flex; align-items: center; gap: 20px; }
.nos-cert-logos img:first-child { width: 96px; height: 96px; border-radius: 50%; }
.nos-cert-logos img:last-child { width: 200px; height: auto; }
.nos-cert-text h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; margin-bottom: 10px; }
.nos-cert-text p { color: var(--muted); }

/* ---------- Blog: lista ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-img { display: block; overflow: hidden; }
.blog-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-img-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.blog-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.blog-meta i { color: var(--gold); margin-right: 4px; }
.blog-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--blue);
    font-family: var(--font-title);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.blog-body h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.blog-body h3 a { color: var(--navy); }
.blog-body h3 a:hover { color: var(--blue); }
.blog-excerpt { color: var(--muted); font-size: .94rem; margin-bottom: 18px; }
.blog-body .btn-ghost { margin-top: auto; align-self: flex-start; }

/* El primer artículo, destacado a lo ancho */
/* Home: si hay menos de 3 artículos, las tarjetas se centran sin estirarse de más */
.blog-grid--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.blog-grid--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.blog-card-featured { grid-column: 1 / -1; flex-direction: row; }
.blog-card-featured .blog-img { flex: 0 0 56%; }
.blog-card-featured .blog-img img,
.blog-card-featured .blog-img-empty { height: 100%; min-height: 340px; aspect-ratio: auto; }
.blog-card-featured .blog-body { justify-content: center; padding: 44px 48px; }
.blog-card-featured h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.blog-card-featured .blog-excerpt { font-size: 1.02rem; }

/* ---------- Blog: detalle ---------- */

.post-hero { padding: 56px 0 64px; }
.post-hero-text { max-width: 820px; } /* alineado con la columna del artículo (a la izquierda) */
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.post-date { margin: 18px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.post-date i { color: var(--gold); margin-right: 6px; }

.post { padding-top: 56px; }
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: start;
}
.post-main { min-width: 0; }

/* Lateral: pide orientación (formulario + WhatsApp) */
/* Sigue al lector al bajar y al subir. Si la pantalla es más baja que la tarjeta,
   main.js baja el top (--aside-top) para que la tarjeta quede entera a la vista. */
.post-aside { position: sticky; top: var(--aside-top, calc(var(--header-h) + 24px)); min-width: 0; }
.orienta-card {
    padding: 26px 24px 24px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.orienta-card .eyebrow { margin-bottom: 10px; }
.orienta-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.orienta-lead { font-size: .9rem; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.orienta-form { gap: 10px; }
.orienta-form input, .orienta-form select, .orienta-form textarea { padding: 11px 14px; font-size: .95rem; }
.orienta-form textarea { min-height: 64px; }
.orienta-form .field { gap: 6px; }
.orienta-form label { font-size: .85rem; }
.orienta-form .campos-motivo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.orienta-form .form-legal { margin: -4px 0 0; font-size: .75rem; }
/* Campos propios del motivo en el lateral: como los fijos, sin etiqueta visible */
.orienta-form .campos-motivo label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.orienta-form .consulta-campo-ayuda { display: none; }
.post-aside.is-compacto .orienta-card .eyebrow,
.post-aside.is-compacto .orienta-lead,
.post-aside.is-compacto .form-legal { display: none; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.orienta-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.orienta-sep::before, .orienta-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.post-cover { margin: 0 0 40px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }

.post-body { font-size: 1.06rem; line-height: 1.8; }
.post-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; margin: 40px 0 14px; }
.post-body h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.post-body img { margin: 24px 0; }
.post-body blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--bg-light); font-style: italic; }

.post-features { margin: 32px 0 0; padding: 24px; border-radius: 14px; background: var(--bg-light); }
.post-video { margin-top: 36px; }

.post-block { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.post-block h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); font-weight: 800; margin-bottom: 18px; }

.post-extra { display: grid; gap: 32px; }
.post-extra-item img, .post-extra-item video { width: 100%; border-radius: 14px; margin-bottom: 16px; }
.post-extra-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }

.post-files { display: grid; gap: 12px; }
.post-files a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy);
    transition: border-color .2s, background-color .2s;
}
.post-files a:hover { border-color: var(--gold); background: var(--bg-light); }
.post-files .ci-icon { background: var(--bg-light); }
.post-files span:not(.ci-icon) { flex: 1; min-width: 0; }
.post-files strong { display: block; font-family: var(--font-title); }
.post-files small { display: block; color: var(--muted); }
.post-files-dl { color: var(--blue); }

.post-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-quote { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.post-quote > p { color: var(--text); }
.post-stars { margin: 0 0 8px !important; color: var(--gold) !important; font-size: .85rem; }
.post-quote footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.post-quote footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-quote footer strong { display: block; font-family: var(--font-title); font-size: .92rem; color: var(--navy); }
.post-quote footer small { display: block; font-size: .8rem; color: var(--muted); }

.post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li { padding: 6px 12px; border-radius: 999px; background: var(--bg-light); color: var(--blue); font-size: .8rem; font-weight: 600; }
.post-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.post-share > span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.post-share a, .post-copy {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.post-share a:hover, .post-copy:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.post-copy.is-copied { background: #15803D; border-color: #15803D; color: var(--white); }
.post-back { margin-top: 28px; }
.post-back i { margin-right: 6px; margin-left: 0; }

/* ---------- Agenda tu visita ---------- */

/* Home: bloque que lleva a la página de visita */
.visita-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.visita-home-media { position: relative; min-width: 0; }
.visita-home-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.visita-home-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -14px;
    top: -14px;
    width: 45%;
    height: 45%;
    border-left: 3px solid var(--gold);
    border-top: 3px solid var(--gold);
    border-radius: 22px 0 0 0;
}
.visita-home-media { z-index: 0; }
.visita-home-media .ben-hero-badge { left: auto; right: -18px; }
.visita-home-text { min-width: 0; }
.visita-home-text h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.visita-home-text h2 .hero-hl { display: inline; }
.visita-home-text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.visita-home-lista { margin-bottom: 30px; }
.visita-home-lista li { font-weight: 500; color: var(--navy); }
.visita-home .btn i { margin: 0 8px 0 0; }

.visita-pills { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.visita-pills i { color: var(--gold); margin-right: 6px; }

.visita-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.visita-info { min-width: 0; }
.visita-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.visita-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }
.visita-benef { display: grid; gap: 22px; }
.visita-benef li { display: flex; gap: 16px; }
.visita-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--blue);
    font-size: 1.15rem;
}
.visita-benef h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.visita-benef p { margin: 0; font-size: .94rem; color: var(--muted); }
.visita-asesor {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding: 20px 22px;
    border-left: 4px solid var(--gold);
    border-radius: 0 14px 14px 0;
    background: var(--bg-light);
}
.visita-asesor-foto { flex-shrink: 0; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.3rem; }
.visita-asesor p { margin: 0; font-style: italic; color: var(--navy); }

.visita-form-box {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    min-width: 0;
    padding: 36px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.visita-form-box h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.visita-form-box .form-note { margin-bottom: 24px; }
.visita-form-box .contact-form { gap: 16px; }
.visita-form-box textarea { min-height: 90px; }
.visita-form-box select {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text);
    font: inherit;
}

.visita-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.visita-areas a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.visita-areas a:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.visita-areas i { margin-bottom: 8px; font-size: 1.5rem; color: var(--blue); }
.visita-areas strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--navy); }
.visita-areas span { font-size: .9rem; }

/* ---------- Beneficios ---------- */

/* Sello sobre la foto de la cabecera */
.ben-hero-badge {
    position: absolute;
    left: -18px;
    bottom: 28px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--white);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.3;
    box-shadow: 0 16px 34px rgba(7, 24, 47, .25);
}
.ben-hero-badge strong { display: block; font-family: var(--font-title); font-size: 1.45rem; font-weight: 800; color: var(--blue); }

.ben-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.ben-card {
    min-width: 0;
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .2s, box-shadow .2s;
}
.ben-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ben-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ben-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.ben-num {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-title);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
}
.ben-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--blue);
    font-size: 1.25rem;
}
.ben-card-destacada { border-color: var(--navy); background: var(--navy); }
.ben-card-destacada h3 { color: var(--white); }
.ben-card-destacada p { color: rgba(255, 255, 255, .75); }
.ben-card-destacada .ben-num { color: var(--gold-light, #F3D66B); }

/* Simulador */
.sim {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}
.sim-ficha { min-width: 0; padding: 40px; }
.sim-label { display: block; margin-bottom: 8px; font-family: var(--font-title); font-weight: 700; color: var(--navy); }
.sim-select { position: relative; }
.sim-select select {
    width: 100%;
    padding: 15px 44px 15px 16px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--navy);
    font: inherit;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}
.sim-select select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.sim-select i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.sim-datos { display: grid; gap: 0; margin: 26px 0 0; }
.sim-datos > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.sim-datos dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.sim-datos dt i { width: 18px; color: var(--gold); margin-right: 4px; }
.sim-datos dd { margin: 0; font-weight: 600; color: var(--navy); }
.sim-nota { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }

.sim-total {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
}
.sim-total-tag { margin: 0 0 18px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sim-desglose { margin: 0; }
.sim-desglose > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sim-desglose dd { margin: 0; font-weight: 600; color: var(--white); white-space: nowrap; }
.sim-cobertura dd { color: #86EFAC; }
.sim-pagas { margin: 26px 0 4px; font-size: .9rem; }
.sim-monto { margin: 0 0 6px; font-family: var(--font-title); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--white); }
.sim-monto small { display: block; margin-top: 8px; font-family: var(--font-text); font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .7); }
.sim-sin { margin: 10px 0 24px; font-size: .85rem; }
.sim-total .btn { margin-top: auto; }
.sim-programa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--white); }
.sim-programa:hover { color: var(--gold); }

/* Qué incluye */
.ben-incluye { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: center; }
.ben-incluye h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.ben-incluye-lead { color: var(--muted); margin-bottom: 26px; }
.ben-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.ben-checks li { font-weight: 500; color: var(--navy); }

/* Transparencia */
.ben-transparencia {
    display: flex;
    gap: 22px;
    padding: 32px 36px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--bg-light);
}
.ben-transparencia-icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--blue); font-size: 1.3rem; }
.ben-transparencia h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.ben-transparencia p { margin: 0; font-size: .95rem; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .visita-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ben-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ben-card-destacada { grid-column: 1 / -1; }
    .ben-incluye { gap: 40px; }
    .main-nav a { padding: 8px 10px; }
    .course-grid, .course-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-grid--1 { grid-template-columns: minmax(0, 1fr); }
    .guide-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cert-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cert-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .course-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-grid-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
}

@media (max-width: 960px) {
    .visita-home { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .visita-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .visita-form-box { position: static; }
    .ben-home { grid-template-columns: minmax(0, 1fr); padding: 44px 36px 32px; }
    .sim { grid-template-columns: minmax(0, 1fr); }
    .ben-incluye { grid-template-columns: minmax(0, 1fr); }
    :root { --header-h: 68px; }

    /* Blog detalle: el lateral de orientación baja bajo el artículo */
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .post-aside { position: static; max-width: 560px; }

    /* backdrop-filter convierte al header en contenedor de los position:fixed y recorta el menú */
    .site-header { backdrop-filter: none; background: var(--white); }

    .brand img { height: 40px; }

    .nav-toggle { display: flex; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        padding: 24px var(--gutter) 32px;
        background: var(--white);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav .nav-list > li { border-bottom: 1px solid var(--line); }
    .main-nav a { padding: 16px 4px; font-size: 1.05rem; }
    /* Celular: la barra dorada pasa al costado izquierdo */
    .main-nav .nav-list > li > a.is-active::after { left: -16px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
    .main-nav .has-sub { flex-wrap: wrap; }
    .main-nav .has-sub > a { flex: 1; }
    .sub-toggle { width: 44px; height: 44px; font-size: .8rem; }
    .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 14px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
    .sub-menu::before { display: none; }
    .has-sub:hover > .sub-menu,
    .has-sub:focus-within > .sub-menu { display: none; }
    .has-sub.is-open > .sub-menu { display: block; }
    .sub-menu a { padding: 12px 4px; font-size: .98rem; white-space: normal; color: var(--muted); }
    .main-nav .nav-cta-mobile { display: flex; width: 100%; margin-top: 28px; padding: 17px 22px; color: var(--navy); border-radius: 10px; font-size: .95rem; }

    .hero-slide { min-height: 560px; padding: 56px 0 150px; }
    .hero-slide::after { background: linear-gradient(0deg, rgba(7, 24, 47, .95) 0%, rgba(7, 24, 47, .78) 55%, rgba(7, 24, 47, .5) 100%); }
    .hero-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
    .hero-controls { align-self: stretch; justify-content: space-between; }

    .section, .cta-final { padding: 72px 0; }
    .section-tight { padding-top: 0; }
    .section-light + .section-tight { padding-top: 72px; }
    .section-head { margin-bottom: 40px; }
    .section-foot { margin-top: 40px; }

    .steps { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }

    .benefit { flex-direction: column; align-items: flex-start; padding: 36px 32px; gap: 28px; }

    .page-hero { padding: 48px 0 56px; }
    .page-hero-art { width: 160px; height: 160px; margin-right: 8px; }
    .page-hero-art span { width: 96px; height: 96px; font-size: 2.2rem; }
    .page-hero-art span::after { right: 22px; top: 8px; }
    .list-toolbar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .help-box { flex-direction: column; align-items: flex-start; padding: 36px 32px; gap: 24px; }
    .help-actions { align-items: flex-start; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form-box, .contact-info { padding: 36px 32px; }
    .location { grid-template-columns: 1fr; }
    .location-info { padding: 36px 32px; }
    .location-map { min-height: 320px; }

    .course-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .course-hero-media img { aspect-ratio: 16 / 10; }
    .course-hero-media::after { right: -8px; bottom: -8px; }
    .course-section { padding-top: 48px; }
    .course-layout { grid-template-columns: 1fr; gap: 48px; }
    .course-aside { position: static; order: -1; }
    .modules { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .guide-step, .guide-step-narrow { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
    .guide-step:nth-of-type(even) .guide-text { order: 0; }
    .cert-grid, .cert-benefits { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .blog-card-featured { flex-direction: column; }
    .blog-card-featured .blog-img { flex: none; }
    .blog-card-featured .blog-img img, .blog-card-featured .blog-img-empty { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
    .blog-card-featured .blog-body { padding: 30px 28px; }
    .nos-cert { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
    .extra-block { grid-template-columns: 1fr; gap: 24px; }
    .extra-block:nth-child(even) .extra-media { order: 0; }
    .extra-blocks { gap: 56px; }
    .extra-cards { gap: 16px; }
    .extra-media::after { right: -8px; bottom: -8px; }
    .extra-block:nth-child(even) .extra-media::after { left: -8px; }
    .extra-intro { margin: -12px auto 40px; }
    .extra-cards .extra-block { padding: 28px 22px; }
    .cat-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .visita-home-media .ben-hero-badge { right: 12px; }
    .visita-home .btn-row .btn { width: 100%; }
    .visita-form-box { padding: 26px 20px; }
    .visita-areas { grid-template-columns: minmax(0, 1fr); }
    .ben-home { padding: 34px 22px 26px; }
    .ben-home .btn-row .btn { width: 100%; }
    .ben-home-stats li { padding: 14px 16px; gap: 12px; }
    .ben-home-stats strong { flex-basis: 104px; font-size: 1.5rem; }
    .ben-hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
    .ben-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ben-card { padding: 22px 18px; }
    .sim-ficha, .sim-total { padding: 28px 20px; }
    .sim-datos > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ben-checks { grid-template-columns: minmax(0, 1fr); }
    .ben-transparencia { flex-direction: column; padding: 26px 22px; }
    :root { --gutter: 16px; }

    body { font-size: 15.5px; }

    .section, .cta-final { padding: 56px 0; }
    .section-tight { padding-top: 0; }
    .section-light + .section-tight { padding-top: 56px; }

    .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
    .hero-lead { font-size: 1.02rem; margin-bottom: 26px; }
    .hero-slide { min-height: 600px; padding: 44px 0 170px; }
    .hero-points { gap: 6px 18px; font-size: .82rem; }
    .hero-arrow { width: 40px; height: 40px; }

    .btn-row { flex-direction: column; }
    .btn-row .btn { width: 100%; }
    .btn { white-space: normal; }
    .btn-lg { padding: 17px 22px; }

    /* Cursos: carrusel horizontal con snap */
    .course-grid {
        display: flex;
        gap: 14px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .course-grid::-webkit-scrollbar { display: none; }
    .course-card { flex: 0 0 82%; scroll-snap-align: start; }
    .course-grid--1 .course-card { flex: 0 0 100%; flex-direction: column; }
    .course-grid--1 .course-img img { min-height: 0; aspect-ratio: 4 / 3; }
    .course-grid--1 .course-body { padding: 24px 22px 26px; }
    .course-card:hover { transform: none; }

    /* En el listado las tarjetas van una debajo de otra, sin carrusel */
    .course-grid-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; overflow: visible; }
    .course-grid-list .course-card { flex: none; }
    .page-hero { padding: 32px 0 44px; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .page-hero-art { display: none; }
    .breadcrumb { margin-bottom: 20px; }
    .section-list { padding-top: 36px; }
    .filter-chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
    .filter-chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .help-box { padding: 30px 22px; }
    .help-actions, .help-actions .btn-navy { width: 100%; }
    .contact-form-box, .contact-info { padding: 28px 20px; }
    .field-row { grid-template-columns: 1fr; }
    .consulta-campos-motivo, .campos-motivo { grid-template-columns: 1fr; }
    .contact-form .btn { justify-self: stretch; }

    .float-whatsapp { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
    .location-info { padding: 28px 20px; }
    .location-info .btn { width: 100%; }
    .location-map { min-height: 260px; }

    .course-facts { gap: 8px; margin-top: 24px; }
    .course-facts li { padding: 10px 12px; font-size: .85rem; }
    .course-block { padding-bottom: 36px; margin-bottom: 36px; }
    .method-grid { grid-template-columns: 1fr; }
    .cat-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-gallery figcaption { font-size: .78rem; }
    .feature-list, .about-grid-solo .feature-list { grid-template-columns: 1fr; }
    .guide-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .guide-summary a { padding: 12px; font-size: .8rem; }
    .guide-shots-pair { grid-template-columns: 1fr; }
    .cert-facts, .cert-areas { grid-template-columns: 1fr; }
    .cert-data div { grid-template-columns: 1fr; gap: 2px; }
    .cert-body, .cert-benefit { padding: 24px 20px; }
    .cert-media { height: 200px; }
    .values-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .post-quotes { grid-template-columns: 1fr; }
    .post-body { font-size: 1rem; }
    .post-block { margin-top: 40px; padding-top: 36px; }
    .post-share { margin-left: 0; }
    .blog-body, .blog-card-featured .blog-body { padding: 22px 20px 24px; }
    .mv-card { padding: 30px 24px; }
    .nos-cert { padding: 26px 20px; }
    .nos-cert-logos img:last-child { width: 150px; }
    .cta-help { flex-direction: column; text-align: center; padding: 22px 18px; }
    .cta-help .btn-wsp { width: 100%; }
    .guide-summary-section { padding-bottom: 40px; }
    .price-card { padding: 26px 22px; }
    .modules li { padding: 18px 16px 18px 56px; }
    .modules li::before { left: 16px; top: 18px; }


    .section-foot .btn { width: 100%; }

    .why-grid { grid-template-columns: 1fr; gap: 36px; }

    .benefit { padding: 30px 22px; }
    .benefit .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; padding: 60px 0 44px; }
    .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
    .footer-links a { font-size: .9rem; }
    .footer-title { margin-bottom: 16px; }
    .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 18px; padding-bottom: 96px; }
}
