/* Bodoni Moda italic latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/BodoniModa-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bodoni Moda italic latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/BodoniModa-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bodoni Moda normal latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/BodoniModa-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bodoni Moda normal latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/BodoniModa-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Jost normal latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/Jost-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost normal latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/Jost-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* El "+" de Bodoni es un trazo finísimo que no se lee en tamaño grande: ese carácter sale en Jost (mismo archivo, ya en caché). */
@font-face {
  font-family: 'Amapola Plus';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/Jost-normal-latin.woff2') format('woff2');
  unicode-range: U+002B;
}
/* ==========================================================================
   Amapola. Blanco, negro y bordó (#580000). Tipografía Bodoni Moda + Jost.
   Todo el movimiento lo gobierna GSAP (js/scenes.js); aquí viven el layout, los estados
   de reposo y los estados hover y focus. Se escribe primero para móvil.
   ========================================================================== */

:root {
  --black:  #0E0A0A;
  --white:  #F6F6F6;   /* el blanco exacto del logo de la clienta */
  --bordo:  #580000;   /* el bordó exacto del logo de la clienta */
  --deep:   #380000;

  --f-display: "Amapola Plus", "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text:    "Jost", "Futura", system-ui, sans-serif;

  --t-h2:   clamp(2.4rem, 1.2rem + 4.6vw, 6rem);
  --t-xl:   clamp(4.4rem, 1.5rem + 15vw, 15rem);
  --t-lede: clamp(1.2rem, 1.05rem + 0.9vw, 1.75rem);
  --t-body: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);

  --gut: max(clamp(1.25rem, 5vw, 5.5rem), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(1.25rem, 5vw, 5.5rem), env(safe-area-inset-right, 0px));
  --bar-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-folio: 40; --z-bar: 50; --z-dialog: 120; --z-ck: 200; --z-cur: 300; --z-pre: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--f-text); font-size: var(--t-body); font-weight: 400; line-height: 1.65; letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, label, select, input, textarea, summary { touch-action: manipulation; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--bordo); color: var(--white); }
.scene--black ::selection, .scene--bordo ::selection, .hero ::selection { background: var(--white); color: var(--bordo); }
html.is-loading, html.is-loading body { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Cada escena trae su suelo y su tinta. */
.scene { background: var(--bg); color: var(--ink); }
.scene--black { --bg: var(--black); --ink: #F6F6F6; --soft: #BBB5B5; --line: rgba(246,246,246,.2); }
.scene--white { --bg: var(--white); --ink: #0E0A0A; --soft: #55504F; --line: rgba(14,10,10,.18); }
.scene--bordo { --bg: var(--bordo); --ink: #F6F6F6; --soft: #E0CECE; --line: rgba(246,246,246,.3); }

/* ----------------------------------------------------------- tipografía -- */
.h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-h2); line-height: .98; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.h2 em, .h3 em { font-style: italic; font-weight: 400; }
.h2--xl { font-size: var(--t-xl); line-height: .84; letter-spacing: -0.045em; }
.h3 { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.lede { font-size: var(--t-lede); line-height: 1.42; margin: 0; max-width: 40ch; text-wrap: pretty; letter-spacing: -0.005em; }
.body { color: var(--soft); max-width: 54ch; margin: 0; text-wrap: pretty; line-height: 1.7; }
em { font-style: italic; }

/* Líneas partidas por SplitText: máscara con aire para ascendentes y descendentes. */
.sl-mask, .sw-mask { padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
.sc { display: inline-block; will-change: transform; }

.rec { display: inline-block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.logo { display: block; fill: currentColor; overflow: hidden; }

/* ------------------------------------------------------------- botones -- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 3.1rem; padding: .95em 1.8em; border: 1px solid currentColor; overflow: hidden; isolation: isolate;
  font-family: var(--f-text); font-weight: 500; font-size: .95rem; letter-spacing: .02em; white-space: nowrap;
  transition: color 420ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fill); transform: translateY(101%); transition: transform 560ms var(--ease); }
.btn__arrow { width: 1.25rem; height: 1.25rem; transition: transform 520ms var(--ease); flex: none; }
.btn--light { color: #F6F6F6; --fill: #F6F6F6; }
.btn--dark  { color: #0E0A0A; --fill: #0E0A0A; }
@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover .btn__arrow { transform: translateX(.35em); }
  .btn--light:hover { color: #0E0A0A; }
  .btn--dark:hover  { color: #F6F6F6; }
}
.btn:active { transform: translateY(1px); }

/* Texto que rueda al pasar el ratón (lo construye ui.js). */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll .c { position: relative; display: inline-block; white-space: pre; transition: transform 640ms var(--ease); transition-delay: calc(var(--i) * 16ms); }
.roll .c::after { content: attr(data-ch); position: absolute; left: 0; top: 100%; }
@media (hover: hover) { :hover > .roll .c, .roll:hover .c { transform: translateY(-100%); } }

/* -------------------------------------------------------------- cabecera -- */
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 500; background: #fff; color: #000; padding: .6rem 1rem; transition: top 120ms; }
.skip:focus { top: 1rem; }

body[data-tone="dark"]  { --bar-ink: #F6F6F6; --bar-bg: #0E0A0A; --logo-ink: #F6F6F6; }
body[data-tone="light"] { --bar-ink: #0E0A0A; --bar-bg: #F6F6F6; --logo-ink: #580000; }
body[data-tone="bordo"] { --bar-ink: #F6F6F6; --bar-bg: #580000; --logo-ink: #F6F6F6; }
body[data-folio="dark"], body[data-folio="bordo"] { --folio-ink: #F6F6F6; }
body[data-folio="light"] { --folio-ink: #0E0A0A; }

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(.7rem, env(safe-area-inset-top, 0px)) var(--gut-r) .45rem var(--gut);
  color: var(--bar-ink, #F6F6F6); background: transparent;
  transition: color 300ms var(--ease), background-color 300ms var(--ease), padding 400ms var(--ease);
  pointer-events: none;
}
.bar > * { pointer-events: auto; grid-row: 1; }
.bar.is-solid { background: var(--bar-bg); }

.bar__clock { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: .5rem; font-size: .8rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.bar__clock b { font-weight: 500; }
.bar__clock .rec, .foot__clock .rec { animation: blink 1.6s steps(2, jump-none) infinite; }
.bar__lang { grid-column: 3; justify-self: end; display: flex; gap: .15rem; align-items: center; font-size: .82rem; letter-spacing: .08em; }
.bar__lang button, .menu__lang button { min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; opacity: .64; letter-spacing: inherit; transition: opacity 160ms; }
.bar__lang button[aria-pressed="true"], .menu__lang button[aria-pressed="true"] { opacity: 1; font-weight: 500; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.bar__lang span { opacity: .4; }
@media (hover: hover) { .bar__lang button:hover, .menu__lang button:hover { opacity: 1; } }
.bar__nav { grid-column: 2; display: flex; justify-content: center; gap: clamp(1.1rem, 2.4vw, 2.6rem); }
.bar__nav a { font-size: .88rem; letter-spacing: .04em; padding-block: .55rem; }
.bar__nav a { position: relative; }
/* La página actual se subraya con una línea propia: text-decoration no llega a los hijos inline-flex del efecto de letras. */
.bar__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px; background: currentColor; }
.bar__menu { display: none; grid-column: 1; justify-self: start; width: 2.75rem; height: 2.75rem; margin-left: -.5rem; position: relative; color: inherit; }
.bar__menu span { position: absolute; left: .65rem; right: .65rem; height: 1px; background: currentColor; }
.bar__menu span:nth-child(1) { top: 1.2rem; } .bar__menu span:nth-child(2) { top: 1.6rem; }
.bar.is-compact { padding-top: max(.45rem, env(safe-area-inset-top, 0px)); }

@media (max-width: 860px) {
  :root { --bar-h: 4.75rem; }
  .bar__nav { display: none; }
  .bar__menu { display: block; }
  .bar__clock { display: none; }
  .bar { padding-bottom: .4rem; }
  .bar__lang { margin-right: -.5rem; }
}

/* ---------------------------------------------- folio: el margen del set -- */
.folio {
  position: fixed; right: 1rem; top: 50%; z-index: var(--z-folio);
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  display: flex; align-items: center; gap: .9rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  color: var(--folio-ink, var(--bar-ink, #F6F6F6)); opacity: 0; pointer-events: none; transition: color 300ms var(--ease);
}
.folio__dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
@media (max-width: 1000px) { .folio { display: none; } }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--logo-ink, #F6F6F6); transform-origin: 0 50%; transform: scaleX(0); transition: background-color 300ms; }

/* ------------------------------------------- preloader y transición de página -- */
.pre { position: fixed; inset: 0; z-index: var(--z-pre); display: none; color: #F6F6F6; }
.js .pre { display: block; }
.pre__col { position: absolute; top: 0; bottom: 0; width: 20.05%; background: var(--black); will-change: transform; }
.pre__col:nth-child(1) { left: 0; } .pre__col:nth-child(2) { left: 20%; } .pre__col:nth-child(3) { left: 40%; } .pre__col:nth-child(4) { left: 60%; } .pre__col:nth-child(5) { left: 80%; }
.pre__col::after, .pre__col::before { content: ""; position: absolute; left: 0; right: 0; height: clamp(10px, 1.6vw, 22px); background: var(--bordo); }
.pre__col::after { top: 100%; }
.pre__col::before { bottom: 100%; }
@keyframes blink { 50% { opacity: .15; } }

/* --------------------------------------------------------------- cursor -- */
.cur { position: fixed; left: 0; top: 0; z-index: var(--z-cur); pointer-events: none; display: none; }
.cur__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: transform 500ms var(--ease), opacity 300ms; }
.cur__label { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--bordo); color: #fff; transform: scale(0); transition: transform 560ms var(--ease); }
.cur__label span { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.cur.is-label .cur__label { transform: scale(1); }
.cur.is-label .cur__dot { transform: scale(0); }
.cur.is-down .cur__label { transform: scale(.88); }
.cur.is-link .cur__dot { transform: scale(2.3); }
.cur.is-field { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .js .cur { display: block; }
  .js body.has-cursor, .js body.has-cursor a, .js body.has-cursor button, .js body.has-cursor label { cursor: none; }
  .js body.has-cursor input, .js body.has-cursor textarea, .js body.has-cursor select, .js body.has-cursor video { cursor: auto; }
}
body:has(dialog[open]) .cur { display: none !important; }
.js body.has-cursor:has(dialog[open]), .js body.has-cursor:has(dialog[open]) * { cursor: auto; }
.js body.has-cursor:has(dialog[open]) :is(a, button, label, summary) { cursor: pointer; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--black); color: #F6F6F6; }
.after { position: relative; z-index: 2; }
.hero__reel { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--black); }
.hero__pane { margin: 0; overflow: hidden; background: #000; will-change: transform, clip-path; }
.hero__zoom { display: block; width: 100%; height: 100%; will-change: transform; }
.hero__pane video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); will-change: transform; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, rgba(14,10,10,.97) 0%, rgba(14,10,10,.92) 22%, rgba(14,10,10,.78) 40%, rgba(14,10,10,.58) 58%, rgba(14,10,10,.22) 78%, rgba(14,10,10,0) 100%),
  linear-gradient(to bottom, rgba(14,10,10,.7) 0%, rgba(14,10,10,0) 22%); }
.hero__veil { position: absolute; inset: 0; background: var(--black); opacity: 0; pointer-events: none; }
.hero__copy { position: absolute; left: var(--gut); right: var(--gut-r); bottom: max(clamp(2rem, 9vh, 5.5rem), calc(env(safe-area-inset-bottom, 0px) + 1.5rem)); max-width: 62rem; }
.hero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.7rem, 1.1rem + 6.4vw, 6.25rem); line-height: .96; letter-spacing: -0.03em; margin: 0; }
.hero__title em { font-weight: 400; }
.hero__sub { margin: 1.4rem 0 1.8rem; max-width: 36rem; font-size: var(--t-lede); line-height: 1.4; color: #E9E6E6; text-wrap: pretty; }
.hero__spacer { height: 85vh; height: 85svh; pointer-events: none; }
.hero__beat { position: absolute; left: var(--gut); right: var(--gut-r); top: 50%; margin: 0; text-align: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 1rem + 3.8vw, 4.6rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .hero__reel { grid-template-columns: 1fr; }
  .hero__pane[data-pane="a"], .hero__pane[data-pane="c"] { display: none; }
  .hero__sub { margin: 1.1rem 0 1.5rem; }
}

/* ------------------------------------------------------- quiénes somos -- */
.about { padding: clamp(6rem, 14vw, 12rem) var(--gut-r) clamp(5rem, 10vw, 9rem) var(--gut); overflow: clip; }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); grid-template-columns: 1fr; max-width: 90rem; margin-inline: auto; align-items: end; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.about__text { display: grid; gap: 1.6rem; justify-items: start; padding-bottom: 1rem; }
.about__text .h2 { margin-bottom: .6rem; }
.about__list, .steps { list-style: none; padding: 0; margin: .5rem 0 1rem; width: 100%; max-width: 32rem; }
.about__list li, .steps li { position: relative; padding: .95rem 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.about__list li::after, .steps li::after, .sitems li::after, .slist__ul > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
.about__list li:first-child::before, .steps li:first-child::before, .sitems li:first-child::before, .slist__ul > li:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
.about__figure { margin: 0; position: relative; }
.about__frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #d9d6d4; }
.about__frame .take { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.about__frame .take--2 { opacity: 0; }
.badge { position: absolute; left: clamp(-4.5rem, -4vw, -1.5rem); top: 8%; width: clamp(6.5rem, 11vw, 10rem); aspect-ratio: 1; border-radius: 50%; background: var(--bordo); color: #F6F6F6; display: grid; place-items: center; z-index: 2; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__ring text { font: 500 13px var(--f-text); letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.badge__a { width: 34%; height: auto; color: #F6F6F6; }
@media (max-width: 899px) { .badge { left: auto; right: .75rem; top: -2.5rem; } }

/* ------------------------------------------------------ servicios (pico) -- */
.services { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.rail { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding: var(--bar-h) var(--gut-r) 5.5rem var(--gut); will-change: transform; }
.rail__lead { flex: 0 0 auto; width: min(26rem, 82vw); display: grid; gap: 1.5rem; margin-right: clamp(1rem, 5vw, 5rem); }
.rail__lead .body { max-width: 34ch; }
.rail__end { flex: 0 0 auto; padding-inline: clamp(2rem, 6vw, 7rem) var(--gut-r); }
.rail__cta { display: grid; place-items: center; align-content: center; gap: 1rem; width: clamp(14rem, 24vw, 22rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(246,246,246,.4); text-align: center; position: relative; overflow: hidden; isolation: isolate; transition: color 500ms var(--ease); }
.rail__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #F6F6F6; transform: translateY(101%); border-radius: 50%; transition: transform 700ms var(--ease); }
.rail__cta-t { font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); line-height: 1; letter-spacing: -.02em; padding-inline: 1rem; }
.rail__cta-t em { font-weight: 400; }
.rail__cta-a { width: 2rem; height: 2rem; transition: transform 600ms var(--ease); }
@media (hover: hover) { .rail__cta:hover { color: #0E0A0A; } .rail__cta:hover::before { transform: none; } .rail__cta:hover .rail__cta-a { transform: translateX(.4rem); } }

.panel {
  position: relative; display: block; flex: 0 0 auto; height: clamp(24rem, 64svh, 40rem); aspect-ratio: 3 / 4.15; overflow: hidden;
  background: #1a1313; color: #F6F6F6; text-align: left; will-change: transform; transform-origin: 50% 50%;
}
.panel__media { position: absolute; inset: 0; overflow: hidden; }
.panel__media video, .panel__media img { position: absolute; left: -6%; top: 0; width: 112%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.68) contrast(1.05); transition: filter 600ms var(--ease); will-change: transform; }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,10,10,.9) 0%, rgba(14,10,10,.35) 38%, rgba(14,10,10,0) 62%); }
.panel__txt { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; display: grid; gap: .5rem; z-index: 2; }
.panel__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.panel__tag { font-size: .95rem; line-height: 1.4; color: #E7E3E3; max-width: 24ch; text-wrap: pretty; }
.panel__rec { position: absolute; top: 1.1rem; right: 1.2rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; letter-spacing: .16em; font-weight: 500; opacity: 0; transition: opacity 400ms var(--ease); }
.panel__rec::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.panel::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(246,246,246,0); pointer-events: none; transition: border-color 500ms var(--ease); z-index: 3; }
.panel.is-live .panel__media video, .panel.is-live .panel__media img { filter: none; }
.panel.is-live .panel__rec { opacity: 1; }
.panel.is-live::after { border-color: rgba(246,246,246,.6); }
@media (hover: hover) { .panel:hover .panel__media video, .panel:hover .panel__media img { filter: none; } }
.panel--type { background: var(--bg-p); color: var(--ink-p); }
.panel--bordo { --bg-p: var(--bordo); --ink-p: #F6F6F6; }
.panel--deep  { --bg-p: var(--deep);  --ink-p: #F6F6F6; }
.panel--white { --bg-p: var(--white); --ink-p: #0E0A0A; }
.panel--type .panel__tag { color: inherit; opacity: .85; }
.panel--white .panel__tag { color: #4a4444; opacity: 1; }
.panel--white.is-live::after { border-color: rgba(14,10,10,.55); }
.panel__glyph { position: absolute; left: -.04em; top: -.14em; font-family: var(--f-display); font-style: italic; font-weight: 400; line-height: 1; font-size: clamp(14rem, 36svh, 22rem); opacity: .16; letter-spacing: -.04em; pointer-events: none; will-change: transform; }
.panel--white .panel__glyph { opacity: .12; }

.services__ui { position: absolute; left: var(--gut); right: calc(var(--gut-r) + 1rem); bottom: max(clamp(1.1rem, 2.6vw, 2rem), calc(env(safe-area-inset-bottom, 0px) + .6rem)); display: flex; align-items: center; gap: 1.25rem; font-size: .85rem; letter-spacing: .06em; z-index: 3; pointer-events: none; }
.services__name { position: relative; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; letter-spacing: -.01em; width: 14rem; flex: none; overflow: hidden; height: 1.5em; display: block; }
.services__name span { position: absolute; left: 0; top: 0; display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.services__bar { position: relative; flex: 1; height: 1px; background: rgba(246,246,246,.22); }
.services__bar i { position: absolute; inset: 0; background: #F6F6F6; transform-origin: 0 50%; transform: scaleX(0); }
.services__count { font-variant-numeric: tabular-nums; }
.services__count b { font-weight: 500; }
@media (max-width: 760px) { .services__name { width: 11rem; max-width: 40vw; font-size: 1rem; } .panel { width: min(76vw, 21rem); height: auto; max-height: 64svh; } }

/* ----------------------------------------------------------------- casos -- */
.cases { padding: clamp(6rem, 12vw, 10rem) var(--gut-r) clamp(5rem, 10vw, 9rem) var(--gut); overflow: clip; }
.cases--page { padding-top: clamp(2rem, 5vw, 4rem); }
.cases__head { display: grid; gap: 1.5rem; max-width: 90rem; margin: 0 auto clamp(3rem, 7vw, 6rem); }
@media (min-width: 900px) { .cases__head { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: end; } .cases__head .body { justify-self: end; } }
.cases__more { max-width: 90rem; margin: clamp(3rem, 6vw, 5rem) auto 0; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); max-width: 90rem; margin: 0 auto; align-items: start; }
.clip { color: inherit; text-align: left; display: grid; gap: .9rem; font: inherit; will-change: transform; }
.clip__media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: #cfcac8; }
.clip__media video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.02); transition: filter 700ms var(--ease); will-change: transform; }
@media (hover: hover) { .clip:hover .clip__media video { filter: saturate(1.1); } }
.clip__meta { display: grid; gap: .55rem; }
.clip__cap { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; letter-spacing: -.005em; display: inline-block; overflow: hidden; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips i { font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .28em .8em; border: 1px solid var(--line); border-radius: 999px; transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease); }
@media (hover: hover) { .clip:hover .chips i { background: var(--ink); color: var(--bg); border-color: var(--ink); } }
.clip--1 { grid-column: 1 / span 4; }
.clip--2 { grid-column: 5 / span 4; margin-top: clamp(3rem, 9vw, 9rem); }
.clip--3 { grid-column: 9 / span 4; margin-top: clamp(1rem, 3vw, 3rem); }
.clip--4 { grid-column: 2 / span 4; margin-top: clamp(1rem, 2vw, 2rem); }
.clip--5 { grid-column: 7 / span 4; margin-top: clamp(4rem, 12vw, 11rem); }
@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(2, 1fr); gap: 1rem .9rem; }
  .clip--1, .clip--2, .clip--3, .clip--4, .clip--5 { grid-column: auto; margin-top: 0; }
  .clip--2, .clip--4 { margin-top: 2.5rem; }
  .clip--5 { grid-column: 1 / -1; width: 60%; justify-self: center; margin-top: 1.5rem; }
  .clip__cap { font-size: 1.05rem; }
}

/* ---------------------------------------------------------------- escuela -- */
.school { position: relative; height: 100vh; height: 100svh; overflow: hidden; color: #F6F6F6; --soft: #E0CECE; --line: rgba(246,246,246,.3); background: var(--white); }
.school__bg { position: absolute; inset: 0; background: var(--bordo); }
.js .school__bg { clip-path: circle(0% at 50% 100%); }
.school__big { position: absolute; left: 0; top: 50%; z-index: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(16rem, 38vw, 44rem); line-height: .8; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(246,246,246,.2); transform: translate3d(0, -50%, 0); will-change: transform; pointer-events: none; }
.school__stage { position: relative; z-index: 1; height: 100%; display: grid; align-items: center; padding: calc(var(--bar-h) + 1rem) var(--gut-r) 3rem var(--gut); gap: 2rem; }
@media (min-width: 900px) { .school__stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.school__copy { display: grid; gap: 1.5rem; justify-items: start; }
.school__copy .body { max-width: 40ch; }
.school__copy .btn { margin-top: .75rem; white-space: normal; }
.school__reel { display: flex; gap: clamp(.75rem, 2vw, 1.5rem); justify-content: center; align-items: center; height: 100%; min-height: 0; }
.school__pane { margin: 0; width: min(18rem, 40vw); aspect-ratio: 9 / 16; overflow: hidden; background: var(--deep); flex: 0 0 auto; will-change: transform; }
.school__pane video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
@media (max-width: 899px) {
  .school__stage { align-content: center; gap: 1.25rem; padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem)); }
  .school__reel { height: auto; }
  .school__pane { width: min(10.5rem, 36vw); }
}
@media (max-height: 640px) and (max-width: 899px) { .school__reel { display: none; } }

/* --------------------------------------------------------------- contacto -- */
.contact { padding: clamp(6.5rem, 14vw, 12rem) var(--gut-r) clamp(4rem, 9vw, 8rem) var(--gut); overflow: clip; }
.contact__title { display: grid; margin: 0 auto clamp(2.5rem, 7vw, 6rem); max-width: 90rem; font-family: var(--f-display); font-weight: 500; font-size: clamp(3.2rem, 1rem + 10.8vw, 11.5rem); line-height: .9; letter-spacing: -.04em; }
.contact__l1 { justify-self: start; display: inline-block; will-change: transform; }
.contact__l2 { justify-self: end; display: inline-block; will-change: transform; }
.contact__l2 em { font-weight: 400; }
.contact__grid { display: grid; gap: clamp(2rem, 6vw, 5rem); max-width: 90rem; margin: 0 auto; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; } }
.contact__side { display: grid; gap: 1.6rem; align-content: start; }
.contact__where { margin: 0; color: var(--soft); line-height: 1.7; }
.contact__where a { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line); }
.form { display: grid; gap: 1.5rem; max-width: 46rem; }
.field { display: grid; gap: .35rem; position: relative; }
.field > span { font-size: .85rem; letter-spacing: .04em; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .6rem 0 .7rem; color: var(--ink); font-family: var(--f-text); font-size: max(16px, 1.1rem); resize: none; -webkit-appearance: none; appearance: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; border-radius: 0; }
.field select option { color: #0E0A0A; }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease); pointer-events: none; }
.field:focus-within .field__line { transform: scaleX(1); }
.field:focus-within > span { color: var(--ink); }
.check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; font-size: .95rem; line-height: 1.5; color: var(--soft); cursor: pointer; padding-block: .3rem; }
.check input { position: absolute; opacity: 0; width: 1.5rem; height: 1.5rem; margin: 0; }
.check__box { position: relative; width: 1.35rem; height: 1.35rem; margin-top: .1rem; border: 1px solid currentColor; flex: none; transition: background-color 240ms var(--ease), color 240ms; }
.check__box::after { content: ""; position: absolute; left: .4rem; top: .12rem; width: .35rem; height: .7rem; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform 240ms var(--ease); }
.check input:checked + .check__box { background: var(--ink); color: var(--ink); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid currentColor; outline-offset: 3px; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.form__legal { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--soft); max-width: 56ch; }
.form__row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: .25rem; }
.form__note { margin: 0; font-size: .92rem; color: var(--soft); max-width: 30ch; }
.form [aria-invalid="true"] { border-bottom-color: #E0CECE; }

/* ------------------------------------------------------------------ pie -- */
.foot { position: relative; overflow: clip; padding: clamp(3rem, 6vw, 5rem) var(--gut-r) 0 var(--gut); color: var(--ink); }
.foot__top { max-width: 90rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot__col { display: grid; gap: .1rem; align-content: start; justify-items: start; font-size: .98rem; }
.foot__col > a, .foot__col > button { padding-block: .3rem; }
.foot__col p { margin: 0; }
.foot__h { color: var(--soft); font-size: .85rem; letter-spacing: .04em; margin-bottom: .5rem !important; }
.foot__col button { color: inherit; text-align: left; font: inherit; }
.foot__clock { display: flex; align-items: center; gap: .5rem; margin-top: .9rem !important; font-variant-numeric: tabular-nums; }
.foot__brand { max-width: 90rem; margin: clamp(3rem, 7vw, 6rem) auto 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.foot__logo { display: block; flex: none; height: clamp(11rem, 30vw, 27rem); color: #F6F6F6; }
.foot__logo .logo { height: 100%; width: auto; }
.foot__side { display: grid; gap: .7rem; justify-items: end; text-align: right; padding-bottom: clamp(1.2rem, 2.5vw, 2rem); font-size: .85rem; color: var(--soft); max-width: 34rem; }
.foot__side p { margin: 0; }
.foot__legal { display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; justify-content: flex-end; color: var(--ink); }
.foot__legal a, .foot__legal button { font-size: .88rem; padding-block: .35rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(246,246,246,.4); }
.foot__ai a { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgba(246,246,246,.35); }
@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .foot__col:last-child { grid-column: 1 / -1; }
  .foot__brand { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-top: 2.5rem; }
  .foot__logo { height: clamp(8.5rem, 44vw, 13rem); }
  .foot__side { justify-items: start; text-align: left; padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem)); order: -1; }
  .foot__legal { justify-content: flex-start; }
}

/* ========================================================== páginas interiores */
.phero { position: relative; padding: calc(var(--bar-h) + clamp(2.5rem, 8vw, 7rem)) var(--gut-r) clamp(2.5rem, 7vw, 6rem) var(--gut); min-height: min(76svh, 50rem); display: flex; align-items: flex-end; overflow: clip; }
.phero__in { max-width: 90rem; width: 100%; margin-inline: auto; display: grid; gap: clamp(1rem, 2vw, 2rem); justify-items: start; }
.phero__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.3rem, 1rem + 12vw, 13rem); line-height: .9; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.phero__title em { font-weight: 400; }
.phero__title--md { font-size: clamp(2.6rem, 1rem + 6.6vw, 8rem); line-height: .98; letter-spacing: -.035em; }
.phero__lede { font-size: var(--t-lede); line-height: 1.4; max-width: 44ch; margin: 0; color: var(--soft); text-wrap: pretty; }
.phero__note { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--soft); }
.phero__back { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-size: .9rem; letter-spacing: .04em; }
.phero__arrow { width: 1.1rem; height: 1.1rem; transform: rotate(180deg); transition: transform 500ms var(--ease); }
@media (hover: hover) { .phero__back:hover .phero__arrow { transform: rotate(180deg) translateX(.3rem); } }

/* nosotros */
.apage { padding: clamp(2.5rem, 7vw, 6rem) var(--gut-r) clamp(4rem, 10vw, 9rem) var(--gut); overflow: clip; }
.apage__row { display: grid; gap: clamp(1.75rem, 6vw, 6rem); max-width: 90rem; margin: 0 auto clamp(3.5rem, 9vw, 8rem); align-items: center; }
@media (min-width: 900px) { .apage__row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .apage__row--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.apage__fig { margin: 0; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #d9d6d4; }
.apage__fig img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.apage__text { display: grid; gap: 1.4rem; justify-items: start; align-content: center; }
.apage .steps { margin-top: 1rem; }

/* servicios (índice) */
.slist { padding: clamp(1.5rem, 4vw, 3rem) var(--gut-r) clamp(4rem, 9vw, 8rem) var(--gut); position: relative; }
.slist__ul { list-style: none; margin: 0 auto; padding: 0; max-width: 90rem; }
.slist__ul > li { position: relative; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem 1.5rem; padding: clamp(1.2rem, 2.6vw, 2.2rem) 0; transition: padding 600ms var(--ease); }
.srow > * { transition: opacity 400ms var(--ease); }
.srow__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.9rem, 1rem + 4.2vw, 5.2rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.srow__tag { grid-column: 1; color: var(--soft); max-width: 46ch; text-wrap: pretty; }
.srow__arrow { grid-column: 2; grid-row: 1 / span 2; width: clamp(1.6rem, 3vw, 3rem); height: auto; aspect-ratio: 1; transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
@media (hover: hover) {
  .slist__ul:hover .srow > * { opacity: .38; }
  .slist__ul .srow:hover > * { opacity: 1; }
  .slist__ul .srow:hover { padding-left: clamp(.5rem, 1.5vw, 1.5rem); }
  .srow:hover .srow__arrow { transform: translateX(.5rem); }
}
.sprev { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(12rem, 18vw, 17rem); aspect-ratio: 3 / 4; pointer-events: none; opacity: 0; overflow: hidden; background: var(--black); }
.sprev__i { position: absolute; inset: 0; opacity: 0; }
.sprev__i img { width: 100%; height: 100%; object-fit: cover; }
.sprev__g { display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 9rem; line-height: 1; }
.sprev__g--bordo { background: var(--bordo); color: #F6F6F6; }
.sprev__g--deep  { background: var(--deep);  color: #F6F6F6; }
.sprev__g--white { background: var(--white); color: #0E0A0A; }
@media (hover: none), (max-width: 860px) { .sprev { display: none; } }

/* servicio */
.sbody { padding: clamp(3.5rem, 9vw, 8rem) var(--gut-r) clamp(3.5rem, 8vw, 7rem) var(--gut); overflow: clip; }
.sbody__grid { display: grid; gap: clamp(2rem, 6vw, 6rem); max-width: 90rem; margin: 0 auto; align-items: start; }
@media (min-width: 900px) { .sbody__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } .sbody__media { position: sticky; top: calc(var(--bar-h) + 1.5rem); } }
.sbody__text { display: grid; gap: 1.5rem; justify-items: start; }
.sbody__lede { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.45rem, 1rem + 1.8vw, 2.6rem); line-height: 1.22; letter-spacing: -.015em; max-width: 30ch; margin: 0; text-wrap: pretty; }
.sbody__plan { display: grid; gap: .8rem; margin-top: 1rem; }
.sbody__lt { margin-top: 1.5rem; }
.sitems { list-style: none; padding: 0; margin: 0; width: 100%; }
.sitems li { position: relative; padding: 1.1rem 0; display: grid; gap: .25rem; }
.sitems b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.sitems span { color: var(--soft); max-width: 56ch; }
.sbody__note { margin: .5rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); max-width: 56ch; color: var(--soft); }
.sbody__closing { max-width: 90rem; margin: clamp(3rem, 7vw, 6rem) auto 0; font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 1rem + 3vw, 4rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.smedia { position: relative; aspect-ratio: 3 / 4.15; overflow: hidden; background: var(--black); }
.smedia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smedia__g { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: clamp(13rem, 30vw, 26rem); line-height: 1; }
.smedia__g--bordo { background: var(--bordo); color: #F6F6F6; }
.smedia__g--deep  { background: var(--deep);  color: #F6F6F6; }
.smedia__g--white { background: #E9E9E9; color: #580000; }
@media (max-width: 899px) { .smedia { aspect-ratio: 4 / 4.2; max-height: 70svh; } }

.ctaband { padding: clamp(4.5rem, 10vw, 9rem) var(--gut-r) clamp(4.5rem, 10vw, 9rem) var(--gut); overflow: clip; }
.ctaband__in { max-width: 90rem; margin: 0 auto; display: grid; gap: 1.6rem; justify-items: start; }
.ctaband .h2 { max-width: 14ch; }

.snav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.snav__a { display: grid; gap: .4rem; align-content: center; padding: clamp(1.6rem, 4vw, 3.5rem) var(--gut); min-height: 7.5rem; transition: background-color 500ms var(--ease); }
.snav__a--next { text-align: right; justify-items: end; border-left: 1px solid var(--line); padding-left: var(--gut); padding-right: var(--gut-r); }
.snav__k { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.snav__n { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, .9rem + 1.6vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
@media (hover: hover) { .snav__a:hover { background: var(--bordo); } }
@media (max-width: 560px) { .snav { grid-template-columns: 1fr; } .snav__a--next { text-align: left; justify-items: start; border-left: 0; border-top: 1px solid var(--line); } }

/* escuela (página) */
.sch { padding: clamp(2rem, 5vw, 4rem) var(--gut-r) clamp(4.5rem, 10vw, 9rem) var(--gut); overflow: clip; }
.sch__grid { max-width: 90rem; margin: 0 auto; display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: 1fr 1fr; align-items: start; }
.sch__pane { margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: var(--deep); }
.sch__pane video { width: 100%; height: 100%; object-fit: cover; }
.sch__pane--b { margin-top: clamp(1.5rem, 6vw, 6rem); }
.sch__text { grid-column: 1 / -1; display: grid; gap: 1.6rem; justify-items: start; margin-top: clamp(1rem, 3vw, 2rem); }
@media (min-width: 900px) {
  .sch__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr); }
  .sch__text { grid-column: auto; grid-row: 1; grid-column: 3; align-self: center; margin-top: 0; padding-left: clamp(0rem, 2vw, 2rem); }
}

/* textos legales */
.legal { padding: calc(var(--bar-h) + clamp(2.5rem, 7vw, 6rem)) var(--gut-r) clamp(4rem, 9vw, 8rem) var(--gut); }
.legal__grid { max-width: 90rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
@media (min-width: 960px) { .legal__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .legal__head { position: sticky; top: calc(var(--bar-h) + 1.5rem); align-self: start; } }
.legal__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 1rem + 5vw, 6rem); line-height: .98; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.prose { max-width: 70ch; min-width: 0; }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); letter-spacing: -.015em; margin: 2.4rem 0 .8rem; line-height: 1.1; }
.prose h2:first-of-type { margin-top: 1.4rem; }
.prose p, .prose li { line-height: 1.75; }
.prose p { margin: 0 0 1rem; color: #2B2525; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }
.legal__upd { color: var(--soft) !important; font-size: .9rem; margin: 0 0 .5rem !important; }
.legal__tr { font-size: .88rem; font-style: italic; color: var(--soft) !important; }
.ldata { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.ldata li { padding: .6rem 0; border-top: 1px solid var(--line); color: #2B2525; }
.ldata li:last-child { border-bottom: 1px solid var(--line); }
.tablewrap { overflow-x: auto; margin: 1.2rem 0 1.4rem; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .8rem .9rem .8rem 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.prose th { font-weight: 500; color: var(--soft); font-size: .85rem; }
.prose td:first-child { white-space: nowrap; padding-right: 1.2rem; }
@media (max-width: 700px) {
  .tablewrap { overflow: visible; }
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { padding: .9rem 0 .7rem; border-top: 1px solid var(--line); }
  .prose tr:last-child { border-bottom: 1px solid var(--line); }
  .prose td { border: 0 !important; padding: .3rem 0; }
  .prose td::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--soft); margin-bottom: .1rem; }
  .prose td:first-child { white-space: normal; }
  .prose tr:last-child td { border-bottom: 0; }
}
.prose tr:last-child td { border-bottom: 1px solid var(--line); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.pending { background: rgba(88,0,0,.1); outline: 1px dashed var(--bordo); padding: 0 .35em; }

/* --------------------------------------------------------- reveals genéricos -- */
.js [data-rv="up"], .js [data-rv="row"] { will-change: transform, opacity; }

/* -------------------------------------------------------------- banner de cookies -- */
.ck { position: fixed; left: max(.75rem, env(safe-area-inset-left, 0px)); bottom: max(.75rem, env(safe-area-inset-bottom, 0px)); z-index: var(--z-ck); width: min(29rem, calc(100vw - 1.5rem)); background: var(--white); color: var(--black); padding: 1.3rem 1.4rem 1.2rem; box-shadow: 0 24px 60px -14px rgba(0,0,0,.4); }
.ck h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; margin: 0 0 .5rem; letter-spacing: -.015em; }
.ck p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.55; color: #3a3434; }
.ck p a { text-decoration: underline; text-underline-offset: .2em; }
.ck__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.ck__btn { min-height: 2.9rem; padding: .6em .5em; border: 1px solid var(--black); font-weight: 500; font-size: .88rem; text-align: center; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
@media (hover: hover) { .ck__btn:hover { background: var(--black); color: var(--white); } }
.ck__btn:active { background: var(--black); color: var(--white); }
.ckd { position: fixed; inset: 0; margin: auto; width: min(34rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow-y: auto; background: var(--white); color: var(--black); padding: 1.6rem 1.5rem 1.4rem; z-index: var(--z-dialog); }
.ckd::backdrop { background: rgba(14,10,10,.7); }
.ckd h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; margin: 0 0 1rem; }
.ckd__item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(14,10,10,.18); }
.ckd__item b { font-weight: 500; }
.ckd__item p { grid-column: 1; margin: 0; font-size: .88rem; color: #4a4444; line-height: 1.5; }
.ckd__sw { position: relative; width: 3rem; height: 1.7rem; grid-column: 2; grid-row: 1 / span 2; }
.ckd__sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ckd__sw i { position: absolute; inset: 0; border: 1px solid var(--black); border-radius: 999px; transition: background-color 240ms; }
.ckd__sw i::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--black); transition: transform 240ms var(--ease), background-color 240ms; }
.ckd__sw input:checked + i { background: var(--black); }
.ckd__sw input:checked + i::after { transform: translateX(1.3rem); background: var(--white); }
.ckd__sw input:disabled + i { opacity: .5; }
.ckd__sw input:focus-visible + i { outline: 2px solid var(--black); outline-offset: 3px; }
.ckd__row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.ckd__row .ck__btn { flex: 1; }

/* -------------------------------------------------------------- diálogos -- */
dialog { color: #0E0A0A; border: 0; padding: 0; }
dialog::backdrop { background: rgba(14,10,10,.72); }
.sheet__close { position: absolute; top: max(.75rem, env(safe-area-inset-top, 0px)); right: max(.75rem, env(safe-area-inset-right, 0px)); width: 3rem; height: 3rem; color: #0E0A0A; z-index: 2; }
.sheet__close span { position: absolute; left: .8rem; right: .8rem; top: 50%; height: 1px; background: currentColor; transition: transform 500ms var(--ease); }
.sheet__close span:nth-child(1) { transform: rotate(45deg); } .sheet__close span:nth-child(2) { transform: rotate(-45deg); }
@media (hover: hover) { .sheet__close:hover span:nth-child(1) { transform: rotate(135deg); } .sheet__close:hover span:nth-child(2) { transform: rotate(45deg); } }
.sheet__close--light { color: #F6F6F6; }
.viewer { position: fixed; inset: 0; margin: auto; background: #000; width: min(30rem, 94vw); max-height: 94dvh; z-index: var(--z-dialog); }
.viewer video { width: 100%; max-height: 82dvh; background: #000; }
.viewer__cap { margin: 0; padding: .7rem 1rem max(.9rem, env(safe-area-inset-bottom, 0px)); color: #D9D6D6; font-family: var(--f-display); font-style: italic; }
.menu { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--black); color: #F6F6F6; z-index: var(--z-dialog); }
.menu nav { height: 100%; display: grid; align-content: center; gap: .6rem; padding: 0 var(--gut-r) 0 var(--gut); }
.menu a { font-family: var(--f-display); font-size: clamp(2.6rem, 13vw, 4.4rem); letter-spacing: -.02em; line-height: 1.08; display: block; overflow: hidden; padding-block: .1rem; }
.menu a span { display: block; }
.menu__lang { position: absolute; left: var(--gut); bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + .75rem)); display: flex; gap: .2rem; font-size: .9rem; letter-spacing: .08em; }

/* --------------------------------------------- dedos: zonas táctiles de 44 px como mínimo --
   Con puntero fino todo queda como está; con dedo se amplían los enlaces pequeños del pie, el logo y la casilla. */
@media (pointer: coarse) {
  .foot__col > a, .foot__col > button { padding-block: .66rem; }
  .foot__legal { gap: 0 1rem; }
  .foot__legal a, .foot__legal button { padding-block: .72rem; }
  .foot__ai { margin: 0; }
  .foot__ai a { display: inline-block; padding-block: .66rem; }
  .check { padding-block: .7rem; }
}

/* ------------------------------------------ pantallas bajas (móvil en horizontal) --
   Lo que va fijado a 100svh tiene que caber: la tipografía y las tarjetas se acotan por la altura. */
@media (max-height: 560px) {
  .hero__title { font-size: min(clamp(2.7rem, 1.1rem + 6.4vw, 6.25rem), 13svh); }
  .hero__sub { font-size: min(var(--t-lede), 4.6svh); margin: .6rem 0 .9rem; line-height: 1.3; }
  .hero__copy { bottom: max(.9rem, calc(env(safe-area-inset-bottom, 0px) + .5rem)); }
  .hero__beat { font-size: min(clamp(1.9rem, 1rem + 3.8vw, 4.6rem), 10svh); }
  .panel { height: calc(100svh - var(--bar-h) - 5.5rem); width: auto; max-height: none; }
  .panel__name { font-size: min(clamp(1.6rem, 1.2rem + 1vw, 2.2rem), 7svh); }
  .panel__tag { font-size: .85rem; }
  .menu a { font-size: min(clamp(2.6rem, 13vw, 4.4rem), 11svh); }
  .menu__lang { left: auto; right: var(--gut-r); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
}
@media (max-height: 560px) and (max-width: 860px) { :root { --bar-h: 3.9rem; } }

/* ----------------------------------------------- sin JS o con movimiento reducido -- */
.no-js .pre, .no-js .cur { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pre, .cur { display: none !important; }
  .js .school__bg { clip-path: none; }
  .services { height: auto; min-height: 100svh; overflow-x: auto; overflow-y: hidden; }
  .rail { position: relative; height: auto; min-height: 100svh; }
  .school { height: auto; min-height: 100svh; }
  .school__stage { height: auto; min-height: 100svh; }
  .school__big { display: none; }
}
.no-js .services { height: auto; min-height: 100svh; overflow-x: auto; overflow-y: hidden; }
.no-js .rail { position: relative; height: auto; min-height: 100svh; }
.no-js .school { height: auto; min-height: 100svh; }
.no-js .school__stage { height: auto; min-height: 100svh; }
.no-js .school__bg { clip-path: none; }
.no-js .school__big { display: none; }

/* ==========================================================================
   Pantallas táctiles (html.no-pin): Servicios y Escuela no se fijan.
   Safari de iOS descoloca las secciones fijadas mientras se desplaza con el dedo, así que el raíl
   de servicios es un carrusel nativo (se desliza y se detiene en cada tarjeta) y Escuela una sección normal.
   ========================================================================== */
.no-pin .services { height: auto; overflow: visible; padding: calc(var(--bar-h) + clamp(1.5rem, 5vw, 4rem)) 0 clamp(3rem, 8vw, 5.5rem); }
.no-pin .rail { position: relative; left: auto; top: auto; height: auto; align-items: stretch; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 0 var(--gut-r) 1rem var(--gut); will-change: auto; }
.no-pin .rail::-webkit-scrollbar { display: none; }
.no-pin .rail__lead { align-self: center; }
.no-pin .rail { scroll-padding-inline: var(--gut); }
.no-pin .rail__lead, .no-pin .panel, .no-pin .rail__end { scroll-snap-align: start; }
.no-pin .panel__media video, .no-pin .panel__media img { filter: none; }
.no-pin .services__ui { display: none; }
.no-pin .school { height: auto; overflow: clip; }
.no-pin .school__stage { height: auto; padding-top: calc(var(--bar-h) + 2rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.no-pin .school__big { display: none; }
.no-pin .school__reel { display: flex; height: auto; }

/* ==========================================================================
   Tema claro. Todo el sitio en blanco; el bordó queda solo como acento visual
   (logo, subrayado de la página actual, palabras en cursiva, líneas, hover y la "a" del pie).
   ========================================================================== */
:root { --paper: #FFFFFF; --surface: #F4F3F3; }
html, body { background: var(--paper); color: #0E0A0A; }
.scene--black, .scene--white, .scene--bordo { --bg: var(--paper); --ink: #0E0A0A; --soft: #5B5655; --line: rgba(14,10,10,.16); }
::selection, .scene--black ::selection, .scene--bordo ::selection, .hero ::selection { background: var(--bordo); color: #fff; }

body[data-tone="dark"], body[data-tone="light"], body[data-tone="bordo"] { --bar-ink: #0E0A0A; --bar-bg: #FFFFFF; --logo-ink: #580000; }
body[data-folio="dark"], body[data-folio="light"], body[data-folio="bordo"] { --folio-ink: #0E0A0A; }
.bar.is-solid { box-shadow: 0 1px 0 rgba(14,10,10,.08); }

/* botones: tinta sobre blanco; el bordó aparece al pasar el ratón */
.btn--light, .btn--dark { color: #0E0A0A; --fill: var(--bordo); }
@media (hover: hover) { .btn--light:hover, .btn--dark:hover { color: #fff; } }

/* acentos en bordó */
.hero__title em, .h2 em, .phero__title em, .about__title em, .contact__l2 { color: var(--bordo); }
.bar__nav a[aria-current="page"]::after { background: var(--bordo); }
@media (hover: hover) { .bar__nav a:hover, .foot a:hover { color: var(--bordo); } }

/* portada: el vídeo se funde con el blanco y el texto va en tinta */
.hero { background: var(--paper); color: #0E0A0A; }
.hero__reel, .hero__pane, .hero__veil { background: var(--paper); }
.hero__pane video { filter: none; }
.hero__shade { background:
  linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 30%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.58) 66%, rgba(255,255,255,.16) 82%, rgba(255,255,255,0) 100%),
  linear-gradient(to bottom, rgba(255,255,255,.82) 0%, rgba(255,255,255,0) 22%); }
.hero__sub { color: #3F3A39; }
.hero__beat { color: #0E0A0A; }

/* servicios */
.panel--bordo { --bg-p: var(--surface); --ink-p: #0E0A0A; }
.panel--deep  { --bg-p: #ECEAEA;        --ink-p: #0E0A0A; }
.panel--white { --bg-p: #FFFFFF;        --ink-p: #0E0A0A; }
.panel--type { box-shadow: inset 0 0 0 1px rgba(14,10,10,.1); }
.panel--type .panel__glyph { color: var(--bordo); opacity: .16; }
.panel--type .panel__tag { color: #4A4544; opacity: 1; }
.panel--type.is-live::after { border-color: rgba(88,0,0,.55); }
.panel--type .panel__rec { color: var(--bordo); }
.rail__cta { border-color: rgba(14,10,10,.35); color: #0E0A0A; }
.rail__cta::before { background: var(--bordo); }
@media (hover: hover) { .rail__cta:hover { color: #fff; } }
.services__bar { background: rgba(14,10,10,.18); }
.services__bar i { background: var(--bordo); }
.sprev__g--bordo, .sprev__g--deep, .smedia__g--bordo, .smedia__g--deep { background: var(--surface); color: var(--bordo); }

/* escuela */
.school { color: #0E0A0A; --soft: #5B5655; --line: rgba(14,10,10,.16); background: var(--paper); }
.school__bg { background: var(--paper); }
.school__big { -webkit-text-stroke: 1px rgba(14,10,10,.12); }
.school__pane, .sch__pane { background: var(--surface); }

/* pie y bandas de cierre */
.foot { border-top: 1px solid rgba(14,10,10,.12); }
.foot__logo { color: var(--bordo); }
.foot__legal a, .foot__legal button { text-decoration-color: rgba(14,10,10,.35); }
.foot__ai a { text-decoration-color: rgba(14,10,10,.3); }
.ctaband { border-top: 1px solid rgba(14,10,10,.12); }
@media (hover: hover) { .snav__a:hover { background: var(--surface); } .snav__a:hover .snav__n { color: var(--bordo); } }

/* menú a pantalla completa y telones */
.menu { background: var(--paper); color: #0E0A0A; }
.menu .sheet__close--light { color: #0E0A0A; }
.pre__col { background: var(--paper); }
