/* ============================================================
   AIP · Afterschools & Veranitos
   Sistema de diseño: elegante, moderno-clásico, con calidez.
   ============================================================ */

:root {
  /* Tinta / marca — tomados del logo oficial */
  --ink:        #1E3957;
  --ink-2:      #2F5378;
  --ink-soft:   #5B7695;
  --ink-mute:   #8B9DB1;

  /* Papel */
  --paper:      #FBF8F2;
  --paper-warm: #F5EFE4;
  --card:       #FFFFFF;
  --line:       #E7DECE;
  --line-soft:  #F0E9DC;

  /* Acentos */
  --gold:       #C9A25D;   /* dorado del escudo */
  --gold-ink:   #8A6524;   /* mismo dorado, oscurecido para texto pequeño */
  --gold-soft:  #F7EFDF;
  --clay:       #8A6524;   /* alias: acento de enlaces y llamadas */
  --clay-soft:  #F7EFDF;
  --sun:        #C9A25D;
  --sun-soft:   #F7EFDF;
  --sage:       #6E8F7D;
  --sage-soft:  #E5EDE7;
  --sky:        #6E97BC;
  --sky-soft:   #E4EDF4;
  --plum:       #8B6B8E;
  --plum-soft:  #EFE7F0;

  /* Estado */
  --ok:         #4F7D5E;
  --ok-soft:    #E5EFE7;
  --warn:       #B07D1E;
  --warn-soft:  #FBF1DC;
  --no:         #A94F44;
  --no-soft:    #F7E4E1;

  /* Tipografía */
  --display: "Libre Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Avenir Next", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  /* Formas */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(30,52,80,.05), 0 2px 8px rgba(30,52,80,.04);
  --shadow-2: 0 2px 4px rgba(30,52,80,.05), 0 12px 28px rgba(30,52,80,.08);
  --shadow-3: 0 8px 16px rgba(30,52,80,.08), 0 32px 64px rgba(30,52,80,.14);

  --wrap: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Un elemento con el atributo hidden no se ve, aunque su clase diga display:flex.
   Sin esto, cada bloque flex o grid que se oculta por código queda a la vista. */
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Textura de papel muy sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(rgba(30,52,80,.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
body > * { position: relative; z-index: 1; }

/* ============================================================
   Barra superior
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #EFE7D9;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #EFE7D9; text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; }
.topbar__season { display: flex; align-items: center; gap: 4px; }
.topbar__season .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); margin-right: 6px; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,242,.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand__mark { width: auto; height: 44px; flex: none; }
.brand__rule { width: 1px; height: 34px; background: var(--line); flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand__sub { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; color: var(--ink-2); transition: color .18s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); font-weight: 700; }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: 10px; }

/* Selector de idioma */
.lang { display: inline-flex; align-items: center; gap: 9px; }
.lang button {
  border: 0; background: transparent; padding: 4px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-mute); transition: color .18s ease;
}
.lang button:hover { color: var(--ink-2); }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom: 2px solid var(--gold); }
.lang::before { content: ""; width: 1px; height: 20px; background: var(--line); margin-right: 4px; }

@media (max-width: 900px) {
  .nav .wrap { min-height: 64px; gap: 14px; flex-wrap: wrap; padding-block: 12px; }
  .nav__links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
}
@media (max-width: 620px) {
  .nav .brand__sub { display: none; }
  .topbar__season { font-size: 12px; }
  .topbar .wrap > a { display: none; }
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #FBF8F2; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--ink-2); box-shadow: var(--shadow-2); }
.btn--clay { background: var(--clay); color: #fff; box-shadow: var(--shadow-1); }
.btn--clay:hover { background: #6F5019; box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-warm); border-color: var(--ink-mute); }
.btn--quiet { background: var(--paper-warm); color: var(--ink-2); }
.btn--quiet:hover { background: var(--line-soft); }
.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--ok:hover { background: #446E52; }
.btn--no { background: transparent; color: var(--no); border-color: #E3C3BE; }
.btn--no:hover { background: var(--no-soft); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay); border-radius: 2px; }

.hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -.018em; }
.hero h1 .accent { position: relative; white-space: nowrap; font-style: italic; color: var(--clay); }
.hero h1 .accent .squiggle {
  position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .22em;
  color: var(--sun); pointer-events: none;
}
.hero__lead { font-size: 18.5px; color: var(--ink-soft); max-width: 52ch; margin: 24px 0 32px; line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stat__n { font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.stat__l { font-size: 12.5px; color: var(--ink-mute); margin-top: 7px; letter-spacing: .04em; }

/* Collage del hero */
.hero__art { position: relative; min-height: 380px; }
.hero__art .tile {
  position: absolute; border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  border: 8px solid var(--card); background: var(--paper-warm);
  display: grid; place-items: center; overflow: hidden;
}
.hero__art .t1 { width: 62%; aspect-ratio: 4/5;  left: 0;   top: 0;   transform: rotate(-4deg); background: var(--sky-soft); }
.hero__art .t2 { width: 52%; aspect-ratio: 1/1;  right: 0;  top: 14%; transform: rotate(5deg);  background: var(--sun-soft); }
.hero__art .t3 { width: 46%; aspect-ratio: 5/4;  right: 8%; bottom: 0; transform: rotate(-3deg); background: var(--sage-soft); }
.hero__art .tile svg { width: 56%; height: 56%; opacity: .75; }
@media (max-width: 940px) { .hero__art { min-height: 300px; max-width: 460px; } }
@media (max-width: 560px) { .hero__art { display: none; } }

/* ============================================================
   Secciones
   ============================================================ */
.section { padding: 72px 0; }
.section--warm { background: var(--paper-warm); border-block: 1px solid var(--line-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.012em; }
.section__head p { color: var(--ink-soft); margin: 10px 0 0; max-width: 58ch; }

/* ============================================================
   Encabezado de página (secciones internas)
   ============================================================ */
.page-head { padding: 56px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-head__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -.022em; }
.page-head p { color: var(--ink-soft); font-size: 17px; max-width: 56ch; margin: 16px 0 0; }
.page-head__aside { display: flex; gap: 34px; flex-wrap: wrap; }

/* Accesos por área en la portada */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 176px; padding: 22px 24px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.door__motif { width: 46px; height: 46px; opacity: .9; }
.door__motif svg { width: 100%; height: 100%; }
.door__t { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin-top: auto; }
.door__c {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin-top: 8px;
}

/* Franja del escudo en la portada */
.crestline { display: flex; align-items: center; gap: 26px; padding: 46px 0; }
.crestline img { height: 128px; width: auto; flex: none; opacity: .95; }
.crestline__txt { max-width: 46ch; }
.crestline__txt h3 { font-size: 22px; margin-bottom: 10px; }
.crestline__txt p { color: var(--ink-soft); margin: 0; font-size: 15.5px; line-height: 1.7; }
@media (max-width: 640px) { .crestline { flex-direction: column; align-items: flex-start; gap: 20px; } .crestline img { height: 96px; } }

/* ============================================================
   Filtros
   ============================================================ */
.filters {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 4px 0 22px;
}
.filters__row {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px 20px;
  align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.filters__row:first-child { border-top: 0; }
@media (max-width: 620px) { .filters__row { grid-template-columns: 1fr; gap: 6px; } }
.filters__group { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.filters__label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
}

/* Filtros como texto, no como cápsulas */
.chip {
  border: 0; background: none; padding: 3px 0; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; transition: color .18s ease;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 2px solid transparent;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] {
  color: var(--ink); font-weight: 700; border-bottom-color: var(--gold);
}
.chip .swatch { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.search {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1.5px solid var(--line); padding: 6px 2px; min-width: 260px;
  transition: border-color .18s ease;
}
.search:focus-within { border-bottom-color: var(--ink); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; }
.search svg { flex: none; color: var(--ink-mute); }
@media (max-width: 760px) { .search { margin-left: 0; width: 100%; } }

.results-line { font-size: 13.5px; color: var(--ink-mute); margin: 26px 0 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.link-reset { background: none; border: 0; padding: 0; color: var(--clay); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Tarjetas de curso
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line); }
.card__top { height: 108px; position: relative; display: grid; place-items: center; overflow: hidden; }
.card__top svg.motif { width: 72px; height: 72px; opacity: .9; }
.card__top::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.55) 1.2px, transparent 1.2px);
  background-size: 16px 16px; opacity: .6;
}
.card__cat {
  position: absolute; top: 14px; left: 20px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); opacity: .72;
}
.card__price {
  position: absolute; top: 11px; right: 20px; z-index: 2;
  font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink);
}
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 21px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.card__desc {
  font-size: 14.2px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; flex-direction: column; gap: 7px; font-size: 13.2px; color: var(--ink-2); margin-top: auto; }
.card__meta div { display: flex; align-items: flex-start; gap: 9px; }
.card__meta svg { flex: none; color: var(--ink-mute); margin-top: 3px; }
.card__foot { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__levels { display: flex; gap: 0; flex-wrap: wrap; align-items: baseline; }
.pill {
  font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pill + .pill::before { content: "/"; margin: 0 7px; color: var(--line); font-weight: 400; }
.card__more { font-size: 13.5px; font-weight: 600; color: var(--clay); display: inline-flex; align-items: center; gap: 5px; }
.card:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform .2s ease; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 72px 24px;
  border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--card);
}
.empty h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.empty p { color: var(--ink-soft); margin: 0 0 20px; }

/* ============================================================
   Modal / hoja de detalle
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20,32,48,.5); backdrop-filter: blur(4px);
  padding: 32px; overflow-y: auto;
}
.overlay.is-open { display: grid; place-items: start center; }
.sheet {
  background: var(--paper); border-radius: var(--r-xl); width: min(720px, 100%);
  box-shadow: var(--shadow-3); overflow: hidden; margin: auto 0;
  animation: rise .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@media (max-width: 640px) { .overlay { padding: 0; } .sheet { border-radius: 0; min-height: 100%; } }

.sheet__top { position: relative; height: 150px; display: grid; place-items: center; }
.sheet__top svg.motif { width: 92px; height: 92px; opacity: .92; }
.sheet__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-1);
}
.sheet__close:hover { background: #fff; }
.sheet__body { padding: 28px 34px 34px; }
@media (max-width: 640px) { .sheet__body { padding: 24px 22px 32px; } }
.sheet__body h2 { font-size: 32px; letter-spacing: -.014em; margin-bottom: 6px; }
.sheet__tagline { color: var(--ink-soft); font-size: 16px; margin: 0 0 24px; }
.sheet__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin-bottom: 26px;
}
.fact { background: var(--card); padding: 15px 17px; outline: 1px solid var(--line-soft); }
.fact__l { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.fact__v { font-size: 15px; font-weight: 500; margin-top: 5px; }
.sheet__section { margin-bottom: 24px; }
.sheet__section h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--sans); font-weight: 700; margin-bottom: 10px; }
.sheet__section p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.teacher { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-size: 18px; font-weight: 600; background: var(--paper-warm); color: var(--ink);
  border: 1px solid var(--line);
}
.sheet__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }

/* ============================================================
   Pasos / cómo funciona
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { position: relative; padding-top: 6px; }
.step__n {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 7px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ============================================================
   Formulario
   ============================================================ */
.form-layout { display: grid; grid-template-columns: 1fr 350px; gap: 44px; align-items: start; }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } }

.fieldset { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px 32px; margin-bottom: 24px; box-shadow: var(--shadow-1); }
@media (max-width: 640px) { .fieldset { padding: 24px 20px; } }
.fieldset__head { display: flex; align-items: baseline; gap: 13px; margin-bottom: 6px; }
.fieldset__n { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--clay); letter-spacing: .1em; }
.fieldset__head h2 { font-size: 23px; font-weight: 600; letter-spacing: 0; }
.fieldset__hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label, .legend { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--clay); }
.field__hint { font-size: 12.5px; color: var(--ink-mute); margin: 7px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

.input, .select, .textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 15px; font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--ink-2); background: var(--card);
  box-shadow: 0 0 0 3px rgba(30,52,80,.08);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A7391' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.counter { font-size: 12px; color: var(--ink-mute); text-align: right; margin-top: 6px; }
.counter.is-over { color: var(--no); font-weight: 600; }

.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; transition: all .18s ease;
}
.choice span::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ink-mute); transition: all .18s ease;
}
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice input:checked + span { border-color: var(--ink); background: var(--card); box-shadow: var(--shadow-1); }
.choice input:checked + span::before { border-color: var(--ink); background: var(--ink) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.6 6.6L9 1.2' stroke='%23FBF8F2' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,52,80,.14); }

/* ---------- Subida de flyer ---------- */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--paper);
  padding: 30px 24px; text-align: center; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.drop[hidden] { display: none; }
.drop:hover { border-color: var(--ink-mute); background: var(--card); }
.drop.is-over { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 3px rgba(30,52,80,.07); }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { color: var(--ink-mute); margin-bottom: 4px; }
.drop__main { font-size: 14.5px; font-weight: 600; }
.drop__main u { color: var(--clay); text-underline-offset: 3px; }
.drop__sub { font-size: 12.5px; color: var(--ink-mute); }

.filecard {
  display: flex; align-items: center; gap: 15px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 13px 15px;
}
.filecard__thumb {
  width: 50px; height: 64px; flex: none; border-radius: 6px; border: 1px solid var(--line);
  object-fit: cover; background: var(--paper-warm);
}
.filecard__doc {
  width: 50px; height: 64px; flex: none; border-radius: 6px; border: 1px solid var(--line);
  background: var(--clay-soft); color: var(--clay);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.filecard__meta { min-width: 0; flex: 1; }
.filecard__name { font-size: 14.2px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filecard__sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.filecard__sub a { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.filecard__x {
  border: 0; background: transparent; color: var(--ink-mute); padding: 6px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.filecard__x:hover { background: var(--no-soft); color: var(--no); }

.flyer-view {
  display: block; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--paper-warm); max-width: 300px;
}
.flyer-view img { width: 100%; height: auto; }

.field.has-error .drop { border-color: var(--no); background: #FEF9F8; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--no); background: #FEF9F8; }
.err { display: none; font-size: 12.5px; color: var(--no); font-weight: 500; margin-top: 7px; }
.field.has-error .err { display: block; }

.form-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 22px 26px; box-shadow: var(--shadow-1);
}
.form-actions p { font-size: 13px; color: var(--ink-mute); margin: 0; margin-right: auto; max-width: 40ch; }

/* Aside con vista previa */
.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 980px) { .aside { position: static; } }
.aside__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin-bottom: 12px; }
.note {
  background: var(--sun-soft); border: 1px solid #EBD9AE; border-radius: var(--r-lg); padding: 20px 22px;
}
.note h4 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 9px; }
.note ul { margin: 0; padding-left: 18px; font-size: 13.6px; color: var(--ink-2); line-height: 1.7; }
.note li { margin-bottom: 5px; }

/* Confirmación */
.done { text-align: center; max-width: 620px; margin: 0 auto; padding: 60px 24px 80px; }
.done__mark { width: 82px; height: 82px; margin: 0 auto 26px; }
.done h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.014em; margin-bottom: 14px; }
.done p { color: var(--ink-soft); font-size: 17px; margin: 0 auto 12px; max-width: 46ch; }
.done__ref {
  display: inline-block; margin: 22px 0 30px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; letter-spacing: .1em; background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--r); padding: 11px 20px;
}
.done__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Panel del manager
   ============================================================ */

/* Cabecera de uso interno: distinta a propósito, para que nadie
   confunda el panel con el sitio que ven las familias. */
.topbar--staff { background: #14293F; }
.staff-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--gold-soft);
  border: 1px solid #E7D6B4; border-radius: 4px; padding: 5px 9px;
}
@media (max-width: 720px) { .staff-tag { display: none; } }

/* Puerta de acceso */
body.is-gated { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper); display: grid; place-items: center; padding: 28px;
  overflow-y: auto;
}
.gate[hidden] { display: none; }
.gate__box {
  width: min(430px, 100%); text-align: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  padding: 42px 40px 34px; box-shadow: var(--shadow-2);
}
@media (max-width: 480px) { .gate__box { padding: 32px 24px 28px; } }
.gate__crest { height: 84px; width: auto; margin: 0 auto 24px; }
.gate__box h1 { font-size: 26px; letter-spacing: -.015em; margin-bottom: 12px; }
.gate__box > p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 26px; line-height: 1.6; }
.gate__box .input { text-align: center; letter-spacing: .18em; margin-bottom: 14px; }
.gate__box .btn { width: 100%; }
.gate__box .err { margin: -6px 0 12px; }
.gate__hint {
  font-size: 12.5px; color: var(--ink-mute); margin: 22px 0 0; line-height: 1.55;
  padding-top: 18px; border-top: 1px dashed var(--line);
}
.gate__back {
  display: inline-block; margin-top: 14px; font-size: 13px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.gate__back:hover { color: var(--ink); }
.panel-head { padding: 44px 0 28px; }
.panel-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.014em; }
.panel-head p { color: var(--ink-soft); margin: 10px 0 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 30px 0 34px; }
.kpi { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-1); }
.kpi__l { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.kpi__n { font-family: var(--display); font-size: 40px; font-weight: 500; letter-spacing: -.01em; line-height: 1.05; margin-top: 10px; }
.kpi--pend .kpi__n { color: var(--warn); }
.kpi--ok .kpi__n { color: var(--ok); }
.kpi--no .kpi__n { color: var(--no); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  border: 0; background: transparent; padding: 12px 18px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-mute); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--clay); }
.tab .count { display: inline-block; margin-left: 7px; font-size: 11.5px; background: var(--paper-warm); color: var(--ink-soft); border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.tab[aria-selected="true"] .count { background: var(--ink); color: #FBF8F2; }

.table-wrap { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; min-width: 1040px; }
table.list td:nth-child(3), table.list td:nth-child(5), table.list td:nth-child(6) { white-space: nowrap; }
.t-unassigned { color: var(--warn); font-weight: 600; font-size: 13.5px; }
table.list th {
  text-align: left; font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
  background: var(--paper); white-space: nowrap;
}
table.list td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14.2px; vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .16s ease; }
table.list tbody tr:hover { background: var(--paper); }
.t-name { font-weight: 600; font-size: 15px; }
.t-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.t-actions { display: flex; gap: 7px; justify-content: flex-end; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending  { background: var(--warn-soft); color: var(--warn); }
.badge--approved { background: var(--ok-soft);   color: var(--ok); }
.badge--rejected { background: var(--no-soft);   color: var(--no); }
.badge--changes  { background: var(--sky-soft);  color: #3E6C90; }

.table-empty { padding: 64px 24px; text-align: center; color: var(--ink-soft); }
.table-empty h3 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }

/* Cambio entre bandeja y vista de familias */
.modes { display: flex; gap: 28px; margin-bottom: 26px; }
.mode {
  border: 0; background: none; padding: 8px 0;
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.015em;
  color: var(--ink-mute); border-bottom: 2px solid transparent; transition: color .18s ease;
}
.mode:hover { color: var(--ink-2); }
.mode[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }

.familybar {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.familybar__txt { font-size: 13.5px; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.familybar__tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sizes { display: flex; gap: 18px; }
.size {
  border: 0; background: none; padding: 4px 0; font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); border-bottom: 2px solid transparent; transition: color .18s ease;
}
.size:hover { color: var(--ink); }
.size[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold); }

.familynav { display: flex; gap: 22px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }

.viewport {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-1);
}
.viewport__frame {
  border: 0; display: block; transform-origin: top left; background: var(--paper);
}

/* Vista previa dentro del cajón */
.drawer__views {
  display: flex; gap: 24px; padding: 0 30px;
  border-bottom: 1px solid var(--line); background: var(--card);
}
@media (max-width: 640px) { .drawer__views { padding-inline: 20px; } }
.drawer__views .tab { padding: 13px 0; font-size: 14px; }

.preview__note {
  font-size: 13.5px; line-height: 1.6; margin: 0 0 24px;
  border-radius: var(--r); padding: 13px 16px;
  background: var(--ok-soft); color: var(--ok);
}
.preview__note--pending { background: var(--gold-soft); color: #7A5510; border: 1px solid #E7D6B4; }
.preview__label {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; margin: 0 0 12px;
}
.preview__card { max-width: 340px; margin-bottom: 30px; }
.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: var(--shadow-1); }
.preview__sheet {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
}
.preview__sheet .sheet { box-shadow: none; border-radius: 0; animation: none; width: 100%; }
.preview__sheet .sheet__body { padding: 24px 22px 26px; }
.preview__sheet .sheet__actions .btn { pointer-events: none; opacity: .75; }

/* Cajón de revisión */
.drawer-back { position: fixed; inset: 0; z-index: 110; background: rgba(20,32,48,.45); backdrop-filter: blur(3px); display: none; }
.drawer-back.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(560px, 100%); background: var(--paper); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.drawer.is-open { transform: none; }
.drawer__head { padding: 24px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 16px; }
.drawer__head h2 { font-size: 25px; font-weight: 600; letter-spacing: 0; }
.drawer__head .t-sub { margin-top: 6px; }
.drawer__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; }
.drawer__close:hover { background: var(--paper-warm); }
.drawer__body { flex: 1; overflow-y: auto; padding: 26px 30px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 30px; background: var(--card); display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .drawer__head, .drawer__body, .drawer__foot { padding-inline: 20px; } }

.dl { display: grid; grid-template-columns: 132px 1fr; gap: 12px 18px; font-size: 14.5px; margin-bottom: 26px; }
.dl dt { color: var(--ink-mute); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding-top: 2px; }
.dl dd { margin: 0; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 3px 0; } .dl dd { margin-bottom: 12px; } }

.review-block { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.review-block h3 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin-bottom: 12px; }
.review-note { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
/* Asignación de salón */
.assign__req { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; }
.assign__req strong { color: var(--ink); }

.clash { border-radius: var(--r); padding: 13px 16px; margin: 14px 0 0; font-size: 13.5px; }
.clash p { margin: 0; }
.clash--ok { background: var(--ok-soft); color: var(--ok); font-weight: 500; }
.clash--bad { background: var(--warn-soft); color: #7A5510; border: 1px solid #EBD9AE; }
.clash--bad > p:first-child { font-weight: 600; }
.clash--bad ul { margin: 9px 0 0; padding-left: 18px; line-height: 1.6; }
.clash--bad strong { color: var(--ink); }
.clash__note { margin-top: 10px !important; font-size: 12.5px; opacity: .8; }

.history { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.history li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.history li:last-child { border-bottom: 0; }
.history time { color: var(--ink-mute); font-size: 12.5px; flex: none; width: 92px; }

/* Aviso */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--ink); color: #FBF8F2; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-3); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100% - 40px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Pie
   ============================================================ */
.footer { background: var(--ink); color: #D8E0EA; padding: 58px 0 34px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #8FA5BD; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; opacity: .85; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer__lockup { height: auto; width: 232px; margin-bottom: 22px; }
.footer__note { font-size: 14px; color: #9FB2C6; max-width: 38ch; line-height: 1.65; margin: 0; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 12.5px; color: #8FA5BD; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* Cinta de aviso (solo panel interno) */
.demo-bar {
  background: var(--gold-soft); border-bottom: 1px solid #E7D6B4; color: #7A5510;
  font-size: 12.5px; text-align: center; padding: 8px 20px; font-weight: 500;
}

/* Detalle de precio o nota bajo los datos de la ficha */
.sheet__detail {
  font-size: 13.5px; color: var(--ink-soft); margin: -14px 0 26px; line-height: 1.6;
}
.sheet__detail--note {
  background: var(--gold-soft); border: 1px solid #E7D6B4; color: #7A5510;
  border-radius: var(--r); padding: 12px 15px; margin: 0 0 24px;
}
.done__mail { font-size: 14px; color: var(--ink-mute); margin: 0 auto 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Cuadro de inscripciones
   ============================================================ */
.enroll-bars { display: flex; flex-direction: column; gap: 11px; }
.ebar { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 74px; gap: 16px; align-items: center; }
@media (max-width: 640px) { .ebar { grid-template-columns: 1fr 60px; } .ebar__track { display: none; } }
.ebar__name { font-size: 14.5px; font-weight: 500; }
.ebar__track { height: 10px; border-radius: 999px; background: var(--paper-warm); overflow: hidden; }
.ebar__fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.ebar__n { font-family: var(--display); font-size: 15px; font-weight: 700; text-align: right; }
.ebar__n.is-full { color: var(--no); }

table.list td.t-note { max-width: 190px; font-size: 13.5px; color: var(--ink-soft); white-space: normal; }

#enFilter { display: flex; align-items: center; gap: 14px; }

/* Formulario de inscripción dentro de la ficha */
.enroll__for {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; margin: 0 0 8px;
}
.enroll__legal { font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; margin: 6px 0 0; }
#enrollForm .sheet__actions { margin-top: 22px; }

/* ============================================================
   Portada: los tres programas
   ============================================================ */
.doors--prog { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.door--prog { min-height: 250px; padding: 28px 28px 26px; justify-content: flex-start; }
.door--prog .door__motif { width: 52px; height: 52px; margin-bottom: 26px; }
.door__when {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; margin-bottom: 8px;
}
.door--prog .door__t { font-size: 26px; margin-top: 0; }
.door__d { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 10px; }
.door--prog .door__c { margin-top: auto; padding-top: 20px; }
.door__c.is-soon { color: var(--gold-ink); }

/* Etiqueta de docentes junto a la marca */
.nav .staff-tag { margin-right: auto; }
.nav .brand:has(+ .staff-tag) { margin-right: 0; }

/* Selector de programa en el panel */
.season-pick { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.season-pick .select { max-width: 280px; }

/* Programa no disponible: la puerta sigue ahí, pero apagada */
.door--prog.is-closed { opacity: .62; }
.door--prog.is-closed:hover { transform: none; box-shadow: var(--shadow-1); }

/* ============================================================
   Tarjetas con flyer: el flyer es la cara de la tarjeta
   ============================================================ */
a.card { text-decoration: none; color: inherit; }
.card__top--flyer { height: 250px; background: var(--paper-warm); display: block; }
.card__top--flyer::after { display: none; }
.card__top--flyer img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card__kicker {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.card__kprice { font-family: var(--display); font-size: 19px; letter-spacing: 0; color: var(--ink); }

/* ============================================================
   Tema de Navidad — tomado de los flyers de los camps:
   la guirnalda de luces, el acebo, las estrellitas, rojo y verde.
   Se activa con <body data-theme="navidad">.
   ============================================================ */
body[data-theme="navidad"] {
  --xmas-red:   #B8232B;
  --xmas-green: #14553F;
  --xmas-gold:  #E0A93B;
  --clay:       var(--xmas-red);
  --gold-ink:   var(--xmas-red);
  --gold:       var(--xmas-gold);
}

[data-theme="navidad"] .topbar { background: var(--xmas-green); }
[data-theme="navidad"] .topbar__season .dot { background: var(--xmas-gold); }
[data-theme="navidad"] .nav { border-bottom-color: transparent; }

.garland {
  height: 42px; pointer-events: none; position: relative; z-index: 2; margin-bottom: -14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='42' viewBox='0 0 260 42'%3E%3Cpath d='M0 5 Q32.5 33 65 5 T130 5 T195 5 T260 5' fill='none' stroke='%231B5E46' stroke-width='2'/%3E%3Crect x='13.25' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='16.25' cy='27.5' rx='6' ry='8.6' fill='%23D2302C'/%3E%3Cellipse cx='14.25' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='45.75' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='48.75' cy='27.5' rx='6' ry='8.6' fill='%23F0B33C'/%3E%3Cellipse cx='46.75' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='78.25' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='81.25' cy='27.5' rx='6' ry='8.6' fill='%231F8A5B'/%3E%3Cellipse cx='79.25' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='110.75' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='113.75' cy='27.5' rx='6' ry='8.6' fill='%23EE7D31'/%3E%3Cellipse cx='111.75' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='143.25' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='146.25' cy='27.5' rx='6' ry='8.6' fill='%23D2302C'/%3E%3Cellipse cx='144.25' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='175.75' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='178.75' cy='27.5' rx='6' ry='8.6' fill='%23F0B33C'/%3E%3Cellipse cx='176.75' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='208.25' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='211.25' cy='27.5' rx='6' ry='8.6' fill='%231F8A5B'/%3E%3Cellipse cx='209.25' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3Crect x='240.75' y='14' width='6' height='5.5' rx='1.2' fill='%231B5E46'/%3E%3Cellipse cx='243.75' cy='27.5' rx='6' ry='8.6' fill='%23EE7D31'/%3E%3Cellipse cx='241.75' cy='24.5' rx='1.6' ry='2.6' fill='%23fff' opacity='.45'/%3E%3C/svg%3E") repeat-x center top;
}

[data-theme="navidad"] .btn--primary,
[data-theme="navidad"] .btn--clay { background: var(--xmas-red); color: #fff; }
[data-theme="navidad"] .btn--primary:hover,
[data-theme="navidad"] .btn--clay:hover { background: #9C1B23; }

/* Portada */
.hero--navidad { padding-top: 70px; }
.hero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero--navidad .hero__grid { position: relative; z-index: 1; }
.deco { position: absolute; display: block; }
.deco--star { opacity: .9; }

[data-theme="navidad"] .hero h1 { color: var(--xmas-green); }
[data-theme="navidad"] .hero h1 .accent {
  display: block; font-family: "Sacramento", "Snell Roundhand", cursive; font-style: normal; font-weight: 400;
  font-size: 1.9em; line-height: .95; letter-spacing: 0; color: var(--xmas-red);
  -webkit-text-stroke: .7px currentColor; margin-top: -.04em; padding-bottom: .06em;
}
[data-theme="navidad"] .stat__n { color: var(--xmas-green); }

/* Abanico de flyers */
.posters { position: relative; min-height: 450px; }
.poster {
  position: absolute; width: 45%; aspect-ratio: 9 / 15; border-radius: 16px; overflow: hidden;
  border: 6px solid #fff; background: #fff; box-shadow: var(--shadow-3);
}
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.poster--1 { left: 0;   top: 34px; transform: rotate(-7deg); z-index: 1; }
.poster--2 { left: 27%; top: 0;    transform: rotate(1.5deg); z-index: 3; }
.poster--3 { right: 0;  top: 40px; transform: rotate(8deg); z-index: 2; }
@media (max-width: 940px) { .posters { max-width: 480px; min-height: 400px; } }
@media (max-width: 480px) { .posters { min-height: 300px; } .poster { border-width: 4px; border-radius: 12px; } }

/* Acebo en la esquina de los encabezados */
.deco--holly { position: static; width: 132px; height: auto; flex: none; }
.section__head .deco--holly { margin-bottom: -6px; }
.page-head__aside .deco--holly { width: 118px; align-self: center; }
@media (max-width: 640px) { .deco--holly { width: 92px; } }

[data-theme="navidad"] .section--warm { background: #F4EFE3; }
[data-theme="navidad"] .door__when { color: var(--xmas-red); }

/* Pie en verde, como el texto de los flyers */
[data-theme="navidad"] .footer { background: var(--xmas-green); color: #DDEBE3; }
[data-theme="navidad"] .footer h4 { color: #9CC7B4; }
[data-theme="navidad"] .footer__note { color: #BBD8CB; }
[data-theme="navidad"] .footer__bar { color: #9CC7B4; }

[data-theme="navidad"] .page-head h1 { color: var(--xmas-green); }
[data-theme="navidad"] .page-head { border-bottom: 0; padding-bottom: 10px; }

/* En teléfono, las estrellas del centro chocan con el texto */
@media (max-width: 640px) {
  .hero__deco .deco--star:nth-child(4), .hero__deco .deco--star:nth-child(5) { display: none; }
}

/* Sin párrafo bajo el titular, el botón necesita su propio aire */
.hero--navidad .hero__cta { margin-top: 34px; }

/* Acceso por persona al panel */
.gate__box .input { margin-bottom: 12px; letter-spacing: 0; }
.gate__box .gate__code { letter-spacing: .14em; }
.gate__box .err { text-align: center; }
.session { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.session__who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .session__who { display: none; } }
