/* ============================================================
   Colegio Robledal — demo de plantilla web para colegio privado
   Plantilla por Mercado Monkey · Newsreader + Schibsted Grotesk
   Grafito, papel y un solo acento: azul cobalto.
   ============================================================ */
:root {
  --ink: #1c2422;
  --ink-2: #29322f;
  --paper: #f5f2ea;
  --paper-2: #ece7dc;
  --card: #fbf9f4;
  --line: rgba(28, 36, 34, .13);
  --line-2: rgba(28, 36, 34, .22);
  --muted: #59605c;
  --accent: #2b4c9b;
  --accent-d: #1f3a7c;
  --wash: #e3e8f2;
  --on-ink: #f1ede4;
  --on-ink-muted: #b9bdb6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 22px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grano de papel: fijo y sin eventos para no repintar al hacer scroll */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-d); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 1.55rem + 3.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 1.45rem + 2vw, 3.15rem); line-height: 1.06; }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
h2 + .lead, h2 + p { margin-top: 20px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.ico { flex-shrink: 0; }

/* Etiquetas tipo capítulo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.chapter { font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--wash); color: var(--accent-d); font: 600 13px/1.2 var(--sans);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(43, 76, 155, .45); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 76, 155, .45); } 70% { box-shadow: 0 0 0 9px rgba(43, 76, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 76, 155, 0); } }

/* Botones: píldora con ícono anidado */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px;
  padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--fg); font: 600 15.5px/1.2 var(--sans); letter-spacing: .005em; text-align: left;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn .bi {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .14); transition: transform .45s var(--ease);
}
.btn.has-i { padding: 0 8px 0 26px; }
.btn:hover .bi { transform: translate(2px, -1px) scale(1.05); }
.btn-a { --bg: var(--accent); }
.btn-a:hover { --bg: var(--accent-d); }
.btn-p:hover { --bg: var(--ink-2); }
.btn-g { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-g .bi { background: var(--paper-2); }
.btn-g:hover { --bg: var(--card); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sec-ink .btn-g { --fg: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .3); }
.sec-ink .btn-g:hover { --bg: rgba(241, 237, 228, .08); --fg: var(--on-ink); box-shadow: inset 0 0 0 1px var(--on-ink); }
.btn-l { --bg: var(--paper); --fg: var(--ink); }
.btn-l .bi { background: var(--paper-2); }
.btn-l:hover { --bg: #fff; --fg: var(--ink); }
.btn-wide { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Barra superior y encabezado flotante ---------- */
.topbar { background: var(--ink); color: var(--on-ink); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar a { color: var(--on-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.topbar .tb-office { color: var(--on-ink-muted); display: flex; align-items: center; gap: 8px; }
.tb-state { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8fb59a; }
.tb-state.off { background: #c58c74; }
.site-header { position: sticky; top: 10px; z-index: 40; padding: 10px 0 0; }
.hdr {
  display: flex; align-items: center; gap: 22px; min-height: 68px; padding: 8px 8px 8px 20px;
  border-radius: 20px; background: rgba(245, 242, 234, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.site-header.is-stuck .hdr { background: rgba(251, 249, 244, .94); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(28, 36, 34, .35); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 44px; flex-shrink: 0; }
.brand .bw { display: flex; flex-direction: column; line-height: 1; }
.brand .bw b { font: 500 23px/1 var(--serif); letter-spacing: -.01em; }
.brand .bw small { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background-color .3s var(--ease);
}
.nav a:hover { background: rgba(28, 36, 34, .05); color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.hdr .btn { min-height: 48px; }
.menu-btn {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); position: relative;
}
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gut) 110px; background: rgba(28, 36, 34, .97); color: var(--on-ink);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mnav.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mnav a.ml {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 0; min-height: 56px;
  border-bottom: 1px solid rgba(241, 237, 228, .14); color: var(--on-ink); text-decoration: none;
  font: 400 clamp(2rem, 8vw, 2.6rem)/1.1 var(--serif);
  opacity: 0; transform: translateY(28px); transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.mnav a.ml small { font: 500 13px/1 var(--sans); letter-spacing: .12em; color: var(--on-ink-muted); }
.mnav a.ml[aria-current="page"] { color: #aebee6; }
.mnav.open a.ml { opacity: 1; transform: none; }
.mnav.open a.ml:nth-child(2) { transition-delay: .05s; } .mnav.open a.ml:nth-child(3) { transition-delay: .1s; } .mnav.open a.ml:nth-child(4) { transition-delay: .15s; }
.mnav .mn-foot { margin-top: 26px; display: grid; gap: 14px; color: var(--on-ink-muted); font-size: 15px; }
.mnav .mn-foot a { color: var(--on-ink); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header .hdr { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .brand { color: var(--on-ink); }
body.menu-open .brand .bw small { color: var(--on-ink-muted); }
body.menu-open .menu-btn { background: var(--paper); color: var(--ink); }

/* ---------- Secciones ---------- */
.sec { padding: clamp(80px, 9vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(56px, 6vw, 90px) 0; }
.sec-tint { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.sec-ink h2, .sec-ink h3 { color: var(--on-ink); }
.sec-ink h2 em { color: #aebee6; }
.sec-ink .muted, .sec-ink .lead { color: var(--on-ink-muted); }
.sec-ink .eyebrow { color: #aebee6; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head > p { margin: 0; color: var(--muted); max-width: 46ch; }
.sec-ink .sec-head > p { color: var(--on-ink-muted); }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* Marco doble (bisel) para fotos */
.bezel { padding: 7px; border-radius: calc(var(--r) + 7px); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(28, 36, 34, .45); }
.bezel > img, .bezel > .in-core { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero de inicio ---------- */
.hero { padding: clamp(36px, 5vw, 70px) 0 clamp(70px, 8vw, 120px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.hero-copy { position: relative; }
.hero-copy .pill { margin-bottom: 26px; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin: 24px 0 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.arch { padding: 8px; border-radius: 260px 260px 30px 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(28, 36, 34, .55); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 252px 252px 23px 23px; }
.ticket {
  position: absolute; left: -54px; bottom: 44px; width: 248px; padding: 18px 20px 18px; border-radius: 18px;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 30px 50px -28px rgba(28, 36, 34, .7);
}
.ticket .t-k { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #aebee6; }
.ticket .t-d { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 6px; }
.ticket .t-d b { font: 400 48px/0.9 var(--serif); }
.ticket .t-d span { font-size: 14.5px; line-height: 1.25; color: var(--on-ink-muted); }
.ticket a { color: var(--on-ink); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.seal { position: absolute; right: -18px; top: 26px; width: 118px; height: 118px; }
.seal svg { width: 100%; height: 100%; animation: spin 38s linear infinite; }
.seal text { font: 600 10.6px var(--sans); letter-spacing: .2em; text-transform: uppercase; fill: var(--ink); }
.seal .core { position: absolute; inset: 31px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font: italic 400 24px/1 var(--serif); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Regla de edades */
.ruler { margin-top: clamp(40px, 5vw, 60px); max-width: 640px; }
.ruler-k { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.ruler-k b { color: var(--ink); font-weight: 600; }
.ruler-track { display: grid; grid-template-columns: 3fr 6fr 3fr 3fr; gap: 4px; }
.ruler-seg {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 76px; padding: 10px 12px 10px;
  border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.ruler-seg::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 10px; height: 10px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 100%); background-size: calc(100% / var(--n, 3)) 100%;
}
.ruler-seg b { font: 500 15px/1.15 var(--sans); }
.ruler-seg small { font-size: 12.5px; color: var(--muted); }
.ruler-seg:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.ruler-seg:hover small { color: var(--on-ink-muted); }
.ruler-seg:hover::before { background-image: repeating-linear-gradient(90deg, rgba(241, 237, 228, .35) 0 1px, transparent 1px 100%); }

/* ---------- Cifras ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 30px 22px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 400 clamp(2.1rem, 1.6rem + 1.3vw, 2.9rem)/1 var(--serif); letter-spacing: -.02em; }
.fact b sup { font-size: .45em; vertical-align: top; position: relative; top: .3em; margin-left: 2px; color: var(--accent); }
.fact span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Niveles (lista editorial) ---------- */
.levels { border-top: 1px solid var(--line-2); }
.lvl {
  display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.4fr) 210px; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; position: relative;
}
.lvl:hover { color: var(--ink); }
.lvl .n { font: italic 400 22px/1 var(--serif); color: var(--accent); }
.lvl h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.5rem); transition: transform .5s var(--ease); }
.lvl:hover h3 { transform: translateX(8px); }
.lvl .meta { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.lvl p { margin: 0; color: var(--muted); }
.lvl .ph { width: 210px; height: 140px; border-radius: 16px; overflow: hidden; position: relative; }
.lvl .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lvl:hover .ph img { transform: scale(1.06); }
.lvl .go {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); transition: transform .45s var(--ease), background-color .3s;
}
.lvl:hover .go { background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- Modelo educativo ---------- */
.model { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.model-side { position: sticky; top: 120px; }
.model-side h2 { margin-bottom: 22px; }
.model-side .arch { max-width: 360px; margin-top: 34px; border-radius: 200px 200px 26px 26px; }
.model-side .arch img { aspect-ratio: 4 / 4.6; border-radius: 192px 192px 19px 19px; }
.pillars { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.pillars li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 22px; padding: 34px 0; border-top: 1px solid var(--line-2); }
.pillars li:last-child { border-bottom: 1px solid var(--line-2); }
.pillars li::before { counter-increment: p; content: "0" counter(p); font: italic 400 30px/1 var(--serif); color: var(--accent); grid-row: span 2; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { margin: 0; color: var(--muted); }
.pillars .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; grid-column: 2; }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }

/* ---------- Pestañas ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 14.5px/1 var(--sans); color: var(--muted); transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.sec-ink .tabs { background: rgba(241, 237, 228, .06); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .14); }
.sec-ink .tabs button { color: var(--on-ink-muted); }
.sec-ink .tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"] { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Un día en el colegio ---------- */
.day-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.day-head h2 { max-width: 16ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: rgba(241, 237, 228, .22); }
.timeline li { position: relative; padding: 34px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px #aebee6; }
.timeline li:first-child::before { background: #aebee6; }
.timeline time { display: block; font: 400 26px/1 var(--serif); color: var(--on-ink); }
.timeline b { display: block; margin: 12px 0 6px; font-size: 15.5px; font-weight: 600; color: var(--on-ink); line-height: 1.3; }
.timeline span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--on-ink-muted); }
.day-note { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(241, 237, 228, .14); color: var(--on-ink-muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.day-note span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Instalaciones (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); border: 0; padding: 0; cursor: zoom-in; background: var(--paper-2); color: #fff; text-align: left; font: inherit; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 18px;
  background: linear-gradient(to top, rgba(20, 26, 24, .82), rgba(20, 26, 24, 0));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.tile .cap b { display: block; font: 400 22px/1.1 var(--serif); }
.tile .cap small { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.tile .zoom { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex-shrink: 0; transition: transform .45s var(--ease); }
.tile:hover .zoom { transform: scale(1.08); }
.t1 { grid-column: span 7; grid-row: span 3; }
.t2 { grid-column: span 5; grid-row: span 2; }
.t3 { grid-column: span 5; grid-row: span 2; }
.t4 { grid-column: span 4; grid-row: span 3; }
.t5 { grid-column: span 3; grid-row: span 3; }
.t6 { grid-column: span 5; grid-row: span 2; }
.lb { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: var(--on-ink); }
.lb::backdrop { background: rgba(20, 26, 24, .9); }
.lb figure { margin: 0; }
.lb img { width: 100%; max-height: 76dvh; object-fit: contain; border-radius: 16px; }
.lb figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 15px; }
.lb-x { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Actividades ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 600 14px/1 var(--sans); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line-2); }
.act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.act b { font: 400 21px/1.2 var(--serif); }
.act .days { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.act .lv { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.act .lv span { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent-d); background: var(--wash); padding: 4px 10px; border-radius: 999px; }
.act[hidden] { display: none; }
.acts-empty { padding: 26px 0; color: var(--muted); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.q-stage { position: relative; min-height: 330px; }
.q { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; margin: 0; }
.q.on { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.q blockquote { margin: 0; font: 400 clamp(1.5rem, 1.1rem + 1.4vw, 2.35rem)/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.q blockquote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: .6; height: .42em; color: var(--accent); }
.q figcaption { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.q figcaption .mono { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: italic 400 18px/1 var(--serif); flex-shrink: 0; }
.q figcaption b { display: block; font-weight: 600; }
.q figcaption span { color: var(--muted); }
.q-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.q-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s; }
.q-ctrl button:hover { background: var(--ink); color: var(--paper); }
.q-ctrl .q-n { margin-left: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------- Open house ---------- */
.oh { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.oh-card { border-radius: 28px; padding: 8px; background: rgba(241, 237, 228, .06); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .14); }
.oh-core { border-radius: 21px; padding: clamp(24px, 3vw, 36px); background: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.oh-date { display: flex; align-items: flex-end; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(241, 237, 228, .14); }
.oh-date b { font: 400 88px/.8 var(--serif); letter-spacing: -.04em; }
.oh-date span { font-size: 15px; line-height: 1.4; color: var(--on-ink-muted); }
.oh-date span strong { display: block; color: var(--on-ink); font-size: 18px; font-weight: 600; }
.agenda { list-style: none; margin: 18px 0 26px; padding: 0; }
.agenda li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 10px 0; font-size: 15px; color: var(--on-ink-muted); }
.agenda li time { color: var(--on-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 18px 0; font: 400 clamp(1.15rem, 1.05rem + .4vw, 1.4rem)/1.3 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .45s var(--ease), background-color .3s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--paper); box-shadow: none; }
.faq .ans { padding: 0 60px 24px 0; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* ---------- Contacto / ubicación ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.clist { list-style: none; margin: 26px 0 30px; padding: 0; border-top: 1px solid var(--line); }
.clist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.clist li svg { margin-top: 3px; color: var(--accent); }
.clist small { display: block; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.clist a { color: var(--ink); font-weight: 500; }
.map { border-radius: calc(var(--r) + 7px); padding: 7px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 366px; border: 0; border-radius: var(--r); display: block; filter: grayscale(.4) contrast(1.02); }

/* ---------- Encabezado de páginas internas ---------- */
.phead { padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 5vw, 72px); }
.phead .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.phead h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.1rem); max-width: 15ch; }
.phead .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--ink); }

/* Sub-navegación fija de niveles */
.subnav { position: sticky; top: 94px; z-index: 20; padding: 8px 0; }
.subnav .tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: rgba(251, 249, 244, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.subnav .tabs::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--paper); }

/* Ficha de nivel */
.level { padding: clamp(70px, 8vw, 120px) 0; border-top: 1px solid var(--line); }
.level .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.level.flip .l-media { order: 2; }
.l-media { position: sticky; top: 170px; }
.l-media .bezel img { aspect-ratio: 4 / 4.4; }
.l-media .l-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.l-media .l-sub img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.l-k { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.l-k .n { font: italic 400 22px/1 var(--serif); color: var(--accent); }
.level h2 { margin-bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0 34px; border-top: 1px solid var(--line-2); }
.specs div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-2); }
.specs div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-2); }
.specs dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.specs dd { margin: 6px 0 0; font: 400 21px/1.25 var(--serif); }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.ticks li svg { margin-top: 4px; color: var(--accent); }
.h4 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.certs span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.certs span small { color: var(--muted); font-size: 12.5px; }

/* Tabla comparativa */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 400 20px/1.2 var(--serif); background: var(--ink); color: var(--on-ink); border-bottom: 0; }
.tbl tbody th { font-weight: 600; color: var(--muted); font-size: 14px; width: 18%; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* ---------- Admisiones ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, .8fr); gap: 8px 30px; padding: 30px 0; border-top: 1px solid var(--line-2); align-items: start; }
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.steps li::before { counter-increment: s; content: counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font: italic 400 24px/1 var(--serif); color: var(--accent); }
.steps h3 { margin-top: 10px; }
.steps p { margin: 10px 0 0; color: var(--muted); }
.steps .when { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.calc-box { border-radius: 30px; padding: 8px; background: rgba(241, 237, 228, .06); box-shadow: inset 0 0 0 1px rgba(241, 237, 228, .14); }
.calc-core { border-radius: 23px; padding: clamp(22px, 3vw, 36px); background: var(--paper); color: var(--ink); }
.calc-res { margin-top: 22px; padding: 22px; border-radius: 18px; background: var(--wash); min-height: 132px; }
.calc-res .k { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-d); }
.calc-res .g { font: 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.1 var(--serif); margin: 8px 0 6px; }
.calc-res p { margin: 0; font-size: 15px; color: var(--ink-2); }
.calc-res .link-arrow { margin-top: 8px; }
.calc-res.empty { display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--paper-2); }
.calc-res.empty p { color: var(--muted); }

.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); margin-top: 30px; }
.req ul { list-style: none; margin: 0; padding: 0; }
.req li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.req li svg { margin-top: 4px; color: var(--accent); }
.req-note { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.req-note svg { color: var(--accent); margin-top: 2px; }

.cal { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.cal li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.cal time { font: 400 22px/1.15 var(--serif); }
.cal b { font-weight: 600; display: block; }
.cal span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.cal .st { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; background: var(--paper-2); color: var(--muted); }
.cal .st.now { background: var(--accent); color: #fff; }
.cal .st.next { background: var(--wash); color: var(--accent-d); }

.fees { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.fee-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fee-list li { padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fee-list b { display: block; font: 400 20px/1.2 var(--serif); margin-bottom: 6px; }
.fee-list span { font-size: 15px; color: var(--muted); }

/* ---------- Formularios ---------- */
.form-shell { border-radius: 30px; padding: 8px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.form-core { border-radius: 23px; padding: clamp(22px, 3.4vw, 40px); background: var(--card); box-shadow: inset 0 1px 0 #fff; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.field .help { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease); appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c2422' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.field .err { display: none; font-size: 13.5px; color: #a3392b; font-weight: 500; }
.field.bad .err { display: block; }
.field.bad input, .field.bad select, .field.bad textarea { box-shadow: inset 0 0 0 2px #a3392b; background: #fff; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: grid; gap: 6px; height: 100%; min-height: 96px; padding: 16px; border-radius: 16px; cursor: pointer; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 400; transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.opt label b { font: 400 19px/1.15 var(--serif); }
.opt label span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.opt input:checked + label { background: var(--wash); box-shadow: inset 0 0 0 2px var(--accent); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.privacy { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 13.5px; color: var(--muted); margin: 0; }
.privacy svg { color: var(--accent); margin-top: 2px; }
.sent { display: none; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 18px; background: var(--wash); color: var(--ink); }
.sent.show { display: grid; animation: fadeUp .6s var(--ease); }
.sent .si { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.sent b { display: block; font: 400 21px/1.2 var(--serif); margin-bottom: 4px; }
.sent p { margin: 0; font-size: 15px; color: var(--ink-2); }
.form-err { display: none; color: #a3392b; font-size: 14.5px; font-weight: 500; margin: 0; }
.form-err.show { display: block; }

.v-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.v-side { position: sticky; top: 120px; display: grid; gap: 18px; }
.v-card { border-radius: var(--r); padding: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.v-card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.v-steps { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.v-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.v-steps li::before { counter-increment: v; content: counter(v); font: italic 400 20px/1.2 var(--serif); color: var(--accent); }
.v-steps b { display: block; color: var(--ink); }
.v-photo { border-radius: var(--r); overflow: hidden; }
.v-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Aviso legal y pie ---------- */
.disclaimer { font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 30px; align-items: center; padding: clamp(30px, 4vw, 54px); border-radius: 30px; background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.cta-band h2 em { color: #fff; }
.cta-band p { margin: 12px 0 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03); pointer-events: none; }
.cta-band .ctas { position: relative; z-index: 1; }

.ftr { background: var(--ink); color: var(--on-ink-muted); padding: clamp(60px, 7vw, 96px) 0 calc(36px + env(safe-area-inset-bottom)); font-size: 15px; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(241, 237, 228, .12); }
.ftr .brand { color: var(--on-ink); }
.ftr .brand .bw small { color: var(--on-ink-muted); }
.ftr p { margin: 16px 0 0; max-width: 36ch; }
.ftr h3 { font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink); margin: 6px 0 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ink-muted); text-decoration: none; }
.ftr li a:hover { color: var(--on-ink); }
.ftr li span { display: block; padding: 9px 0; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 26px; font-size: 13.5px; }
.ftr-bot a { color: var(--on-ink); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hdr .btn { display: none; }
  .menu-btn { display: block; }
  .facts .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
  .lvl { grid-template-columns: 56px minmax(0, 1fr) 180px; }
  .lvl p { grid-column: 2; grid-row: 2; }
  .lvl .ph { grid-column: 3; grid-row: 1 / span 2; width: 180px; height: 150px; }
}
@media (max-width: 900px) {
  .hero .wrap, .model, .quotes, .oh, .faq-grid, .visit, .phead .wrap, .level .wrap, .calc, .fees, .v-grid, .sec-head { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 440px; }
  .model-side, .l-media, .v-side { position: static; }
  .level.flip .l-media { order: 0; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top > div:first-child { grid-column: 1 / -1; }
  .bento { grid-auto-rows: 120px; }
  .t1 { grid-column: span 12; grid-row: span 3; }
  .t2, .t3 { grid-column: span 6; grid-row: span 2; }
  .t4, .t5, .t6 { grid-column: span 4; grid-row: span 2; }
  .steps li { grid-template-columns: 64px minmax(0, 1fr); }
  .steps li > div:last-child { grid-column: 2; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .q-stage { min-height: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar .tb-office { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar p > span:first-child { display: none; }
  .site-header { top: 8px; padding-top: 8px; }
  .hdr { min-height: 62px; padding: 6px 6px 6px 14px; border-radius: 18px; }
  .brand .bw b { font-size: 21px; }
  .hero { padding-top: 28px; }
  .hero h1 { max-width: none; }
  .ctas .btn { width: 100%; justify-content: space-between; }
  .ctas .btn:not(.has-i) { justify-content: center; }
  .ticket { left: 12px; bottom: 16px; width: 220px; padding: 14px 16px; }
  .ticket .t-d b { font-size: 40px; }
  .seal { width: 96px; height: 96px; right: 4px; top: 8px; }
  .seal .core { inset: 25px; font-size: 20px; }
  .seal text { font-size: 10.6px; }
  .ruler-track { grid-template-columns: 1fr 1fr; }
  .ruler-seg { min-height: 72px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px 20px; }
  .fact:nth-child(n) { border-left: 1px solid var(--line); padding-left: 16px; border-top: 1px solid var(--line); }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:last-child { grid-column: 1 / -1; }
  .lvl { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  .lvl .n { order: -1; }
  .lvl p, .lvl .ph { grid-column: auto; grid-row: auto; }
  .lvl .ph { width: 100%; height: 190px; order: -1; }
  .pillars li { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 14px; padding: 26px 0; }
  .pillars li::before { font-size: 24px; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 24px; }
  .timeline::before { display: block; left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .timeline li { padding: 0 0 26px 10px; }
  .timeline li::before { left: -24px; top: 6px; }
  .timeline b { margin-top: 8px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 210px; }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: auto; grid-row: auto; }
  .t1 { grid-row: span 1; }
  .acts { grid-template-columns: minmax(0, 1fr); }
  .act { grid-template-columns: minmax(0, 1fr); }
  .act .days { text-align: left; }
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; padding: 0 13px; font-size: 14px; white-space: nowrap; }
  .faq .ans { padding-right: 0; }
  .oh-date b { font-size: 72px; }
  .phead h1 { max-width: none; }
  .specs div { padding: 14px 12px 14px 0; }
  .specs div:nth-child(even) { padding-left: 14px; }
  .specs dt { font-size: 12px; }
  .specs dd { font-size: 17.5px; }
  .steps li { grid-template-columns: minmax(0, 1fr); padding: 26px 0; }
  .steps li > div:last-child { grid-column: auto; }
  .steps li::before { width: 46px; height: 46px; }
  .req { grid-template-columns: minmax(0, 1fr); }
  .cal li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cal .st { justify-self: start; }
  .fee-list { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form-shell, .calc-box { padding: 6px; border-radius: 26px; }
  .form-core, .calc-core { padding: 22px 18px; border-radius: 20px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt label { min-height: 0; }
  .subnav { top: 84px; }
  .subnav .tabs { width: 100%; }
  .ftr { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .ftr-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .map, .map iframe { min-height: 300px; }
  .l-media .l-sub { display: none; }
  .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
  .seal svg { animation: none; }
}
.tbl tbody th, .tbl thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tbl tbody th { background: var(--card); box-shadow: inset -1px 0 0 var(--line); }

/* Revisión responsive: footer en 2 columnas entre 901 y 1180 px (el correo no se sale) y botón largo en pantallas chicas */
@media (min-width: 901px) and (max-width: 1180px) { .ftr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ftr li a { overflow-wrap: anywhere; }
@media (max-width: 380px) { .btn { padding-left: 18px; padding-right: 18px; font-size: 14px; } }
