:root{
  --ivory:#FAF7F1; --paper:#F2ECE1; --card:#FFFFFF;
  --ink:#141C2B; --ink-muted:#586173; --line:#E3DACB;
  --navy:#0F2240; --navy-2:#1A3159; --on-navy:#F4F1EA; --on-navy-muted:#B9C2D3;
  --red:#E10109; --red-deep:#B00008;
  --serif:'Cormorant Garamond', Georgia, serif; --sans:'Manrope', system-ui, sans-serif;
  --radius:18px; --shadow:0 30px 60px -34px rgba(15,34,64,.45);
  --g:32px; /* side gutter of .wrap */
}
@view-transition{ navigation:auto; }
::view-transition-old(root), ::view-transition-new(root){ animation-duration:.35s; }
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--ivory); color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased; overflow-x:hidden; overflow-x:clip; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; margin:0; line-height:1.08; letter-spacing:-.005em; text-wrap:balance; }
p{ margin:0 0 1rem; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 var(--g); }
.ic{ width:1em; height:1em; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.kicker{ display:inline-flex; align-items:center; gap:.7rem; font-size:.74rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--red-deep); margin-bottom:1.1rem; }
.kicker::before, .kicker::after{ content:''; width:28px; height:1.5px; background:currentColor; }
.kicker.on-dark{ color:#FF8A8E; }
.section{ padding:88px 0; }
.section.tight{ padding:64px 0; }
.section.paper{ background:var(--paper); }
section[id]{ scroll-margin-top:84px; }
.section-head{ max-width:720px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(2.2rem,4vw,3.3rem); color:var(--navy); }
.section-head p{ color:var(--ink-muted); font-size:1.08rem; margin-top:1.1rem; }
:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:.6rem; font-family:var(--sans); font-weight:700; font-size:.86rem; letter-spacing:.02em; padding:.95rem 1.6rem; border-radius:999px; text-decoration:none; border:1.5px solid transparent; transition:background .2s, color .2s, border-color .2s; cursor:pointer; white-space:nowrap; }
.btn .ic{ font-size:1.05rem; transition:transform .2s; }
.btn:hover .ic{ transform:translateX(3px); }
.btn-navy{ background:var(--navy); color:var(--on-navy); }
.btn-navy:hover{ background:var(--navy-2); }
.btn-red{ background:var(--red); color:#fff; }
.btn-red:hover{ background:var(--red-deep); }
.btn-line{ border-color:rgba(20,28,43,.28); color:var(--ink); }
.btn-line:hover{ border-color:var(--ink); }
.btn-light{ background:var(--on-navy); color:var(--navy); }
.btn-light:hover{ background:#fff; }
.btn-line-light{ border-color:rgba(244,241,234,.45); color:var(--on-navy); }
.btn-line-light:hover{ border-color:var(--on-navy); }
.actions{ display:flex; flex-wrap:wrap; gap:.9rem; }
.text-link{ display:inline-flex; align-items:center; gap:.5rem; font-weight:700; font-size:.9rem; color:var(--navy); text-decoration:none; border-bottom:1.5px solid var(--red); padding-bottom:2px; }
.text-link .ic{ transition:transform .2s; }
.text-link:hover .ic{ transform:translateX(4px); }

/* Reveal (hidden states only apply when JS is running) */
.js .reveal{ opacity:0; transform:translateY(24px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
  .seal-ring{ animation:none !important; }
  ::view-transition-old(root), ::view-transition-new(root){ animation:none; }
}

/* Top bar */
.topbar{ background:var(--navy); color:var(--on-navy-muted); font-size:.78rem; }
.topbar .wrap{ display:flex; justify-content:space-between; align-items:center; height:40px; }
.topbar .social{ display:flex; gap:1.1rem; align-items:center; }
.topbar a{ text-decoration:none; color:var(--on-navy-muted); display:inline-flex; align-items:center; gap:.45rem; transition:color .2s; }
.topbar a:hover{ color:var(--on-navy); }
.topbar .ic{ font-size:1rem; }

/* Header + navigation */
header.site{ position:sticky; top:0; z-index:50; background:rgba(250,247,241,.92); backdrop-filter:blur(12px) saturate(1.3); border-bottom:1px solid transparent; transition:border-color .3s, box-shadow .3s; }
header.site.scrolled{ border-color:var(--line); box-shadow:0 10px 30px -24px rgba(15,34,64,.5); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:84px; gap:1.5rem; }
.brand{ display:flex; align-items:center; gap:.85rem; text-decoration:none; }
.brand img{ width:50px; height:50px; }
.brand .name{ font-family:var(--serif); font-size:1.55rem; font-weight:700; line-height:1; color:var(--navy); display:block; }
.brand .sub{ font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-muted); font-weight:600; display:block; margin-top:.35rem; }
.nav-links{ display:flex; align-items:center; gap:2.2rem; list-style:none; margin:0; padding:0; }
.nav-links > li > a, .dd-toggle{ font-family:var(--sans); text-decoration:none; font-size:.9rem; font-weight:600; color:var(--ink); position:relative; padding:.35rem 0; background:none; border:0; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; }
.nav-links > li > a::after, .dd-toggle::after{ content:''; position:absolute; left:0; right:0; bottom:-2px; height:1.5px; background:var(--red); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.nav-links > li > a:hover::after, .nav-links > li > a[aria-current="page"]::after,
.has-dd.is-active .dd-toggle::after, .has-dd.open .dd-toggle::after{ transform:scaleX(1); }
.dd-toggle .caret{ font-size:.72rem; transition:transform .25s ease; }
.has-dd{ position:relative; }
.dd{ position:absolute; top:calc(100% + 16px); left:50%; min-width:270px; padding:.5rem; background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:0 26px 50px -24px rgba(15,34,64,.45); opacity:0; visibility:hidden; transform:translate(-50%,8px); transition:opacity .2s ease, transform .2s ease, visibility .2s; z-index:60; }
.dd::before{ content:''; position:absolute; top:-7px; left:50%; width:12px; height:12px; background:var(--card); border-left:1px solid var(--line); border-top:1px solid var(--line); transform:translateX(-50%) rotate(45deg); }
.dd::after{ content:''; position:absolute; left:0; right:0; top:-18px; height:18px; }
.has-dd.open .dd{ opacity:1; visibility:visible; transform:translate(-50%,0); }
.has-dd.open .caret{ transform:rotate(180deg); }
@media (hover:hover) and (pointer:fine){
  .has-dd:hover .dd{ opacity:1; visibility:visible; transform:translate(-50%,0); }
  .has-dd:hover .caret{ transform:rotate(180deg); }
  .has-dd:hover .dd-toggle::after{ transform:scaleX(1); }
}
.dd a{ display:block; padding:.75rem .95rem; border-radius:11px; text-decoration:none; position:relative; transition:background .2s; }
.dd a strong{ display:block; font-size:.93rem; font-weight:700; color:var(--navy); }
.dd a span{ display:block; font-size:.8rem; color:var(--ink-muted); margin-top:.1rem; }
.dd a:hover, .dd a[aria-current="page"]{ background:var(--paper); }
.dd a[aria-current="page"]::before{ content:''; position:absolute; left:0; top:.9rem; bottom:.9rem; width:2.5px; border-radius:2px; background:var(--red); }
.nav-cta{ display:flex; align-items:center; gap:.8rem; }
.burger{ display:none; width:44px; height:44px; border:1.5px solid var(--line); border-radius:50%; background:none; cursor:pointer; align-items:center; justify-content:center; }
.burger span,.burger span::before,.burger span::after{ content:''; display:block; width:18px; height:1.5px; background:var(--ink); position:relative; transition:transform .25s, background .25s; }
.burger span::before{ position:absolute; top:-6px; } .burger span::after{ position:absolute; top:6px; }
.burger.open span{ background:transparent; } .burger.open span::before{ top:0; transform:rotate(45deg); } .burger.open span::after{ top:0; transform:rotate(-45deg); }
/* Mobile menu: full-height panel under the header (phones and tablets) */
.mobile-menu{ display:none; }
@media (max-width:900px){
  /* No blur behind the header on phones: cheaper to paint, and the menu is a separate fixed layer */
  header.site{ backdrop-filter:none; -webkit-backdrop-filter:none; background:rgba(250,247,241,.97); }
  .mobile-menu{ display:block; position:fixed; left:0; right:0; top:74px; bottom:0; z-index:49; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; background:var(--ivory); border-top:1px solid var(--line); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-8px); transition:opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s; }
  .mobile-menu.open{ opacity:1; visibility:visible; pointer-events:auto; transform:none; transition:opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  /* Page-to-page crossfade off on phones: on slow connections it looked like a frozen screen */
  @view-transition{ navigation:none; }
}
.m-inner{ max-width:560px; min-height:100%; margin:0 auto; padding:.6rem 20px calc(1.6rem + env(safe-area-inset-bottom)); display:flex; flex-direction:column; }
.m-i{ opacity:0; transform:translateY(12px); transition:opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.mobile-menu.open .m-i{ opacity:1; transform:none; transition-delay:calc(var(--d,0) * 55ms + 90ms); }
.m-link{ display:flex; align-items:center; justify-content:space-between; gap:1rem; font-family:var(--serif); font-size:1.65rem; font-weight:600; line-height:1.15; text-decoration:none; color:var(--navy); padding:.85rem 0; border-bottom:1px solid var(--line); }
.m-link .ic{ font-size:1.1rem; color:var(--red); flex:none; }
.m-link[aria-current="page"]{ color:var(--red); }
.m-block{ padding:1.1rem 0 .2rem; }
.m-block > .m-link:last-child{ border-bottom:1px solid var(--line); }
.m-label{ display:block; font-size:.68rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--red-deep); margin-bottom:.6rem; }
.m-levels{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.m-levels a{ position:relative; display:block; border-radius:14px; overflow:hidden; aspect-ratio:3/4; text-decoration:none; background:var(--paper); }
.m-levels img{ width:100%; height:100%; object-fit:cover; }
.m-levels span{ position:absolute; left:0; right:0; bottom:0; padding:2.2rem .7rem .7rem; background:linear-gradient(transparent, rgba(10,22,42,.85)); color:#fff; font-family:var(--serif); font-size:1.2rem; font-weight:600; line-height:1.1; }
.m-levels small{ display:block; margin-top:.2rem; font-family:var(--sans); font-size:.62rem; font-weight:700; letter-spacing:.06em; color:rgba(255,255,255,.8); }
.m-levels a[aria-current="page"]{ outline:2.5px solid var(--red); outline-offset:2px; }
.m-foot{ margin-top:auto; padding-top:1.6rem; display:grid; gap:1.2rem; }
.m-foot .btn{ width:100%; justify-content:center; padding:1.1rem 1.6rem; font-size:.95rem; }
.m-contact{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1rem; }
.m-contact > div:first-child{ flex:1 1 220px; }
.m-contact .m-label{ margin-bottom:.3rem; }
.m-contact p{ margin:0; font-size:.92rem; line-height:1.7; color:var(--ink-muted); }
.m-contact p a{ color:var(--navy); font-weight:700; text-decoration:none; }
.m-phones{ display:grid; grid-template-columns:repeat(2,max-content); gap:.15rem 1.1rem; }
.m-phones a{ display:inline-flex; align-items:center; gap:.45rem; }
.m-phones a::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--red); flex:none; }
.m-social{ display:flex; gap:.5rem; flex:none; }
.m-social a{ width:44px; height:44px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; color:var(--navy); font-size:1.15rem; }
/* Scroll lock only on the root: locking body too turned it into a scroll box and the sticky
   header jumped back to the top of the page, leaving a see-through gap above the menu */
html.menu-open{ overflow:hidden; }
html.menu-open header.site{ background:var(--ivory); }
@media (max-width:900px){
  html.menu-open header.site{ position:fixed; top:0; left:0; right:0; }
}
html.menu-open .float-top{ opacity:0; visibility:hidden; }
@media (prefers-reduced-motion:reduce){
  .mobile-menu, .m-i{ transition:none !important; }
}

/* Home hero */
.hero{ padding:56px 0 88px; position:relative; }
.hero .wrap{ display:grid; grid-template-columns:1.08fr .92fr; gap:72px; align-items:center; }
.hero h1{ font-size:clamp(2.8rem,5.4vw,4.6rem); line-height:1.02; color:var(--navy); }
.hero h1 em, .page-hero h1 em{ font-style:italic; font-weight:500; color:var(--red); }
.hero h1 em{ white-space:nowrap; }
.hero .lead{ font-size:1.14rem; color:var(--ink-muted); max-width:50ch; margin:1.6rem 0 2.2rem; }
.hero .levels{ display:flex; flex-wrap:wrap; gap:.4rem 1.4rem; margin-top:2.6rem; padding-top:1.6rem; border-top:1px solid var(--line); font-size:.82rem; font-weight:600; color:var(--ink-muted); letter-spacing:.04em; }
.hero .levels span{ display:inline-flex; align-items:center; gap:.5rem; }
.hero .levels span::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--red); }
.hero-media{ position:relative; }
.frame{ position:relative; border-radius:16px; overflow:hidden; aspect-ratio:4/5; box-shadow:var(--shadow); background:var(--paper); }
.frame img{ width:100%; height:100%; object-fit:cover; }
.hero-media::before{ content:''; position:absolute; inset:28px -24px -24px 28px; border:1px solid rgba(225,1,9,.35); border-radius:18px; z-index:-1; }
.seal{ position:absolute; left:-54px; bottom:40px; width:150px; height:150px; border-radius:50%; background:var(--ivory); box-shadow:0 18px 40px -20px rgba(15,34,64,.5); display:grid; place-items:center; }
.seal-ring{ position:absolute; inset:8px; animation:spin 28s linear infinite; }
.seal-ring text{ font-family:var(--sans); font-size:8.6px; font-weight:700; letter-spacing:1px; fill:var(--navy); text-transform:uppercase; }
.seal img{ width:64px; height:64px; }
.hero:has(.hero-tagline){ padding-bottom:128px; }
.hero-tagline{ position:absolute; left:0; right:0; top:calc(100% + 46px); margin:0; text-align:center; font-family:var(--serif); font-size:clamp(1.45rem,2.2vw,1.9rem); font-weight:600; line-height:1.2; color:var(--navy); text-wrap:balance; }
.hero-tagline em{ font-style:italic; font-weight:500; color:var(--red); }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* Sub-page hero */
.page-hero{ padding:32px 0 80px; }
.page-hero .wrap{ display:grid; grid-template-columns:1.1fr .9fr; gap:72px; align-items:center; }
.page-hero.simple{ padding-bottom:48px; }
.page-hero.simple .wrap{ grid-template-columns:minmax(0,860px); }
.crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-size:.8rem; color:var(--ink-muted); margin-bottom:2.4rem; }
.crumbs a{ color:var(--ink-muted); text-decoration:none; }
.crumbs a:hover{ color:var(--navy); }
.crumbs .sep{ opacity:.5; }
.crumbs [aria-current="page"]{ color:var(--navy); font-weight:700; }
.page-hero h1{ font-size:clamp(2.5rem,4.6vw,4rem); line-height:1.04; color:var(--navy); }
.page-hero .lead{ font-size:1.12rem; color:var(--ink-muted); max-width:52ch; margin:1.5rem 0 2rem; }
.quick{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:2.6rem; border-top:1px solid var(--line); }
.quick div{ padding:1.2rem 1.2rem 0 0; }
.quick div + div{ padding-left:1.2rem; border-left:1px solid var(--line); }
.quick .l{ display:block; font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); margin-bottom:.35rem; }
.quick .v{ font-family:var(--serif); font-size:1.35rem; font-weight:600; color:var(--navy); line-height:1.2; }

/* Facts */
.facts{ background:var(--navy); color:var(--on-navy); }
.facts .wrap{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.fact{ padding:44px 28px; border-left:1px solid rgba(244,241,234,.12); }
.fact:first-child{ border-left:none; padding-left:0; }
.fact .big{ font-family:var(--serif); font-size:2.6rem; font-weight:600; line-height:1; color:#fff; }
.fact .label{ font-size:.86rem; color:var(--on-navy-muted); margin-top:.7rem; }

/* Quote / name story */
.story{ padding:88px 0 24px; text-align:center; }
.story.boxed{ padding:76px 0; }
.story blockquote{ margin:0 auto; max-width:900px; font-family:var(--serif); font-size:clamp(1.8rem,3.2vw,2.5rem); font-weight:500; line-height:1.25; color:var(--navy); }
.story blockquote em{ color:var(--red); }
.story .attr{ margin:1.8rem auto 0; max-width:62ch; color:var(--ink-muted); font-size:1.15rem; }
.story .mark{ width:84px; height:84px; margin:0 auto 1.8rem; }

/* Generic two-column split */
.split .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.split.reverse .split-media{ order:2; }
.split h2{ font-size:clamp(2rem,3.6vw,3rem); color:var(--navy); margin-bottom:1.4rem; }
.split .copy p{ color:var(--ink-muted); font-size:1.03rem; }
.split-media{ position:relative; }
.split-media > img, .split-media figure{ margin:0; }
.split-media > img{ width:100%; aspect-ratio:5/4; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow); }
.split-media > img.portrait{ aspect-ratio:4/5; max-width:480px; margin:0 auto; display:block; object-position:center 60%; }
.split-media.tall > img{ aspect-ratio:4/5; }
.split .note, .note{ margin-top:1.6rem; padding:1.3rem 1.5rem; background:var(--paper); border-radius:14px; border-left:3px solid var(--red); font-size:.98rem; color:var(--ink); }
.section.paper .note{ background:var(--card); }
.mini-list{ list-style:none; margin:1.6rem 0 0; padding:0; }
.mini-list li{ display:grid; grid-template-columns:28px 1fr; gap:.4rem; padding:.9rem 0; border-top:1px solid var(--line); }
.mini-list li:last-child{ border-bottom:1px solid var(--line); }
.mini-list .ic{ color:var(--red); font-size:1.2rem; margin-top:.2rem; }
.mini-list strong{ display:block; font-family:var(--serif); font-size:1.3rem; font-weight:600; color:var(--navy); line-height:1.2; margin-bottom:.2rem; }
.mini-list span{ color:var(--ink-muted); font-size:.95rem; }

/* Photo pair */
.photo-pair{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.photo-pair figure{ margin:0; border-radius:14px; overflow:hidden; aspect-ratio:3/4; }
.photo-pair figure:last-child{ margin-top:56px; }
.photo-pair img{ width:100%; height:100%; object-fit:cover; }

/* Numbered pillars */
.pillars{ list-style:none; margin:0; padding:0; counter-reset:p; }
.pillars li{ counter-increment:p; display:grid; grid-template-columns:64px 1fr; gap:1rem; padding:1.6rem 0; border-top:1px solid var(--line); }
.pillars li:last-child{ border-bottom:1px solid var(--line); }
.pillars li::before{ content:counter(p, decimal-leading-zero); font-family:var(--serif); font-size:1.9rem; font-weight:600; color:var(--red); line-height:1; }
.pillars h3{ font-size:1.45rem; color:var(--navy); margin-bottom:.4rem; }
.pillars p{ color:var(--ink-muted); font-size:.96rem; margin:0; }
.pillars.plain li{ grid-template-columns:64px 1fr; }
.pillars.plain p{ color:var(--ink); font-size:1.02rem; }
.two-col{ display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; align-items:start; }
.two-col h2{ font-size:clamp(2.2rem,4vw,3.2rem); color:var(--navy); margin-bottom:1.4rem; }
.two-col .copy p{ color:var(--ink-muted); font-size:1.03rem; }

/* Level cards */
.level-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.level{ background:var(--card); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; box-shadow:0 1px 0 var(--line); transition:transform .3s ease, box-shadow .3s ease; text-decoration:none; color:inherit; }
.level:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.level .ph{ aspect-ratio:4/3; overflow:hidden; }
.level .ph img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.level:hover .ph img{ transform:scale(1.04); }
.level .body{ padding:1.8rem 1.8rem 2rem; display:flex; flex-direction:column; flex:1; }
.level .tag{ font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); }
.level h3{ font-size:2rem; color:var(--navy); margin:.5rem 0 .7rem; }
.level p{ color:var(--ink-muted); font-size:.97rem; }
.level ul{ list-style:none; margin:.4rem 0 1.6rem; padding:0; font-size:.9rem; }
.level li{ display:flex; gap:.6rem; align-items:center; padding:.45rem 0; border-top:1px dashed var(--line); }
.level li .ic{ color:var(--red); }
.level .more{ margin-top:auto; display:inline-flex; align-items:center; gap:.5rem; font-weight:700; font-size:.88rem; color:var(--navy); }
.level .more .ic{ transition:transform .2s; }
.level:hover .more .ic{ transform:translateX(4px); }
.level-grid.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.level-grid.two .ph{ aspect-ratio:16/9; }

/* Feature cards */
.features{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.features.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.feature{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.5rem 1.5rem 1.4rem; }
.feature .ic{ font-size:1.5rem; color:var(--red); margin-bottom:.9rem; }
.feature h4{ font-size:1.4rem; color:var(--navy); margin-bottom:.45rem; }
.feature p{ font-size:.93rem; color:var(--ink-muted); margin:0; }
.chips{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.9rem; }
.chips span{ font-size:.76rem; font-weight:700; letter-spacing:.03em; color:var(--navy); background:var(--paper); padding:.35rem .8rem; border-radius:999px; }
.section.paper .chips span, .feature .chips span{ background:var(--paper); }
.section.paper .copy .chips span{ background:var(--card); }

/* Day timeline */
.day-band{ background:var(--navy); color:var(--on-navy); }
.day-band .section-head h2{ color:#fff; }
.day-band .section-head p{ color:var(--on-navy-muted); }
.day{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(var(--steps,3),minmax(0,1fr)); gap:24px; position:relative; }
.day::before{ content:''; position:absolute; left:0; right:0; top:9px; height:1px; background:rgba(244,241,234,.2); }
.day li{ position:relative; padding-top:40px; }
.day li::before{ content:''; position:absolute; top:3px; left:0; width:13px; height:13px; border-radius:50%; background:var(--red); box-shadow:0 0 0 5px var(--navy); }
.day .t{ font-family:var(--serif); font-size:2.3rem; font-weight:600; color:#fff; line-height:1; display:block; }
.day strong{ display:block; font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#FF9EA1; margin:.8rem 0 .5rem; }
.day p{ color:var(--on-navy-muted); font-size:.95rem; margin:0; }
.week{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:56px; }
.week div{ border-radius:14px; padding:1.1rem 1rem; background:rgba(244,241,234,.06); border:1px solid rgba(244,241,234,.14); }
.week .d{ display:block; font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--on-navy-muted); margin-bottom:.4rem; }
.week .w{ font-family:var(--serif); font-size:1.35rem; font-weight:600; color:#fff; }
.week .en{ background:var(--red); border-color:var(--red); }
.week .en .d{ color:#FFE3E4; }
.week-note{ margin-top:1.2rem; font-size:.92rem; color:var(--on-navy-muted); }

/* Inglés ladder */
.ingles{ background:var(--navy); color:var(--on-navy); overflow:hidden; }
.ingles .section-head h2{ color:#fff; }
.ingles .section-head p{ color:var(--on-navy-muted); }
.ladder{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; align-items:end; }
.ladder li{ background:rgba(244,241,234,.06); border:1px solid rgba(244,241,234,.14); border-radius:14px 14px 4px 4px; padding:1.3rem 1.1rem; display:flex; flex-direction:column; justify-content:flex-start; }
.ladder li:nth-child(1){ min-height:170px; } .ladder li:nth-child(2){ min-height:205px; } .ladder li:nth-child(3){ min-height:240px; }
.ladder li:nth-child(4){ min-height:275px; } .ladder li:nth-child(5){ min-height:310px; } .ladder li:nth-child(6){ min-height:345px; background:var(--red); border-color:var(--red); }
.ladder .when{ font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#FF9EA1; margin-bottom:.5rem; }
.ladder li:nth-child(6) .when{ color:#FFE3E4; }
.ladder h4{ font-size:1.35rem; color:#fff; margin-bottom:.4rem; }
.ladder p{ font-size:.84rem; color:var(--on-navy-muted); margin:0; line-height:1.5; }
.ladder li:nth-child(6) p{ color:#FFE9EA; }
.ladder li:nth-child(6) h4{ font-size:1.2rem; }

/* Historia */
.historia .wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:80px; align-items:start; }
.history-photos{ position:sticky; top:120px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.history-photos figure{ margin:0; border-radius:14px; overflow:hidden; aspect-ratio:3/4.4; }
.history-photos figure:last-child{ margin-top:64px; }
.history-photos img, .vintage{ width:100%; height:100%; object-fit:cover; filter:sepia(.28) saturate(.75) contrast(1.02); }
.timeline{ list-style:none; margin:0; padding:0; position:relative; }
.timeline::before{ content:''; position:absolute; left:92px; top:8px; bottom:8px; width:1px; background:var(--line); }
.timeline li{ display:grid; grid-template-columns:92px 1fr; gap:36px; padding:0 0 2.6rem; position:relative; }
.timeline li::after{ content:''; position:absolute; left:87px; top:14px; width:11px; height:11px; border-radius:50%; background:var(--ivory); border:2px solid var(--red); }
.timeline .year{ font-family:var(--serif); font-size:2.2rem; font-weight:600; color:var(--navy); line-height:1; }
.timeline h3{ font-size:1.45rem; color:var(--navy); margin-bottom:.4rem; }
.timeline p{ color:var(--ink-muted); margin:0; font-size:.98rem; }
.years{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:2rem 0 2.4rem; }
.years div{ border-top:1.5px solid var(--red); padding-top:.8rem; }
.years b{ display:block; font-family:var(--serif); font-size:1.8rem; font-weight:600; color:var(--navy); line-height:1; }
.years span{ display:block; font-size:.86rem; color:var(--ink-muted); margin-top:.4rem; }

/* Gallery */
.gallery{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:230px; gap:16px; }
.gallery figure{ margin:0; position:relative; border-radius:14px; overflow:hidden; background:var(--line); }
.gallery figure:nth-child(1){ grid-column:span 2; grid-row:span 2; }
.gallery figure:nth-child(6){ grid-column:span 2; }
.gallery.four{ grid-auto-rows:260px; }
.gallery.four figure:nth-child(1), .gallery.four figure:nth-child(6){ grid-column:auto; grid-row:auto; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .7s ease; }
.gallery figure:hover img{ transform:scale(1.05); }
.gallery figcaption{ position:absolute; left:0; right:0; bottom:0; padding:2.4rem 1.1rem .9rem; background:linear-gradient(transparent, rgba(10,22,42,.82)); color:#fff; font-weight:700; font-size:.88rem; letter-spacing:.02em; }

/* Photo CTA band */
.cta-photo{ position:relative; color:var(--on-navy); padding:104px 0; overflow:hidden; }
.cta-photo .bg{ position:absolute; inset:0; }
.cta-photo .bg img{ width:100%; height:100%; object-fit:cover; }
.cta-photo .bg::after{ content:''; position:absolute; inset:0; background:linear-gradient(100deg, rgba(15,34,64,.95) 0%, rgba(15,34,64,.86) 45%, rgba(15,34,64,.55) 100%); }
.cta-photo .wrap{ position:relative; }
.cta-photo h2{ font-size:clamp(2.4rem,5vw,4rem); color:#fff; max-width:15ch; }
.cta-photo p{ font-size:1.1rem; color:var(--on-navy-muted); max-width:48ch; margin:1.4rem 0 2.2rem; }
.cta-photo .legal{ margin-top:2.4rem; font-size:.84rem; color:var(--on-navy-muted); display:flex; flex-wrap:wrap; gap:.4rem 1.6rem; }
.cta-photo .legal a{ color:var(--on-navy); text-underline-offset:3px; }

/* Documents */
.docs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.doc{ display:flex; align-items:center; gap:1rem; padding:1.4rem 1.5rem; background:var(--card); border:1px solid var(--line); border-radius:14px; text-decoration:none; transition:border-color .2s, transform .2s; }
.doc:hover{ border-color:var(--navy); transform:translateY(-2px); }
.doc .ic{ font-size:1.6rem; color:var(--red); }
.doc strong{ display:block; font-family:var(--serif); font-size:1.35rem; font-weight:600; color:var(--navy); line-height:1.2; }
.doc span{ font-size:.86rem; color:var(--ink-muted); }

/* Inscripciones form */
.form-layout{ display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr); gap:40px; align-items:start; }
.form-frame{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.form-frame iframe{ display:block; width:100%; height:1600px; border:0; }
.form-frame .fallback{ padding:1rem 1.4rem; font-size:.88rem; color:var(--ink-muted); border-top:1px solid var(--line); background:var(--ivory); }
.form-frame .fallback a{ color:var(--navy); font-weight:700; }
.aside{ position:sticky; top:110px; display:grid; gap:16px; }
.aside-card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.4rem 1.5rem; }
.aside-card h3{ font-size:1.4rem; color:var(--navy); margin-bottom:.8rem; }
.aside-card ul{ list-style:none; margin:0; padding:0; font-size:.9rem; }
.aside-card li{ padding:.55rem 0; border-top:1px dashed var(--line); }
.aside-card li:first-child{ border-top:none; }
.aside-card li b{ display:block; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--red-deep); }
.aside-card a{ color:var(--navy); font-weight:600; text-decoration:none; word-break:break-word; }
.aside-card a:hover{ text-decoration:underline; text-underline-offset:3px; }
.aside-card.dark{ background:var(--navy); border-color:var(--navy); color:var(--on-navy); }
.aside-card.dark h3{ color:#fff; }
.aside-card.dark p{ color:var(--on-navy-muted); font-size:.92rem; }

/* Contacto */
.contact-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:stretch; }
.sedes{ display:grid; gap:16px; }
.sede{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:1.5rem 1.6rem; display:grid; grid-template-columns:1fr auto; gap:.3rem 1.5rem; align-items:center; }
.sede .lvl{ font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); }
.sede h3{ font-size:1.55rem; color:var(--navy); }
.sede a.mail{ grid-column:1 / -1; color:var(--ink-muted); font-size:.92rem; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; }
.sede a.mail:hover{ color:var(--navy); }
.sede a.map{ grid-row:1 / 3; grid-column:2; font-size:.82rem; font-weight:700; color:var(--navy); text-decoration:none; display:inline-flex; align-items:center; gap:.4rem; border:1.5px solid var(--line); border-radius:999px; padding:.55rem 1rem; transition:border-color .2s; }
.sede a.map:hover{ border-color:var(--navy); }
.reach{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.reach > a, .reach > div{ background:var(--navy); color:var(--on-navy); border-radius:14px; padding:1.3rem 1.4rem; text-decoration:none; display:flex; flex-direction:column; gap:.3rem; }
.reach .t{ font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--on-navy-muted); display:flex; align-items:center; gap:.5rem; }
.reach .v{ font-weight:700; font-size:1rem; }
.reach .v a{ color:inherit; text-decoration:none; }
.reach .v a:hover{ text-decoration:underline; text-underline-offset:3px; }
.reach > a:hover{ background:var(--navy-2); }
.map-card{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); display:grid; grid-template-rows:auto 1fr; background:var(--card); }
.map-card img{ width:100%; height:240px; object-fit:cover; }
.map-card iframe{ width:100%; height:100%; min-height:300px; border:0; filter:grayscale(.3); }

/* Footer */
footer{ background:var(--navy); color:var(--on-navy-muted); padding:64px 0 28px; font-size:.92rem; }
.foot{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(244,241,234,.12); }
.foot .brand .name{ color:#fff; }
.foot .brand .sub{ color:var(--on-navy-muted); }
.foot .brand img{ background:#fff; border-radius:50%; }
.foot p.tag{ margin-top:1.2rem; max-width:30ch; }
.foot h4{ font-family:var(--sans); font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin-bottom:1.1rem; }
.foot ul{ list-style:none; margin:0; padding:0; }
.foot li{ margin-bottom:.6rem; }
/* Contact: address on one line, the level underneath; phones one per line */
.foot li small{ display:block; margin-top:.1rem; font-size:.82em; color:rgba(185,194,211,.75); }
.foot li.f-phones{ font-size:0; }
.foot li.f-phones a{ display:block; font-size:.92rem; line-height:1.65; }
.foot a{ color:var(--on-navy-muted); text-decoration:none; transition:color .2s; }
.foot a:hover{ color:#fff; }
.foot .social{ display:flex; gap:.6rem; margin-top:1.4rem; }
.foot .social a{ width:40px; height:40px; border-radius:50%; border:1px solid rgba(244,241,234,.22); display:grid; place-items:center; font-size:1.05rem; }
.foot .social a:hover{ border-color:#fff; }
.copyright{ padding-top:26px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; font-size:.82rem; }

/* Responsive */
@media (max-width:1000px){
  .nav-links{ gap:1.5rem; }
  .hero-media::before{ inset:20px -12px -12px 20px; }
  .hero .wrap, .page-hero .wrap{ gap:48px; }
  .ladder{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ladder li{ min-height:0 !important; }
  .features{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .foot{ grid-template-columns:1fr 1fr; }
  .form-layout{ grid-template-columns:1fr; }
  .aside{ position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px){
  .topbar{ display:none; }
  .nav{ height:74px; }
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .hero{ padding:36px 0 60px; }
  .hero .wrap, .page-hero .wrap, .historia .wrap, .contact-grid, .split .wrap, .two-col{ grid-template-columns:minmax(0,1fr); gap:40px; }
  .split.reverse .split-media{ order:0; }
  .hero-media, .page-hero .hero-media{ max-width:460px; width:100%; margin:0 auto; }
  .hero-media::before{ display:none; }
  .seal{ display:none; }
  .hero:has(.hero-tagline){ padding-bottom:60px; }
  .hero-tagline{ position:static; margin-top:22px; }
  .facts .wrap{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fact{ padding:32px 20px; border-left:none; border-top:1px solid rgba(244,241,234,.12); }
  .fact:nth-child(-n+2){ border-top:none; }
  .fact:first-child, .fact:nth-child(3){ padding-left:0; }
  .level-grid, .level-grid.two{ grid-template-columns:minmax(0,1fr); max-width:560px; }
  /* Historia: the two old photos go after the timeline, so they don't follow another photo grid */
  .history-photos{ position:static; max-width:none; order:2; }
  .history-photos figure{ aspect-ratio:1/1; }
  .history-photos figure:first-child img{ object-position:center 15%; }
  .history-photos figure:last-child{ margin-top:0 !important; }
  .gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:190px; }
  .gallery figure:nth-child(1){ grid-row:span 1; }
  .gallery.four figure:nth-child(1){ grid-column:span 1; }
  .section{ padding:72px 0; }
  .day{ grid-template-columns:minmax(0,1fr); gap:0; }
  .day::before{ left:6px; right:auto; top:8px; bottom:8px; width:1px; height:auto; }
  .day li{ padding:0 0 2rem 38px; }
  .day li::before{ top:8px; }
  .page-hero{ padding:24px 0 52px; }
}
@media (max-width:640px){
  :root{ --g:20px; }
  .nav-cta .btn{ display:none; }
  .brand img{ width:44px; height:44px; }
  .brand .name{ font-size:1.35rem; }
  .section, .section.tight{ padding:52px 0; }
  .section-head{ margin-bottom:28px; }
  .section-head p{ font-size:1rem; margin-top:.8rem; }
  .hero .wrap, .page-hero .wrap, .historia .wrap, .contact-grid, .split .wrap, .two-col{ gap:30px; }
  .page-hero{ padding:20px 0 40px; }
  .docs, .aside{ grid-template-columns:minmax(0,1fr); }
  .photo-pair figure:last-child{ margin-top:28px; }
  .timeline::before{ left:0; }
  .timeline li{ grid-template-columns:1fr; gap:.4rem; padding-left:26px; }
  .timeline li::after{ left:-5px; top:10px; }
  .sede{ grid-template-columns:1fr; }
  .sede a.map{ grid-row:auto; grid-column:auto; justify-self:start; margin-top:.6rem; }
  /* Teléfonos across the top, the three networks as icon tiles below */
  .reach{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .reach > div:first-child{ grid-column:1 / -1; padding:1rem 1.1rem 1.1rem; }
  .reach > a{ padding:1rem .5rem; align-items:center; text-align:center; gap:.45rem; }
  .reach > a .t{ flex-direction:column; gap:.45rem; font-size:.6rem; letter-spacing:.1em; color:#fff; }
  .reach > a .t .ic{ font-size:1.5rem; color:#FF8A8E; }
  .reach > a .v{ display:none; }
  .reach .v{ font-size:.92rem; }
  /* Footer on phones: brand across the top, Institucional | Niveles side by side, Contacto in two columns */
  footer{ padding:48px 0 24px; }
  .foot{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 20px; padding-bottom:32px; }
  .foot > div:first-child{ grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1rem; padding-bottom:26px; border-bottom:1px solid rgba(244,241,234,.12); }
  .foot > div:first-child p.tag{ grid-column:1 / -1; grid-row:2; margin:0; max-width:none; font-size:.88rem; }
  .foot .social{ grid-column:2; grid-row:1; margin:0; gap:.45rem; }
  .foot .social a{ width:36px; height:36px; font-size:.95rem; }
  .foot > div:last-child{ grid-column:1 / -1; padding-top:24px; border-top:1px solid rgba(244,241,234,.12); }
  .foot > div:last-child ul{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.15rem 20px; }
  .foot h4{ margin-bottom:.8rem; font-size:.68rem; }
  .foot li{ font-size:.88rem; line-height:1.45; }
  .foot li.f-phones a{ font-size:.88rem; line-height:1.6; }
  .copyright{ padding-top:20px; flex-direction:column; gap:.2rem; font-size:.76rem; }
  .story{ padding-top:52px; }
  .story.boxed{ padding:52px 0; }
  .story .mark{ width:64px; height:64px; margin-bottom:1.2rem; }
  .story .attr{ font-size:1rem; }
  .gallery{ grid-auto-rows:150px; gap:10px; }
  .gallery figcaption{ font-size:.76rem; padding:2rem .8rem .7rem; }
  .kicker{ letter-spacing:.12em; font-size:.7rem; }
  .hero .actions .btn, .page-hero .actions .btn{ flex:1 1 auto; justify-content:center; }
  .hero-media .frame{ aspect-ratio:1/1; }
  .hero-media .frame img{ object-position:center 70%; }
  .fact .big{ font-size:2rem; }
  .quick{ margin-top:1.8rem; }
  .quick div{ padding:.9rem .5rem 0 0; }
  .quick div + div{ padding-left:.7rem; }
  .quick .l{ font-size:.58rem; letter-spacing:.1em; }
  .quick .v{ font-size:1.02rem; }
  .week{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .week div{ padding:.8rem .5rem; text-align:center; }
  .week .d{ font-size:.62rem; letter-spacing:.08em; }
  .week .w{ font-size:.95rem; }
  .years{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .split h2, .two-col h2{ font-size:2rem; }
  .crumbs{ margin-bottom:1.2rem; }
  .cta-photo{ padding:68px 0; }
  .cta-photo p{ margin:1rem 0 1.6rem; }
  .trip-gallery{ margin-top:32px; }
  .tardes-wrap{ margin-top:36px; }
  .split-media.vertical > video{ width:min(100%,260px); }
  .pillars li, .pillars.plain li{ grid-template-columns:44px 1fr; gap:.6rem; padding:1.2rem 0; }
  .pillars li::before{ font-size:1.55rem; }
}

/* ============ Motion & special components ============ */

/* Scroll progress line under the header */
.progress{ position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--red); transform:scaleX(0); transform-origin:left; pointer-events:none; }

/* Headline word-by-word rise */
.js .words .w{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.1em; margin-bottom:-.1em; }
.js .words .w > span{ display:inline-block; transform:translateY(108%); transition:transform .95s cubic-bezier(.2,.75,.15,1); transition-delay:calc(var(--i,0) * 55ms + 80ms); }
.js .words.in .w > span{ transform:none; }

/* Hand-drawn underline */
.scribble{ position:relative; }
.scribble svg{ position:absolute; left:-2%; bottom:-.14em; width:104%; height:.32em; overflow:visible; pointer-events:none; }
.scribble path{ fill:none; stroke:var(--red); stroke-width:2.4; stroke-linecap:round; vector-effect:non-scaling-stroke; stroke-dasharray:1; stroke-dashoffset:0; }
.js .scribble path{ stroke-dashoffset:1; transition:stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1) .9s; }
.js .in .scribble path{ stroke-dashoffset:0; }

/* Photo curtain reveal: driven by the (unclipped) .reveal parent so the observer always sees it */
.js .reveal .frame::after{ content:''; position:absolute; inset:0; background:var(--paper); transform-origin:top; transition:transform 1.25s cubic-bezier(.7,0,.2,1) .2s; z-index:1; }
.js .reveal.in .frame::after{ transform:scaleY(0); }
[data-parallax]{ will-change:transform; }

/* Staggered children */
.js [data-stagger] > *{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay:calc(var(--d,0) * 85ms); }
.js [data-stagger].in > *{ opacity:1; transform:none; }

/* Timeline that fills while scrolling */
.timeline[data-fill]::after{ content:''; position:absolute; left:92px; top:8px; width:1px; height:calc(var(--tl,0) * (100% - 16px)); background:var(--red); transition:height .15s linear; }
.timeline[data-fill] li.passed::after{ background:var(--red); }

/* Floating secondary photo on sub-page heroes */
.hero-media .float{ position:absolute; left:-48px; bottom:-40px; width:42%; aspect-ratio:4/3; border-radius:12px; overflow:hidden; border:6px solid var(--ivory); box-shadow:0 20px 40px -22px rgba(15,34,64,.55); z-index:2; }
.hero-media .float img{ width:100%; height:100%; object-fit:cover; }

/* Values marquee */
.marquee{ overflow:hidden; border-block:1px solid var(--line); padding:1.5rem 0; background:var(--ivory); }
.marquee .track{ display:flex; align-items:center; width:max-content; animation:marquee 42s linear infinite; }
.marquee span{ font-family:var(--serif); font-style:italic; font-weight:500; font-size:clamp(1.7rem,3.2vw,2.6rem); color:var(--navy); padding:0 1.8rem; white-space:nowrap; }
.marquee i{ width:8px; height:8px; border-radius:50%; background:var(--red); flex:none; }
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* Pull quote */
.pull, .copy p.pull, .center-read p.pull{ font-family:var(--serif); font-size:clamp(1.55rem,2.8vw,2.2rem); font-weight:500; line-height:1.3; color:var(--navy); border-left:3px solid var(--red); padding-left:1.6rem; margin:2.2rem 0; }
.center-read{ max-width:760px; margin:0 auto; }
.center-read p{ color:var(--ink-muted); font-size:1.08rem; }

/* Generic tab components */
.js [data-tabs] [role="tabpanel"][hidden]{ display:none; }

/* Kinder: salas selector */
.salas{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.sala-tab{ font-family:var(--sans); background:var(--card); border:1.5px solid var(--line); border-radius:18px; padding:1.3rem .8rem 1.1rem; display:flex; flex-direction:column; align-items:center; gap:.45rem; cursor:pointer; transition:background .25s, border-color .25s, transform .25s; }
.sala-tab:hover{ transform:translateY(-3px); border-color:var(--navy); }
.sala-tab svg{ width:46px; height:46px; stroke:var(--navy); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:stroke .25s; }
.sala-tab .age{ font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--red-deep); }
.sala-tab .nm{ font-family:var(--serif); font-size:1.3rem; font-weight:600; color:var(--navy); line-height:1.1; text-align:center; }
.sala-tab[aria-selected="true"]{ background:var(--navy); border-color:var(--navy); }
.sala-tab[aria-selected="true"] svg{ stroke:#fff; }
.sala-tab[aria-selected="true"] .age{ color:#FF9EA1; }
.sala-tab[aria-selected="true"] .nm{ color:#fff; }
.sala-panel{ display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:2.6rem 2.8rem; }
.sala-panel .big{ font-family:var(--serif); font-size:clamp(2.2rem,4vw,3.2rem); font-weight:600; color:var(--navy); line-height:1.05; }
.sala-panel .big em{ color:var(--red); font-style:italic; font-weight:500; }
.sala-panel .age{ font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); display:block; margin-bottom:.7rem; }
.sala-panel p{ color:var(--ink-muted); margin:0 0 .8rem; }
.sala-tardes{ margin:1.2rem 0 .4rem; }
.sala-tardes .age{ margin-bottom:.4rem; }
.sala-tardes ul{ list-style:none; margin:0; padding:0; }
.sala-tardes li{ display:grid; grid-template-columns:110px minmax(0,1fr) auto; align-items:center; gap:.8rem; padding:.6rem 0; border-top:1px dashed var(--line); font-size:.95rem; }
.sala-tardes li:last-child{ border-bottom:1px dashed var(--line); }
.sala-tardes b{ display:flex; align-items:center; gap:.6rem; color:var(--navy); }
.sala-tardes b::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--red); flex:none; }
.sala-tardes span{ color:var(--ink); }
.sala-tardes em{ font-style:normal; font-size:.66rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-muted); }
.sala-tardes li.ob em{ color:var(--red-deep); }
.js .sala-panel:not([hidden]){ animation:fadeUp .5s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }

/* Kinder: english vocabulary stickers */
.stickers{ display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.1rem; }
.stickers span{ font-size:.82rem; font-weight:700; color:var(--navy); background:var(--card); border:1.5px dashed var(--line); padding:.4rem .85rem; border-radius:999px; transform:rotate(var(--r,0deg)); transition:transform .3s, border-color .3s; }
.stickers span:hover{ transform:rotate(0) scale(1.06); border-color:var(--red); }

/* Areas tiles */
.areas{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; counter-reset:a; }
.areas li{ counter-increment:a; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:1.3rem 1.2rem; min-height:132px; display:flex; flex-direction:column; justify-content:space-between; font-weight:700; color:var(--navy); font-size:.98rem; line-height:1.3; }
.areas li::before{ content:counter(a, decimal-leading-zero); font-family:var(--serif); font-size:1.7rem; font-weight:600; color:var(--red); line-height:1; }

/* Primaria: "Nos proponemos" — title | intro, then two columns of bullets */
.intro-split{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:end; margin-bottom:40px; }
.intro-split h2{ margin:0; font-size:clamp(2.2rem,4vw,3.2rem); color:var(--navy); }
.intro-split > p{ margin:0; padding-left:28px; border-left:2px solid var(--red); color:var(--ink-muted); font-size:1.08rem; }
.bullets{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 56px; }
.bullets li{ position:relative; padding:1.3rem 0 1.3rem 1.6rem; border-top:1px solid var(--line); font-size:1.02rem; }
.bullets li::before{ content:''; position:absolute; left:0; top:1.85rem; width:8px; height:8px; border-radius:50%; background:var(--red); }

/* Kinder: afternoons by sala */
.tardes-wrap{ margin-top:56px; }
.tardes-wrap h3{ font-size:1.7rem; color:#fff; margin:0 0 1.2rem; }
.tardes{ width:calc(100% + 16px); border-collapse:separate; border-spacing:8px; margin:0 -8px; table-layout:fixed; }
.tardes th{ font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--on-navy-muted); text-align:left; padding:0 .3rem .2rem; }
.tardes thead th:first-child, .tardes tbody th{ width:150px; }
.tardes tbody th{ font-family:var(--serif); font-size:1.3rem; font-weight:600; letter-spacing:0; text-transform:none; color:#fff; vertical-align:middle; }
.tardes td{ border-radius:14px; padding:.95rem 1rem; background:rgba(244,241,234,.06); border:1px solid rgba(244,241,234,.14); vertical-align:top; }
.tardes .act{ display:block; font-weight:700; color:#fff; font-size:.95rem; line-height:1.3; }
.tardes .lbl{ display:block; margin-top:.35rem; font-size:.64rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--on-navy-muted); }
.tardes td.ob{ background:var(--red); border-color:var(--red); }
.tardes td.ob .lbl{ color:#FFE3E4; }
.tardes td.am{ background:transparent; border-style:dashed; font-family:var(--serif); font-size:1.15rem; font-style:italic; color:var(--on-navy-muted); vertical-align:middle; }
.tardes td.none{ background:transparent; border-color:transparent; vertical-align:middle; }
.tardes td.none .act, .tardes td.none .lbl{ color:rgba(244,241,234,.38); }
.tardes-key{ display:flex; gap:1.4rem; margin:1rem 0 0; font-size:.86rem; color:var(--on-navy-muted); }
.tardes-key .k{ display:inline-flex; align-items:center; gap:.5rem; }
.tardes-key .k::before{ content:''; width:12px; height:12px; border-radius:4px; border:1px solid rgba(244,241,234,.3); background:rgba(244,241,234,.06); }
.tardes-key .ob::before{ background:var(--red); border-color:var(--red); }

/* Secundaria: two axes */
.axes{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.axis{ border-radius:var(--radius); padding:2.8rem 2.6rem; background:var(--card); border:1px solid var(--line); position:relative; overflow:hidden; }
.axis.dark{ background:var(--navy); border-color:var(--navy); color:var(--on-navy); }
.axis h3{ font-size:2.1rem; color:var(--navy); margin-bottom:1rem; }
.axis.dark h3{ color:#fff; }
.axis p{ color:var(--ink-muted); margin:0 0 .8rem; }
.axis.dark p{ color:var(--on-navy-muted); }

/* Secundaria: plan de estudios */
.plan{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:36px; align-items:start; }
.plan-years{ display:grid; gap:10px; }
.year-tab{ font-family:var(--sans); text-align:left; background:var(--card); border:1.5px solid var(--line); border-radius:14px; padding:1rem 1.2rem; cursor:pointer; transition:background .25s, border-color .25s; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.year-tab b{ font-family:var(--serif); font-size:1.6rem; font-weight:600; color:var(--navy); line-height:1; }
.year-tab span{ font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-muted); }
.year-tab:hover{ border-color:var(--navy); }
.year-tab[aria-selected="true"]{ background:var(--navy); border-color:var(--navy); }
.year-tab[aria-selected="true"] b{ color:#fff; }
.year-tab[aria-selected="true"] span{ color:#FF9EA1; }
.plan-panel{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:2.2rem 2.4rem; }
.plan-panel .cycle{ font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); }
.plan-panel h3{ font-size:2.2rem; color:var(--navy); margin:.4rem 0 1.4rem; }
.subjects{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
.subjects li{ padding:.7rem 0; border-top:1px dashed var(--line); font-size:.95rem; display:flex; align-items:center; gap:.6rem; }
.subjects li::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--red); flex:none; }
.js .plan-panel:not([hidden]){ animation:fadeUp .45s ease both; }
.plan-note{ margin-top:1.4rem; font-size:.9rem; color:var(--ink-muted); }

/* Secundaria: Pampas vs Patagones */
.tribus{ display:grid; grid-template-columns:1fr auto 1fr; align-items:stretch; border-radius:var(--radius); overflow:hidden; margin-top:1.6rem; }
.tribus div{ padding:1.4rem 1.2rem; text-align:center; font-family:var(--serif); font-size:1.8rem; font-weight:600; color:#fff; }
.tribus .patagon{ background:var(--navy); } .tribus .pampa{ background:var(--red); }
.tribus .vs{ background:var(--ivory); color:var(--navy); font-family:var(--sans); font-size:.8rem; font-weight:700; letter-spacing:.14em; display:grid; place-items:center; padding:0 .9rem; }

/* Perfil del egresado */
.perfil{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 36px; counter-reset:q; }
.perfil li{ counter-increment:q; padding:1.8rem 0; border-top:1px solid var(--line); font-family:var(--serif); font-size:1.45rem; font-weight:500; line-height:1.3; color:var(--navy); }
.perfil li::before{ content:counter(q, decimal-leading-zero); display:block; font-family:var(--sans); font-size:.72rem; font-weight:700; letter-spacing:.16em; color:var(--red-deep); margin-bottom:.7rem; }

/* Stats with count-up */
.stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.stat{ border-top:1.5px solid var(--red); padding-top:1.2rem; }
.stat .num{ font-family:var(--serif); font-size:clamp(3rem,6vw,4.6rem); font-weight:600; color:var(--navy); line-height:1; }
.stat .lbl{ color:var(--ink-muted); font-size:.95rem; margin-top:.6rem; }

/* Exam cards */
.exams{ display:grid; gap:18px; }
.exams .feature{ padding:2rem 2rem 1.8rem; }
.exams .g{ display:block; font-size:.72rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); margin-bottom:.5rem; }
.exams h4{ font-size:1.8rem; }

/* Vocabulary cloud */
.sticker-cloud{ background:var(--navy); border-radius:var(--radius); padding:3rem 2.4rem; display:flex; flex-wrap:wrap; gap:.8rem; justify-content:center; align-content:center; min-height:420px; box-shadow:var(--shadow); }
.sticker-cloud span{ font-family:var(--serif); font-style:italic; font-weight:500; font-size:clamp(1.25rem,2.1vw,1.8rem); color:#fff; padding:.4rem 1.1rem; border:1.5px solid rgba(244,241,234,.3); border-radius:999px; transform:rotate(var(--r,0deg)); transition:transform .3s, background .3s; }
.sticker-cloud span:nth-child(3n+1){ background:var(--red); border-color:var(--red); }
.sticker-cloud span:hover{ transform:rotate(0) scale(1.06); }

/* Videos */
video{ display:block; max-width:100%; background:var(--paper); }
.level .ph video, .gallery figure video{ width:100%; height:100%; object-fit:cover; }
.split-media > video{ width:100%; aspect-ratio:5/4; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow); }
.split-media.vertical > video{ aspect-ratio:9/16; width:min(100%,340px); margin:0 auto; }
.vid-tag{ position:absolute; top:.8rem; left:.8rem; z-index:2; display:inline-flex; align-items:center; gap:.4rem; font-size:.68rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#fff; background:rgba(15,34,64,.72); padding:.35rem .7rem; border-radius:999px; backdrop-filter:blur(4px); }
.vid-tag::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--red); animation:pulse 1.6s ease-in-out infinite; }
@keyframes pulse{ 50%{ opacity:.35; } }
.split-media.vertical{ position:relative; display:flex; justify-content:center; }
.split-media.vertical .vid-tag{ left:50%; transform:translateX(-50%); top:auto; bottom:1rem; }
.level .ph{ position:relative; }

/* Kinder sala illustrations */
.sala-tab img{ width:58px; height:58px; border-radius:14px; object-fit:cover; display:block; box-shadow:0 6px 14px -8px rgba(15,34,64,.6); }
.sala-tab[aria-selected="true"] img{ outline:3px solid #fff; outline-offset:-1px; }
.sala-panel .sala-art{ width:104px; height:104px; border-radius:20px; object-fit:cover; margin-bottom:1.1rem; box-shadow:0 12px 26px -16px rgba(15,34,64,.6); }

/* Contact facade pair */
.map-card .pics{ display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--line); }
.map-card .pics figure{ margin:0; position:relative; }
.map-card .pics img{ height:220px; }
.map-card .pics figcaption{ position:absolute; left:.7rem; bottom:.7rem; font-size:.72rem; font-weight:700; letter-spacing:.08em; color:#fff; background:rgba(15,34,64,.72); padding:.3rem .65rem; border-radius:999px; }

/* Spaces chips: an even two-column grid (an odd last one spans the row) */
.spaces{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-width:560px; margin-top:1.4rem; }
.spaces span{ display:flex; align-items:center; gap:.5rem; font-size:.88rem; font-weight:600; line-height:1.3; color:var(--navy); background:var(--card); border:1px solid var(--line); padding:.65rem .9rem; border-radius:12px; }
.spaces span::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--red); flex:none; }
.spaces span:last-child:nth-child(odd){ grid-column:1 / -1; }

@media (max-width:1000px){
  .perfil{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .plan{ grid-template-columns:minmax(0,1fr); }
  .plan-years{ grid-template-columns:repeat(5,minmax(0,1fr)); }
  .year-tab{ flex-direction:column; align-items:flex-start; gap:.3rem; }
}
@media (max-width:900px){
  .hero-media .float{ display:none; }
  .sala-panel{ grid-template-columns:minmax(0,1fr); gap:18px; padding:2rem 1.8rem; }
  .axes, .intro-split, .bullets{ grid-template-columns:minmax(0,1fr); }
  .intro-split{ gap:20px; }
  .timeline[data-fill]::after{ left:92px; }
}
@media (max-width:640px){
  .salas{ gap:6px; }
  .sala-tab{ padding:.9rem .2rem .8rem; border-radius:14px; }
  .sala-tab img{ width:40px; height:40px; border-radius:10px; }
  .sala-panel .sala-art{ width:80px; height:80px; }
  .map-card .pics img{ height:150px; }
  .sala-tab .nm{ display:none; }
  .sala-tab .age{ font-size:.58rem; letter-spacing:.06em; }
  .areas{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .areas li{ min-height:112px; }
  .stats{ grid-template-columns:minmax(0,1fr); gap:10px; }
  .subjects{ gap:0 14px; }
  .subjects li{ font-size:.84rem; line-height:1.35; padding:.6rem 0; align-items:flex-start; gap:.45rem; }
  .subjects li::before{ margin-top:.45em; }
  .perfil{ gap:0 16px; }
  .perfil li{ font-size:1.08rem; padding:1.1rem 0; }
  .plan-years{ gap:6px; }
  .year-tab{ padding:.8rem .6rem; align-items:center; }
  .year-tab b{ font-size:1.3rem; }
  .year-tab span{ font-size:.54rem; letter-spacing:.04em; text-align:center; }
  .plan-panel{ padding:1.6rem 1.4rem; }
  .axis{ padding:2rem 1.6rem; }
  .timeline[data-fill]::after{ left:0; }
  .tribus div{ font-size:1.35rem; padding:1.1rem .6rem; }
  .pull{ padding-left:1.1rem; }
  .sticker-cloud{ min-height:0; padding:2rem 1.2rem; gap:.55rem; }
  .exams h4{ font-size:1.5rem; }
}
@media (prefers-reduced-motion:reduce){
  .js .words .w > span, .js [data-stagger] > *{ transform:none; opacity:1; transition:none; }
  .js .reveal .frame::after{ display:none; }
  .js .scribble path{ stroke-dashoffset:0; transition:none; }
  .marquee .track{ animation:none; }
  .vid-tag::before{ animation:none; }
  .js .sala-panel:not([hidden]), .js .plan-panel:not([hidden]){ animation:none; }
}

/* Secundaria: viaje internacional (text + photo, trip gallery below) */
.two-col.trip{ align-items:start; }
.trip .copy .plan-note{ margin-top:1.8rem; margin-bottom:0; color:var(--ink); }
.trip-card{ position:sticky; top:120px; margin-top:4.6rem; padding:2.4rem 2.4rem 2.2rem; background:var(--paper); border-radius:16px; border-left:3px solid var(--red); }
.trip-card h3{ font-size:clamp(1.8rem,3vw,2.4rem); color:var(--navy); margin-bottom:1.1rem; }
.trip-card p{ color:var(--ink-muted); font-size:1.03rem; }
.trip-card p:last-child{ margin-bottom:0; }
@media (max-width:900px){ .trip-card{ position:static; margin-top:0; padding:1.8rem 1.5rem; } }
.trip-gallery{ margin-top:56px; }

/* Section head whose title runs on one line, with a red italic subtitle under it */
.section-head.wide{ max-width:none; }
.section-head.wide > p{ max-width:720px; }
.section-head .h2-sub{ margin:.4rem 0 0; font-family:var(--serif); font-style:italic; font-weight:500; font-size:clamp(1.6rem,2.6vw,2.2rem); line-height:1.15; color:var(--red); }
@media (min-width:1001px){ .section-head.wide h2{ white-space:nowrap; } }

/* Centered section heads */
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center p{ margin-left:auto; margin-right:auto; max-width:60ch; }
.section-head.center .chips{ justify-content:center; margin-top:1.4rem; }

/* Proyecto: art photos under the pillars intro */
.art-pair{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:32px; }
.art-pair figure{ position:relative; margin:0; border-radius:14px; overflow:hidden; aspect-ratio:4/5; background:var(--paper); }
.art-pair figure:last-child{ margin-top:44px; }
.art-pair img, .art-pair video{ width:100%; height:100%; object-fit:cover; display:block; }
.art-pair figcaption{ position:absolute; left:.8rem; bottom:.8rem; font-size:.72rem; font-weight:700; letter-spacing:.08em; color:#fff; background:rgba(15,34,64,.72); padding:.3rem .7rem; border-radius:999px; }

/* Secundaria: Escuelas Rurales as a travel pass */
.rural-band{ background-color:var(--navy); background-image:radial-gradient(rgba(244,241,234,.08) 1px, transparent 1.5px); background-size:22px 22px; color:var(--on-navy); overflow:hidden; }
.rural-band .section-head h2{ color:#fff; }
.rural-band .section-head p{ color:var(--on-navy-muted); }
.ticket{ display:grid; grid-template-columns:minmax(0,1fr) 280px; max-width:1000px; margin:0 auto; filter:drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.t-main, .t-stub{ background:var(--ivory); color:var(--ink); position:relative; }
.t-main{ border-radius:22px 0 0 22px; padding:2rem 2.6rem 2.2rem; }
.t-stub{ border-radius:0 22px 22px 0; border-left:2px dashed rgba(15,34,64,.22); padding:2rem 1.8rem; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.2rem; text-align:center; }
.t-stub::before, .t-stub::after{ content:''; position:absolute; left:-15px; width:28px; height:28px; border-radius:50%; background:var(--navy); }
.t-stub::before{ top:-14px; } .t-stub::after{ bottom:-14px; }
.t-top{ display:flex; align-items:center; gap:.7rem; padding-bottom:1.1rem; border-bottom:1px dashed var(--line); }
.t-top img{ width:34px; height:34px; }
.t-brand{ font-family:var(--serif); font-size:1.2rem; font-weight:600; color:var(--navy); }
.t-type{ margin-left:auto; font-size:.66rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); }
.ticket .lbl{ display:block; font-size:.64rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-deep); margin-bottom:.3rem; }
.t-route{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:28px; padding:1.8rem 0; }
.t-place strong{ display:block; font-family:var(--serif); font-size:clamp(2rem,3.6vw,2.8rem); font-weight:600; line-height:1; color:var(--navy); }
.t-place small{ display:block; margin-top:.35rem; font-size:.85rem; color:var(--ink-muted); }
.t-place.to{ text-align:right; }
.t-path{ position:relative; height:46px; }
.t-path::before{ content:''; position:absolute; left:0; right:0; top:50%; border-top:2px dashed var(--red); }
.t-path::after{ content:''; position:absolute; right:-4px; top:50%; width:10px; height:10px; margin-top:-5px; border-radius:50%; background:var(--red); }
.t-bus{ position:absolute; top:0; left:calc(100% - 46px); width:46px; height:46px; border-radius:50%; background:var(--navy); color:#fff; display:grid; place-items:center; font-size:1.4rem; box-shadow:0 0 0 6px var(--ivory); z-index:1; }
.js .ticket.in .t-bus{ animation:drive 2.4s cubic-bezier(.55,0,.25,1) .6s both; }
@keyframes drive{ from{ left:0; } to{ left:calc(100% - 46px); } }
.t-fields{ display:grid; grid-template-columns:.8fr 1fr 1.4fr; gap:1.6rem; padding-top:1.4rem; border-top:1px dashed var(--line); }
.t-fields p{ margin:0; font-size:.95rem; line-height:1.5; color:var(--ink); }
.stamp{ position:relative; width:128px; height:128px; color:var(--red); transform:rotate(-12deg); }
.stamp svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; }
.stamp text{ fill:currentColor; stroke:none; font-family:var(--sans); font-size:9.5px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.stamp > .ic{ position:absolute; left:50%; top:50%; width:30px; height:30px; margin:-15px 0 0 -15px; stroke-width:1.8; }
.js .ticket .stamp{ opacity:0; }
.js .ticket.in .stamp{ animation:stamp .55s cubic-bezier(.3,1.5,.5,1) 2.6s both; }
@keyframes stamp{ from{ opacity:0; transform:scale(1.9) rotate(-28deg); } to{ opacity:.92; transform:scale(1) rotate(-12deg); } }
.t-stub p{ margin:0; font-family:var(--serif); font-style:italic; font-size:1.12rem; line-height:1.4; color:var(--navy); }
.t-stub em{ color:var(--red); }
.barcode{ width:100%; height:42px; opacity:.85; background:repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 13px, var(--navy) 13px 14px, transparent 14px 17px); }
@media (prefers-reduced-motion:reduce){
  .js .ticket.in .t-bus, .js .ticket.in .stamp{ animation:none; }
  .js .ticket .stamp{ opacity:.92; }
}

/* Primaria: camp snapshots */
/* Row 1: three camp photos. Then the study-trip chips. Row 3: two study-trip photos, centred under the gaps */
.snapshots{ display:grid; grid-template-columns:1fr 1fr 1.15fr 1.15fr 1fr 1fr; column-gap:32px; row-gap:44px; align-items:center; max-width:1000px; margin:8px auto 0; }
.snapshots figure{ margin:0; background:#fff; padding:12px; border-radius:6px; box-shadow:0 22px 44px -24px rgba(15,34,64,.5); }
.snapshots figure:nth-of-type(1){ grid-column:1 / 3; transform:rotate(-3deg) translateY(14px); }
.snapshots figure:nth-of-type(2){ grid-column:3 / 5; transform:rotate(1.5deg); position:relative; z-index:1; }
.snapshots figure:nth-of-type(3){ grid-column:5 / 7; transform:rotate(3deg) translateY(18px); }
.snapshots figure:nth-of-type(4){ grid-column:2 / 4; transform:rotate(2deg) translateY(10px); position:relative; z-index:2; }
.snapshots figure:nth-of-type(5){ grid-column:4 / 6; transform:rotate(-2.5deg); position:relative; z-index:2; }
.snapshots figure.tall{ justify-self:center; width:70%; }
.snapshots img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; border-radius:2px; }
.snapshots .tall img{ aspect-ratio:3/4; }
.snapshots .snap-chips{ grid-column:1 / -1; justify-content:center; max-width:820px; margin:18px auto 0; }

/* Primaria: educación digital on navy, photo + cards */
.digital{ background:var(--navy); color:var(--on-navy); }
.digital .two-col{ align-items:center; }
.digital h2{ color:#fff; }
.digital .copy p{ color:var(--on-navy-muted); }
.bento{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.bento figure{ grid-column:1 / -1; margin:0; border-radius:16px; overflow:hidden; aspect-ratio:16/9; }
.bento img{ width:100%; height:100%; object-fit:cover; display:block; }
.b-card{ display:flex; flex-direction:column; gap:.35rem; border-radius:16px; padding:1.3rem 1.2rem; background:rgba(244,241,234,.06); border:1px solid rgba(244,241,234,.14); }
.b-card .ic{ font-size:1.8rem; color:#FF8A8E; margin-bottom:.5rem; }
.b-card .g{ font-size:.66rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--on-navy-muted); }
.b-card h3{ font-size:1.2rem; color:#fff; line-height:1.2; }

/* Primaria: workshop tiles */
.talleres{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; }
.talleres li{ display:flex; flex-direction:column; align-items:center; gap:1.1rem; text-align:center; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:2rem 1rem 1.6rem; }
.talleres .ic{ width:64px; height:64px; padding:16px; border-radius:50%; background:var(--paper); color:var(--red); }
.talleres span{ font-family:var(--serif); font-size:1.3rem; font-weight:600; color:var(--navy); line-height:1.15; }

@media (max-width:1000px){
  .talleres{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px){
  .ticket{ grid-template-columns:minmax(0,1fr); }
  .t-main{ border-radius:22px 22px 0 0; padding:1.6rem 1.4rem; }
  .t-stub{ border-radius:0 0 22px 22px; border-left:none; border-top:2px dashed rgba(15,34,64,.22); }
  .t-stub::before, .t-stub::after{ display:none; }
  .t-type{ display:none; }
  .t-route{ gap:14px; }
  .t-fields{ grid-template-columns:minmax(0,1fr); gap:1rem; }
}
@media (max-width:640px){
  .talleres{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bento{ grid-template-columns:minmax(0,1fr); }
}

/* Back to top */
.float-top{ position:fixed; right:24px; bottom:24px; width:52px; height:52px; border-radius:50%; background:var(--navy); color:#fff; border:2px solid var(--red); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 6px 16px rgba(15,34,64,.35); z-index:90; opacity:0; visibility:hidden; transform:translateY(16px); transition:opacity .35s ease, transform .3s ease, background .25s ease, border-color .25s ease, visibility .35s; }
.float-top svg{ width:24px; height:24px; fill:currentColor; }
.float-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.float-top:hover{ background:var(--red); border-color:#fff; transform:translateY(-4px) scale(1.08); }
@media (max-width:600px){ .float-top{ right:16px; bottom:16px; width:44px; height:44px; } .float-top svg{ width:20px; height:20px; } }

/* Inscripciones: phone list on the dark card */
.aside-card.dark .aside-phones{ margin:0; font-size:1rem; }
.aside-card.dark .aside-phones a{ color:#fff; font-weight:700; }
a[href^="tel:"]{ white-space:nowrap; }

/* ============ Laptops (about 1000–1200px): same desktop layout, a few tighter fits ============ */
@media (min-width:1001px) and (max-width:1200px){
  .form-layout{ grid-template-columns:minmax(0,1fr) 320px; }
  .quick .v{ font-size:1.2rem; }
  .ladder{ gap:10px; }
  .ladder li{ padding:1.2rem .95rem; }
  .ladder li:nth-child(6) h4{ font-size:1.1rem; }
}

/* ============ Phones and tablets ============ */
a, button{ -webkit-tap-highlight-color:rgba(15,34,64,.08); touch-action:manipulation; }
.btn:active{ transform:scale(.98); }

/* Kinder: the afternoons table keeps its day columns on every screen; phones get a compact version */
.tardes .short{ display:none; }
@media (max-width:900px){
  .tardes thead th:first-child, .tardes tbody th{ width:118px; }
}
@media (max-width:640px){
  .tardes{ width:calc(100% + 8px); margin:0 -4px; border-spacing:4px; }
  .tardes th .full{ display:none; }
  .tardes th .short{ display:block; }
  .tardes thead th:first-child, .tardes tbody th{ width:46px; }
  .tardes thead th{ padding:0 0 .15rem; font-size:.6rem; letter-spacing:.1em; text-align:center; }
  .tardes thead th:first-child{ text-align:left; font-size:0; }
  .tardes tbody th{ padding:0; font-size:1.7rem; line-height:1; text-align:center; }
  .tardes tbody th small{ display:block; margin-bottom:.25rem; font-family:var(--sans); font-size:.5rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--on-navy-muted); }
  .tardes tbody tr:first-child th{ font-size:1.25rem; }
  .tardes td{ padding:.65rem .35rem; border-radius:10px; text-align:center; vertical-align:middle; height:64px; }
  .tardes .act{ font-size:.68rem; line-height:1.25; hyphens:manual; overflow-wrap:normal; }
  .tardes .act .ln{ display:block; white-space:nowrap; }
  .tardes .lbl{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .tardes td.none{ border:1px dashed rgba(244,241,234,.16); }
  .tardes td.am{ height:auto; padding:.8rem; font-size:1rem; }
  .tardes-wrap h3{ font-size:1.45rem; }
  .tardes-key{ margin-top:.8rem; font-size:.8rem; }
}

/* Kinder: afternoon list inside each sala panel stacks day and activity */
@media (max-width:640px){
  .sala-tardes li{ grid-template-columns:minmax(0,1fr) auto; gap:.15rem .8rem; }
  .sala-tardes b{ grid-column:1; }
  .sala-tardes span{ grid-column:1; padding-left:calc(6px + .6rem); font-size:.92rem; }
  .sala-tardes em{ grid-column:2; grid-row:1 / span 2; }
}

/* Home, Inglés: on phones the staircase lies on its side, each step a little longer than the last */
@media (max-width:640px){
  .ladder{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .ladder li{ min-height:0 !important; padding:.85rem 1rem .9rem; border-radius:4px 14px 14px 4px; border-left:3px solid #FF9EA1; }
  .ladder li:nth-child(1){ width:64%; } .ladder li:nth-child(2){ width:71%; } .ladder li:nth-child(3){ width:78%; }
  .ladder li:nth-child(4){ width:85%; } .ladder li:nth-child(5){ width:92%; } .ladder li:nth-child(6){ width:100%; border-left-color:#fff; }
  .ladder .when{ font-size:.6rem; margin-bottom:.3rem; }
  .ladder h4{ font-size:1.15rem; margin-bottom:.2rem; }
  .ladder p{ font-size:.78rem; }
}

@media (max-width:640px){
  .spaces span{ padding:.7rem .8rem; font-size:.84rem; }
}

/* Feature cards two by two on phones */
@media (max-width:640px){
  .features, .features.two{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .features .feature{ padding:1.05rem .95rem 1.1rem; }
  .features .feature .ic{ font-size:1.25rem; margin-bottom:.55rem; }
  .features .feature h4{ font-size:1.1rem; line-height:1.15; margin-bottom:.35rem; }
  .features .feature p{ font-size:.79rem; line-height:1.5; }
}

/* Level cards: a swipeable row on phones (the next card peeks in from the right) */
.swipe-hint{ display:none; align-items:center; gap:.5rem; margin:-.8rem 0 .6rem; font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-muted); }
.swipe-hint .ic{ color:var(--red); font-size:1rem; }
@media (max-width:640px){
  .page-hero + .section:not(.paper){ padding-top:20px; }
  .level-grid, .level-grid.two{ display:flex; gap:12px; max-width:none; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 calc(-1 * var(--g)); padding:4px var(--g) 16px; scroll-padding-left:var(--g); scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .level-grid::-webkit-scrollbar{ display:none; }
  .level-grid > *{ flex:0 0 84%; scroll-snap-align:start; }
  .level .ph, .level-grid.two .ph{ aspect-ratio:16/10; }
  .level .body{ padding:1.3rem 1.3rem 1.4rem; }
  .level h3{ font-size:1.7rem; }
  .level p{ font-size:.9rem; }
  .level ul{ margin-bottom:1.1rem; }
  .swipe-hint{ display:flex; }
}

/* Educación digital: the three cards as compact rows on phones */
@media (max-width:640px){
  .b-card{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:.9rem; align-items:center; padding:.85rem 1rem; }
  .b-card .ic{ grid-row:1 / span 2; margin:0; font-size:1.5rem; }
  .b-card h3{ font-size:1.1rem; }
}

/* Photos: on phones and tablets they simply fade in with a slow, gentle zoom (no curtain) */
@media (max-width:900px){
  .js .reveal .frame::after{ display:none; }
  .js .reveal .frame img{ opacity:0; transform:scale(1.06); transition:opacity 1.1s ease .15s, transform 1.6s cubic-bezier(.2,.7,.2,1) .15s; }
  .js .reveal.in .frame img{ opacity:1; transform:none; }
  .js .hero-media.reveal, .js .split-media.reveal{ transform:none; }
  :root{ --shadow:0 18px 36px -26px rgba(15,34,64,.45); }
}

/* Primaria: the week turns into a list of five rows */
@media (max-width:640px){
  .week{ grid-template-columns:minmax(0,1fr); gap:6px; margin-top:40px; }
  .week div{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1.1rem; text-align:left; }
  .week .d{ margin:0; font-size:.68rem; letter-spacing:.14em; }
  .week .w{ font-size:1.25rem; }
}

/* Primaria: camp photos as a small pile of prints */
@media (max-width:900px){
  .snapshots{ display:block; max-width:520px; }
  .snapshots figure{ position:relative; width:80%; padding:9px; }
  .snapshots figure:nth-of-type(1){ transform:rotate(-3deg); margin-right:auto; z-index:1; }
  .snapshots figure:nth-of-type(2){ transform:rotate(2.5deg); margin:-14% 0 0 auto; z-index:2; }
  .snapshots figure:nth-of-type(3){ transform:rotate(-1.5deg); margin:-14% auto 0 6%; z-index:3; }
  .snapshots figure:nth-of-type(4){ transform:rotate(2deg); margin:0 0 0 auto; z-index:4; }
  .snapshots figure:nth-of-type(5){ transform:rotate(-2.5deg); margin:-6% auto 0 8%; z-index:5; }
  .snapshots figure.tall{ width:62%; }
  .snapshots .snap-chips{ margin:40px auto 32px; }
}

/* Secundaria: on phones the two places sit side by side and the bus crosses the full width below them */
@media (max-width:640px){
  .t-route{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:"from to" "path path"; gap:12px; padding:1.4rem 0 1.3rem; }
  .t-route > .t-place:first-child{ grid-area:from; }
  .t-place.to{ grid-area:to; text-align:right; }
  .t-place strong{ font-size:1.55rem; }
  .t-place small{ font-size:.78rem; }
  .t-path{ grid-area:path; height:46px; }
  .t-path::before{ left:4px; }
  .t-fields{ padding-top:1.2rem; }
  .t-stub{ padding:1.8rem 1.4rem; }
}
@media (max-width:380px){
  .t-place strong{ font-size:1.3rem; }
}

/* Secundaria: compact year tabs */
@media (max-width:640px){
  .plan-years{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .year-tab{ padding:.85rem .2rem; align-items:center; justify-content:center; }
  .year-tab b{ font-size:1.15rem; white-space:nowrap; }
  .year-tab span{ display:none; }
}

/* Tablets: level cards lie down (photo beside the text) and the ten areas go two by two */
@media (max-width:900px){
  .areas{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .areas li{ min-height:96px; flex-direction:row; align-items:center; justify-content:flex-start; gap:1rem; }
  .areas li::before{ min-width:2.2rem; }
}
@media (max-width:520px){
  .areas li{ min-height:104px; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:.6rem; padding:1.1rem 1rem; font-size:.92rem; hyphens:auto; }
}
@media (min-width:641px) and (max-width:900px){
  .level-grid, .level-grid.two{ max-width:none; gap:20px; }
  .level{ display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); }
  .level .ph, .level-grid.two .ph{ aspect-ratio:auto; height:100%; min-height:300px; }
  .level .body{ padding:1.9rem 2rem 2rem; }
  .hero-media, .page-hero .hero-media{ max-width:560px; }
}
@media (min-width:641px) and (max-width:1000px){
  .aside > .aside-card.dark{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem 2rem; }
  .aside > .aside-card.dark h3{ margin:0; }
  .aside > .aside-card.dark p{ margin:0; }
}

/* Labels and small details */
.hide-sm{ display:inline; }
@media (max-width:640px){
  .hide-sm{ display:none; }
  .kicker{ gap:.55rem; }
  .kicker::before, .kicker::after{ width:20px; }
}
@media (max-width:380px){
  :root{ --g:16px; }
  .foot > div:first-child{ grid-template-columns:minmax(0,1fr); }
  .foot .social{ grid-column:1; grid-row:3; }
  .kicker{ font-size:.64rem; letter-spacing:.1em; }
  .kicker::before, .kicker::after{ width:14px; }
  .fact{ padding:26px 12px; }
  .fact .big{ font-size:1.7rem; }
  .sede{ padding:1.3rem 1.2rem; }
  .sede a.mail{ font-size:.84rem; overflow-wrap:anywhere; }
  .hero h1{ font-size:2.45rem; }
}
@media (max-width:640px){
  .form-frame iframe{ height:1550px; }
}

/* Touch screens: no sticky hover states after a tap */
@media (hover:none){
  .level:hover{ transform:none; box-shadow:0 1px 0 var(--line); }
  .level:hover .ph img, .gallery figure:hover img{ transform:none; }
  .doc:hover, .sala-tab:hover{ transform:none; }
  .sala-tab:hover{ border-color:var(--line); }
  .sala-tab[aria-selected="true"]:hover{ border-color:var(--navy); }
  .stickers span:hover, .sticker-cloud span:hover{ transform:rotate(var(--r,0deg)); }
  .float-top:hover{ background:var(--navy); border-color:var(--red); transform:none; }
  .float-top:active{ background:var(--red); }
}
