/* Mutual de la Trinidad — demo editorial
   Paleta tomada del sitio institucional (azul #123891, celeste #30aef2, rojo) y
   de la pieza del rompecabezas publicada en Instagram. */

:root {
  --navy-950: #070f29;
  --navy-900: #0b1738;
  --navy-800: #11224f;
  --navy: #123891;
  --sky: #30aef2;
  --sky-600: #2a9df4;
  --red: #e0322b;
  --paper: #f6f2e9;
  --paper-2: #ede7da;
  --ink: #0f1629;
  --ink-2: #474e60;
  --ink-3: #7a8091;
  --rule: #d9d2c2;
  --white: #fff;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;

  --wrap: 1240px;
  --gut: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--sky { color: var(--sky); }

/* ─────────────── Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 13px/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--sky { background: var(--sky-600); color: var(--white); }
.btn--sky:hover { background: var(--sky); }
.btn--white { background: var(--white); color: var(--navy-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--ink { background: var(--navy-900); color: var(--white); }
.btn--line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; font: 600 12px/1 var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────── Encabezado */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 23, 56, .92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-head__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 600 17px/1 var(--sans); letter-spacing: .03em; display: grid; gap: 3px; }
.brand__name small { font: 500 12px/1 var(--sans); letter-spacing: .02em; opacity: .85; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 10px 0; position: relative; opacity: .82; transition: opacity .2s;
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-on { opacity: 1; }
.site-nav a:hover::after, .site-nav a.is-on::after { transform: scaleX(1); }

/* ─────────────── Portada */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 38%, rgba(48, 174, 242, .2), transparent 70%),
    radial-gradient(50% 60% at 8% 100%, rgba(18, 56, 145, .55), transparent 70%),
    var(--navy-900);
  color: var(--white);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.masthead {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .62);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: clamp(36px, 5.5vw, 84px) 0 clamp(32px, 4vw, 60px);
}
.hero h1 {
  margin-top: 22px;
  font: 500 clamp(46px, 6.7vw, 104px)/.96 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero h1 em { color: var(--sky); font-weight: 400; }
.lead { margin-top: 26px; max-width: 34em; font: 400 clamp(16px, 1.35vw, 19px)/1.6 var(--sans); color: rgba(255, 255, 255, .78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__puzzle { position: relative; justify-self: center; width: min(100%, 580px); }
.pz svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.pz [data-piece] { transition: transform .45s var(--ease); animation: pz-in 1s var(--ease) backwards; animation-delay: var(--d, 0s); }
.pz .is-lift { transform: translate(calc(var(--dx) * 12px), calc(var(--dy) * 12px)); }
.pz__hit { fill: transparent; cursor: pointer; outline: none; }
.pz a:focus-visible .pz__hit { stroke: var(--sky); stroke-width: 4; }
.pz__hint { margin-top: 10px; text-align: center; font: 500 12px/1.4 var(--sans); letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
@keyframes pz-in {
  from { transform: translate(calc(var(--dx) * 90px), calc(var(--dy) * 90px)) rotate(calc(var(--dx) * 6deg)); opacity: 0; }
}

.next { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.next__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; }
.next__item { border-left: 1px solid rgba(255, 255, 255, .16); }
.next__item:first-child { border-left: 0; }
.next__item button {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  width: 100%; padding: 6px 24px 6px 24px; background: none; border: 0; text-align: left;
}
.next__item:first-child button { padding-left: 0; }
.next__day { grid-row: span 2; font: 500 54px/.9 var(--serif); letter-spacing: -.03em; }
.next__day small { display: block; margin-top: 6px; font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.next__title { font: 500 20px/1.2 var(--serif); transition: color .2s; }
.next__item button:hover .next__title { color: var(--sky); }
.next__meta { font: 500 12px/1.4 var(--sans); color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

/* ─────────────── Banda de espacios */
.band { overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule); }
.band__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; padding: 20px 0; animation: band 46s linear infinite; }
.band__track > * { flex: none; white-space: nowrap; line-height: 1; }
.band i { font-style: normal; font-size: 12px; color: var(--sky-600); }
.b-lib { font: 800 22px/1 var(--sans); letter-spacing: .02em; color: #3f5fe0; }
.b-ver { font: 700 22px/1 var(--sans); color: #e3312d; }
.b-ver em { font-weight: 800; color: #1f4fb4; }
.b-eng { font: 800 20px/1 var(--sans); color: #151b4d; display: inline-flex; align-items: center; gap: 10px; }
.b-eng small { padding: 5px 8px; background: #d7252b; color: #fff; font: 600 11px/1 var(--sans); }
.b-lac { font: 400 30px/1 var(--script); color: #e0661c; display: inline-flex; align-items: baseline; gap: 10px; }
.b-lac small { font: 500 11px/1 var(--sans); letter-spacing: .3em; color: var(--ink); }
.b-fam { font: 500 17px/1 var(--serif); letter-spacing: .2em; color: #b4232c; }
@keyframes band { to { transform: translateX(-50%); } }

/* ─────────────── Encabezados de sección */
.sec-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 320px);
  align-items: end; gap: clamp(16px, 3vw, 44px);
  padding-bottom: 28px; margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.sec-num {
  font: 400 clamp(64px, 9vw, 132px)/.78 var(--serif); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--navy); opacity: .55;
}
.sec-head h2 { margin-top: 12px; font: 500 clamp(34px, 4.6vw, 66px)/1 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.sec-head h2 em { color: var(--navy); font-weight: 400; }
.sec-note { font: 400 14px/1.6 var(--sans); color: var(--ink-2); }
.sec-head--light { border-color: rgba(255, 255, 255, .16); }
.sec-head--light .sec-num { -webkit-text-stroke-color: var(--sky); }
.sec-head--light h2 em { color: var(--sky); }

/* ─────────────── 01 Agenda */
.agenda { padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 100px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px 0 12px;
  border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip small { font: 600 11px/1 var(--sans); opacity: .55; }

.cal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.cal__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cal__title { font: 500 clamp(40px, 5.4vw, 76px)/.9 var(--serif); letter-spacing: -.03em; text-transform: capitalize; }
.cal__title small { font: 400 .42em/1 var(--serif); font-style: italic; color: var(--ink-3); letter-spacing: 0; margin-left: .3em; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  font: 600 14px/1 var(--sans); transition: background .2s, color .2s, border-color .2s;
}
.cal__nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cal__today { font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; }

.cal__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cal__dow span { padding: 10px 8px 8px; font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.day {
  position: relative; min-height: 118px; padding: 8px 6px 6px;
  border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: transparent; text-align: left; display: flex; flex-direction: column; gap: 3px;
  transition: background .2s;
}
.day--out { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(15, 22, 41, .035) 7px 8px); }
.day--out .day__n { opacity: .3; }
button.day:hover { background: rgba(18, 56, 145, .05); }
.day.is-sel { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.day__n { font: 500 19px/1 var(--serif); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 2px; }
.day--today .day__n { background: var(--navy); color: var(--white); }
.pill {
  display: block; width: 100%; padding: 4px 6px 4px 8px;
  border-radius: 4px; background: var(--c); color: var(--k);
  font: 700 10.5px/1.25 var(--sans); letter-spacing: .01em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.pill--span {
  --l: 0px; --r: 0px;
  display: block; position: relative; overflow: visible; white-space: nowrap; pointer-events: none;
  margin-left: calc(var(--l) * -1); width: calc(100% + var(--l) + var(--r));
}
.pill--jl { --l: 6px; border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 6px; }
.pill--jr { --r: 7px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.day--lead { z-index: 2; }
.pill--soft { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--c); font-weight: 600; }
.pill--soft.pill--span { background: color-mix(in srgb, var(--c) 16%, var(--paper)); box-shadow: none; }
.pill--soft.pill--span:not(.pill--jl) { box-shadow: inset 3px 0 0 var(--c); }
.pill--more { background: none; color: var(--ink-3); padding-left: 2px; font-weight: 600; }
.day__dots { display: none; gap: 3px; flex-wrap: wrap; }
.day__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.day__dots i.is-soft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }

.cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 38px; height: 22px; border-radius: 999px; background: var(--rule); position: relative; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--navy); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--sky); outline-offset: 3px; }
.legend { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); color: var(--ink-3); }
.legend__solid, .legend__line { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.legend__solid { background: var(--ink); }
.legend__line { box-shadow: inset 0 0 0 1px var(--ink-3), inset 3px 0 0 var(--ink); margin-left: 12px; }

.cal__side { position: sticky; top: 92px; }
.cal__sidehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.agenda-list { max-height: 640px; overflow: auto; scrollbar-width: thin; }
.agenda-list__empty { padding: 28px 0; font: 400 17px/1.5 var(--serif); font-style: italic; color: var(--ink-2); }
.agenda-list__empty button { display: block; margin-top: 12px; font-style: normal; }
.ag {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  width: 100%; padding: 16px 4px 16px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left;
}
.ag__date { font: 500 38px/.9 var(--serif); letter-spacing: -.03em; }
.ag__date small { display: block; margin-top: 5px; font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ag__date span { display: block; font: 400 13px/1.2 var(--serif); font-style: italic; color: var(--ink-3); margin-top: 3px; letter-spacing: 0; }
.ag__space { display: flex; align-items: center; gap: 7px; font: 700 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ag__title { margin-top: 6px; font: 500 20px/1.2 var(--serif); transition: color .2s; }
.ag:hover .ag__title { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ag__meta { margin-top: 5px; font: 500 12px/1.45 var(--sans); color: var(--ink-2); }
.ag.is-past { opacity: .62; }
.ag.is-past:hover { opacity: 1; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--paper-2); font: 700 9.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); vertical-align: 1px; }

.months { margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--rule); }
.months__strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 16px; align-items: end; }
.mo { display: grid; gap: 8px; padding: 0; background: none; border: 0; text-align: left; }
.mo__bar { height: 64px; display: flex; flex-direction: column-reverse; gap: 2px; }
.mo__bar i { display: block; height: 7px; border-radius: 2px; background: var(--c); }
.mo__name { padding-top: 8px; border-top: 2px solid var(--rule); font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: color .2s, border-color .2s; }
.mo:hover .mo__name, .mo.is-on .mo__name { color: var(--ink); border-color: var(--ink); }
.mo__n { font: 400 13px/1 var(--serif); font-style: italic; color: var(--ink-3); }

/* ─────────────── 02 Espacios */
.spaces-intro { padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); border-top: 1px solid var(--rule); }
.space-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--rule); }
.space-index a {
  position: relative; display: grid; gap: 26px; padding: 18px 18px 20px;
  border-right: 1px solid var(--rule); text-decoration: none;
  font: 500 clamp(17px, 1.7vw, 22px)/1.15 var(--serif);
  transition: background .25s, color .25s;
}
.space-index a span { font: 700 11px/1 var(--sans); letter-spacing: .18em; color: var(--c); transition: color .25s; }
.space-index a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.space-index a:hover { background: var(--c); color: var(--white); }
.space-index a:hover span { color: var(--white); }

.space { position: relative; padding: clamp(64px, 8vw, 116px) 0; overflow: hidden; }
.space__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 84px); align-items: center; }
.space__no { font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.space__lead { margin-top: 22px; max-width: 36em; font: 400 clamp(16px, 1.3vw, 18px)/1.65 var(--sans); }
.space__contact { margin-top: 22px; font: 500 13px/1.6 var(--sans); opacity: .86; }
.space__contact a { font-weight: 700; text-underline-offset: 3px; }

.mini { align-self: start; }
.mini__list { margin-top: 12px; border-top: 2px solid currentColor; }
.mini__list li button {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: baseline;
  width: 100%; padding: 13px 0; background: none; border: 0; border-bottom: 1px solid var(--line, rgba(15, 22, 41, .16)); text-align: left;
}
.mini__when { font: 700 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.mini__what { font: 500 18px/1.25 var(--serif); }
.mini__list li button:hover .mini__what { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mini--row { margin-top: clamp(36px, 5vw, 60px); }

/* Escuela para la Familia — papel crema, rojo y azul, serif en versales */
.space--familia { background: #faf5ea; color: #1d2752; --line: rgba(29, 39, 82, .18); }
.space--familia .space__no { color: #b4232c; opacity: 1; }
.fam-art { display: grid; justify-items: center; gap: 20px; }
.fam-tree { width: min(100%, 420px); }
.fam-tree svg { width: 100%; height: auto; overflow: visible; }
.fam-tree .leaf { transform-box: fill-box; transform-origin: center; animation: leaf 5s ease-in-out infinite alternate; animation-delay: var(--ld); }
@keyframes leaf { to { transform: rotate(7deg) scale(1.04); } }
.fam-seal { font: 500 13px/1 var(--serif); letter-spacing: .34em; text-transform: uppercase; color: #b4232c; padding: 12px 0; border-top: 1px solid #b4232c; border-bottom: 1px solid #b4232c; }
.fam-title { margin-top: 18px; font: 500 clamp(30px, 4vw, 56px)/1.06 var(--serif); letter-spacing: .08em; text-transform: uppercase; color: #b4232c; }
.fam-title span { display: block; color: #1d2752; }
.fam-sub { margin-top: 14px; font: 400 clamp(20px, 2.1vw, 28px)/1.3 var(--serif); font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -.02em; color: #b4232c; }
.stats dd { margin-top: 8px; font: 500 12.5px/1.45 var(--sans); }
.fam-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 76px); border-top: 2px solid #1d2752; }
.fam-catalog > div { padding: 22px 22px 6px 0; }
.fam-catalog > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.fam-catalog h4 { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #b4232c; }
.fam-catalog ul { margin-top: 14px; }
.fam-catalog li { font: 400 clamp(18px, 1.7vw, 22px)/1.5 var(--serif); }
.fam-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 84px); margin-top: clamp(40px, 6vw, 76px); align-items: end; }
.fam-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 10px 10px; overflow: hidden; background: #e9dfca; box-shadow: 0 0 0 1px #b4232c, 0 0 0 6px #faf5ea, 0 0 0 7px #1d2752; margin: 7px; }
.arch--tall { aspect-ratio: 3 / 4.7; }
.arch img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.03); }
.credit { grid-column: 1 / -1; font: 500 11px/1.4 var(--sans); opacity: .6; margin-top: 4px; }

/* Centro Lácteo — naranja, sello circular, script */
.space--lacteo {
  background:
    radial-gradient(28% 34% at 6% 12%, #f59a55 0 60%, transparent 61%),
    radial-gradient(22% 30% at 96% 86%, #f59a55 0 60%, transparent 61%),
    radial-gradient(14% 18% at 88% 8%, #f28a40 0 60%, transparent 61%),
    #ee7a30;
  color: #2a1203; --line: rgba(42, 18, 3, .22);
}
.lac-art { display: grid; place-items: center; }
.lac-badge {
  width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: #1b1b1b;
  display: grid; place-content: center; justify-items: center; gap: 0;
  box-shadow: 0 30px 60px rgba(120, 48, 4, .28), 0 0 0 14px rgba(255, 255, 255, .22);
  transform: rotate(-4deg);
}
.lac-badge span { font: 500 clamp(18px, 2.2vw, 30px)/1 var(--sans); letter-spacing: .32em; margin-right: -.32em; }
.lac-badge b { font: 400 clamp(72px, 10.5vw, 148px)/1 var(--script); margin-top: -.02em; }
.space--lacteo h3 { margin-top: 18px; font: 500 clamp(36px, 4.8vw, 68px)/1 var(--serif); letter-spacing: -.022em; color: var(--white); }
.space--lacteo h3 em { font: 400 1.02em/1 var(--script); letter-spacing: 0; color: #2a1203; }
.hours { margin-top: 20px; border-top: 2px solid currentColor; max-width: 30em; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { font: 700 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hours dd { font: 500 18px/1.2 var(--serif); text-align: right; }
.hours--dark { --line: rgba(255, 255, 255, .16); }
.open { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1b1b1b; font: 700 12px/1.2 var(--sans); }
.open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa0ad; }
.open.is-open::before { background: #18a957; box-shadow: 0 0 0 4px rgba(24, 169, 87, .22); }
.open:empty { display: none; }
.open--inline { margin-top: 10px; padding: 5px 10px; font-size: 11px; }
.open--dark { background: rgba(255, 255, 255, .1); color: var(--white); }
.lac-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.lac-tiles li { background: var(--white); color: #1b1b1b; border-radius: 18px; padding: 20px 18px 18px; display: grid; gap: 8px; align-content: start; min-height: 132px; }
.lac-tiles b { font: 400 clamp(26px, 2.5vw, 34px)/1 var(--script); color: #e0661c; }
.lac-tiles span { font: 500 12.5px/1.4 var(--sans); }
.space--lacteo .mini__list { --line: rgba(42, 18, 3, .22); }
.space--lacteo .eyebrow { color: #2a1203; }

/* Trinitarios School of English — azul noche, barra roja, Big Ben */
.space--english { background: linear-gradient(180deg, #151b4d 0%, #0e1238 100%); color: var(--white); --line: rgba(255, 255, 255, .16); }
.space--english .space__no, .space--english .eyebrow { color: #ff6d68; opacity: 1; }
.eng-title { margin-top: 18px; font: 800 clamp(40px, 6.2vw, 92px)/.92 var(--sans); letter-spacing: .01em; text-transform: uppercase; }
.eng-title span { display: inline-block; margin-top: 14px; padding: .34em .7em .36em; background: #d7252b; font: 600 clamp(14px, 1.7vw, 24px)/1 var(--sans); letter-spacing: .08em; text-transform: none; }
.space--english .space__lead { color: rgba(255, 255, 255, .8); }
.why { margin-top: 28px; counter-reset: why; border-top: 1px solid var(--line); max-width: 34em; }
.why li { counter-increment: why; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font: 400 clamp(18px, 1.7vw, 22px)/1.3 var(--serif); }
.why li::before { content: "0" counter(why); font: 700 11px/1 var(--sans); letter-spacing: .16em; color: #ff5a55; }
.eng-art { justify-self: center; width: min(100%, 440px); }
.eng-art svg { width: 100%; height: auto; overflow: visible; }
.eng-art .umb { animation: float 6s ease-in-out infinite alternate; animation-delay: var(--ud); transform-box: fill-box; transform-origin: center; }
@keyframes float { to { transform: translateY(-14px) rotate(4deg); } }
.eng-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 84px); margin-top: clamp(40px, 6vw, 76px); align-items: start; }
.pass { display: grid; grid-template-columns: 1fr auto; background: #f7f3ea; color: #12173f; border-radius: 18px; overflow: hidden; }
.pass__main { padding: clamp(20px, 2.6vw, 34px); }
.pass__kicker { font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #d7252b; }
.pass__route { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.pass__route span { font: 800 clamp(34px, 4.4vw, 60px)/1 var(--sans); letter-spacing: .01em; }
.pass__route small { display: block; margin-top: 6px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.pass__route i { flex: 1; height: 0; border-top: 2px dashed #12173f; position: relative; opacity: .5; }
.pass__route i::after { content: "✈"; position: absolute; right: -4px; top: -15px; font: normal 22px/1 var(--sans); }
.pass__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(18, 23, 63, .18); }
.pass__facts dt { font: 700 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .55; }
.pass__facts dd { margin-top: 6px; font: 500 17px/1.25 var(--serif); }
.pass__stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 20px clamp(18px, 2.4vw, 32px); background: #d7252b; color: var(--white); border-left: 2px dashed #f7f3ea; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: #111641; }
.pass__stub::before { top: -10px; } .pass__stub::after { bottom: -10px; }
.pass__stub span { font: 700 13px/1 var(--sans); letter-spacing: .3em; }
.pass__stub b { font: 800 clamp(26px, 3vw, 40px)/1 var(--sans); }
.pass__stub small { margin-top: 10px; font: 600 9px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .8; }

/* Trini Verano — blanco, sol, rojo y azul en itálica */
.space--verano { background: #fffdf6; color: #14204a; padding-bottom: clamp(120px, 12vw, 180px); --line: rgba(20, 32, 74, .16); }
.ver-sun { position: absolute; right: -8vw; top: -10vw; width: clamp(280px, 42vw, 620px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffd84d 0 46%, rgba(255, 216, 77, .45) 46.5% 62%, rgba(255, 216, 77, .2) 62.5% 80%, transparent 80.5%); animation: sun 9s ease-in-out infinite alternate; }
@keyframes sun { to { transform: scale(1.06) rotate(8deg); } }
.space--verano .wrap { position: relative; }
.space--verano .space__no { color: #e3312d; opacity: 1; }
.ver-title { margin-top: 16px; font: 800 clamp(52px, 8vw, 124px)/.9 var(--sans); letter-spacing: -.035em; }
.ver-title span { color: #e3312d; }
.ver-title i { color: #1f4fb4; font-style: italic; }
.ver-sub { margin-top: 14px; font: 400 clamp(22px, 2.4vw, 32px)/1.2 var(--serif); font-style: italic; }
.ver-programs { display: grid; gap: 12px; }
.ver-programs li { position: relative; background: var(--white); border-radius: 18px; padding: 20px 22px 20px 34px; display: grid; gap: 6px; box-shadow: 0 14px 34px rgba(20, 32, 74, .1); }
.ver-programs li::before { content: ""; position: absolute; left: 14px; top: 18px; bottom: 18px; width: 6px; border-radius: 3px; background: var(--c); }
.ver-programs b { font: 800 clamp(18px, 1.8vw, 22px)/1.15 var(--sans); font-style: italic; letter-spacing: -.01em; }
.ver-programs span { font: 500 14px/1.5 var(--sans); color: #4a5375; }
.ver-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 84px); margin-top: clamp(40px, 6vw, 76px); align-items: start; }
.space--verano .eyebrow { color: #e3312d; }
.mini__list--cards { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini__list--cards li button { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: space-between; min-height: 150px; padding: 16px; border: 0; border-radius: 16px; color: var(--white); }
.mini__list--cards li:nth-child(3n+1) button { background: #e3312d; transform: rotate(-1.6deg); }
.mini__list--cards li:nth-child(3n+2) button { background: #1f4fb4; transform: rotate(1.2deg); }
.mini__list--cards li:nth-child(3n) button { background: #ffc21a; color: #14204a; transform: rotate(-.8deg); }
.mini__list--cards li button:hover { transform: rotate(0) translateY(-4px); }
.mini__list--cards li button { transition: transform .3s var(--ease); }
.mini__list--cards .mini__what { font: 800 19px/1.15 var(--sans); font-style: italic; letter-spacing: -.01em; }
.mini__list--cards .mini__when { opacity: .9; }
.ver-classics { margin-top: 20px; font: 500 14px/1.6 var(--sans); color: #4a5375; }
.ver-classics b { color: #14204a; }
.ver-check { background: var(--white); border-radius: 22px; padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 14px 34px rgba(20, 32, 74, .1); }
.check { margin-top: 14px; display: grid; gap: 2px; }
.check button { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; width: 100%; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: 500 15px/1.35 var(--sans); }
.check button::before { content: ""; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #1f4fb4; background: center / 14px no-repeat; transition: background-color .2s; }
.check button[aria-pressed="true"]::before { background-color: #1f4fb4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check button[aria-pressed="true"] { color: #8189a6; text-decoration: line-through; }
.check__note { margin-top: 14px; font: 600 12.5px/1.4 var(--sans); color: #e3312d; }
.ver-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 120px); }
.space--verano .space__contact { position: relative; }

/* Librería — azul pleno, cajas inclinadas como en su flyer de horarios */
.space--libreria {
  background:
    radial-gradient(30% 40% at 100% 0%, rgba(255, 255, 255, .16) 0 60%, transparent 61%),
    radial-gradient(26% 34% at 0% 100%, rgba(255, 255, 255, .12) 0 60%, transparent 61%),
    #3f5fe0;
  color: var(--white); --line: rgba(255, 255, 255, .22);
}
.lib-title { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 26px); margin-top: 18px; font: 800 clamp(46px, 7.4vw, 112px)/.86 var(--sans); letter-spacing: -.01em; text-transform: uppercase; }
.lib-title svg { width: clamp(44px, 6vw, 84px); height: auto; flex: none; }
.lib-sub { margin-top: 18px; font: 400 clamp(22px, 2.4vw, 32px)/1.2 var(--serif); font-style: italic; }
.space--libreria .space__lead { color: rgba(255, 255, 255, .86); }
.lib-services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.lib-services li { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); font: 700 12px/1 var(--sans); letter-spacing: .06em; }
.lib-services li::before { content: "#"; opacity: .6; }
.lib-branches { display: grid; gap: 14px; }
.lib-branches li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #14204a; padding: 20px 26px; transform: skewX(-7deg); border-radius: 6px; box-shadow: 0 16px 30px rgba(10, 18, 60, .28); }
.lib-branches li > * { transform: skewX(7deg); }
.lib-branches .lib-branches__n { margin: 0; opacity: 1; font: 800 clamp(40px, 4.4vw, 60px)/1 var(--sans); color: #ff8a3c; }
.lib-branches b { display: block; font: 800 clamp(18px, 1.9vw, 24px)/1.15 var(--sans); letter-spacing: .01em; text-transform: uppercase; }
.lib-branches span { display: block; margin-top: 4px; font: 500 13px/1.4 var(--sans); opacity: .78; }
.lib-branches em { display: block; margin-top: 8px; font: 700 14px/1.3 var(--sans); font-style: normal; color: #8fd4ff; }
.lib-branches em a { color: inherit; }
.space--libreria .eyebrow { color: var(--white); }

/* ─────────────── 03 Beneficios */
.benefits { padding: clamp(64px, 8vw, 120px) 0 clamp(56px, 7vw, 100px); }
.ben-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.tickets { display: grid; gap: 16px; }
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(200px, 290px) 1fr; text-align: left; width: 100%;
  border: 0; padding: 0; background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px rgba(15, 22, 41, .07);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ticket:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--rule), 0 26px 50px rgba(15, 22, 41, .12); }
.ticket__big { position: relative; display: grid; align-content: center; gap: 6px; padding: 26px 24px; background: var(--navy); color: var(--white); border-right: 2px dashed var(--paper); }
.ticket__big::before, .ticket__big::after { content: ""; position: absolute; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket__big::before { top: -11px; } .ticket__big::after { bottom: -11px; }
.ticket__n { font: 500 clamp(54px, 6.4vw, 92px)/.85 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.ticket__n sup { font: 400 .42em/1 var(--serif); font-style: italic; vertical-align: top; margin-left: .06em; position: relative; top: .14em; }
.ticket__n--long { font-size: clamp(44px, 4.9vw, 68px); letter-spacing: -.03em; }
.ticket__n--word { font: 400 clamp(40px, 4.6vw, 62px)/1 var(--serif); font-style: italic; letter-spacing: -.02em; }
.ticket__cond { font: 600 12px/1.4 var(--sans); letter-spacing: .04em; color: #a9d8ff; }
.ticket__body { padding: 24px clamp(20px, 2.6vw, 34px); display: grid; gap: 8px; align-content: center; }
.ticket__rubro { font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--c-ben, #1f9d6b); }
.ticket__name { font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.ticket__detail { font: 400 14px/1.55 var(--sans); color: var(--ink-2); }
.ticket__where { font: 600 12px/1.4 var(--sans); color: var(--ink); margin-top: 4px; }
.ticket:nth-child(2) .ticket__big { background: var(--ink); }
.ticket:nth-child(3) .ticket__big { background: #ee7a30; }
.ticket:nth-child(3) .ticket__cond { color: #fff0e2; }

.card-mock { display: grid; gap: 16px; position: sticky; top: 92px; }
.card-mock__card {
  aspect-ratio: 1.586; border-radius: 22px; padding: 22px; color: var(--white);
  background: radial-gradient(70% 90% at 100% 0%, rgba(48, 174, 242, .55), transparent 70%), linear-gradient(140deg, #123891, #0b1738);
  box-shadow: 0 30px 60px rgba(11, 23, 56, .3); display: grid; align-content: space-between;
  transform: rotate(-3deg); transition: transform .5s var(--ease);
}
.card-mock:hover .card-mock__card { transform: rotate(0); }
.card-mock__row { display: flex; align-items: center; gap: 10px; }
.card-mock__row svg { width: 34px; height: 34px; }
.card-mock__row span { font: 600 14px/1 var(--sans); letter-spacing: .03em; display: grid; gap: 3px; }
.card-mock__row small { font: 500 10px/1 var(--sans); opacity: .8; }
.card-mock__name { font: 500 22px/1.1 var(--serif); }
.card-mock__name small { display: block; margin-top: 6px; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.card-mock__bars { height: 30px; border-radius: 4px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 10px, #fff 10px 13px, transparent 13px 15px); opacity: .9; }
.card-mock__note { font: 400 13px/1.55 var(--sans); color: var(--ink-2); }
.card-mock__note b { color: var(--ink); }

.rubros { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: clamp(40px, 5.4vw, 72px); }
.rubro { display: grid; justify-items: center; gap: 10px; padding: 0; background: none; border: 0; }
.rubro__ico { width: 100%; max-width: 84px; aspect-ratio: 1; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--rule); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.rubro__ico svg { width: 46%; height: 46%; fill: none; stroke: #6cc5ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rubro:hover .rubro__ico { transform: translateY(-4px); }
.rubro[aria-pressed="true"] .rubro__ico { background: var(--sky-600); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--navy); }
.rubro[aria-pressed="true"] .rubro__ico svg { stroke: var(--white); }
.rubro__name { font: 700 11px/1.2 var(--sans); letter-spacing: .04em; text-align: center; color: var(--ink-2); }
.rubro[aria-pressed="true"] .rubro__name { color: var(--ink); }

.merchants { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--ink); }
.merchants__list { margin-top: 6px; columns: 3; column-gap: clamp(24px, 4vw, 56px); }
.merchants__list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.merchants__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; text-decoration: none; }
.merchants__list b { font: 500 clamp(19px, 1.8vw, 23px)/1.2 var(--serif); transition: color .2s; }
.merchants__list span { font: 500 11.5px/1.2 var(--sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchants__list a:hover b { color: var(--navy); }
.merchants__list .has-benefit b::after { content: "★"; margin-left: 8px; font-size: .6em; color: #1f9d6b; vertical-align: .3em; }
.merchants__empty { padding: 22px 0; font: 400 18px/1.5 var(--serif); font-style: italic; color: var(--ink-2); }
.merchants__empty a { display: inline; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.merchants__note { margin-top: 18px; font: 400 12.5px/1.55 var(--sans); color: var(--ink-3); max-width: 60em; }

/* ─────────────── 04 La Mutual */
.about { background: var(--navy-900); color: var(--white); padding: clamp(64px, 8vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(28px, 5vw, 84px); align-items: start; }
.about__lead { font: 400 clamp(22px, 2.5vw, 34px)/1.3 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.about__cols h4 { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.about__cols p { margin-top: 12px; font: 400 15px/1.65 var(--sans); color: rgba(255, 255, 255, .78); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; }
.timeline li { position: relative; padding: 22px 18px 0 0; border-top: 2px solid var(--sky); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--navy-900); }
.timeline b { display: block; font: 500 clamp(30px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -.02em; }
.timeline span { display: block; margin-top: 10px; font: 400 13.5px/1.55 var(--sans); color: rgba(255, 255, 255, .72); }
.contact { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); }
.contact__addr { margin-top: 14px; font: 500 clamp(32px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -.02em; }
.contact__addr small { display: block; margin-top: 8px; font: 500 13px/1 var(--sans); letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.contact__cta { display: grid; gap: 10px; margin-top: 24px; }

/* ─────────────── Pie */
.site-foot { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.site-foot__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-foot .brand { color: var(--white); }
.site-foot__demo { max-width: 46em; font: 400 12.5px/1.6 var(--sans); }
.site-foot__demo b { color: var(--white); }

/* ─────────────── Barra inferior (móvil) */
.tabbar { display: none; }

/* ─────────────── Ficha de actividad */
.sheet {
  width: min(600px, calc(100vw - 24px)); max-height: min(86vh, 760px);
  padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 100px rgba(7, 15, 41, .5); overflow: hidden;
}
.sheet::backdrop { background: rgba(7, 15, 41, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .4s var(--ease); display: flex; flex-direction: column; }
@keyframes sheet-in { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font: 400 24px/1 var(--sans); color: var(--ink); }
.sheet__in { overflow: auto; }
.sheet__top { padding: 30px 30px 26px; background: var(--c); color: var(--k); }
.sheet__space { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .85; padding-right: 48px; }
.sheet__title { margin-top: 14px; font: 500 clamp(28px, 5vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.sheet__when { margin-top: 14px; font: 600 14px/1.4 var(--sans); }
.sheet__body { padding: 26px 30px 30px; display: grid; gap: 20px; }
.sheet__text { font: 400 18px/1.55 var(--serif); }
.sheet__facts { border-top: 2px solid var(--ink); }
.sheet__facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.sheet__facts dt { font: 700 10.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sheet__facts dd { font: 500 15px/1.4 var(--sans); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet__note { font: 400 12px/1.5 var(--sans); color: var(--ink-3); }

/* ─────────────── Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ─────────────── Responsive */
@media (max-width: 1080px) {
  .cal { grid-template-columns: 1fr; }
  .cal__side { position: static; }
  .agenda-list { max-height: none; }
  .ben-top { grid-template-columns: 1fr; }
  .card-mock { position: static; grid-template-columns: minmax(0, 300px) 1fr; align-items: center; gap: 28px; }
  .about__grid { grid-template-columns: 1fr; }
  .rubros { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 10px; }
  .lac-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 64px; }
  .site-nav { display: none; }
  .site-head__in { height: 60px; justify-content: space-between; }
  .masthead span:nth-child(2) { display: none; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 34px; }
  .hero__puzzle { order: -1; width: min(100%, 420px); }
  .next__list { grid-template-columns: 1fr; }
  .next__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .next__item:first-child { border-top: 0; }
  .next__item button { padding: 16px 0; grid-template-columns: 64px 1fr; }
  .next__day { font-size: 44px; }

  .sec-head { grid-template-columns: auto 1fr; }
  .sec-note { grid-column: 1 / -1; }

  .space__grid, .fam-bottom, .eng-bottom, .ver-bottom { grid-template-columns: 1fr; }
  .space-index { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--rule); }
  .space-index a { grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 16px 4px 16px 14px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .space-index a::before { right: auto; bottom: 0; width: 4px; height: auto; }
  .fam-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fam-catalog > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .fam-catalog > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fam-tree { width: min(72%, 300px); }
  .lac-badge { width: min(78%, 320px); }
  .eng-art { order: -1; width: min(70%, 300px); }
  .lac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .merchants__list { columns: 2; }
  .mini__list--cards { grid-template-columns: 1fr; }
  .mini__list--cards li button { min-height: 0; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(11, 23, 56, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 22px; padding: 6px; box-shadow: 0 16px 40px rgba(7, 15, 41, .4);
  }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 16px; color: rgba(255, 255, 255, .7); text-decoration: none; font: 600 10px/1 var(--sans); letter-spacing: .04em; }
  .tabbar a.is-on { background: rgba(48, 174, 242, .2); color: var(--white); }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .site-foot { padding-bottom: 34px; }
}

@media (max-width: 620px) {
  .site-head .btn { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .fam-seal { font-size: 11px; letter-spacing: .22em; white-space: nowrap; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .cal__bar { align-items: center; }
  .cal__nav button { min-width: 40px; height: 40px; padding: 0 10px; }
  .cal__dow span { padding: 8px 0 6px; text-align: center; letter-spacing: .08em; }
  .day { min-height: 58px; padding: 6px 2px 5px; align-items: center; }
  .day__n { font-size: 16px; width: 28px; height: 28px; margin-bottom: 0; }
  .day .pill { display: none; }
  .day__dots { display: flex; justify-content: center; }
  .cal__foot { justify-content: flex-start; }
  .months__strip { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; }
  .mo__bar { height: 46px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats > div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 12px; }
  .stats dd { margin-top: 0; }
  .fam-title { letter-spacing: .06em; }
  .fam-catalog { grid-template-columns: 1fr; }
  .fam-catalog > div, .fam-catalog > div + div { padding: 18px 0 8px; border-left: 0; }
  .fam-catalog > div + div { border-top: 1px solid var(--line); }
  .fam-photos { gap: 6px; }
  .pass { grid-template-columns: 1fr; }
  .pass__stub { grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; border-left: 0; border-top: 2px dashed #f7f3ea; }
  .pass__stub::before { top: -11px; left: -10px; } .pass__stub::after { top: -11px; bottom: auto; left: auto; right: -10px; }
  .pass__stub small { margin-top: 0; }
  .pass__facts { grid-template-columns: 1fr; }
  .lib-branches li { padding: 16px 18px; gap: 14px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__big { border-right: 0; border-bottom: 2px dashed var(--paper); padding: 22px 22px 20px; }
  .ticket__big::before { top: auto; bottom: -11px; right: auto; left: -11px; } .ticket__big::after { right: -11px; }
  .card-mock { grid-template-columns: 1fr; }
  .card-mock__card { max-width: 320px; }
  .rubros { gap: 16px 6px; }
  .merchants__list { columns: 1; }
  .about__cols { grid-template-columns: 1fr; }
  .mini__list li button { grid-template-columns: 76px 1fr; }
  .sheet__top { padding: 26px 22px 22px; }
  .sheet__body { padding: 22px; }
  .sheet__facts > div { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════════
   App para asociados: barra superior, pestañas, vistas y credencial
   ═══════════════════════════════════════════════════════════════ */
body.app { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.view[hidden], [data-space][hidden], #espacios-index[hidden], .space-back[hidden] { display: none; }

.appbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px;
  height: 60px; padding: 0 var(--gut);
  background: rgba(11, 23, 56, .94); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.appbar__title { font: 500 20px/1 var(--serif); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(48, 174, 242, .2); box-shadow: inset 0 0 0 1.5px var(--sky);
  color: var(--white); font: 700 12px/1 var(--sans); letter-spacing: .04em; text-decoration: none;
}

.tabs {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(11, 23, 56, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 24px; padding: 6px; box-shadow: 0 16px 40px rgba(7, 15, 41, .42);
}
.tabs a[data-tab] {
  display: grid; justify-items: center; gap: 5px; padding: 9px 2px 8px; border-radius: 18px;
  color: rgba(255, 255, 255, .66); text-decoration: none; font: 600 10px/1 var(--sans); letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.tabs a[data-tab].is-on { background: rgba(48, 174, 242, .22); color: var(--white); }
.tabs svg, .quick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs__brand, .tabs__user { display: none; }

/* Inicio y credencial */
.home-top {
  background:
    radial-gradient(60% 80% at 92% 10%, rgba(48, 174, 242, .22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(18, 56, 145, .6), transparent 70%),
    var(--navy-900);
  color: var(--white); padding: clamp(26px, 4vw, 56px) 0 clamp(28px, 4vw, 44px);
}
.home-top__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.home-top h1 { margin-top: 14px; font: 500 clamp(42px, 6.2vw, 84px)/.98 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.home-top h1 em { color: var(--sky); font-weight: 400; }
.home__sub { margin-top: 16px; max-width: 34em; font: 400 clamp(15px, 1.3vw, 17px)/1.6 var(--sans); color: rgba(255, 255, 255, .76); }
.home-top .next { margin-top: clamp(26px, 4vw, 44px); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 460px; }
.quick a {
  display: grid; justify-items: center; gap: 9px; padding: 15px 4px 13px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: var(--white); text-decoration: none; font: 600 11px/1.2 var(--sans); text-align: center;
  transition: background .25s, transform .25s var(--ease);
}
.quick a:hover { background: rgba(48, 174, 242, .22); transform: translateY(-3px); }
.quick svg { color: var(--sky); }

.idcard {
  display: grid; align-content: space-between; gap: 18px; width: 100%; aspect-ratio: 1.586; padding: clamp(18px, 2.2vw, 26px);
  border-radius: 24px; color: var(--white); text-decoration: none; text-align: left;
  background: radial-gradient(80% 100% at 100% 0%, rgba(48, 174, 242, .6), transparent 70%), linear-gradient(140deg, #1a47ad, #0b1738);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .16);
  transform: rotate(-2.5deg); transition: transform .5s var(--ease);
}
a.idcard:hover { transform: rotate(0) translateY(-4px); }
.idcard > span { display: block; }
.idcard__row { display: flex !important; align-items: center; gap: 10px; }
.idcard__row svg { width: 36px; height: 36px; flex: none; }
.idcard__row > span { font: 600 15px/1 var(--sans); letter-spacing: .03em; display: grid; gap: 3px; }
.idcard__row small { font: 500 11px/1 var(--sans); opacity: .8; }
.idcard__row em { margin-left: auto; font: 700 9.5px/1 var(--sans); font-style: normal; letter-spacing: .18em; text-transform: uppercase; opacity: .75; text-align: right; }
.idcard__name { font: 500 clamp(22px, 2.6vw, 30px)/1.1 var(--serif); letter-spacing: -.01em; }
.idcard__name small { display: block; margin-top: 7px; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .72; }
.idcard__bars { height: 28px; border-radius: 4px; opacity: .9; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 10px, #fff 10px 13px, transparent 13px 15px); }
.idcard--full { aspect-ratio: auto; transform: none; grid-template-columns: 1fr auto; align-items: end; gap: 22px 18px; }
.idcard--full .idcard__row, .idcard--full .idcard__bars { grid-column: 1 / -1; }
.idcard__qr { width: clamp(104px, 12vw, 136px); aspect-ratio: 1; padding: 8px; border-radius: 12px; background: var(--white); }
.idcard__qr svg { width: 100%; height: 100%; }

.blk { padding-top: clamp(30px, 4vw, 52px); }
.blk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.blk__head h2 { font: 500 clamp(25px, 3vw, 36px)/1.05 var(--serif); letter-spacing: -.02em; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.panel-navy { background: var(--navy-900); border-radius: 28px; padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 18px; }
.panel-navy .pz svg { filter: none; }
.openlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.openlist b { display: block; font: 500 19px/1.2 var(--serif); }
.openlist small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--sans); color: var(--ink-3); }
.openlist .open { margin: 0; flex: none; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font-size: 11.5px; }
.saved { --line: var(--rule); }
.saved__empty { padding: 18px 0 4px; font: 400 17px/1.5 var(--serif); font-style: italic; color: var(--ink-2); }

/* Secciones dentro de la app: menos aire que en una página */
.view .agenda, .view .benefits, .view .spaces-intro { padding: clamp(26px, 4vw, 52px) 0 clamp(36px, 5vw, 64px); border-top: 0; }
.view .sec-num { display: none; }
.view .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); padding-bottom: 20px; margin-bottom: 22px; }
.view .sec-head h2 { font-size: clamp(32px, 4.4vw, 58px); }
.view .cal__side { top: 24px; }
.view .ben-top { grid-template-columns: 1fr; }
.view .tickets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.view .about { padding: clamp(44px, 6vw, 84px) 0; margin-top: clamp(36px, 5vw, 64px); }
.view .space { padding-top: clamp(36px, 5vw, 72px); }
.site-foot { padding: 26px 0; }
.site-foot__demo { max-width: 70em; }

/* Espacios: índice con la identidad de cada uno */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; grid-column: span 2; display: grid; align-content: space-between; gap: 30px; min-height: 230px; padding: 24px;
  border-radius: 26px; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s;
}
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; min-height: 260px; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 24px 44px rgba(15, 22, 41, .16); }
.tile__lock { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.tile__desc { display: block; font: 500 14px/1.5 var(--sans); max-width: 30em; }
.tile__next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid currentColor; font: 700 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.tile__next i { font-style: normal; font-size: 18px; letter-spacing: 0; transition: transform .3s var(--ease); }
.tile:hover .tile__next i { transform: translateX(5px); }
.tile--familia { background: #faf5ea; color: #1d2752; box-shadow: inset 0 0 0 1px #e2d6bd; }
.tile--familia .b-fam { font-size: clamp(17px, 1.9vw, 24px); line-height: 1.25; }
.tile--lacteo { background: radial-gradient(40% 60% at 100% 0, #f59a55 0 60%, transparent 61%), #ee7a30; color: #2a1203; }
.tile--lacteo .b-lac { font-size: clamp(42px, 4.6vw, 60px); color: var(--white); }
.tile--lacteo .b-lac small { color: #2a1203; }
.tile--english { background: linear-gradient(180deg, #151b4d, #0e1238); color: var(--white); }
.tile--english .b-eng { color: var(--white); font-size: clamp(20px, 2vw, 26px); flex-wrap: wrap; }
.tile--verano { background: radial-gradient(circle at 100% 0, #ffd84d 0 30%, rgba(255, 216, 77, .4) 30.500% 40%, transparent 40.500%), #fffdf6; color: #14204a; box-shadow: inset 0 0 0 1px #efe4bf; }
.tile--verano .b-ver { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.tile--libreria { background: radial-gradient(40% 60% at 0 100%, rgba(255, 255, 255, .14) 0 60%, transparent 61%), #3f5fe0; color: var(--white); }
.tile--libreria .b-lib { color: var(--white); font-size: clamp(28px, 3vw, 38px); }
.space-back { position: sticky; top: 0; z-index: 30; background: rgba(246, 242, 233, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.space-back a { display: inline-block; padding: 15px 0; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--navy); }

/* Bienvenida */
.welcome { width: min(460px, calc(100vw - 24px)); }
.welcome__in { display: grid; gap: 14px; padding: 34px 30px 28px; }
.welcome__in > svg { width: 54px; height: 54px; }
.welcome h2 { font: 500 clamp(32px, 6vw, 42px)/1 var(--serif); letter-spacing: -.02em; }
.welcome h2 em { color: var(--navy); font-weight: 400; }
.welcome p { font: 400 15px/1.55 var(--sans); color: var(--ink-2); }
.field { display: grid; gap: 7px; margin-top: 4px; }
.field span { font: 700 10.500px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.field input { height: 52px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--white); font: 500 17px/1 var(--sans); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--navy); }
.sheet .btn[aria-pressed="true"] { background: #1f9d6b; }

@media (min-width: 960px) {
  body.app { padding-bottom: 0; padding-left: 236px; }
  .appbar { display: none; }
  .tabs {
    left: 0; top: 0; bottom: 0; right: auto; width: 236px; border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column; gap: 4px; padding: 26px 16px 20px; background: var(--navy-950);
    border-right: 1px solid rgba(255, 255, 255, .08);
  }
  .tabs__brand { display: inline-flex; margin: 0 8px 30px; color: var(--white); }
  .tabs a[data-tab] { grid-template-columns: 22px 1fr; justify-items: start; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; font-size: 13px; letter-spacing: .04em; }
  .tabs a[data-tab]:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
  .tabs__user { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--white); text-decoration: none; }
  .tabs__user b { display: block; font: 600 13px/1.2 var(--sans); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs__user small { display: block; margin-top: 4px; font: 500 10.500px/1 var(--sans); letter-spacing: .08em; opacity: .65; }
  .space-back { top: 0; }
}
@media (max-width: 959px) {
  .space-back { top: 60px; }
  .view .cal__side { top: 76px; }
}
@media (max-width: 860px) {
  .home-top__grid, .home-grid { grid-template-columns: 1fr; }
  .home-top .idcard { max-width: 420px; }
  .quick { max-width: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(1), .tile:nth-child(2) { grid-column: auto; min-height: 200px; }
  .view .sec-head { grid-template-columns: 1fr; }
  .openlist li { flex-wrap: wrap; }
}

/* Ajustes de la app */
.btn--ghost { background: transparent; }
.idcard__row > span { white-space: nowrap; }
.mini__list.saved { border-top: 0; margin-top: 0; }

/* Inicio: solo la fecha, con la ayuda en un botón a la derecha */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(16px, 2.6vw, 28px); }
.help {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  color: var(--white); font: 700 15px/1 var(--sans); transition: background .2s;
}
.help:hover, .help[aria-expanded="true"] { background: var(--sky-600); }
.help__pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(320px, 100%);
  padding: 14px 16px; border-radius: 16px; background: var(--white); color: var(--ink);
  font: 500 14px/1.5 var(--sans); box-shadow: 0 20px 44px rgba(0, 0, 0, .4);
}
.help__pop[hidden] { display: none; }
.home-top__grid .quick { margin-top: 0; max-width: none; }

/* ═══════════ Lo mío: recordatorio, inscripción, mis espacios, mapas ═══════════ */
.reminder {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2.4vw, 28px);
  width: 100%; margin-bottom: clamp(16px, 2.6vw, 28px); padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px);
  border: 0; border-radius: 22px; text-align: left; background: var(--white); color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32); transition: transform .25s var(--ease);
}
.reminder[hidden] { display: none; }
.reminder:hover { transform: translateY(-3px); }
.reminder--now { background: #ffc21a; }
.reminder__when { font: 500 clamp(28px, 3.6vw, 46px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.reminder__when small { display: block; margin-bottom: 8px; font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.reminder__what { display: grid; gap: 4px; min-width: 0; padding-left: clamp(14px, 2.4vw, 28px); border-left: 1px solid rgba(15, 22, 41, .28); }
.reminder__what b { font: 700 clamp(16px, 1.7vw, 20px)/1.2 var(--sans); }
.reminder__what span { font: 500 13px/1.4 var(--sans); opacity: .82; }
.reminder__what em { font: 600 12px/1.4 var(--sans); font-style: normal; opacity: .8; }
.reminder__go { font-size: 22px; }

.tag--mine { background: #1f9d6b; color: var(--white); }
.chip--mine[aria-pressed="true"] { background: #1f9d6b; border-color: #1f9d6b; }
.day--mine .day__n { box-shadow: 0 0 0 2.5px #1f9d6b; }
.mini__what .tag { margin-left: 6px; vertical-align: 3px; }

.enrolled { flex: 1 1 100%; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #dff3e9; color: #0f4a33; }
.enrolled b { font: 700 14px/1.3 var(--sans); }
.enrolled span { font: 500 13px/1.5 var(--sans); }
.enrolled a { color: inherit; font-weight: 700; }
.enroll-form { flex: 1 1 100%; display: grid; gap: 10px; }
.enroll-form[hidden], .enroll-error[hidden] { display: none; }
.enroll-error { flex: 1 1 100%; font: 600 13px/1.4 var(--sans); color: #b4232c; }

.pz__mine { fill: none; stroke: #ffc21a; stroke-width: 7; stroke-linejoin: round; }
.panel-navy--wide { margin-bottom: clamp(18px, 3vw, 30px); }
.panel-navy--wide .pz { max-width: 460px; margin: 0 auto; }
.tile.is-mine { outline: 3px solid #ffc21a; outline-offset: 3px; }
.tile__mine { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 999px; background: #ffc21a; color: #14204a; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.tile__logo { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 1px #e2d6bd; }
.follow { display: inline-flex; align-items: center; margin-top: 16px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 700 12px/1 var(--sans); letter-spacing: .06em; }
.follow[aria-pressed="true"] { background: #ffc21a; border-color: #ffc21a; color: #14204a; }

.more { margin-top: clamp(30px, 5vw, 56px); border-top: 2px solid currentColor; }
.more summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 16px 0; list-style: none; font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font: 400 22px/1 var(--sans); }
.more[open] summary::after { content: "–"; }
.more__in { display: grid; gap: 24px; padding: 6px 0 26px; }
.more__in > * { margin-top: 0; }
.more .fam-bottom { grid-template-columns: 1fr; }
.eng-bottom:not(:has(.mini)) { grid-template-columns: minmax(0, 640px); }
.view .space .mini--row { margin-top: clamp(26px, 4vw, 44px); }

.maplink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.maplink::after { content: " ↗"; display: inline-block; margin-left: 3px; font-size: .8em; }
.tabs a[data-tab] span { white-space: nowrap; }

@media (min-width: 960px) {
  .spaces-intro .wrap { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
  .spaces-intro .panel-navy--wide { position: sticky; top: 24px; margin-bottom: 0; }
  .spaces-intro .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces-intro .tile { grid-column: auto; min-height: 196px; }
}
@media (max-width: 400px) { .tabs a[data-tab] { font-size: 9.5px; letter-spacing: 0; } }

/* Rompecabezas: sin recuadro al tocar (el foco de teclado sigue marcando la pieza) */
.pz a, .pz a:focus { outline: none; -webkit-tap-highlight-color: transparent; }

/* Recordatorio fino: una franja con etiqueta, texto en una línea y botón «Ver» */
.reminder { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 9px 10px 9px 12px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); cursor: pointer; }
.reminder__when { padding: 7px 11px; border-radius: 999px; background: var(--ink); color: var(--white); font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.reminder--now .reminder__when { color: #ffc21a; }
.reminder__what { display: flex; align-items: baseline; gap: 10px; padding-left: 0; border-left: 0; white-space: nowrap; overflow: hidden; }
.reminder__what b { font: 700 14.5px/1.2 var(--sans); flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.reminder__what span { font: 500 12.5px/1.2 var(--sans); opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.reminder__cta { padding: 8px 14px; border-radius: 999px; background: rgba(15, 22, 41, .1); box-shadow: inset 0 0 0 1.5px rgba(15, 22, 41, .55); font: 700 11.5px/1 var(--sans); letter-spacing: .06em; transition: background .2s, color .2s; }
.reminder:hover .reminder__cta, .reminder:focus-visible .reminder__cta { background: var(--ink); color: var(--white); }
@media (max-width: 620px) {
  .reminder { border-radius: 18px; padding: 10px 10px 10px 12px; }
  .reminder__what { display: grid; gap: 3px; }
}

/* Avisos e instalación */
.avisos { margin-top: clamp(22px, 3vw, 34px); }
.avisos[hidden] { display: none; }
.avisos__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.avisos__in > svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--navy); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.avisos__txt { flex: 1 1 220px; display: grid; gap: 3px; }
.avisos__txt b { font: 700 14.5px/1.2 var(--sans); }
.avisos__txt span { font: 500 13px/1.45 var(--sans); color: var(--ink-2); }
.avisos__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* App instalada: la barra de arriba respeta la zona de la hora y la muesca del teléfono */
html { background: var(--navy-900); }
.appbar { height: calc(60px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
@media (max-width: 959px) {
  .space-back { top: calc(60px + env(safe-area-inset-top)); }
  .view .cal__side { top: calc(76px + env(safe-area-inset-top)); }
}
.enrolled--demo { background: #fff4d6; color: #5a4300; }
