/* ============================================================
   CESEA Formación · B2C · Estética Apple sobre blanco
   Layout tipo Netflix (rails horizontales) + lenguaje visual Apple.
   Paleta de marca (capturas) como acento por categoría.
   Base de diseño: ui-ux-pro-max → "Minimalism & Swiss" refinado a Apple.
   Contraste verificado WCAG AA (revisión multi-agente).
   ============================================================ */

/* ---------- Tipografía de marca · Web Formación (Macaw destacados + Roboto cuerpo) ---------- */
@font-face { font-family: 'Macaw'; src: url('../assets/fonts/macaw-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Macaw'; src: url('../assets/fonts/macaw-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Macaw'; src: url('../assets/fonts/macaw-bold.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 6px; }

/* ---------- Tokens ---------- */
:root {
  /* Tipografía de marca Web Formación: Macaw (destacados/titulares) + Roboto (cuerpo) */
  --display: "Macaw", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Neutros */
  --bg: #faf6f0;            /* crema cálido (pastel) */
  --band: #ffffff;          /* superficie elevada / bandas blancas sobre crema */
  --band-2: #f3ece3;        /* crema un punto más profundo (footer) */
  --ink: #1d1d1f;           /* texto principal Apple */
  --ink-2: #424245;
  --gray: #6e6e73;          /* texto secundario */
  --gray-3: #6e6e73;        /* a11y: ≥4.5:1 sobre blanco y banda */
  --line: #e6e6ea;

  /* Marca CESEA */
  --brand: #f47809;         /* naranja vivo: gradientes, sombras, acentos grandes */
  --brand-2: #fcad00;       /* ámbar: gradiente / estrellas */
  --brand-ink: #b85600;     /* naranja de marca como TEXTO/UI sobre claro (AA ≥4.5:1) */
  --grad: linear-gradient(135deg, #fcad00 0%, #f47809 100%);
  --green: #1aa251;         /* éxito: fondo sólido (con texto blanco se oscurece aparte) */
  --green-ink: #0d6b34;     /* éxito como TEXTO sobre claro/blanco (AA) */

  /* Forma y profundidad (Apple: redondeado + sombra suave) */
  --r-card: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 980px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.08);
  --sh: 0 4px 24px rgba(0,0,0,.07);
  --sh-hover: 0 12px 32px rgba(0,0,0,.12);

  /* Ritmo */
  --pad-x: clamp(20px, 5vw, 72px);
  --nav-h: 56px;
  --maxw: 1320px;
}

/* ---------- Acento por categoría (cat / soft pastel / ink texto-safe) ---------- */
.g-medica        { --cat: #35a9cd; --cat-soft: #e7f4f9; --cat-ink: #1c6c84; }
.g-movilizaciones{ --cat: #f47809; --cat-soft: #fdeede; --cat-ink: #9c4900; }
.g-bienestar     { --cat: #c675ae; --cat-soft: #f6edf3; --cat-ink: #8e5379; }
.g-acp           { --cat: #e73d64; --cat-soft: #fce9ee; --cat-ink: #b5274a; }
.g-liderazgo     { --cat: #838ebd; --cat-soft: #eef0f7; --cat-ink: #525d8f; }
.g-nutricion     { --cat: #fcad00; --cat-soft: #fff4d9; --cat-ink: #8a6000; }
.g-comunicacion  { --cat: #e10c11; --cat-soft: #fde8e8; --cat-ink: #b00b0f; }
.g-domicilio     { --cat: #1ba391; --cat-soft: #e3f5f1; --cat-ink: #0e6256; }
.g-digital       { --cat: #5b6cc4; --cat-soft: #ebedf8; --cat-ink: #3f4e9c; }
/* Packs / programas (rotan los hues de marca) */
.pg-1 { --cat: #f47809; --cat-soft: #fdeede; --cat-ink: #9c4900; }
.pg-2 { --cat: #35a9cd; --cat-soft: #e7f4f9; --cat-ink: #1c6c84; }
.pg-3 { --cat: #c675ae; --cat-soft: #f6edf3; --cat-ink: #8e5379; }
.pg-4 { --cat: #e73d64; --cat-soft: #fce9ee; --cat-ink: #b5274a; }
.pg-5 { --cat: #1ba391; --cat-soft: #e3f5f1; --cat-ink: #0e6256; }
.pg-6 { --cat: #838ebd; --cat-soft: #eef0f7; --cat-ink: #525d8f; }
.pg-7 { --cat: #5b6cc4; --cat-soft: #ebedf8; --cat-ink: #3f4e9c; }
.pg-8 { --cat: #fcad00; --cat-soft: #fff4d9; --cat-ink: #8a6000; }
.pg-9 { --cat: #e10c11; --cat-soft: #fde8e8; --cat-ink: #b00b0f; }

/* ---------- Base ---------- */
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.022em; line-height: 1.06; font-weight: 700; }
strong { font-weight: 600; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.green-text { color: var(--green-ink); font-weight: 700; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Secciones / contenedores */
.section { padding: clamp(48px, 7vw, 96px) var(--pad-x); }
.section-title { font-size: clamp(28px, 4vw, 46px); text-align: center; }
.section-sub { text-align: center; color: var(--gray); max-width: 640px; margin: 16px auto 0; font-size: clamp(16px,1.4vw,19px); }

/* ---------- Botones (pills Apple) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 17px;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--band); color: var(--ink);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap; min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-ink); color: #fff; box-shadow: 0 6px 18px rgba(244,120,9,.28); }
.btn-primary:hover { background: #a64f00; box-shadow: 0 10px 26px rgba(244,120,9,.36); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.09); }
.btn-sm { font-size: 15px; padding: 9px 18px; min-height: 44px; }
.btn-lg { font-size: 19px; padding: 15px 30px; min-height: 52px; }

/* ---------- Navbar (frosted glass) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 20px; flex-wrap: nowrap;
  height: calc(var(--nav-h) + 8px); padding: 0 var(--pad-x);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.nav.solid { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo-img { height: 38px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 16px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--brand-ink); }
.nav-ext { display: inline-flex; align-items: center; gap: 3px; }
.ext-arrow { font-size: 12px; color: var(--gray-3); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* Selector de idioma */
.nav-lang { position: relative; }
.nav-lang-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-pill); min-height: 40px; }
.nav-lang-btn:hover { color: var(--brand-ink); background: rgba(0,0,0,.04); }
.nav-lang-chev { transition: transform .2s; }
.nav-lang-btn[aria-expanded="true"] .nav-lang-chev { transform: rotate(180deg); }
.nav-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 152px; padding: 6px; list-style: none;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh);
}
.nav-lang-menu[hidden] { display: none; }
.nav-lang-menu button { display: block; width: 100%; text-align: left; font-size: 14.5px; color: var(--ink-2); padding: 9px 12px; border-radius: 9px; min-height: 40px; }
.nav-lang-menu button:hover { background: #f0ece5; color: var(--ink); }
.nav-lang-menu button.active { color: var(--brand-ink); font-weight: 700; }

/* Hamburguesa (móvil/tablet) */
.nav-toggle { display: none; flex: 0 0 auto; width: 44px; height: 44px; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px var(--pad-x) 22px;
    background: #fff; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line); box-shadow: var(--sh);
    max-height: calc(100vh - var(--nav-h) - 8px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-ext { justify-content: space-between; }
  .nav-actions { width: 100%; justify-content: space-between; margin-top: 12px; }
  .nav-lang-menu { right: auto; left: 0; bottom: calc(100% + 8px); top: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 64px) var(--pad-x) 72px;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(72% 60% at 50% 0%, rgba(244,120,9,.07), transparent 72%),
    var(--bg);
}
.hero-isotipo {
  position: absolute; right: -60px; top: 8%; width: min(46vw, 520px);
  opacity: .05; pointer-events: none; filter: grayscale(1);
}

/* ---- Hero con fotografía (billboard cinematográfico) ---- */
.hero.has-photo {
  color: #fff;
  background:
    /* scrim de legibilidad bajo el texto centrado */
    radial-gradient(120% 92% at 50% 46%, rgba(0,0,0,.58), rgba(0,0,0,.22) 56%, transparent 82%),
    /* sombra superior bajo la barra de navegación */
    linear-gradient(to bottom, rgba(0,0,0,.42), transparent 28%),
    /* fundido inferior hacia la crema para enlazar con la página */
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%),
    url('../assets/hero-b2c.jpg') center / cover no-repeat,
    var(--bg);
}
.hero.has-photo .hero-isotipo { display: none; }
.hero.has-photo .hero-pill {
  background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero.has-photo .hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero.has-photo .grad-text {
  background: linear-gradient(135deg, #ffd05a 0%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero.has-photo .hero-sub { color: rgba(255,255,255,.94); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.hero.has-photo .hero-meta { color: rgba(255,255,255,.88); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero.has-photo .hero-meta .rec { color: #9be8b9; }
.hero.has-photo .btn-ghost {
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero.has-photo .btn-ghost:hover { background: rgba(255,255,255,.28); }
.hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.hero-pill {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--cat-ink, var(--brand-ink)); background: #fff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 26px; box-shadow: var(--sh-sm);
}
.hero-title { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -.025em; }
.hero-sub { margin: 22px auto 0; max-width: 620px; font-size: clamp(18px, 2vw, 23px); color: var(--gray); line-height: 1.45; }
.hero-meta { margin: 22px 0 34px; color: var(--gray-3); font-size: 15px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero-meta .rec { color: var(--green-ink); font-weight: 600; }
.hero-meta .dot { opacity: .5; }
.hero-stat { display: inline-flex; align-items: baseline; gap: 6px; }
a.hero-stat { text-decoration: none; color: inherit; transition: opacity .15s ease; }
a.hero-stat:hover { text-decoration: underline; text-underline-offset: 3px; opacity: .92; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.hero.has-photo .stat-num { color: #ffd05a; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fade { display: none; }

/* ---------- Bandas (sorteo / B2B) ---------- */
.raffle, .b2b { padding: 16px var(--pad-x); text-align: center; font-size: 15.5px; }
.raffle { background: linear-gradient(90deg, #fff7e6, #fff1dc); color: #6b4a00; }
.raffle strong { color: #8a5600; }
.b2b { background: var(--band); color: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b2b a { color: var(--brand-ink); font-weight: 600; }
.b2b-link { display: inline-flex; align-items: center; vertical-align: middle; text-decoration: none; transition: transform .2s ease; }
.b2b-link:hover { transform: translateY(-1px); }
.b2b-logo { height: 26px; width: auto; display: block; }

/* ---------- Rails / filas ---------- */
.row-section { padding: clamp(30px, 4vw, 52px) 0; }
.row-title { font-size: clamp(21px, 2.4vw, 30px); font-weight: 700; padding: 0 var(--pad-x); margin-bottom: 20px; }
.row-title-light { color: var(--gray-3); font-weight: 600; }
.catalog { padding-top: 8px; }
.catalog-heading { font-size: clamp(26px,3vw,38px); text-align: center; padding: clamp(40px,5vw,72px) var(--pad-x) 0; }

.carousel { position: relative; }
.scroller {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 14px var(--pad-x) 22px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: 0 0 auto; }
.scroller.dragging { cursor: grabbing; scroll-snap-type: none; }

/* Flechas estilo Apple */
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, transform .15s, background .2s;
}
.carousel:hover .car-btn { opacity: 1; }
.car-btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.car-btn.prev { left: calc(var(--pad-x) - 18px); }
.car-btn.next { right: calc(var(--pad-x) - 18px); }
@media (hover: none), (max-width: 700px) { .car-btn { display: none; } }

/* ---------- "Para empezar hoy": 6 pósters en rejilla 3×2 ---------- */
.pe-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 210px));
  justify-content: center; gap: 22px; padding: 14px var(--pad-x) 8px;
}
@media (max-width: 760px) { .pe-grid { grid-template-columns: repeat(2, minmax(0, 200px)); gap: 16px; } }

/* ---------- Packs / Programas: 2 arriba + 3 abajo ---------- */
.pack-grid { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px var(--pad-x) 0; }
.pack-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; width: 100%; }
.pack-grid .pack-card { width: 360px; max-width: 100%; }

/* ---------- Catálogo: 2 niveles (Servicio › temática) ---------- */
.servicio { padding: clamp(28px, 4vw, 52px) 0 6px; }
.servicio + .servicio { border-top: 1px solid var(--line); }
.servicio-title {
  font-size: clamp(14px, 1.5vw, 18px); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-ink);
  padding: 0 var(--pad-x); margin-bottom: 4px;
}
.tematica { padding: 14px 0 24px; }
.tematica .row-title { font-size: clamp(20px, 2.2vw, 27px); }

/* Parrilla uniforme (temáticas medianas) */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 18px; padding: 4px var(--pad-x) 0;
}
.cat-grid.few { grid-template-columns: repeat(var(--cols, 3), minmax(176px, 210px)); justify-content: start; }
.cat-grid[hidden] { display: none; }

/* Expandido denso: muchos cursos → se apiñan y empequeñecen (parrilla 2ª captura) */
.cat-grid.expanded { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 12px; }
.cat-grid.expanded .card-title { font-size: 12.5px; line-height: 1.12; -webkit-line-clamp: 3; padding: 0 9px; }
.cat-grid.expanded .card-top { padding: 9px 9px 0; }
.cat-grid.expanded .card-foot { padding: 7px 9px 9px; }
.cat-grid.expanded .card-meta, .cat-grid.expanded .card-brand { font-size: 10px; }
.cat-grid.expanded .card-badge { font-size: 9px; padding: 3px 6px; }
.cat-grid.expanded .card-hours { font-size: 10px; padding: 2px 7px; }
.cat-grid.expanded .card-icon { width: 22px; height: 22px; }

/* Collage diagonal (pocas temáticas → slices cortados en diagonal estilo banner).
   Cortes internos en diagonal; borde IZQ del primero y DCHO del último RECTOS (sin blanco). */
.collage {
  --slant: 36px;
  display: flex; margin: 6px var(--pad-x) 0; height: clamp(300px, 32vw, 400px);
  border-radius: 16px; overflow: hidden; box-shadow: var(--sh); background: var(--band);
}
.collage-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-align: left; cursor: pointer;
  margin-left: calc(var(--slant) * -1);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: flex-grow .45s cubic-bezier(.22, 1, .36, 1);
}
.collage-item:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.collage-item:last-child { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.collage-item:hover { flex-grow: 1.7; }
.collage-bg {
  position: absolute; inset: 0;
  background-color: var(--cat, #888);
  background-image: linear-gradient(165deg, var(--cat, #888), var(--cat-ink, #444));
  background-size: cover; background-position: center; transition: filter .3s ease;
}
.collage-item:hover .collage-bg { filter: brightness(1.07); }
.collage-content { position: absolute; inset: 0; }
.collage-content::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.18) 46%, transparent 72%);
}
.collage-top { position: absolute; top: 12px; left: 44px; right: 16px; z-index: 2; display: flex; align-items: flex-start; gap: 6px; }
.collage-item:first-child .collage-top { left: 16px; }
.collage-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.collage-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 16px 24px;
  color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(13px, 1.15vw, 18px); line-height: 1.14; text-shadow: 0 1px 8px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.collage-item:first-child .collage-title { padding-left: 16px; }
@media (hover: none) { .collage-item:hover { flex-grow: 1; } }   /* sin accordion en táctil */
@media (max-width: 760px) {
  /* Fallback móvil: el banner se convierte en rejilla de pósters 9:16 */
  .collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; height: auto;
    border-radius: 0; overflow: visible; box-shadow: none; background: none; }
  .collage-item { clip-path: none; margin: 0; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; box-shadow: var(--sh); }
  .collage-item:hover { flex-grow: 0; }
  .collage-top { left: 12px; right: 12px; }
  .collage-title { padding: 12px; }
}

/* Bloques de 9 al "Ver todos": EN UNA SOLA FILA con scroll lateral (rail horizontal).
   Cards reducidas manteniendo 9:16. */
.pack-groups { position: relative; }
.pack-groups[hidden] { display: none; }
.pack-groups .car-btn { opacity: 1; }   /* flechas visibles para el scroll lateral */
.course-pack {
  width: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px; box-shadow: var(--sh-sm);
}
.course-pack-grid { display: grid; grid-template-columns: repeat(3, 118px); gap: 10px; }
.pack-groups .course-pack .card { width: 118px; }   /* pequeñas y deterministas (siguen 9:16) */
@media (max-width: 520px) { .course-pack-grid { grid-template-columns: repeat(3, 96px); } .pack-groups .course-pack .card { width: 96px; } }
/* Cards pequeñas: contenido reorganizado y legible (siguen 9:16) */
.course-pack .card-top { padding: 8px 8px 0; gap: 6px; }
.course-pack .card-tl { gap: 5px; }
.course-pack .card-icon { width: 20px; height: 20px; }
.course-pack .card-badge { font-size: 8.5px; padding: 3px 6px; letter-spacing: .02em; }
.course-pack .card-hours { font-size: 9.5px; padding: 2px 7px; }
.course-pack .card-title { font-size: 12.5px; line-height: 1.16; -webkit-line-clamp: 3; padding: 0 9px; }
.course-pack .card-foot { padding: 7px 9px 9px; gap: 5px; }
.course-pack .card-meta { font-size: 9.5px; }
.course-pack .card-brand { font-size: 10px; }
@media (max-width: 520px) {
  .course-pack .card-title { font-size: 11px; padding: 0 7px; }
  .course-pack .card-meta { display: none; }
  .course-pack .card-top { padding: 7px 7px 0; }
  .course-pack .card-foot { padding: 6px 7px 8px; }
}

/* Animación de entrada al redimensionar (Ver más / Ver menos) */
@keyframes blockIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.anim-in { animation: blockIn .38s cubic-bezier(.22, 1, .36, 1) both; }
.pack-groups.anim-in .course-pack { animation: blockIn .42s cubic-bezier(.22, 1, .36, 1) both; }
.pack-groups.anim-in .scroller .course-pack:nth-child(2) { animation-delay: .07s; }
.pack-groups.anim-in .scroller .course-pack:nth-child(3) { animation-delay: .14s; }
.pack-groups.anim-in .scroller .course-pack:nth-child(n+4) { animation-delay: .2s; }
.cat-grid.anim-in .card { animation: blockIn .4s cubic-bezier(.22, 1, .36, 1) both; }
.cat-grid.anim-in .card:nth-child(2) { animation-delay: .03s; }
.cat-grid.anim-in .card:nth-child(3) { animation-delay: .06s; }
.cat-grid.anim-in .card:nth-child(4) { animation-delay: .09s; }
.cat-grid.anim-in .card:nth-child(5) { animation-delay: .12s; }
.cat-grid.anim-in .card:nth-child(6) { animation-delay: .15s; }
.cat-grid.anim-in .card:nth-child(7) { animation-delay: .18s; }
.cat-grid.anim-in .card:nth-child(8) { animation-delay: .21s; }
.cat-grid.anim-in .card:nth-child(n+9) { animation-delay: .24s; }

.cat-more {
  display: inline-block; margin: 22px var(--pad-x) 0; padding: 11px 22px;
  border-radius: var(--r-pill); background: var(--band); color: var(--ink);
  font-weight: 600; font-size: 15px; border: 1px solid var(--line); transition: background .2s;
}
.cat-more:hover { background: #f0ece5; }
/* Tile "ver más" que ocupa el hueco de la rejilla */
.cat-more-tile {
  margin: 0; padding: 10px; aspect-ratio: 9 / 16; width: 100%; border: 0;
  border-radius: 4px; color: #fff; cursor: pointer;
  background-color: var(--cat, #777);
  background-image: linear-gradient(165deg, var(--cat, #888), var(--cat-ink, #444));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; box-shadow: var(--sh);
}
.cat-more-tile:hover { transform: translateY(-4px); filter: brightness(1.07); box-shadow: var(--sh-hover); }
.cat-more-n { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cat-more-txt { font-size: 12.5px; font-weight: 600; opacity: .96; text-align: center; line-height: 1.2; }
.cat-less { display: block; margin: 18px auto 0; }

/* Icono 3D de servicio sobre la card (cuando ICONS_READY) */
.card-tl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-icon { width: 30px; height: 30px; background-size: contain; background-repeat: no-repeat; background-position: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); flex: 0 0 auto; }
/* Cuando un curso opta a 2 servicios, los iconos se muestran algo más pequeños */
.card-icon.s2 { width: 24px; height: 24px; }

/* ---------- Tiras de curso (modal de pack/programa) ---------- */
.course-strips { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.course-strip {
  display: flex; align-items: center; gap: 13px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.strip-thumb {
  width: 66px; height: 66px; flex: 0 0 66px; border-radius: 9px;
  background-color: var(--cat, #ccc);
  background-image: linear-gradient(150deg, var(--cat, #bbb), var(--cat-ink, #777));
  background-size: cover; background-position: center;
}
.strip-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.strip-title { font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.strip-meta { font-size: 12px; color: var(--gray); }

/* ---------- Tarjeta de curso = póster de cine 9:16 (esquinas sutiles) ---------- */
.card {
  position: relative; text-align: left;
  width: 200px; aspect-ratio: 9 / 16;
  display: flex; flex-direction: column;
  color: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: var(--sh);
  background-color: var(--cat, #777);
  background-image: linear-gradient(165deg, var(--cat, #888), var(--cat-ink, #444));
  background-size: cover; background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.card::after {  /* scrim para legibilidad del texto sobre la imagen */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,0) 64%);
}
.card > * { position: relative; z-index: 1; }
.card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 12px 0; gap: 8px;
}
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 8px; border-radius: var(--r-pill);
  background: var(--cat-ink, #555); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.card-badge.premium { background: var(--ink); color: #fff; }
.card-badge.price-green { background: #157a3d; color: #fff; }
.card-hours {
  font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; flex: 0 0 auto;
  background: rgba(0,0,0,.40); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.card-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  color: #fff; font-size: 16px; line-height: 1.16;
  margin-top: auto; padding: 0 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title.long { font-size: 15px; }
.card-title.xl-long { font-size: 13.5px; -webkit-line-clamp: 5; }
.card-foot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px 12px;
}
.card-pildora { font-size: 11px; font-weight: 700; color: #fff; opacity: .96; letter-spacing: .01em; }
.card-modality { font-size: 11px; color: rgba(255,255,255,.82); line-height: 1.2; }
.card-from { font-size: 13px; font-weight: 800; color: #fff; margin-top: 1px; }
.card-meta { font-size: 11.5px; color: rgba(255,255,255,.85); line-height: 1.2; }
.card-brand { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; text-transform: lowercase; opacity: .92; }
.card-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(0,0,0,.74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  padding: 10px 12px; font-size: 11.5px; color: rgba(255,255,255,.9);
  transform: translateY(101%); transition: transform .25s ease;
}
.card:hover .card-info { transform: translateY(0); }
.card-info .rec { color: #7ee0a3; font-weight: 700; }
.card-info .info-meta { color: rgba(255,255,255,.85); }
/* anchos de la card según contexto */
.scroller .card { width: 176px; }
.pe-grid .card, .cat-grid .card { width: 100%; }

/* ---------- Tipografías por categoría (estilo propio por servicio) ---------- */
/* Bienestar emocional y autocuidado → Urban doodle: Baloo Thambi 2 (título) + Belleza (meta) */
.card.g-bienestar .card-title { font-family: "Baloo Thambi 2", var(--display); font-weight: 700; letter-spacing: 0; line-height: 1.08; }
.card.g-bienestar .card-meta { font-family: "Belleza", var(--body); letter-spacing: .015em; }
/* Acompañamiento y comunicación → Surrealismo lúdico editorial: Bebas Neue (título) + Diphylleia (meta) */
.card.g-comunicacion .card-title { font-family: "Bebas Neue", var(--display); font-weight: 400; letter-spacing: .025em; line-height: 1; }
.card.g-comunicacion .card-meta { font-family: "Diphylleia", Georgia, serif; letter-spacing: .01em; }
/* pie de la tarjeta según contexto denso + tipografía por categoría */
.cat-grid.expanded .card-pildora, .cat-grid.expanded .card-modality { font-size: 10px; }
.cat-grid.expanded .card-from { font-size: 11.5px; }
.course-pack .card-pildora, .course-pack .card-modality { font-size: 9.5px; }
.course-pack .card-from { font-size: 11px; }
.card.g-bienestar .card-pildora, .card.g-bienestar .card-modality { font-family: "Belleza", var(--body); letter-spacing: .015em; }
.card.g-comunicacion .card-pildora, .card.g-comunicacion .card-modality { font-family: "Diphylleia", Georgia, serif; }

/* ---------- Top 10 ---------- */
[data-carousel="top10"] .scroller { gap: 4px; }
.top10-item { display: flex; align-items: center; }
.top10-num {
  font-family: var(--display); font-weight: 800; font-size: 132px; line-height: .8;
  letter-spacing: -.06em; color: var(--band);
  -webkit-text-stroke: 2px var(--line);
  margin-right: -26px; user-select: none;
}
.top10-item .card { box-shadow: var(--sh); }

/* ---------- Tarjeta de pack / programa ---------- */
.pack-card {
  position: relative; text-align: left;
  width: 360px; min-height: 220px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pack-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.pack-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pack-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--cat-ink, var(--brand-ink)); color: #fff;
}
.expert-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.expert-badge { background: var(--ink); color: #fff; }
.expert-new { background: var(--cat-ink, var(--brand-ink)); color: #fff; }
.pack-counts { font-size: 12.5px; color: var(--gray); white-space: nowrap; }
.pack-title { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--ink); }
.expert-perks { font-size: 13.5px; color: var(--ink-2); }
.pack-prices { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price-old { color: var(--gray-3); text-decoration: line-through; font-size: 16px; }
.price-new { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--brand-ink); letter-spacing: -.02em; }
.pct-pill { font-size: 12px; font-weight: 700; color: var(--green-ink); background: rgba(26,162,81,.14); padding: 4px 9px; border-radius: var(--r-pill); }
.pack-cta { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.expert-card { min-height: 248px; }

/* Programa Experto/a con imagen de fondo (flagship, p. ej. el de IA):
   foto a sangre + scrim doble (arriba y abajo) para mantener el texto legible. */
.expert-card.has-img {
  background-size: cover; background-position: center; border: none; color: #fff;
}
.expert-card.has-img::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-card);
  background: linear-gradient(to bottom, rgba(0,0,0,.74) 0%, rgba(0,0,0,.30) 30%, rgba(0,0,0,.34) 60%, rgba(0,0,0,.85) 100%);
}
.expert-card.has-img > * { position: relative; z-index: 1; }
.expert-card.has-img .pack-title { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.expert-card.has-img .expert-perks { color: rgba(255,255,255,.92); }
.expert-card.has-img .pack-counts { color: rgba(255,255,255,.88); }
.expert-card.has-img .price-new { color: #fff; }
.expert-card.has-img .pack-cta { color: #fff; }
.expert-card.has-img .expert-badge { background: rgba(255,255,255,.95); color: var(--ink); }

/* ---------- Precios configurables ---------- */
.pricing { background: var(--band); }
.tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: 16px; max-width: 1120px; margin: 40px auto 0;
}
.tier {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.tier.popular { border-color: transparent; box-shadow: 0 0 0 2px var(--brand-ink), var(--sh); }
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: var(--brand-ink); padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap;
}
.tier-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--gray); }
.tier-old { color: var(--gray-3); text-decoration: line-through; font-size: 15px; }
.tier-price { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: -.02em; }
.tier-per { font-size: 12.5px; color: var(--gray); }
.tier-pct { font-size: 12px; font-weight: 700; color: var(--green-ink); background: rgba(26,162,81,.14); padding: 4px 10px; border-radius: var(--r-pill); margin-top: 6px; }
.tier-code-note { font-size: 11.5px; color: var(--brand-ink); min-height: 16px; }
.tier .btn { margin-top: 12px; width: 100%; }

/* Caja de código */
.code-box {
  max-width: 560px; margin: 40px auto 0; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-card); padding: 26px;
}
.code-box-title { font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.code-form { display: flex; gap: 10px; }
.code-form input, .email-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.code-form input { letter-spacing: .08em; text-transform: uppercase; }
.code-form input:focus, .email-form input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(184,86,0,.16); }
.code-msg, .email-msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.code-msg.ok, .email-msg.ok { color: var(--green-ink); }
.code-msg.err, .email-msg.err { color: #c41010; }

/* ---------- ¿Por qué CESEA? ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px; max-width: var(--maxw); margin: 44px auto 0;
}
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.why-icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--band); color: var(--brand-ink); margin-bottom: 18px;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { color: var(--gray); font-size: 15px; line-height: 1.5; }

/* ---------- Certificado ---------- */
.cert { background: var(--band); }
.cert-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.cert-img-wrap { perspective: 1200px; }
.cert-img { border-radius: var(--r-md); box-shadow: 0 30px 70px rgba(0,0,0,.2); transform: rotate(-2deg); }
.cert-text .section-title { text-align: left; }
.cert-text .section-sub { text-align: left; margin: 16px 0 0; }
.check-list { margin-top: 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(26,162,81,.16); color: var(--green-ink);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 820px) { .cert-grid { grid-template-columns: 1fr; } .cert-text .section-title, .cert-text .section-sub { text-align: center; } }

/* ---------- Testimonios (bloque de texto) ---------- */
.testi-body { max-width: 760px; margin: 32px auto 0; text-align: center; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.testi-body strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-master > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.faq-master > summary::-webkit-details-marker { display: none; }
.faq-master > summary .section-title { margin: 0; }
.faq-plus-lg { font-size: 36px; }
.faq-master[open] > summary .faq-plus-lg { transform: rotate(45deg); }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 26px; font-weight: 300; color: var(--gray); transition: transform .25s ease; line-height: 1; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { padding: 0 6px 24px; color: var(--gray); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.faq-item a { color: var(--brand-ink); font-weight: 600; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(252,173,0,.10), transparent 70%), var(--bg); }
.email-form { display: flex; gap: 10px; max-width: 520px; margin: 30px auto 0; }
.final-cta .email-msg { text-align: center; }

/* ---------- Formación Abierta (áreas de conocimiento + congresos) ---------- */
.abierta { background: var(--band); }
.areas-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 38px 0 18px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.area-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--cat-soft, #fff); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .2s ease, box-shadow .2s ease; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.area-icon { width: 40px; height: 40px; flex: 0 0 40px; background-size: contain; background-repeat: no-repeat; background-position: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.area-name { font-weight: 600; font-size: 15px; color: var(--cat-ink, var(--ink)); line-height: 1.25; }
.congresos-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: var(--maxw); margin: 22px auto 0; padding: 22px 26px; background: linear-gradient(135deg, #fff7e6, #fff1dc); border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .2s ease, box-shadow .2s ease; }
.congresos-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.congresos-text { display: flex; flex-direction: column; gap: 4px; }
.congresos-title { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.congresos-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.congresos-cta { font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
@media (max-width: 600px) { .congresos-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Catálogo: billboard "isotipo central" (estilo Apple TV+) ---------- */
.catalog-billboard {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background: #14131a;
}
.cb-wall { position: absolute; inset: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; opacity: .5; }
.cb-poster {
  flex: 1 1 110px; min-height: 152px; border-radius: 6px;
  background-color: var(--cat, #555);
  background-image: linear-gradient(165deg, var(--cat, #777), var(--cat-ink, #333));
  background-size: cover; background-position: center;
}
.catalog-billboard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(58% 70% at 50% 50%, rgba(0,0,0,.36), rgba(0,0,0,.80)); }
.cb-center { position: relative; z-index: 2; text-align: center; color: #fff; }
.cb-medallion {
  display: inline-flex; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%; margin-bottom: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 60px 12px rgba(244,120,9,.45);
}
.cb-medallion img { width: 88px; height: 88px; object-fit: contain; }
.cb-title { font-size: clamp(28px, 4vw, 46px); color: #fff; }
.cb-sub { margin-top: 10px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.6vw, 19px); }

/* ---------- Equipo Formativo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: var(--maxw); margin: 44px auto 0; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 24px; text-align: center; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.team-avatar { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--band-2); color: var(--brand-ink); margin-bottom: 16px; }
.team-avatar svg { width: 44px; height: 44px; }
.team-name { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.team-role { font-size: 14px; color: var(--brand-ink); font-weight: 600; margin-top: 3px; }
.team-bio { font-size: 14px; color: var(--gray); margin-top: 10px; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--band-2); padding: 56px var(--pad-x) 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto 30px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--gray); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h3 { font-size: 13px; letter-spacing: .04em; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--gray); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-copy { text-align: center; color: var(--gray-3); font-size: 13px; border-top: 1px solid var(--line); padding-top: 24px; max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Modal (sheet Apple) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 620px;
  display: flex; flex-direction: column; max-height: 88vh;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
  animation: modalIn .28s cubic-bezier(.22,1,.36,1);
}
/* El contenido hace scroll interno → la barra de acción (sticky) queda siempre visible */
.modal-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 22px; line-height: 1; color: var(--ink); box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center;
}
.modal-close::before { content: ""; position: absolute; inset: -4px; }  /* área táctil ≥44px */
.modal-close:hover { background: #fff; }
.modal-hero {
  padding: 56px 30px 28px; position: relative;
  background: linear-gradient(155deg, var(--cat-soft, #eee), #fff 96%);
  border-bottom: 1px solid var(--line);
}
.modal-hero .pack-badge { margin-bottom: 12px; }
/* Hero del modal con imagen (cursos y Experto de IA): foto a sangre con scrim
   inferior; el badge y el título caen abajo en blanco, siempre legibles. */
.modal-hero.has-img {
  background-size: cover; background-position: center 38%;
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: none;
}
.modal-hero.has-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.34) 46%, rgba(0,0,0,.06) 78%);
}
.modal-hero.has-img > * { position: relative; z-index: 1; }
.modal-hero.has-img .modal-title { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.modal-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.modal-body { padding: 26px 30px 30px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge-row span { font-size: 12.5px; background: var(--band); color: var(--ink-2); padding: 6px 12px; border-radius: var(--r-pill); }
.badge-row .rec { background: rgba(26,162,81,.14); color: var(--green-ink); font-weight: 600; }
.modal-desc { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.modal-list-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--cat-ink, var(--brand-ink)); margin-bottom: 12px; text-transform: uppercase; }
.modal-body .check-list { margin-bottom: 26px; }
/* Temario (unidades didácticas del curso) */
.modal-temario { margin: 4px 0 26px; border-top: 1px solid var(--line); }
.temario-unit {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.unit-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cat-soft, #f2efe9); color: var(--cat-ink, #6b5a44);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.unit-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.unit-title { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.unit-hours {
  flex: none; font-size: 13px; font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 3px;
}
.unit-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-tag {
  font-size: 11.5px; line-height: 1.4; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--cat-soft, #f2efe9); color: var(--cat-ink, #5a4a36); font-weight: 500;
}
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-price { display: flex; align-items: baseline; gap: 10px; }
.modal-price .price-new { font-size: 32px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* Barra de acción fija al pie del modal (precio + Añadir/Comprar + ¿Dudas?) */
.modal-actbar {
  position: sticky; bottom: 0; z-index: 2;
  margin: 6px -30px -30px; padding: 16px 30px 18px;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px rgba(0,0,0,.06);
}
.modal-actbar .modal-footer { border-top: none; padding-top: 0; }
.modal-actbar .modal-wa { margin-top: 12px; }
@media (max-width: 600px) { .modal-actbar { margin: 6px -30px -30px; padding: 12px 30px 16px; } .modal-actbar .modal-actions { flex: 1 1 auto; } .modal-actbar .modal-actions .btn { flex: 1 1 auto; } }
.btn.is-incart { background: var(--green-ink); color: #fff; box-shadow: none; opacity: .95; cursor: default; }
.btn.is-incart:hover { transform: none; background: var(--green-ink); }
.field-check.invalid { color: #c0392b; }
.field-check.invalid input { accent-color: #c0392b; outline: 2px solid #e0584a; outline-offset: 1px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300;
  background: rgba(29,29,31,.95); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 14px 22px; border-radius: var(--r-pill); font-size: 15px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  max-width: 90vw; text-align: center;
}
.toast[hidden] { display: none; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .scroller .card { width: 150px; }
  .pack-grid .pack-card { width: 100%; }
  .top10-num { font-size: 104px; margin-right: -20px; }
  .hero { min-height: 78vh; }
  .subhero { min-height: 78vh; }
  /* Catálogo: 2 columnas (3 al expandir) en vez de 1 póster gigante por fila */
  .cat-grid, .cat-grid.few { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; justify-content: stretch; }
  .cat-grid.expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Enlace en la descripción de marca del footer ---------- */
.footer-brand p { max-width: 360px; }
.footer-brand a { color: var(--brand-ink); font-weight: 600; }
.footer-brand a:hover { text-decoration: underline; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 250;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.wa-fab:active { transform: scale(.98); }
@media (max-width: 600px) { .wa-fab { width: 52px; height: 52px; right: 14px; bottom: 16px; } }

/* ---------- Burbuja buscador flotante (sobre WhatsApp) ---------- */
.search-fab { position: fixed; right: 20px; bottom: 92px; z-index: 249; }
.search-fab-form {
  display: flex; flex-direction: row-reverse; align-items: center;
  height: 56px; border-radius: 28px; background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.search-fab:hover .search-fab-form, .search-fab:focus-within .search-fab-form {
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.24);
}
.search-fab-btn {
  flex: 0 0 56px; width: 56px; height: 56px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand, #f47809); color: #fff; border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: filter .2s ease, transform .2s ease;
}
.search-fab-btn:hover { filter: brightness(1.07); transform: scale(1.04); }
.search-fab-input {
  width: 0; opacity: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 0;
  transition: width .3s cubic-bezier(.22,1,.36,1), opacity .2s ease, padding .3s ease;
}
.search-fab:hover .search-fab-input, .search-fab:focus-within .search-fab-input {
  width: 220px; opacity: 1; padding: 0 6px 0 18px;
}
@media (max-width: 600px) {
  .search-fab { right: 14px; bottom: 76px; }
  .search-fab-btn { flex-basis: 52px; width: 52px; height: 52px; }
  .search-fab-form { height: 52px; }
  .search-fab:hover .search-fab-input, .search-fab:focus-within .search-fab-input { width: 150px; }
}

/* ---------- Popup de código de bienvenida (no modal) ---------- */
.welcome-pop {
  position: fixed; left: 20px; bottom: 24px; z-index: 260;
  width: min(340px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  padding: 22px 22px 24px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.welcome-pop.show { opacity: 1; transform: none; pointer-events: auto; }
.welcome-pop[hidden] { display: none; }
.welcome-pop-close {
  position: absolute; top: 8px; right: 10px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--gray); cursor: pointer; padding: 4px;
}
.welcome-pop-close:hover { color: var(--ink); }
.welcome-pop-title { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.welcome-pop-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 14px; }
.welcome-pop-code {
  display: inline-block; font-weight: 700; letter-spacing: .08em; color: var(--brand-ink);
  background: var(--band); border: 1px dashed var(--brand); border-radius: 10px;
  padding: 8px 14px; margin-bottom: 14px; font-size: 16px;
}
.welcome-pop-cta { display: inline-block; }
@media (max-width: 600px) { .welcome-pop { left: 12px; right: 12px; bottom: 84px; width: auto; } }

/* ---------- Subpáginas (Formación Abierta / Formatos / Equipo) ---------- */
.subpage-main { padding-top: calc(var(--nav-h) + 48px); }
.subpage-main > .section:first-child { padding-top: 8px; }

/* ---------- Cabecera tipo hero para subpáginas ----------
   MISMO cajón que el hero de la portada: 86vh a sangre (78vh en móvil),
   la foto pasa por debajo del nav fijo y lleva los 3 scrims de legibilidad. */
.subpage-main.has-subhero { padding-top: 40px; }
.subhero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 64px) var(--pad-x) 72px;
}
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 92% at 50% 46%, rgba(0,0,0,.52), rgba(0,0,0,.24) 56%, transparent 84%),
    linear-gradient(to bottom, rgba(0,0,0,.42), transparent 30%),
    linear-gradient(to bottom, transparent 64%, var(--bg) 100%),
    var(--subhero-img, none) var(--subhero-pos, center) / cover no-repeat;
}
.subhero-inner { position: relative; z-index: 1; max-width: 920px; }
.subhero-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
  padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.subhero-title { font-family: var(--display); font-size: clamp(38px, 6.5vw, 76px); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.subhero-sub { margin: 18px auto 0; max-width: 660px; font-size: clamp(16px, 1.8vw, 21px); color: rgba(255,255,255,.94); line-height: 1.45; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.subhero.abierta-hero { --subhero-img: url('../assets/abierta-cover.jpg'); --subhero-pos: center 30%; }
.subhero.proximos-hero { --subhero-img: url('../assets/proximos-bg.jpg'); --subhero-pos: center 32%; }
.subhero.formatos-hero { --subhero-img: url('../assets/formatos-bg.jpg'); }

/* ---------- Tipografía por categoría dentro de la ficha (modal) ---------- */
.modal-hero.g-bienestar .modal-title { font-family: "Baloo Thambi 2", var(--display); letter-spacing: 0; }
.modal-body.g-bienestar .modal-desc { font-family: "Belleza", var(--body); letter-spacing: .012em; font-size: 16.5px; }
.modal-body.g-bienestar .modal-list-title,
.modal-body.g-bienestar .unit-title { font-family: "Baloo Thambi 2", var(--display); }
.modal-hero.g-comunicacion .modal-title { font-family: "Bebas Neue", var(--display); letter-spacing: .02em; }
.modal-body.g-comunicacion .modal-desc { font-family: "Diphylleia", Georgia, serif; letter-spacing: .01em; }
.modal-body.g-comunicacion .modal-list-title,
.modal-body.g-comunicacion .unit-title { font-family: "Bebas Neue", var(--display); letter-spacing: .03em; }

/* ====================================================================
   CATÁLOGO · billboard clicable + overlay galería liquid glass (W1)
   ==================================================================== */
.catalog-billboard {
  border: 0; width: 100%; cursor: pointer; font: inherit; color: #fff; -webkit-appearance: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.catalog-billboard .cb-center { display: flex; flex-direction: column; align-items: center; }
.catalog-billboard:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.catalog-billboard:hover .cb-medallion { box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 0 80px 18px rgba(244,120,9,.6); }
.catalog-billboard:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cb-enter {
  display: inline-block; margin-top: 18px; font-weight: 600; color: #fff; padding: 10px 20px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); transition: background .2s;
}
.catalog-billboard:hover .cb-enter { background: rgba(255,255,255,.22); }

.catalog-overlay {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(26,24,32,.55);
  -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
  animation: coIn .32s cubic-bezier(.22,1,.36,1);
}
.catalog-overlay[hidden] { display: none; }
@keyframes coIn { from { opacity: 0; } to { opacity: 1; } }
.co-bar {
  flex: 0 0 auto; padding: 14px clamp(16px,4vw,40px) 12px;
  background: rgba(250,246,240,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.co-bar-head { display: flex; align-items: center; gap: 14px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.co-title { font-family: var(--display); font-size: clamp(20px,2.4vw,30px); color: var(--ink); letter-spacing: -.02em; }
.co-count { font-size: 14px; color: var(--gray); }
.co-close {
  margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; position: relative; cursor: pointer;
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 24px; line-height: 1; color: var(--ink); box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center;
}
.co-close::before { content: ""; position: absolute; inset: -6px; }
.co-close:hover { background: #fff; }
.co-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; max-width: var(--maxw); margin: 0 auto; width: 100%; scrollbar-width: none; }
.co-chips::-webkit-scrollbar { display: none; }
.co-chip {
  flex: 0 0 auto; font-size: 13.5px; font-weight: 600; padding: 8px 15px; min-height: 40px; cursor: pointer;
  border-radius: var(--r-pill); color: var(--ink-2); background: rgba(255,255,255,.6);
  border: 1px solid var(--line); white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.co-chip:hover { background: #fff; }
.co-chip.active { color: #fff; background: var(--cat, var(--brand-ink)); border-color: transparent; }
.co-chip.all.active { background: var(--brand-ink); }

.co-grid {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start;
  gap: clamp(6px,.8vw,9px); grid-template-columns: repeat(auto-fill, minmax(118px,1fr));
  padding: clamp(10px,2vw,20px); max-width: 1500px; margin: 0 auto; width: 100%;
}
@media (min-width: 1100px) { .co-grid { grid-template-columns: repeat(auto-fill, minmax(132px,1fr)); } }
@media (max-width: 600px) { .co-grid { grid-template-columns: repeat(3,1fr); gap: 6px; } }
.co-grid .card { width: 100%; border-radius: 3px; }
.co-item.hide { display: none; }

/* Liquid glass: zoom + reflejo especular (solo transform/opacity/filter) */
.co-grid .card { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, filter .35s ease; backface-visibility: hidden; }
.co-grid .card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(120% 80% at 18% 12%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    linear-gradient(125deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.38) 48%, rgba(255,255,255,0) 60%);
  background-size: 100% 100%, 240% 240%; background-position: 0 0, 130% 0;
  opacity: 0; transition: opacity .35s ease, background-position .6s ease; mix-blend-mode: screen;
}
@media (hover: hover) {
  .co-item:hover .card {
    transform: scale(1.06) translateY(-6px); filter: saturate(1.08) brightness(1.04); z-index: 2; will-change: transform;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.18), 0 22px 50px rgba(0,0,0,.34);
  }
  .co-item:hover .card::before { opacity: 1; background-position: 0 0, -30% 0; }
}
@media (hover: none) {
  .co-grid .card::before { opacity: .45; background-position: 0 0, 60% 0; transition: none; }
  .co-item .card:active { transform: scale(.97); }
}

/* ====================================================================
   PRÓXIMOS CURSOS · calendar-map / timeline (W2)
   ==================================================================== */
.proximos { background: var(--band); }
.cal { max-width: var(--maxw); margin: 40px auto 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.cal-range { font-family: var(--display); font-weight: 700; font-size: clamp(16px,2vw,21px); color: var(--ink); }
.cal-switch { display: inline-flex; gap: 2px; padding: 4px; background: rgba(0,0,0,.05); border-radius: var(--r-pill); }
.cal-seg {
  border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray-3);
  padding: 8px 16px; border-radius: var(--r-pill); min-height: 40px; transition: background .2s, color .2s, box-shadow .2s;
}
.cal-seg:hover { color: var(--ink); }
.cal-seg.is-active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.cal-grid { display: grid; gap: 12px; }
.cal-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.cal-area { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cat-soft, #fff); border: 1px solid var(--line); border-radius: var(--r-md); position: sticky; top: calc(var(--nav-h) + 16px); }
.cal-area-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cat); flex: 0 0 12px; }
.cal-area-name { font-weight: 600; font-size: 14px; color: var(--cat-ink, var(--ink)); line-height: 1.2; }
/* Carril en FLUJO: las convocatorias se ordenan por fecha y NUNCA se solapan */
.cal-lane {
  display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start;
  min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background-color: #fcfbf9;
}
.cal-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-pill {
  cursor: pointer; flex: 0 1 auto; max-width: 300px;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cat); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.cal-pill:hover { transform: translateY(-2px); box-shadow: var(--sh); z-index: 2; }
.cal-pill.is-hidden { display: none; }
.cal-pill-main { display: flex; flex-direction: column; min-width: 0; }
.cal-pill-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.cal-pill-meta { font-size: 11.5px; color: var(--cat-ink); font-weight: 600; }
.cal-ava { display: flex; align-items: center; padding-left: 4px; }
.cal-ava span { width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); background: var(--cat); }
.cal-ava .cal-ava-more { background: var(--cat-ink); }
.cal-seats { font-size: 11px; font-weight: 700; color: var(--cat-ink); background: var(--cat-soft); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.cal-pill-tag { align-self: flex-start; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; margin-bottom: 3px; background: var(--cat-soft, #eee); color: var(--cat-ink, #555); }
.cal-row-eval { --cat: #7c3aed; --cat-ink: #6d28d9; --cat-soft: #f1ecfb; }
.cal-row-pres { --cat: #f47809; --cat-ink: #a64f00; --cat-soft: #fdf0e3; }
.cal-row-bc { --cat: #0e7490; --cat-ink: #155e75; --cat-soft: #e6f7fa; }
.cal-row.is-empty { display: none; }
/* Estado de inscripción (chip dentro de la píldora) */
.cal-status {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-pill); white-space: nowrap; margin-top: 3px;
}
.cal-status-open { background: #e7f6ec; color: #1c7c3c; }
.cal-status-running { background: #e8f0fe; color: #1a56db; }
.cal-status-last { background: #fef3e2; color: #b45309; }
.cal-status-closed { background: #ececec; color: #666; }
.cal-status-tbc { background: #f3f3f1; color: #777; border: 1px dashed #c9c9c4; }
.cal-pill.is-closed { opacity: .6; }
.cal-pill.cal-pill-tbc { border-style: dashed; }
@media (max-width: 760px) {
  .cal-head { flex-direction: column; align-items: stretch; }
  .cal-switch { overflow-x: auto; }
  .cal-row { display: block; }
  .cal-area { margin-bottom: 8px; position: static; }
  .cal-lane { min-height: 0; background: none; border: 0; padding: 0; flex-direction: column; }
  .cal-pill { max-width: none; width: 100%; justify-content: space-between; }
  .cal-pill-title { max-width: none; white-space: normal; }
}

/* Respeta reduced-motion para todo lo nuevo */
@media (prefers-reduced-motion: reduce) {
  .catalog-overlay { animation: none; }
  .co-grid .card, .co-grid .card::before, .co-item, .cal-pill { transition: none !important; }
  .co-item:hover .card { transform: none; }
}

/* ====================================================================
   RONDA 11 — buscador, modalidades, áreas, bonificación, equipo, subpáginas
   ==================================================================== */

/* ---------- Buscador destacado (landing) ---------- */
.search-band { padding-top: 10px; padding-bottom: 10px; }
.course-search {
  display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto;
  background: var(--band); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 7px 7px 18px; box-shadow: var(--sh-sm);
}
.course-search:focus-within { box-shadow: 0 0 0 3px rgba(244,120,9,.18), var(--sh-sm); border-color: var(--brand); }
.course-search-ic { width: 20px; height: 20px; color: var(--gray-3); flex: 0 0 auto; }
.course-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.course-search input::placeholder { color: var(--gray-3); }
.course-search button { flex: 0 0 auto; }

/* ---------- Buscador dentro de la galería (overlay) ---------- */
.co-search {
  width: 100%; max-width: var(--maxw); margin: 10px auto 0; display: block;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font: inherit; font-size: 15px; color: var(--ink); background: rgba(255,255,255,.85);
}
.co-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244,120,9,.18); }

/* ---------- Modalidades (sobrecategoría cerca del hero) ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--maxw); margin: 36px auto 0; }
@media (max-width: 880px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 26px 24px; background: var(--band); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm); text-align: left; transition: transform .22s ease, box-shadow .22s ease;
}
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.mod-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; margin-bottom: 6px; }
.mod-ic svg { width: 28px; height: 28px; }
.mod-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.mod-desc { font-size: 14.5px; line-height: 1.5; color: var(--gray-3); }
.mod-cta { margin-top: 6px; font-weight: 700; color: var(--brand-ink); font-size: 14.5px; }

/* ---------- Formatos en rails (Netflix/HBO) ---------- */
.row-sub { padding: 0 var(--pad-x); margin: -10px 0 20px; color: var(--gray); font-size: clamp(15px, 1.5vw, 17px); max-width: 720px; }
.formatos-rail .rail-card {
  flex: 0 0 auto; width: clamp(250px, 76vw, 320px); margin: 4px 0; scroll-snap-align: start;
}
.formatos-rail .why-card.rail-card { width: clamp(240px, 74vw, 300px); }

/* ---------- Resumen de áreas (patas de negocio) ---------- */
.areas-resumen { padding-top: 18px; }
.areas-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 880px) { .areas-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .areas-tiles { grid-template-columns: 1fr; } }
.area-tile {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 20px;
  background: var(--band); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.area-tile:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.area-tile-t { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.area-tile-d { font-size: 13px; color: var(--gray-3); }
.area-tile-arrow { position: absolute; top: 16px; right: 18px; color: var(--brand-ink); font-weight: 700; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.area-tile:hover .area-tile-arrow { transform: translateX(3px); opacity: 1; }

/* ---------- Bonificación en la ficha (modal) ---------- */
.modal-bonif { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.bonif-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--cat-ink, var(--brand-ink)); }
.bonif-select {
  align-self: flex-start; min-width: 220px; max-width: 100%; padding: 10px 14px; min-height: 44px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--band);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.bonif-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244,120,9,.18); }

/* ---------- Equipo: foto real ---------- */
.team-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: var(--sh-sm); }

/* ---------- Subpáginas de modalidad (teleformación / bootcamps) ---------- */
.modalidad-page { max-width: 820px; margin: 0 auto; }
.modalidad-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); text-align: center; }
.modalidad-page .section-title { margin-top: 6px; }
.modalidad-feats { list-style: none; max-width: 560px; margin: 26px auto 0; display: grid; gap: 12px; }
.modalidad-feats li { position: relative; padding-left: 34px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.modalidad-feats li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--cat-soft, #e7f4f9); color: var(--green-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.modalidad-cta { text-align: center; margin-top: 32px; }

/* ---------- Próximos cursos como página (fondo imagen) ---------- */
/* La imagen de Próximos vive SOLO en la cabecera .subhero.proximos-hero (recortada al hero).
   El resto de la página es crema, como las demás subpáginas. */
.proximos-page { position: relative; }
.proximos-page .proximos { background: transparent; }

/* ---------- Bootcamps: hero con 3 cards + modal de detalle ---------- */
.bootcamps-hero { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.bc-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px);
  max-width: 1040px; margin: 40px auto 0; align-items: stretch;
}
.bc-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform .22s ease, box-shadow .22s ease;
}
button.bc-card { font: inherit; color: inherit; }
.bc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }
.bc-card-poster { display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--band); }
.bc-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-card-foot { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 18px; }
.bc-card-title { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1.15; }
.bc-card-by { font-size: 13.5px; color: var(--gray); }
.bc-card-cta { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--brand-ink); }
/* hueco / placeholder del 3.er bootcamp */
.bc-card-soon {
  cursor: default; align-items: center; justify-content: center; text-align: center; gap: 8px;
  padding: clamp(24px, 4vw, 40px) 22px; border-style: dashed; background: var(--band); box-shadow: none;
}
.bc-card-soon:hover { transform: none; box-shadow: none; }
.bc-soon-badge { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.bc-card-soon .bc-soon-title { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); margin: 4px 0 0; }
.bc-card-soon .bc-soon-desc { font-size: 14px; color: var(--gray); line-height: 1.5; }
.bc-card-soon .btn { margin-top: 10px; }
@media (max-width: 820px) { .bc-cards { grid-template-columns: 1fr; max-width: 380px; } }

/* --- Modal de bootcamp (reutiliza .modal-*; extras) --- */
.bc-modal-by { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 15px; margin: 2px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.bc-modal-tag { position: relative; z-index: 1; color: rgba(255,255,255,.92); font-size: 14px; margin: 4px 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.bc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bc-pills span { font-size: 12.5px; font-weight: 600; color: var(--brand-ink); background: var(--band); border-radius: var(--r-pill); padding: 6px 12px; }
.bc-note { font-size: 13.5px; color: var(--gray); font-style: italic; margin: 8px 0 0; }
.bc-modules { display: grid; gap: 10px; margin: 6px 0 4px; }
.bc-module { display: flex; gap: 12px; padding: 12px 14px; background: var(--band); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); }
.bc-mod-n { flex: 0 0 auto; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--brand-ink); min-width: 30px; }
.bc-mod-main { display: flex; flex-direction: column; gap: 4px; }
.bc-mod-t { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.bc-mod-d { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.bc-mod-e { color: var(--gray); font-size: 13px; }
.bc-logi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.bc-logi > div { background: var(--band); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.bc-logi dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-ink); }
.bc-logi dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.bc-course { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.bc-course:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.bc-course-head { display: flex; align-items: center; gap: 10px; }
.bc-course-n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bc-course-t { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); flex: 1; margin: 0; line-height: 1.15; }
.bc-course-h { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--band); border-radius: var(--r-pill); padding: 4px 10px; }
.bc-course-line { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 0; }
.bc-modal-footer { flex-direction: column; gap: 12px; align-items: stretch; }
.bc-price { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); text-align: center; line-height: 1; }
.bc-detail-link { text-align: center; font-weight: 700; color: var(--brand-ink); font-size: 14px; }
@media (max-width: 600px) { .bc-logi { grid-template-columns: 1fr; } }

/* --- Modo Bootcamp ↔ Workshop: acento dinámico + toggle + banner --- */
.bootcamps-page { --bc-accent: var(--brand); }
.bootcamps-hero { position: relative; }
.bc-card-line { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.bc-card-price { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--brand-ink); margin-top: 5px; }
.bc-card-price:empty { display: none; }
/* acento dinámico (card + modal) */
.bootcamps-page .bc-card-cta { color: var(--bc-accent); }
.bc-modal-body .bc-pills span { color: var(--bc-accent); }
.bc-modal-body .bc-module { border-left-color: var(--bc-accent); }
.bc-modal-body .bc-mod-n, .bc-modal-body .bc-logi dt, .bc-modal-body .bc-course-h, .bc-modal-body .bc-detail-link { color: var(--bc-accent); }
.bc-modal-body .bc-course-n { background: var(--bc-accent); }
.bc-modal-body .btn-primary { background: var(--bc-accent); }
.bc-modal-body .btn-primary:hover { filter: brightness(1.07); }
/* banner de formato (bootcamp vs workshop) en el modal */
.bc-format { background: var(--band); border: 1px solid var(--line); border-left: 4px solid var(--bc-accent); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }

/* ---------- Masterclass de IA (página propia) ---------- */
.mc-cover {
  height: clamp(160px, 28vw, 300px); border-radius: var(--r-card); margin: 0 auto 22px; max-width: 820px;
  overflow: hidden; box-shadow: var(--sh);
  background-image: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.3)), url('../assets/courses/ia-experto.jpg');
  background-size: cover; background-position: center;
}
.mc-modules-label { text-align: center; margin-top: 26px; }
.mc-modules { display: grid; gap: 10px; max-width: 560px; margin: 12px auto 0; }
.mc-modules span { display: block; padding: 12px 16px; background: var(--band); border: 1px solid var(--line); border-left: 4px solid #5b6cc4; border-radius: var(--r-md); font-weight: 600; color: var(--ink); font-size: 14.5px; }
.why-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--brand-ink); font-size: 14px; }

/* ---------- Contenidos del curso (ficha/modal) ---------- */
.contenidos-list { margin: 6px 0 4px; padding-left: 20px; }
.contenidos-list li { margin: 5px 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- Servicios a los que opta el curso (chips, solo en el modal) ---------- */
.modal-services { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.modal-serv {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 9px; border-radius: var(--r-pill);
  background: var(--cat-soft, #efeaf3); color: var(--cat-ink, #444);
  font-size: 12.5px; font-weight: 600; line-height: 1;
}
.modal-serv-ic { width: 22px; height: 22px; flex: 0 0 auto; background-size: contain; background-repeat: no-repeat; background-position: center; }

/* ======================================================================
   CARRITO + CUENTA (reconnectia.es) + CHECKOUT + SELLO "Desde 2017"
   ====================================================================== */

/* ---------- Sello "formando desde 2017" (medalla glass en el hero) ---------- */
.hero-seal {
  position: absolute; top: calc(var(--nav-h) + 26px); right: clamp(14px, 5vw, 60px);
  z-index: 2; width: clamp(96px, 12vw, 142px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(9px) saturate(160%); backdrop-filter: blur(9px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--sh), inset 0 1px 0 rgba(255,255,255,.45);
  animation: sealIn .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes sealIn { from { opacity: 0; transform: scale(.82) rotate(-12deg); } to { opacity: 1; transform: none; } }
.hero-seal-svg { width: 100%; height: 100%; display: block; }
.seal-ring-line { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; }
.seal-ring-line.accent { stroke: #ffd05a; stroke-width: 1.1; stroke-dasharray: 1.5 3.5; opacity: .85; }
.seal-ring-text { fill: #fff; font-family: var(--display); font-size: 8.6px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase; }
.seal-book { fill: none; stroke: #ffd05a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal-est { fill: rgba(255,255,255,.92); font-family: var(--display); font-size: 8.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.seal-year { fill: #fff; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: .5px; }
@media (max-width: 600px) { .hero-seal { width: 82px; top: calc(var(--nav-h) + 16px); right: 12px; } }

/* ---------- Nav: icono carrito + badge + "Acceder" ---------- */
.nav-cart {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink); cursor: pointer; border: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-cart:hover { background: rgba(0,0,0,.05); color: var(--brand-ink); }
.nav-cart:active { transform: scale(.94); }
.nav-cart svg { width: 23px; height: 23px; }
.nav-cart-badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-ink); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 980px; box-shadow: 0 0 0 2px rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.nav-cart-badge[hidden] { display: none; }
.nav-login {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); padding: 8px 12px; border-radius: var(--r-pill); min-height: 40px;
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-login:hover { color: var(--brand-ink); background: rgba(0,0,0,.04); }
.nav-login svg { width: 18px; height: 18px; }
.nav-login-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1200px) {
  .nav-cart { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; margin-left: 8px; }
  .nav-actions { flex-wrap: wrap; }
}

/* ---------- Carrito (drawer lateral) ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 270; background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.cart-backdrop.open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 271;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: #fff; box-shadow: -22px 0 64px rgba(0,0,0,.24);
  transform: translateX(100%); transition: transform .34s cubic-bezier(.22,1,.36,1);
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); }
.cart-head-count { font-size: 13px; color: var(--gray); margin-left: 6px; font-weight: 500; }
.cart-close { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 23px; line-height: 1; color: var(--ink); background: var(--band); border: 0; cursor: pointer; box-shadow: var(--sh-sm); }
.cart-close:hover { background: #efe9e1; }
.cart-items { flex: 1 1 auto; overflow-y: auto; padding: 6px 22px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { flex: 0 0 52px; width: 52px; aspect-ratio: 9 / 16; border-radius: 6px; background-size: cover; background-position: center; background-image: linear-gradient(165deg, var(--cat, #888), var(--cat-ink, #444)); box-shadow: var(--sh-sm); }
.cart-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cart-item-type { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.cart-item-title { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.32; margin: 3px 0 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--brand-ink); }
.cart-item-remove { font-size: 13px; color: var(--gray); background: none; border: 0; cursor: pointer; padding: 4px 2px; }
.cart-item-remove:hover { color: #c0392b; text-decoration: underline; }
.cart-empty { text-align: center; padding: 56px 22px; color: var(--gray); }
.cart-empty-ic { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.cart-empty p { font-size: 15.5px; margin-bottom: 18px; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 24px; background: var(--bg); }
.cart-subtotal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.cart-subtotal span:first-child { font-size: 15px; color: var(--ink-2); }
.cart-subtotal strong { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink); }
.cart-foot .btn { width: 100%; }
.cart-keep { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 6px; }
.cart-keep:hover { color: var(--brand-ink); }
/* ---------- Fichas SEO por curso (curso-<slug>.html, generadas) ---------- */
.curso-hero .subhero-title { font-size: clamp(30px, 4.6vw, 56px); max-width: 900px; margin: 0 auto; }
.curso-ficha-inner { max-width: 840px; margin: 0 auto; }
.curso-desc { font-size: 17px; }
.curso-ficha .modal-list-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.curso-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0; }
.curso-cta .btn { flex: 1 1 260px; text-align: center; }
.curso-related { list-style: none; padding: 0; display: grid; gap: 10px; }
.curso-related li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; font-size: 14.5px; color: var(--gray); }
.curso-related a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.curso-related a:hover { text-decoration: underline; }
.curso-back { margin-top: 30px; font-weight: 600; }
.curso-back a { color: var(--ink-2, var(--ink)); text-decoration: none; }
.curso-back a:hover { color: var(--brand-ink); }
.curso-faq-q { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.curso-faq-a { font-size: 15px; color: var(--gray); line-height: 1.55; margin: 0; }
.curso-idx-sec { margin-bottom: 26px; }
.legal-body { font-size: 15px; color: var(--gray); line-height: 1.6; }
.legal-body h1, .legal-body h2 { font-family: var(--display); color: var(--ink); margin: 22px 0 10px; }
.legal-body h1 { font-size: clamp(26px, 4vw, 36px); }
.legal-body h2 { font-size: 20px; }
.legal-body a { color: var(--brand-ink); }

/* CTA principal del carrito: todo el flujo de compra va por WhatsApp */
.cart-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 2px; padding: 13px 16px; border: 0; border-radius: var(--r-pill); background: #25D366; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: var(--sh-sm); transition: background .2s ease, transform .15s ease; }
.cart-wa:hover { background: #1fb457; transform: translateY(-1px); }
.cart-wa svg { flex: 0 0 auto; }
.modal-wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #0c7a3e; text-decoration: none; }
.modal-wa:hover { text-decoration: underline; }
.modal-wa svg { flex: 0 0 auto; color: #25D366; }

/* ---------- Banner de entrada (¿alumno o profesional?) ---------- */
.audience-gate {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(20,16,12,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s ease;
}
.audience-gate.show { opacity: 1; }
.audience-gate[hidden] { display: none; }
.gate-card {
  width: min(440px, 100%); background: var(--bg); border-radius: var(--r-card);
  box-shadow: 0 40px 100px rgba(0,0,0,.42); padding: 40px 32px 34px; text-align: center;
  transform: translateY(14px) scale(.98); transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.audience-gate.show .gate-card { transform: none; }
.gate-logo { height: 46px; width: auto; margin-bottom: 22px; }
.gate-title { font-family: var(--display); font-size: clamp(20px,3vw,25px); font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 12px; }
.gate-body { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 26px; }
.gate-actions { display: flex; flex-direction: column; gap: 12px; }
.gate-actions .btn { width: 100%; }

/* ---------- Widget de compra (horas + bonificar + cantidad + precio) ---------- */
.buy-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 14px; }
.buy-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.buy-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--cat-ink, var(--brand-ink)); }
.buy-hours, .buy-bonif { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); min-height: 42px; }
.buy-hours:focus, .buy-bonif:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244,120,9,.15); }
.buy-field .buy-hours { max-width: 130px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; height: 42px; align-self: flex-start; }
.qty-btn { width: 38px; height: 100%; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.qty-btn:hover { background: rgba(0,0,0,.05); color: var(--brand-ink); }
.qty-val { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buy-widget .modal-price { flex-wrap: wrap; }
.buy-note { width: 100%; font-size: 11.5px; color: var(--gray); margin-top: 1px; }
.buy-note[hidden] { display: none; }

/* ---------- Carrito: configuración + cantidad por línea ---------- */
.cart-item-cfg { font-size: 12px; color: var(--gray); margin: 2px 0 8px; }
.cart-item .qty.qty-sm { height: 32px; }
.cart-item .qty.qty-sm .qty-btn { width: 30px; font-size: 16px; }
.cart-item .qty.qty-sm .qty-val { min-width: 24px; font-size: 14px; }
.cart-item-remove { align-self: flex-start; margin-top: 6px; }
.ck-sumcfg { display: block; font-size: 11px; color: var(--gray); margin-top: 1px; }
@media (max-width: 480px) { .cart-drawer { width: 100vw; } }

/* ---------- Formularios (cuenta + checkout) ---------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: #b6b0a7; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244,120,9,.16); }
.field.invalid input, .field.invalid select { border-color: #e0584a; }
.field-err { display: none; color: #c0392b; font-size: 12.5px; margin-top: 5px; }
.field.invalid .field-err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 12px; cursor: pointer; }
.field-check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--brand); }

/* ---------- Bloque de cuenta (reconnectia.es) ---------- */
.acc-modal { padding: 30px 30px 32px; }
/* Popup "Próximamente" (cuenta pendiente de la integración con reconnectia.es) */
.acc-soon { display: flex; flex-direction: column; align-items: center; text-align: center; }
.acc-soon .acc-logo { margin-bottom: 12px; }
.acc-soon-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: #fdf0e3; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.acc-soon h3 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.acc-soon .acc-note { font-size: 14px; margin-bottom: 20px; max-width: 400px; }
.acc-soon .btn { width: 100%; }
.acc-soon .js-acc-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; border-color: #25D366; color: #fff; }
.acc-soon .js-acc-wa:hover { background: #1fb457; border-color: #1fb457; }
.acc-soon .js-acc-close { margin-top: 10px; }
.acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acc-head h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.acc-logo { height: 22px; width: auto; }
.acc-note { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 18px; }
.acc-tabs { display: flex; gap: 6px; background: var(--band); padding: 5px; border-radius: 14px; margin-bottom: 20px; }
.acc-tab { flex: 1; padding: 10px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: transparent; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.acc-tab.active { background: #fff; color: var(--brand-ink); box-shadow: var(--sh-sm); }
.acc-panel[hidden] { display: none; }
.acc-submit { width: 100%; margin-top: 6px; }
.acc-or { text-align: center; font-size: 12px; color: var(--gray); margin: 16px 0 12px; position: relative; text-transform: uppercase; letter-spacing: .08em; }
.acc-sso { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px; color: #2a3b8f; background: linear-gradient(135deg, #eef1fb, #e3e9fa); border: 1px solid #d4dbf3; text-decoration: none; min-height: 48px; transition: filter .2s ease, transform .2s ease; }
.acc-sso:hover { filter: brightness(.98); transform: translateY(-1px); }
.acc-loggedin { text-align: center; padding: 8px 0 4px; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--display); font-size: 26px; font-weight: 800; }
.acc-loggedin-label { font-size: 13px; color: var(--gray); }
.acc-loggedin-email { font-size: 17px; font-weight: 700; color: var(--ink); margin: 2px 0 20px; word-break: break-word; }
.acc-logout { margin-top: 12px; width: 100%; }

/* ---------- Checkout ---------- */
.checkout-main { padding: calc(var(--nav-h) + 48px) var(--pad-x) 88px; max-width: var(--maxw); margin: 0 auto; }
.checkout-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 6px; }
.checkout-sub { color: var(--gray); margin-bottom: 28px; font-size: 16px; }
.ck-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ck-step { background: var(--band); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px); margin-bottom: 20px; box-shadow: var(--sh-sm); }
.ck-step-title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ck-step-note { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.pay-mock { position: relative; }
.pay-pending-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #8a5600; background: #fff1dc; border: 1px solid #f3d9a8; padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 16px; }
.pay-pending-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pay-mock .field input { background: #faf8f5; color: var(--gray); cursor: not-allowed; }
.ck-finish { width: 100%; margin-top: 8px; }
.ck-summary { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--band); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-sm); }
.ck-summary h2 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.ck-sumitem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-sumthumb { flex: 0 0 40px; width: 40px; aspect-ratio: 9 / 16; border-radius: 5px; background-size: cover; background-position: center; background-image: linear-gradient(165deg, var(--cat, #888), var(--cat-ink, #444)); }
.ck-suminfo { flex: 1 1 auto; min-width: 0; }
.ck-sumtype { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); font-weight: 600; }
.ck-sumtitle { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 2px; }
.ck-sumprice { font-size: 14px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.ck-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.ck-total span { font-size: 16px; color: var(--ink-2); }
.ck-total strong { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); }
.ck-empty { text-align: center; padding: 60px var(--pad-x); }
.ck-empty-ic { font-size: 52px; opacity: .35; margin-bottom: 14px; }
.ck-empty h2 { font-family: var(--display); font-size: 24px; margin-bottom: 18px; }
.ck-confirm { max-width: 560px; margin: 20px auto; text-align: center; background: var(--band); border: 1px solid var(--line); border-radius: var(--r-card); padding: 48px 32px; box-shadow: var(--sh); }
.ck-confirm-check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: rgba(26,162,81,.14); color: var(--green-ink); font-size: 40px; }
.ck-confirm h2 { font-family: var(--display); font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.ck-confirm p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.ck-confirm-list { list-style: none; margin: 18px auto 24px; max-width: 380px; text-align: left; }
.ck-confirm-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.ck-confirm-list li::before { content: "✓"; color: var(--green-ink); font-weight: 700; }
.ck-confirm-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ck-confirm-actions .btn { width: 100%; max-width: 320px; }
@media (max-width: 900px) { .ck-grid { grid-template-columns: 1fr; } .ck-summary { position: static; } }
