/* ==========================================================
   Instituto Santa María — estilos compartidos
   Un solo archivo para todo el sitio: cambiás acá y cambia en todas las páginas.
   ========================================================== */

:root {
  /* Paleta */
  /* Colores institucionales: verde del uniforme y amarillo del escudo */
  --navy: #244a24;        /* verde institucional (header, títulos, footer) */
  --navy-2: #2f5c2f;      /* verde un tono más claro, para hover */
  --ink: #1d2a1d;
  --muted: #5c665a;
  --line: #e2e4dc;
  --paper: #fbfbf8;
  --cream: #f1f2ec;
  --white: #ffffff;
  --accent: #ebc232;      /* amarillo del escudo (botones, detalles) */
  --accent-hover: #ddb21f;
  --accent-ink: #9a7609;  /* amarillo oscurecido para textos sobre fondo claro */
  --sky: #e4ecdf;

  /* Tipografía */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout */
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(20, 44, 20, .06), 0 8px 28px rgba(20, 44, 20, .07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipos de texto ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display em { font-style: italic; color: var(--accent-ink); }
.h-section { font-size: clamp(34px, 6vw, 56px); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 18px; }
.btn-accent { background: var(--accent); color: var(--navy); font-weight: 600; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-line { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-navy:hover { background: var(--navy-2); }
  .btn-ghost:hover { background: rgba(255,255,255,.18); }
  .btn-line:hover { border-color: var(--navy); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 500; text-decoration: none;
}
.link-arrow i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover i { transform: translateX(3px); }
}

/* ==========================================================
   HEADER
   ========================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 248, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); white-space: nowrap; }
.brand-text span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.nav-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 13px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 450; text-decoration: none; color: var(--ink);
  transition: background-color 180ms ease, color 180ms ease;
}
.nav a[aria-current="page"], .nav .has-current > .nav-trigger { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .nav button.nav-trigger:hover { background: var(--cream); }
}
.nav-trigger i { font-size: 13px; transition: transform 200ms var(--ease-out); }
.nav-item { position: relative; }
.nav-item.open .nav-trigger i { transform: rotate(180deg); }

/* Dropdown: escala desde su botón, no desde el centro */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 230px; padding: 8px;
  list-style: none; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  transform-origin: top left;
  opacity: 0; transform: scale(0.96) translateY(-4px); visibility: hidden;
  transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-item.open .dropdown {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s;
}
.dropdown a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 10px 12px; border-radius: 10px; }
.dropdown a small { font-size: 13px; color: var(--muted); font-weight: 400; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions .btn { display: none; }

.burger {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.burger:active { transform: scale(0.95); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--navy); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .topbar-actions .btn { display: inline-flex; }
  :root { --header-h: 76px; }
}

/* ---------- Drawer (celu) — sale desde la izquierda ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 28, 10, .45);
  opacity: 0; pointer-events: none;
  transition: opacity 260ms ease;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: min(86vw, 360px);
  background: var(--paper);
  transform: translateX(-100%);
  transition: transform 380ms var(--ease-drawer);
  display: flex; flex-direction: column;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 8px 0 40px rgba(10, 28, 10, .18);
}
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-scrim { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: transform 160ms var(--ease-out); }
.drawer-close:active { transform: scale(0.95); }
.drawer-group { padding: 14px 0; border-top: 1px solid var(--line); }
.drawer-group p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.drawer a.dl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; font-size: 19px; text-decoration: none; color: var(--ink);
}
.drawer a.dl[aria-current="page"] { color: var(--accent-ink); }
.drawer a.dl i { color: var(--muted); font-size: 16px; }
.drawer .btn { width: 100%; margin-top: auto; }
.drawer .drawer-cta { padding-top: 16px; }

/* Items del drawer entran escalonados */
.drawer .dl, .drawer .drawer-group p { opacity: 0; transform: translateX(-10px); transition: opacity 260ms ease, transform 320ms var(--ease-out); }
body.menu-open .drawer .dl, body.menu-open .drawer .drawer-group p { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 30ms); }

/* ==========================================================
   HERO (inicio)
   ========================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88svh, 760px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: var(--navy);
}
.slides { position: absolute; inset: 0; z-index: -2; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1200ms ease, transform 7000ms linear, filter 1200ms ease;
  filter: blur(4px);
}
.slide.is-active { opacity: 1; transform: scale(1); filter: blur(0); }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,28,10,.25) 0%, rgba(10,28,10,0) 30%),
    linear-gradient(0deg, rgba(10,28,10,.88) 0%, rgba(10,28,10,.45) 45%, rgba(10,28,10,.05) 80%);
}
.hero-content { padding-top: 120px; padding-bottom: 56px; }
.hero .eyebrow { color: #f3d873; }
.hero h1 { font-size: clamp(52px, 12vw, 116px); line-height: .95; margin: 14px 0 18px; }
.hero h1 em { color: var(--accent); }
.hero p.hero-sub { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255,255,255,.82); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.slide-dots { display: flex; gap: 8px; margin-top: 34px; }
.slide-dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.slide-dots button::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.slide-dots button.is-active::after { animation: dotfill var(--slide-ms, 6000ms) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* Entrada del hero */
.hero-in { opacity: 0; transform: translateY(14px); filter: blur(4px); animation: heroIn 800ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* Franja de datos */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1); }
.stat:nth-child(odd) { padding-right: 16px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 48px); line-height: 1; }
.stat span { font-size: 14px; color: rgba(255,255,255,.65); }
@media (min-width: 820px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: 0; border-left: 1px solid rgba(255,255,255,.1); padding: 34px 28px; }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* ==========================================================
   SECCIONES
   ========================================================== */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--cream); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; }
.section-head.center { text-align: center; justify-items: center; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .section-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
}

/* Cabecera de páginas internas */
.page-hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9vw, 92px); line-height: 1; margin: 14px 0 18px; letter-spacing: -0.015em; }
.page-hero h1 em { font-style: italic; color: var(--accent-ink); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--navy);
}
.badge i { color: var(--accent-ink); }

/* ---------- Tarjetas de niveles ---------- */
.levels { display: grid; gap: 14px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.level-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  aspect-ratio: 4 / 3; background: var(--navy);
  transition: transform 200ms var(--ease-out);
}
.level-card:active { transform: scale(0.98); }
@media (min-width: 760px) { .level-card { aspect-ratio: 3 / 4; } }
.level-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.level-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,28,10,.85), rgba(10,28,10,.1) 60%); }
.level-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.level-body small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.level-body h3 { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -0.01em; }
.level-body .arrow { flex: none; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .level-card:hover img { transform: scale(1.04); }
  .level-card:hover .arrow { background: var(--accent); transform: rotate(-45deg); }
}

/* ---------- Novedades ---------- */
.news { display: grid; gap: 22px; }
.news-item {
  display: grid; gap: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px; overflow: hidden;
}
.news-media { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.news-media.one { grid-template-columns: 1fr; }
.news-media .pic:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.news-media.one .pic { aspect-ratio: 4 / 3.4; }
.news-text { padding: 4px 8px 12px; display: grid; gap: 12px; align-content: center; }
.news-text h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.news-text .link-arrow { margin-top: 6px; }
@media (min-width: 900px) {
  .news-item { grid-template-columns: 1.05fr 1fr; padding: 18px; gap: 40px; }
  .news-item:nth-child(even) .news-media { order: 2; }
  .news-text { padding: 20px 28px 20px 8px; }
  .news-item:nth-child(even) .news-text { padding: 20px 8px 20px 28px; }
}

/* Foto clickeable con zoom (lightbox) */
.pic {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 12px; overflow: hidden; background: var(--cream);
  aspect-ratio: 1; cursor: zoom-in;
}
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.pic:active { transform: scale(0.985); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pic:hover img { transform: scale(1.04); } }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery.wide .pic { aspect-ratio: 16 / 10; }
.gallery.tall .pic { aspect-ratio: 3 / 4; }

/* ---------- Bloques de texto ---------- */
.prose { display: grid; gap: 18px; font-size: 18px; color: #2c352b; max-width: 68ch; }
.prose strong { color: var(--navy); }
.two-col { display: grid; gap: 40px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } .two-col .sticky { position: sticky; top: calc(var(--header-h) + 32px); } }

.quote-card {
  background: var(--navy); color: #fff; border-radius: 24px; padding: 32px;
  position: relative; overflow: hidden;
}
.quote-card p { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; }
.quote-card small { display: block; margin-top: 18px; color: rgba(255,255,255,.65); font-size: 14px; }

/* ---------- Personas ---------- */
.people { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .people { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.people.four { }
@media (min-width: 1024px) { .people.four { grid-template-columns: repeat(4, 1fr); } }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 16px; }
.person-photo { aspect-ratio: 1 / 1.08; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--sky), var(--cream)); margin-bottom: 14px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; padding: 0 6px; }
.person .role { display: inline-block; margin: 6px 6px 4px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.person p { font-size: 14px; color: var(--muted); padding: 0 6px; line-height: 1.45; }
.person a { display: inline-flex; gap: 6px; align-items: center; margin: 10px 6px 0; font-size: 14px; color: var(--navy); text-decoration: none; word-break: break-all; }
@media (min-width: 760px) { .person h3 { font-size: 18px; } }
.people-center { justify-content: center; }
@media (min-width: 760px) { .people.two { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: start; } }

/* ---------- Timeline (Historia) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 40px 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 4px; top: 10px; width: 16px; height: 16px; border-radius: 999px; background: var(--paper); border: 2px solid var(--accent); }
.tl-item:last-child .tl-dot { background: var(--accent); }
.tl-year { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--navy); }
.tl-item h3 { font-size: 20px; margin: 8px 0 8px; }
.tl-item p { color: #3a4439; max-width: 62ch; }
@media (min-width: 900px) {
  .timeline::before { left: 160px; }
  .tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 60px; padding-left: 0; }
  .tl-dot { left: 153px; }
  .tl-year { text-align: right; font-size: 52px; }
  .tl-item h3 { margin-top: 6px; }
}

/* ---------- Misión / visión / valores ---------- */
.mv { display: grid; gap: 18px; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.mv-card .pic-static { aspect-ratio: 16 / 9; background: var(--cream); }
.mv-card .pic-static img { width: 100%; height: 100%; object-fit: cover; }
.mv-card .mv-body { padding: 26px; display: grid; gap: 12px; }
.mv-card h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; }
.values { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value i { font-size: 28px; color: var(--accent-ink); }
.value h3 { font-size: 19px; margin: 14px 0 6px; }
.value p { font-size: 15px; color: var(--muted); }

/* ---------- Objetivos ---------- */
.goals { display: grid; gap: 12px; counter-reset: goal; }
@media (min-width: 900px) { .goals { grid-template-columns: repeat(2, 1fr); } .goals.three { grid-template-columns: repeat(3, 1fr); } }
.goal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: goal; }
.goal::before { content: counter(goal, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 38px; color: var(--accent-ink); line-height: 1; margin-bottom: 14px; }
.goal h3 { font-size: 18px; margin-bottom: 8px; }
.goal p { font-size: 15.5px; color: var(--muted); }

/* ---------- Ficha del nivel (tabs) ---------- */
.level-info { display: grid; gap: 20px; }
@media (min-width: 960px) { .level-info { grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
@media (min-width: 760px) { .panel { padding: 30px; } }

.tabs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--cream); border-radius: 999px; margin-bottom: 22px; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color 200ms ease; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); }
.tabs .tab-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--white); box-shadow: 0 1px 3px rgba(20,44,20,.12); transition: transform 280ms var(--ease-in-out), width 280ms var(--ease-in-out); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panelIn 260ms var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.shifts { display: grid; gap: 14px; }
@media (min-width: 640px) { .shifts { grid-template-columns: 1fr 1fr; } }
.shift { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.shift h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.shift h4 i { color: var(--accent-ink); font-size: 20px; }
.shift dl { margin: 0; display: grid; gap: 8px; }
.shift dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; border-top: 1px dashed var(--line); padding-top: 8px; }
.shift dt { color: var(--muted); }
.shift dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note i { color: var(--accent-ink); margin-top: 3px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list .ci {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); text-decoration: none; background: var(--white);
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.contact-list a:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { border-color: var(--navy); } }
.contact-list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--accent-ink); font-size: 20px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list span.v { font-weight: 500; color: var(--navy); word-break: break-word; }

.director { display: flex; gap: 18px; align-items: center; }
.director img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; background: var(--cream); flex: none; }
.director h3 { font-size: 20px; }
.director .role { color: var(--accent-ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.director p { font-size: 15px; color: var(--muted); }

/* ---------- Proyectos (páginas de nivel) ---------- */
.projects { display: grid; gap: 22px; }
.project { display: grid; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.project-text { padding: 6px 8px 10px; display: grid; gap: 12px; align-content: start; }
.project-text .tag { justify-self: start; }
.project-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 38px); }
.project-text p { color: #3a4439; }
.project-text .shout { font-weight: 600; color: var(--navy); }
.project-media { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.project-media.n1 { grid-template-columns: 1fr; }
.project-media.n3 .pic:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.project-media.n1 .pic { aspect-ratio: 4 / 3; }
.project-media .pic { aspect-ratio: 3 / 4; }
.project-media.wide .pic { aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .project { grid-template-columns: 1fr 1fr; gap: 36px; padding: 18px; }
  .project:nth-child(even) .project-media { order: 2; }
  .project-text { padding: 18px 20px 18px 6px; }
  .project:nth-child(even) .project-text { padding: 18px 6px 18px 20px; }
}
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--cream); font-size: 12.5px; font-weight: 500; color: var(--accent-ink); }

/* ---------- Actividades: fotos de celu, videos, flyers y PDFs ---------- */
/* Fila de 3 fotos/videos verticales (de celu) */
.project-media.v3 { grid-template-columns: repeat(3, 1fr); }
.project-media.v3 .pic { aspect-ratio: 9 / 16; }
/* Flyer o afiche: se ve entero, sin recortar */
.project-media .pic.natural { aspect-ratio: auto; }
.pic.natural img { height: auto; }
/* Recorta desde arriba (flyers con el título arriba) */
.pic.top img { object-position: top; }
/* PDFs: una portada debajo de la otra */
.project-media.docs { grid-template-columns: 1fr; }
.project-media.docs .pic { aspect-ratio: 16 / 9; }

/* Video: botón de play + duración */
.pic .play {
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(10, 28, 10, .5); color: #fff; font-size: 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  pointer-events: none;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.pic .play i { margin-left: 3px; } /* centro óptico del triángulo */
.v3 .pic .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 18px; }
.pic .dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .pic:hover .play { transform: scale(1.06); background: rgba(10, 28, 10, .68); }
}

/* Galerías largas: las fotos que no entran se ven en el visor ("+2") */
.pic.is-extra { display: none; }
.pic .more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 28, 10, .52); color: #fff;
  font-family: var(--serif); font-size: clamp(30px, 4vw, 40px); line-height: 1;
  pointer-events: none;
}

/* PDF: la portada abre la presentación completa */
a.pic.is-doc { cursor: pointer; text-decoration: none; }
.pic .doc-label {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); color: var(--navy);
  box-shadow: 0 2px 12px rgba(10, 28, 10, .18);
  text-align: left;
}
.pic .doc-label strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.pic .doc-label small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pic .doc-label i { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--cream); font-size: 16px; transition: background-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.pic.is-doc:hover .doc-label i { background: var(--accent); transform: rotate(-45deg); }
}

/* "Ver actividades anteriores" */
.projects-more { margin-top: 22px; }
.projects-more[hidden] { display: none; }
.projects-toggle { display: flex; justify-content: center; margin-top: 26px; }
.projects-toggle .count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--cream); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.projects-toggle .btn i { font-size: 16px; transition: transform 220ms var(--ease-out); }
.projects-toggle .btn[aria-expanded="true"] i { transform: rotate(180deg); }
.projects-toggle .btn[aria-expanded="true"] .count { display: none; }
@media (min-width: 900px) {
  /* Las anteriores siguen alternando foto izquierda / derecha después de la 3.ª */
  .projects-more .project:nth-child(odd) .project-media { order: 2; }
  .projects-more .project:nth-child(odd) .project-text { padding: 18px 6px 18px 20px; }
  .projects-more .project:nth-child(even) .project-media { order: 0; }
  .projects-more .project:nth-child(even) .project-text { padding: 18px 20px 18px 6px; }
}

/* ---------- Banner inscripciones ---------- */
.enroll {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; background: var(--navy); color: #fff;
  display: grid;
}
.enroll-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.enroll-media .slide { filter: none; transform: none; transition: opacity 900ms ease; }
.enroll-media .slide.is-active { opacity: 1; }
.enroll-body { padding: 28px 24px 30px; display: grid; gap: 14px; align-content: center; }
.enroll-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.enroll-body h2 em { color: var(--accent); }
.enroll-body p { color: rgba(255,255,255,.78); }
.enroll-body .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (min-width: 900px) {
  .enroll { grid-template-columns: 1.15fr 1fr; }
  .enroll-media { aspect-ratio: auto; min-height: 420px; }
  .enroll-body { padding: 48px; }
}

/* ---------- Administración ---------- */
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-chips li { list-style: none; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.faq-chips { margin: 0; padding: 0; }
.docs { display: grid; gap: 10px; }
@media (min-width: 760px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.doc:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .doc:hover { border-color: var(--navy); } .doc:hover .doc-dl { background: var(--accent); color: var(--navy); } }
.doc-ic { flex: none; width: 48px; height: 56px; border-radius: 10px; background: #fbf3d3; color: var(--accent-ink); display: grid; place-items: center; font-size: 24px; }
.doc strong { display: block; color: var(--navy); font-weight: 600; line-height: 1.3; }
.doc small { color: var(--muted); font-size: 13px; }
.doc-dl { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--cream); color: var(--navy); transition: background-color 200ms ease, color 200ms ease; }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 15.5px; }
.hours li:first-child { border-top: 0; }
.hours span { color: var(--muted); }
.hours b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.sedes { display: grid; gap: 10px; }
.sede { display: flex; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.sede .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--accent-ink); font-size: 20px; }
.sede strong { display: block; color: var(--navy); }
.sede span { font-size: 15px; color: var(--muted); }
.sede a { font-size: 14px; color: var(--accent-ink); text-decoration: none; font-weight: 500; }

.form { display: grid; gap: 12px; }
.form .row { display: grid; gap: 12px; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(20,44,20,.08); }
.form .btn { justify-self: start; }
.form .btn .btn-label { transition: filter 200ms ease, opacity 200ms ease; }
.form .btn.sending .btn-label { filter: blur(2px); opacity: .7; }
.hp { position: absolute; left: -9999px; }
.form-ok {
  display: none; gap: 10px; align-items: flex-start;
  padding: 16px; border-radius: 14px; background: #eef6ee; color: #234a2a; font-size: 15.5px;
}
.form-ok i { font-size: 22px; flex: none; }
.form.sent .form-ok { display: flex; animation: panelIn 300ms var(--ease-out); }
.form.sent .form-fields { display: none; }

.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 960px) { .map.tall { aspect-ratio: auto; height: 100%; min-height: 380px; } }

.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; border: 1px solid currentColor; text-decoration: none; font-size: 20px; opacity: .85; transition: opacity 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.socials a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { opacity: 1; background: rgba(255,255,255,.08); } }

/* Padlet / CTA final */
.cta-band { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 18px; align-items: center; }
.cta-band h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }
.footer .brand-text strong { color: #fff; font-size: 26px; }
.footer .brand-text span { color: rgba(255,255,255,.55); }
.footer .brand img { width: 52px; height: 52px; background: #fff; border-radius: 14px; padding: 4px; }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .about { margin: 18px 0 20px; max-width: 36ch; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }

/* Barra fija celu: inscripciones */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(36, 74, 36, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(10,28,10,.25);
  transform: translateY(calc(100% + 24px)); opacity: 0;
  transition: transform 360ms var(--ease-drawer), opacity 200ms ease;
}
.mobile-cta.show { transform: none; opacity: 1; }
.mobile-cta .btn { flex: 1; min-height: 46px; padding: 0 14px; font-size: 15px; }
.mobile-cta .btn-ghost { flex: 0 0 auto; width: 46px; padding: 0; border-color: rgba(255,255,255,.25); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 16px;
  background: rgba(8, 20, 8, .92);
  opacity: 0; visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 220ms ease, visibility 0s; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox img {
  max-width: 100%; max-height: calc(100svh - 120px); border-radius: 12px; object-fit: contain;
  transform: scale(0.96); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 220ms ease;
}
.lightbox.open img.ready { transform: none; opacity: 1; }
.lightbox video {
  display: block; max-width: 100%; max-height: calc(100svh - 120px);
  border-radius: 12px; background: #000;
  transform: scale(0.96); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 220ms ease;
}
.lightbox.open video.ready { transform: none; opacity: 1; }
.lightbox [hidden] { display: none; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center; transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255,255,255,.22); } }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; margin: 0; } }

/* ==========================================================
   ANIMACIÓN AL SCROLLEAR
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease-in-out); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .reveal-img { clip-path: none; }
  .hero-in { animation: fade 300ms ease forwards; transform: none; filter: none; }
  @keyframes fade { to { opacity: 1; } }
  .slide { transform: none !important; filter: none !important; transition: opacity 400ms ease; }
  .drawer, .mobile-cta, .dropdown, .lightbox img, .lightbox video, .tabs .tab-pill { transition-duration: 1ms !important; }
  .drawer .dl, .drawer .drawer-group p { transform: none; }
}

/* Ajustes */
.btn, .nav a, .nav button.nav-trigger { white-space: nowrap; }
.tag, .link-arrow, .eyebrow { justify-self: start; }
.shift dd, .hours b { white-space: nowrap; }
.drawer { visibility: hidden; box-shadow: none; transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms, box-shadow 380ms ease; }
body.menu-open .drawer { visibility: visible; box-shadow: 8px 0 40px rgba(10, 28, 10, .18); transition: transform 380ms var(--ease-drawer), visibility 0s, box-shadow 380ms ease; }
@media (min-width: 1024px) { .drawer, .drawer-scrim { display: none; } }
@media (max-width: 480px) { .hero .eyebrow { letter-spacing: .08em; font-size: 12px; } .hero-content { padding-bottom: 40px; } }

/* Detalle del Wix original: línea amarilla sobre el ítem activo del menú */
@media (min-width: 1024px) {
  .nav > ul > li > a, .nav .nav-trigger { position: relative; }
  .nav > ul > li > a[aria-current="page"]::before, .nav .has-current > .nav-trigger::before {
    content: ""; position: absolute; left: 13px; right: 13px; top: 2px; height: 2px; border-radius: 2px; background: var(--accent);
  }
  .nav a[aria-current="page"], .nav .has-current > .nav-trigger { color: var(--navy); font-weight: 600; }
}

/* ==========================================================
   POPUP DE INSCRIPCIÓN (solo en el inicio, a los 6 segundos)
   ========================================================== */
.promo {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(10, 28, 10, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}
.promo.open { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }
.promo.closing { transition: opacity 180ms ease, visibility 0s linear 180ms; }

.promo-card {
  position: relative; width: min(100%, 520px); max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--white); border-radius: 24px; box-shadow: 0 30px 80px rgba(10, 28, 10, .35);
  transform: translateY(12px) scale(.96); opacity: 0;
  transition: transform 420ms var(--ease-out), opacity 300ms ease;
}
.promo.open .promo-card { transform: none; opacity: 1; }
.promo.closing .promo-card { transform: scale(.97); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; }

.promo-top {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; padding: 30px 84px 26px 28px;
}
.promo-top::before {
  content: ""; position: absolute; right: -34px; top: -34px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--accent);
}
.promo-top .eyebrow { color: #f3d873; position: relative; z-index: 1; }
.promo-top h2 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8vw, 46px); line-height: 1; margin-top: 10px;
}
.promo-top h2 em { color: var(--accent); }
.promo-top p { position: relative; z-index: 1; margin-top: 12px; color: rgba(255,255,255,.82); font-size: 15.5px; max-width: 36ch; }

.promo-body { padding: 22px 28px 26px; display: grid; gap: 16px; }
.promo-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promo-levels li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.promo-levels li i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: var(--accent-ink); font-size: 18px; }
.promo-levels strong { display: block; color: var(--navy); }
.promo-levels span { color: var(--muted); font-size: 14px; }

.promo-bonif {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: #fbf3d3; color: var(--navy); font-weight: 500; font-size: 15px;
}
.promo-bonif i { color: var(--accent-ink); font-size: 20px; }

.promo-actions { display: grid; gap: 10px; }
.promo-actions .btn { width: 100%; }
.promo-foot { font-size: 13.5px; color: var(--muted); text-align: center; }
.promo-foot a { color: var(--navy); font-weight: 500; }

.promo-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(36,74,36,.14); color: var(--navy); font-size: 18px;
  display: grid; place-items: center;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.promo-close:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .promo-close:hover { background: rgba(36,74,36,.26); } }

@media (min-width: 560px) {
  .promo-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-card, .promo.closing .promo-card { transform: none !important; }
}