/* ==========================================================================
   Colegio Windsor · Sistema de diseño
   Paleta tomada del escudo institucional: azul real, rojo y dorado.
   ========================================================================== */

:root {
  --blue-950: #0d0838;
  --blue-900: #160d55;
  --blue-800: #1f137a;
  --blue-700: #2b1aa0;
  --blue-600: #3d2ec2;
  --blue-100: #e8e6fb;
  --blue-50: #f3f2fd;
  --red-700: #8f1424;
  --red-600: #b01b2e;
  --red-500: #c9283c;
  --gold-500: #f8c301;
  --gold-400: #ffd43b;
  --gold-100: #fff6d6;

  --ink: #17142b;
  --ink-soft: #4a4762;
  --muted: #6e6b85;
  --line: #e6e4ef;
  --surface: #ffffff;
  --paper: #faf9f6;
  --paper-2: #f3f1ec;

  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 13, 85, .06), 0 2px 8px rgba(22, 13, 85, .05);
  --shadow: 0 10px 30px -12px rgba(22, 13, 85, .25);
  --shadow-lg: 0 30px 60px -20px rgba(22, 13, 85, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; color: var(--blue-900); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--gold-400); color: var(--blue-950); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold-500); color: var(--blue-950); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--dark { background: var(--blue-900); color: #d9d6f5; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }
.section--dark .section-head p { color: #c3bfe8; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-700); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 .95rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(22, 13, 85, .5); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--blue-950); }
.btn--gold:hover { background: var(--gold-400); }
.btn--red { --btn-bg: var(--red-600); }
.btn--red:hover { background: var(--red-500); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; --btn-fg: var(--blue-900); border-color: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--blue-800); border-color: var(--blue-100); }
.btn--outline:hover { background: var(--blue-800); --btn-fg: #fff; border-color: var(--blue-800); }
.btn--sm { padding: .7em 1.2em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700;
  color: var(--blue-700); text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-950); color: #bdb8e6; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e4e1fb; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__login {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .08); padding: 5px 12px; border-radius: 999px; font-weight: 600;
}
.topbar__login:hover { background: var(--gold-500); color: var(--blue-950) !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(22, 13, 85, .25); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-900); flex: none; }
.brand img { height: 52px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.brand__tag { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none;
  font: 600 .93rem/1 var(--font-body); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--blue-50); color: var(--blue-800); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--red-600); }
.nav__item:hover > .nav__link svg, .nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 250px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 8px; list-style: none; margin: 0;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.dropdown a:hover { background: var(--blue-50); color: var(--blue-800); }
.dropdown a[aria-current="page"] { color: var(--red-600); font-weight: 700; }
.dropdown svg { width: 14px; height: 14px; opacity: .5; }

.header-cta { margin-left: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--blue-50); color: var(--blue-900); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.drawer__backdrop { position: absolute; inset: 0; background: rgba(13, 8, 56, .55); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  background: var(--blue-900); color: #fff; padding: 22px 22px 32px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__head img { height: 46px; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__nav > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer__nav a, .drawer__nav summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary svg { width: 18px; height: 18px; transition: transform .25s; }
.drawer__nav details[open] summary svg { transform: rotate(180deg); }
.drawer__nav details ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 12px; border-left: 2px solid var(--gold-500); }
.drawer__nav details a { padding: 10px 8px; font-weight: 500; font-size: .98rem; color: #d4d0f3; }
.drawer__nav a[aria-current="page"] { color: var(--gold-400); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; font-size: .92rem; color: #c3bfe8; }
.drawer__foot a { color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  padding: clamp(120px, 16vw, 180px) 0 clamp(56px, 8vw, 96px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 8, 56, .35) 0%, rgba(13, 8, 56, .15) 35%, rgba(13, 8, 56, .85) 100%),
    linear-gradient(90deg, rgba(13, 8, 56, .75) 0%, rgba(13, 8, 56, 0) 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #e7e4fb; max-width: 600px; margin-bottom: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none;
}
.hero__badge:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.hero__badge span:first-child { background: var(--gold-500); color: var(--blue-950); border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--blue-800); line-height: 1; letter-spacing: -.02em; }
.stat__num small { font-size: .5em; color: var(--red-600); margin-left: 2px; }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* ---------- Quick access ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.quick-card__icon {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); transition: background .3s, color .3s;
}
.quick-card:hover .quick-card__icon { background: var(--blue-700); color: #fff; }
.quick-card__icon svg { width: 26px; height: 26px; }
.quick-card h3 { font-size: 1.08rem; margin-bottom: .3em; }
.quick-card p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.quick-card__tag { display: inline-block; margin-top: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-600); }
.quick-card__arrow { position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; color: var(--muted); opacity: 0; transform: translate(-6px, 6px); transition: all .3s var(--ease); }
.quick-card:hover .quick-card__arrow { opacity: 1; transform: none; color: var(--blue-700); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media::before {
  content: ""; position: absolute; z-index: -1; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, var(--gold-500) 0 2px, transparent 2px 12px); opacity: .55;
}
.split__badge {
  position: absolute; left: -22px; bottom: 32px; background: var(--red-600); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--font-display); line-height: 1.1;
}
.split__badge strong { display: block; font-size: 2.2rem; }
.split__badge span { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .04em; opacity: .9; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b01b2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; padding: 34px 30px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s, transform .3s var(--ease);
}
.pillar:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.pillar__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-500); color: var(--blue-950); margin-bottom: 22px; }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar p { color: #c3bfe8; margin: 0; }
.pillar__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 2.6rem; color: rgba(255, 255, 255, .08); font-weight: 700; line-height: 1; }

/* ---------- Program cards ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow);
}
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.program::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 8, 56, 0) 30%, rgba(13, 8, 56, .92) 100%); transition: background .4s; }
.program:hover img { transform: scale(1.07); }
.program:hover { color: #fff; }
.program__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.program__grades { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--gold-500); color: var(--blue-950); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.program h3 { color: #fff; font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: .25em; }
.program p { color: #dcd9f5; font-size: .95rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.program:hover p, .program:focus-visible p { max-height: 120px; opacity: 1; margin-bottom: 12px; }
.program__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--gold-400); }
.program__more svg { width: 16px; height: 16px; }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--blue-100); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(13, 8, 56, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: .8rem; font-weight: 600;
}
@media (max-width: 720px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic figure:nth-child(1), .mosaic figure:nth-child(4) { grid-column: span 2; }
  .mosaic figure:nth-child(1) { grid-row: span 1; }
}

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  scroll-snap-align: start; display: flex; flex-direction: column; margin: 0;
  background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.t-card__quote { width: 38px; height: 38px; color: var(--gold-500); margin-bottom: 16px; }
.t-card blockquote { margin: 0 0 24px; font-size: 1.02rem; color: var(--ink-soft); flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; }
.t-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue-50); }
.t-card figcaption strong { display: block; color: var(--blue-900); }
.t-card figcaption span { font-size: .86rem; color: var(--muted); }
.t-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -8px; }
.t-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--blue-900);
  cursor: pointer; display: grid; place-items: center; transition: all .25s;
}
.t-nav button:hover { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }
.t-nav svg { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  background: var(--red-600); color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(248, 195, 1, .45), transparent 70%); }
.cta-band::after { width: 320px; height: 320px; left: -100px; bottom: -200px; background: radial-gradient(circle, rgba(43, 26, 160, .6), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #ffe1e5; margin: 0; font-size: 1.1rem; }

/* ---------- Map / contact ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.visit__info { padding: clamp(32px, 5vw, 56px); }
.visit__map { min-height: 420px; background: var(--blue-50); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--red-600); }

/* ---------- Page hero (internal) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px);
  background: var(--blue-900);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(13, 8, 56, .92) 0%, rgba(22, 13, 85, .75) 45%, rgba(22, 13, 85, .35) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 820px; }
.page-hero p { max-width: 640px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e2dffa; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .85rem; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: #b8b3e3; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--red-600); }

/* ---------- Cards grid (generic) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--gold-100); color: var(--red-600); margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card ul { margin: .6em 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Mission / vision ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv__item { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; }
.mv__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mv__body { padding: clamp(28px, 4vw, 44px); }
.mv__body p { color: var(--ink-soft); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.values span { padding: 8px 16px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); font-weight: 600; font-size: .9rem; }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line);
}
.step__num {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  background: var(--blue-800); color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 600;
}
.step:nth-child(2) .step__num { background: var(--red-600); }
.step:nth-child(3) .step__num { background: var(--gold-500); color: var(--blue-950); }
.step h3 { margin-top: 6px; }
.step p, .step li { color: var(--ink-soft); }
.step ul { margin: .4em 0 0; }

.note {
  display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--gold-100); border: 1px solid #f5e3a3; color: #5b4a07;
}
.note svg { flex: none; width: 24px; height: 24px; color: #a37f00; margin-top: 2px; }
.note p { margin: 0; }
.note strong { color: #3e3204; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.doc-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: .97rem; }
.doc-list li svg { flex: none; width: 20px; height: 20px; color: var(--blue-600); margin-top: 3px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--paper); font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(61, 46, 194, .12); }
.form__hint { font-size: .84rem; color: var(--muted); margin: 0; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #aaa5d6; padding: clamp(56px, 8vw, 88px) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 84px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-motto { font-family: var(--font-display); font-weight: 600; color: var(--gold-400); font-size: 1.15rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6d2f5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-500); }
.footer-bottom {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8580b8;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Announcement toast ---------- */
.announce {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(400px, calc(100vw - 40px));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 22px 22px 20px; transform: translateY(24px); opacity: 0; transition: transform .45s var(--ease), opacity .45s;
  border-top: 4px solid var(--gold-500);
}
.announce.is-visible { transform: none; opacity: 1; }
.announce__eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); margin: 0 0 6px; }
.announce h3 { font-size: 1.1rem; margin: 0 0 6px; padding-right: 28px; }
.announce p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 14px; }
.announce__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.announce__close svg { width: 16px; height: 16px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .visit { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .pillars, .programs { grid-template-columns: 1fr; }
  .program { aspect-ratio: 16 / 11; }
  .program p { max-height: none; opacity: 1; margin-bottom: 12px; }
  .t-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .cta-band { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__info .topbar__item--email, .topbar__links .topbar__item--hours { display: none; }
  .brand__tag { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .t-track { grid-auto-columns: 88%; }
  .form__row, .doc-list { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .step__num { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 16px; }
  .split__badge { left: 12px; bottom: 12px; padding: 14px 16px; }
  .split__badge strong { font-size: 1.7rem; }
  .split__media::before { inset: auto -8px -8px auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(180deg, rgba(13, 8, 56, .45) 0%, rgba(13, 8, 56, .7) 45%, rgba(13, 8, 56, .92) 100%); }
  .hero__badge { font-size: .78rem; white-space: nowrap; max-width: 100%; }
  .hero__badge span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .hero__scroll { display: none; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .announce { left: 16px; bottom: 80px; width: calc(100vw - 32px); }
  .stat { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .topbar__info { gap: 12px; }
  .btn { padding: .9em 1.3em; }
}

@media print {
  .topbar, .site-header, .drawer, .wa-float, .announce, .hero__scroll { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Legal page ---------- */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .88rem; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.legal__toc a:hover { background: var(--blue-50); color: var(--blue-800); }
.legal__body { max-width: 780px; }
.legal__sec { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 8px; }
.legal__sec + .legal__sec { border-top: 1px solid var(--line); padding-top: 8px; }
.legal__sec h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.2em; }
.legal__sec h3 { font-size: 1.05rem; }
mark.pendiente { background: var(--gold-100); color: #6b5300; border: 1px dashed #d9b200; border-radius: 6px; padding: 0 6px; font-weight: 700; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; max-height: none; }
}

/* ---------- Consent checkbox ---------- */
.field--check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.field--check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-700); cursor: pointer; }

/* ---------- Social ---------- */
.footer-social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600; font-size: .9rem; transition: background .25s, border-color .25s;
}
.footer-social svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #fff; background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.footer-social:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
@media (max-width: 900px) { .topbar__item--ig { display: none; } }

/* ---------- Próximos eventos (inicio) ---------- */
.upcoming { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.upcoming__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.upcoming__head h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.upcoming__head .eyebrow { margin-bottom: .5rem; }
.upcoming__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.upcoming__empty { grid-column: 1 / -1; color: var(--muted); }
.upcoming__item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--cat, var(--blue-600)); }
.upcoming__day { flex: none; width: 54px; text-align: center; border-radius: 12px; background: var(--blue-50); padding: 8px 0; line-height: 1; }
.upcoming__day strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-900); }
.upcoming__day span { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.upcoming__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.upcoming__info em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cat, var(--blue-600)); }
.upcoming__info b { color: var(--blue-900); font-size: .95rem; line-height: 1.3; }
.upcoming__info small { color: var(--muted); font-size: .8rem; }
.upcoming__item--academico, .cal-item--academico, .chip--academico { --cat: #3d2ec2; }
.upcoming__item--celebracion, .cal-item--celebracion, .chip--celebracion { --cat: #b01b2e; }
.upcoming__item--familias, .cal-item--familias, .chip--familias { --cat: #0f8a6a; }
.upcoming__item--receso, .cal-item--receso, .chip--receso { --cat: #b58500; }

/* ---------- Calendario ---------- */
.cal-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.cal-next { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); padding-right: 170px; background: var(--blue-900); color: #fff; }
.cal-next::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 195, 1, .35), transparent 70%); }
.cal-next__title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.cal-next__date { color: #c9c4f0; margin: 0; }
.cal-next__date::first-letter { text-transform: uppercase; }
.cal-next__count { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); z-index: 1; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--gold-500); color: var(--blue-950); box-shadow: 0 0 0 8px rgba(248, 195, 1, .2); }
.cal-next__count[hidden] { display: none; }
.cal-next__count strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.cal-next__count span { font-size: .8rem; font-weight: 700; }
.cal-year { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); background: #fff; border: 1px solid var(--line); }
.cal-progress { height: 12px; border-radius: 999px; background: var(--blue-50); overflow: hidden; }
.cal-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--red-600)); transition: width 1.4s var(--ease); }
.cal-progress__label { margin: 10px 0 18px; font-size: .9rem; color: var(--muted); }
.cal-periods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal-periods li { border-radius: 12px; padding: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.cal-periods strong { display: block; color: var(--blue-900); font-size: .85rem; }
.cal-periods .is-done { opacity: .55; }
.cal-periods .is-current { background: var(--blue-800); border-color: var(--blue-800); color: #d9d6f5; }
.cal-periods .is-current strong { color: #fff; }

.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.cal-toolbar__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .86rem/1 var(--font-body); cursor: pointer; transition: all .2s; }
.chip svg { width: 15px; height: 15px; color: var(--cat, var(--blue-600)); }
.chip:hover { border-color: var(--cat, var(--blue-600)); }
.chip.is-active { background: var(--cat, var(--blue-800)); border-color: var(--cat, var(--blue-800)); color: #fff; }
.chip.is-active svg { color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--blue-700); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.cal-month { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.cal-month[hidden] { display: none; }
.cal-month__title { font-size: 1.6rem; margin: 0; position: sticky; top: calc(var(--header-h) + 96px); align-self: start; }
.cal-month__title span { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cal-item { position: relative; display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cat); transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s; }
.cal-item[hidden] { display: none; }
.cal-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.cal-item__date { text-align: center; line-height: 1.1; }
.cal-item__date strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-900); white-space: nowrap; }
.cal-item__date span { font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.cal-item__body h3 { font-size: 1.02rem; margin: 6px 0 2px; }
.cal-item__body p { margin: 0; font-size: .9rem; color: var(--muted); }
.cal-item__when { font-size: .8rem; color: var(--muted); }
.cal-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cat); }
.cal-item__add { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--paper); transition: all .2s; }
.cal-item__add:hover { background: var(--blue-700); color: #fff; }
.cal-item__add svg { width: 18px; height: 18px; }
.cal-item.is-past { opacity: .5; }
.cal-item.is-now, .cal-item.is-next { box-shadow: 0 0 0 2px var(--gold-500), var(--shadow); }
.cal-item.is-now::after, .cal-item.is-next::after { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--gold-500); color: var(--blue-950); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cal-item.is-now::after { content: "En curso"; }
.cal-item.is-next:not(.is-now)::after { content: "Próximo"; }
.cal-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.cal-empty[hidden] { display: none; }

/* ---------- Costos ---------- */
.calc { margin-top: 1.5rem; }
.calc__rows { margin: 8px 0 0; display: grid; }
.calc__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.calc__rows dt { font-weight: 600; color: var(--ink-soft); }
.calc__rows dt small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.calc__rows dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--blue-900); white-space: nowrap; }
.calc__rows > .calc__total { border-bottom: 0; background: var(--blue-50); border-radius: 14px; padding: 16px; margin-top: 10px; }
.calc__total dt { color: var(--blue-900); font-weight: 800; }
.calc__total dd { font-size: 1.5rem; color: var(--red-600); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; margin-top: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 16px; text-align: right; white-space: nowrap; }
.table th:first-child { text-align: left; }
.table thead th { background: var(--blue-900); color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.table tbody tr:nth-child(even) { background: var(--paper); }
.table tbody th { color: var(--blue-900); }
.price-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.price-list li { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.price-list p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.price-list strong { color: var(--blue-900); }
.price-list span { font-family: var(--font-display); font-weight: 700; color: var(--red-600); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq-search { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.faq-search:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(61, 46, 194, .12); }
.faq-search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.faq-search input { flex: 1; border: 0; outline: 0; padding: 14px 8px; font: 500 1.02rem var(--font-body); background: transparent; color: var(--ink); min-width: 0; }
.faq-group { margin-bottom: 36px; }
.faq-group[hidden], .faq[hidden] { display: none; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 14px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
.faq[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; color: var(--blue-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .25s; }
.faq[open] summary svg { transform: rotate(180deg); color: var(--red-600); }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); }
.faq__a p { margin: 0; }
.faq-help { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--gold-100); border: 1px solid #f5e3a3; }
.faq-help h3 { margin-bottom: 4px; }
.faq-help p { margin: 0; color: var(--ink-soft); }

@media (max-width: 960px) {
  .cal-top { grid-template-columns: 1fr; }
  .upcoming__list { grid-template-columns: 1fr 1fr; }
  .cal-month { grid-template-columns: 1fr; gap: 14px; }
  .cal-month__title { position: static; }
  .cal-toolbar { position: static; }
}
@media (max-width: 720px) {
  .upcoming__list { grid-template-columns: 1fr; }
  .cal-next { padding-right: clamp(28px, 4vw, 40px); padding-bottom: 150px; }
  .cal-next__count { top: auto; bottom: 24px; right: auto; left: 28px; transform: none; width: 96px; height: 96px; }
  .cal-periods { grid-template-columns: 1fr 1fr; }
  .cal-item { grid-template-columns: 64px 1fr; padding: 14px; gap: 12px; }
  .cal-item__add { grid-column: 2; justify-self: start; }
  .cal-item__date strong { font-size: 1.2rem; white-space: normal; }
  .calc__rows dd { font-size: 1rem; }
}
.cal-next .eyebrow { color: var(--gold-400); }

/* ---------- Promoción 2026 (banner del inicio) ---------- */
.promo { padding-top: clamp(72px, 9vw, 112px); }
.promo__grid { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.promo h2 span { display: block; color: #2f6b3a; font-size: .72em; margin-top: .2em; }
.promo__count { display: flex; align-items: center; gap: 16px; margin: 1.6rem 0; padding: 16px 20px; border-radius: var(--radius); background: #eef5ec; border: 1px solid #d3e6cf; }
.promo__count[hidden] { display: none; }
.promo__count-num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #2f6b3a; line-height: 1; }
.promo__count-label { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.promo__count-label strong { color: var(--blue-900); }

.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #2f5a35; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--blue-900); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s;
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider:hover .slider__btn, .slider:focus-within .slider__btn { opacity: 1; }
.slider__btn:hover { transform: translateY(-50%) scale(1.08); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.slider__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* ---------- Instagram ---------- */
.ig__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.ig__head h2 { margin-bottom: .2em; }
.ig__head p { margin: 0; color: var(--ink-soft); }
.btn--ig { --btn-bg: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--blue-50); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-tile__hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 8, 56, .45); color: #fff; opacity: 0; transition: opacity .3s; }
.ig-tile__hover svg { width: 34px; height: 34px; }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile:hover .ig-tile__hover, .ig-tile:focus-visible .ig-tile__hover { opacity: 1; }
.ig-embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.ig-embeds .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }

@media (max-width: 960px) {
  .promo__grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .slider__btn { opacity: 1; width: 40px; height: 40px; }
  .slider__btn--prev { left: 8px; }
  .slider__btn--next { right: 8px; }
  .slider__dots { bottom: 8px; }
}
@media (hover: none) { .slider__btn { opacity: 1; } }
.slider__dots { position: static; padding: 12px 0; background: #2f5a35; }
.slider__dots button { background: rgba(255, 255, 255, .45); }
.slider__btn { top: calc(50% - 17px); }
.table .table__group th { background: var(--blue-50); color: var(--blue-800); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 8px 16px; }

/* ---------- Banner principal con carrusel de fotos ---------- */
.hero--slides { align-items: center; min-height: min(92vh, 860px); padding: clamp(56px, 7vw, 96px) 0 clamp(96px, 10vw, 130px); background: var(--blue-950); }
.hero--slides::before {
  background:
    linear-gradient(90deg, rgba(13, 8, 56, .96) 0%, rgba(13, 8, 56, .82) 45%, rgba(13, 8, 56, .55) 100%),
    linear-gradient(180deg, rgba(13, 8, 56, .2) 0%, rgba(13, 8, 56, .65) 100%);
}
.hero--slides .hero__media { overflow: hidden; }
.hero-slides__bg { position: absolute; inset: -40px; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slides__bg.is-active { opacity: 1; }
.hero-slides__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.3); transform: scale(1.1); animation: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero--slides .hero__content { max-width: none; }
.hero--slides h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); }

.hero-slides { position: relative; }
.hero-slides__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12);
  background: #2f5a35; transform: rotate(1.2deg); transition: transform .5s var(--ease);
}
.hero-slides:hover .hero-slides__frame { transform: rotate(0deg) scale(1.01); }
.hero-slides__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.hero-slides__slide.is-active { opacity: 1; transform: none; }
.hero-slides__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slides__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.hero-slides__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.hero-slides__btn:hover { background: #fff; color: var(--blue-900); }
.hero-slides__btn svg { width: 20px; height: 20px; }
.hero-slides__dots { display: flex; gap: 8px; }
.hero-slides__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.hero-slides__dots button[aria-current="true"] { width: 30px; background: var(--gold-500); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero--slides { min-height: 0; padding-top: 48px; }
  .hero-slides__frame { transform: none; }
}
@media (max-width: 720px) {
  .hero--slides::before { background: rgba(13, 8, 56, .82); }
  .hero--slides { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides__frame { transform: none; }
}
.hero--slides h1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); }
.hero--slides::before {
  background:
    linear-gradient(90deg, rgba(13, 8, 56, .95) 0%, rgba(13, 8, 56, .78) 42%, rgba(13, 8, 56, .35) 100%),
    linear-gradient(180deg, rgba(13, 8, 56, .1) 0%, rgba(13, 8, 56, .55) 100%);
}
@media (max-width: 720px) { .hero--slides::before { background: rgba(13, 8, 56, .8); } }
.table__pending, .calc__rows dd.is-pending { font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: #a37f00; background: var(--gold-100); padding: 3px 10px; border-radius: 999px; }

/* ---------- Integración del chat-asistente ---------- */
html:root { --windsor-chat-brand: #1f137a; --windsor-chat-dark: #0d0838; --windsor-chat-soft: #f3f2fd; }
/* Chat desactivado: el botón de WhatsApp vuelve a su posición original. */

/* ---------- Botón flotante de pagos ---------- */
.pay-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -12px rgba(22, 13, 85, .45);
  color: var(--blue-900); text-decoration: none;
  transform: translateY(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: payIn .6s var(--ease) 1s both;
}
.pay-float:hover { color: var(--blue-900); transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(22, 13, 85, .55); }
.pay-float__icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); transition: background .25s, color .25s; }
.pay-float:hover .pay-float__icon { background: var(--blue-700); color: #fff; }
.pay-float__icon svg { width: 22px; height: 22px; }
.pay-float__text { display: flex; flex-direction: column; line-height: 1.2; }
.pay-float__text strong { font-size: .95rem; }
.pay-float__text small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-600); margin-top: 3px; }
.pay-float__arrow { width: 16px; height: 16px; color: var(--muted); margin-left: 4px; }
@keyframes payIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .pay-float { left: 16px; bottom: 16px; padding: 6px 12px 6px 6px; gap: 8px; border-radius: 14px; }
  .pay-float__icon { width: 38px; height: 38px; border-radius: 11px; }
  .pay-float__text strong { font-size: .82rem; }
  .pay-float__text small { font-size: .62rem; }
  .pay-float__arrow { display: none; }
}
@media print { .pay-float { display: none !important; } }
@media (min-width: 1081px) { .cards--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; } .cards--5 .card { padding: 24px; } }
