/* Heras Perea — estilos.
   Diseño portado de stillform.homes (medidas, retícula y coreografía) con la marca de Heras Perea.
   El loader y la transición entre páginas (la serpiente HP) son los nuestros. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  /* Paleta de marca (sustituye al beige y la tinta del original) */
  --papel: #EEF1F4;          /* fondo general (en el original #EDE6D6) */
  --tinta: #1F3352;          /* texto (en el original #2A2725) */
  --hondo: #14223A;          /* bloques oscuros */
  --acento: #6F9FCB;         /* azul pasarela */
  --vidrio: #8DB4D8;
  --gris: #6E7F8F;
  --blanco: #FFFFFF;
  --linea: rgba(31, 51, 82, .2);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: 24px;               /* px-6 */
}
@media (min-width: 768px) { :root { --pad: 40px; } }   /* md:px-10 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
/* Línea con máscara para revelar texto (el «g»/«c» del original) */
.mline { display: block; overflow: hidden; margin: -.05em 0 -.18em; padding: .05em 0 .18em; }
.mline > * { display: block; }
[data-reveal] { visibility: hidden; }
.no-js [data-reveal], .is-static [data-reveal] { visibility: visible; }

/* Enlace con texto que rueda al pasar el ratón (data-hover-reveal) */
.hover-reveal-track { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.hover-reveal-line { display: block; white-space: nowrap; }
.hover-reveal-line + .hover-reveal-line { position: absolute; left: 0; top: 0; }
.hover-reveal-char { display: inline-block; }

/* ---------- Cabecera ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  color: #fff; transition: color .5s;
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo { position: relative; width: 132px; height: 35px; }
.header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s; }
.header__logo .logo-color { opacity: 0; }
.is-light-ui .header { color: var(--tinta); }
.is-light-ui .header__logo .logo-color { opacity: 1; }
.is-light-ui .header__logo .logo-blanco { opacity: 0; }
.header__menu { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; }
.header__menu i { position: relative; width: 18px; height: 8px; }
.header__menu i::before, .header__menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.header__menu i::before { top: 0; }
.header__menu i::after { bottom: 0; }
.header__menu:hover i::before { transform: translateX(3px); }
.header__menu:hover i::after { transform: translateX(-3px); }

/* ---------- Menú a pantalla completa ---------- */

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--papel);
  display: grid; place-items: center;
  visibility: hidden; opacity: 0;
  transition: opacity .5s, visibility 0s .5s;
  overflow: hidden;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s; }
/* Silueta del símbolo en blanco detrás del menú, a casi toda la altura */
.menu__bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; }
.menu__bg mask path { stroke-dasharray: var(--len) calc(var(--len) + 60); stroke-dashoffset: var(--len); transition: stroke-dashoffset 0s; }
.menu.is-open .menu__bg mask path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur) linear var(--delay); }
.menu__list { position: relative; text-align: center; }
.menu__list a {
  display: block; font-family: var(--serif); font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.01em;
  color: var(--tinta); transition: color .3s;
  transform: translateY(30px); opacity: 0;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .9s, color .3s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .18s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .24s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .30s; }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--acento); }
.menu__foot { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: var(--gris); }
.menu__close {
  position: absolute; top: 14px; right: var(--pad);
  display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0;
}
.menu__close svg { width: 14px; height: 14px; }

/* ---------- Loader inicial (serpiente HP) ---------- */

.loader { position: fixed; inset: 0; z-index: 100; background: #fff; overflow: hidden; }
.loader__mark {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 225px;
  transform: translate(-50%, -54%);
  opacity: 0; transition: opacity .6s;
}
.loader__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.loader.is-ready .loader__mark { opacity: 1; }
.loader__count {
  position: absolute; left: 0; right: 0; bottom: 64px; text-align: center;
  font-size: 22px; font-weight: 700; color: #C9D3DE; font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.loader__claim {
  position: absolute; left: 0; right: 0; bottom: 40px; text-align: center;
  font-size: 10px; font-weight: 650; letter-spacing: .3em; text-transform: uppercase; color: var(--gris);
}

/* ---------- Transición entre páginas: un cristal esmerilado que sube, enseña el logo y baja ----------
   Como una mampara de ducha: desenfoca lo de detrás, es más opaco abajo que arriba,
   tiene grano de vidrio al ácido, un canto de luz arriba y un brillo que lo cruza. */

.veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  overflow: hidden;
  background: linear-gradient(to top, rgba(255, 255, 255, .94) 0%, rgba(250, 252, 254, .82) 38%, rgba(238, 243, 248, .62) 72%, rgba(232, 239, 246, .5) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  backdrop-filter: blur(26px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 18px 40px -24px rgba(255, 255, 255, .9);
  transform: translateY(101%);
  transition: transform .8s var(--ease);
}
/* Brillo de luz que cruza el cristal en diagonal */
.veil::before {
  content: ""; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .0) 42%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 58%, transparent 62%);
  transform: translateX(-60%); opacity: 0;
}
/* El brillo cruza una sola vez, mientras el cristal sube (nunca al llegar a la página nueva) */
html:not(.is-arriving):not(.is-quick) .veil.is-covering:not(.is-leaving)::before { animation: glass-sheen 1.5s cubic-bezier(.45, 0, .2, 1) .25s 1 both; }
@keyframes glass-sheen { 0% { transform: translateX(-60%); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(60%); opacity: 0; } }

/* Grano fino de vidrio al ácido */
.veil::after {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.2 0 0 0 0 0.32 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .veil { background: linear-gradient(to top, #fff 0%, #F6F9FC 45%, #EAF0F6 100%); }
}
.veil.is-covering { transform: none; pointer-events: auto; }
.veil.is-leaving { transform: translateY(101%); }
.pageload {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  display: grid; place-items: center; align-content: center; gap: 30px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.pageload.is-on { opacity: 1; visibility: visible; transition: opacity .2s; }
.pageload__mark { position: relative; width: 160px; height: 164px; }
/* Halo blanco detrás del logo para que se lea sobre el cristal esmerilado */
.pageload::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(70vw, 520px); height: min(70vw, 520px); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .96), rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, 0)); pointer-events: none; }
.pageload > * { position: relative; }
.pageload__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pageload__text { font-size: 10px; font-weight: 650; letter-spacing: .32em; text-transform: uppercase; color: #9AA8B6; }
.snake-block { fill: var(--acento); }
.loader { display: none; }
.is-intro .loader { display: block; }
.is-arriving .veil, .is-quick .veil { transform: none; transition: none; }
.is-arriving .veil.is-leaving, .is-quick .veil.is-leaving { transform: translateY(101%); transition: transform .8s var(--ease); }
.is-arriving .pageload, .is-quick .pageload { opacity: 1; visibility: visible; }
html .pageload.is-off { opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }

/* =========================================================
   HOME
   ========================================================= */

/* 1 · Hero (sticky, debajo del resto) */
.hero { position: sticky; top: 0; z-index: 0; height: 100svh; min-height: 100svh; overflow: hidden; background: #000; color: #fff; user-select: none; }
.hero__media { position: absolute; inset: 0; pointer-events: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hero__content { position: absolute; inset: 0; z-index: 10; }
.hero__head { position: absolute; left: var(--pad); top: 16%; }
.hero__title { font-family: var(--serif); font-size: clamp(2.75rem, 12vw, 4.5rem); line-height: .94; }
.hero__actions { margin-top: 16px; display: flex; flex-direction: column; }
.hero__actions a { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; text-transform: uppercase; }
.hero__actions a span:first-child { border-bottom: 1px solid #fff; }
.hero__actions a span:last-child { transition: transform .3s; }
.hero__actions a:hover span:last-child { transform: translateX(4px); }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 13%; padding: 0 var(--pad); pointer-events: none; }
.hero__meta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.hero__meta p { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.hero__bottom { position: absolute; bottom: 24px; width: 100%; padding: 0 var(--pad); text-align: center; }
.hero__bottom p { font-size: 14px; line-height: 1.2; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; flex-wrap: wrap; gap: 20px; } }
@media (min-width: 768px) {
  .hero__title { font-size: 5rem; }
  .hero__actions a { font-size: 16px; }
  .hero__meta-inner { display: flex; align-items: flex-end; justify-content: space-between; }
  .hero__meta p { font-size: 14px; }
  .hero__bottom { bottom: 28px; }
  .hero__bottom p { font-size: 16px; }
}
@media (min-width: 1024px) {
  .hero__head { top: clamp(112px, 18vh, 210px); }   /* libre del logo de la cabecera */
  .hero__title { font-size: 5.64rem; }
  .hero__actions a { font-size: 18px; padding: 0; }
  .hero__meta { bottom: 27%; }
  .hero__bottom { bottom: 9%; }
  .hero__meta-inner { width: 100%; }
  .hero__meta p { font-size: 18px; }
  .hero__bottom p { font-size: 18px; }
}

/* 2 · Quiénes somos (nubes, mosaico de fotos, caja que viaja a la frase) */
.about { position: relative; z-index: 20; overflow-x: clip; color: var(--tinta); background: var(--papel); }
.about__bg { pointer-events: none; position: absolute; inset: -40vh 0 0; z-index: 35; background: var(--papel); opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.9) 42%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.9) 42%, #000 50%); }
.about__stage { position: relative; z-index: 40; height: 100svh; width: 100%; overflow: hidden; }
.about__slot-center { pointer-events: none; visibility: hidden; position: absolute; left: 6%; top: 24%; width: 88%; height: 40%; }
@media (min-width: 768px) { .about__slot-center { left: 10%; top: 26%; width: 80%; height: 38%; } }
@media (min-width: 1024px) { .about__stage { height: 100vh; } .about__slot-center { left: 26%; top: 24%; width: 46%; height: 38%; } }
.about__gallery { position: absolute; inset: 0; }
.about__tile { position: absolute; opacity: 0; }
.about__quote { left: 0; right: 0; top: 12%; padding: 0 24px; text-align: center; font-family: var(--serif); font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 1024px) { .about__quote { left: 26%; right: auto; top: 0; width: 20%; padding: 0; font-size: 3.5vw; } }
.about__photo { display: none; overflow: hidden; border-radius: 12px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .about__photo { display: block; } }
.about__text { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 24px; opacity: 0; }
@media (min-width: 1024px) { .about__text { padding: 0 40px; } }
.about__grid { display: grid; width: 100%; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.about__label { grid-column: span 12; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.about__copy { grid-column: span 12; }
@media (min-width: 1024px) { .about__grid { gap: 24px; } .about__label { grid-column: span 2; } .about__copy { grid-column: span 10; } }
.about__sentence { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.05; letter-spacing: -.045em; }
@media (min-width: 1024px) { .about__sentence { font-size: 5.2vw; line-height: .8; } }
.about__slot-inline { display: inline-block; vertical-align: bottom; width: 1.7em; height: .82em; margin: 0 .18em .14em 0; }
.about__word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; margin: -1em .25em -.1em 0; padding: .1em 0 .2em; }
.about__word { display: inline-block; }
.about__rule { margin-top: 16px; height: 1px; width: 100%; background: var(--tinta); }
.about__support { margin-top: 16px; max-width: 350px; font-size: 14px; line-height: 1.35; letter-spacing: -.01em; opacity: 0; }
@media (min-width: 1024px) { .about__rule { margin-top: 24px; } .about__support { margin-top: 24px; font-size: 18px; max-width: 420px; } }
.about__box { position: absolute; left: 0; top: 0; z-index: 50; overflow: hidden; border-radius: 12px; opacity: 0; }
.about__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__arrows { position: absolute; bottom: 16px; left: 50%; z-index: 10; display: flex; gap: 12px; transform: translateX(-50%); }
.about__arrows button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--papel); color: var(--tinta); transition: transform .3s; }
.about__arrows button:hover { transform: scale(1.05); }

/* 3 · Cinta del nombre + ventana 3D */
.anatomy { position: relative; background: var(--papel); color: var(--tinta); }
.anatomy__stage { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.anatomy__marquee { pointer-events: none; position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; overflow: hidden; }
.anatomy__track { display: flex; white-space: nowrap; font-size: clamp(2.5rem, 10vw, 8rem); font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.anatomy__track > div { display: flex; flex-shrink: 0; }
.anatomy__track span { margin: 0 .2em; }
@media (min-width: 1024px) { .anatomy__track { font-size: clamp(3.5rem, 7.5vw, 8rem); } }
.ink { pointer-events: none; position: absolute; left: 50%; top: 50%; z-index: 40; width: min(84vw, 26rem); height: 46vh; transform: translate(-50%, -50%); overflow: hidden; border-radius: 2px; }
@media (min-width: 1024px) { .ink { width: min(56vw, 52rem); height: 64vh; } }
.ink img.ink__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anatomy__prompt { position: absolute; bottom: 32px; left: 50%; z-index: 30; transform: translateX(-50%); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: rgba(31, 51, 82, .55); }
.viewer { position: absolute; inset: 0; z-index: 30; overflow: hidden; color: #fff; opacity: 0; pointer-events: none; transition: opacity .7s;
  background: radial-gradient(120% 90% at 50% 35%, #3E6A96 0%, #1F3352 55%, #0E1829 100%); }
.viewer.is-visible { opacity: 1; }
.viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.viewer.is-visible.is-interactive canvas { pointer-events: auto; cursor: grab; }
.viewer.is-visible.is-interactive canvas:active { cursor: grabbing; }
.rail { pointer-events: none; position: absolute; right: 16px; top: 38%; z-index: 10; transform: translateY(-50%) scale(.9); }
@media (min-width: 1024px) { .rail { right: 40px; top: 50%; transform: translateY(-50%); } }
.rail__inner { pointer-events: auto; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail__track, .rail__fill { position: absolute; left: 50%; top: 10px; height: calc(100% - 20px); width: 1px; transform: translateX(-50%); }
.rail__track { background: rgba(255, 255, 255, .2); }
.rail__fill { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .45); transform-origin: top; transform: translateX(-50%) scaleY(0); }
.rail button { position: relative; z-index: 1; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.rail button span { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); transition: all .3s; }
.rail button.is-past span { border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .8); }
.rail button[aria-current="true"] span { width: 14px; height: 14px; border-color: #fff; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.rotate-hint { pointer-events: none; position: absolute; left: 0; right: 0; bottom: 96px; z-index: 10; display: none; flex-direction: column; align-items: center; gap: 8px; opacity: 0; }
.rotate-hint span:first-child { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px); }
.rotate-hint svg { width: 22px; height: 22px; }
.rotate-hint span:last-child { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
@media (min-width: 1024px) { .rotate-hint { display: flex; } }
.hud { pointer-events: none; position: absolute; inset: auto 0 0; z-index: 10; padding: 80px 24px 24px; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.25), transparent); }
@media (min-width: 1024px) { .hud { padding: 112px 40px 32px; } }
.hud__row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .hud__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; } }
.hud__kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .7); }
.hud__kicker i { width: 24px; height: 1px; background: rgba(255, 255, 255, .6); }
.hud__title { font-size: 1.875rem; line-height: 1; letter-spacing: -.04em; }
.hud__stat { margin-top: 12px; max-width: 28rem; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .75); }
.hud__num { flex-shrink: 0; text-align: right; }
.hud__num b { display: block; font-weight: 400; font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hud__num span { display: block; margin-top: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .6); }
.hud__mask { overflow: hidden; padding-bottom: .15em; }
@media (min-width: 768px) { .hud__title { font-size: 2.25rem; } .hud__stat { font-size: 14px; } .hud__num b { font-size: 3rem; } }
@media (min-width: 1024px) { .hud__title { font-size: 3.75rem; } .hud__num b { font-size: 6rem; } }
.hud__bar { position: relative; margin-top: 24px; height: 2px; width: 100%; background: rgba(255, 255, 255, .25); }
.hud__bar-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; }
.hud__bar i { position: absolute; top: 50%; height: 8px; width: 1px; transform: translateY(-50%); background: rgba(255, 255, 255, .5); }
.hud__bar-dot { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }

/* 4 · Materiales (bloque de texto + foto que cambia de lado) */
.materials { position: relative; z-index: 20; width: 100%; color: var(--tinta); background: var(--papel); }
.materials__stage { position: relative; height: 100vh; width: 100%; overflow: hidden; padding: 12px; }
@media (min-width: 768px) { .materials__stage { padding: 20px; } }
@media (min-width: 1024px) { .materials__stage { padding: 32px; } }
.materials__frame { position: relative; height: 100%; width: 100%; }
.mslide { pointer-events: none; position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.mslide__text { pointer-events: auto; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 28px; padding: 20px; }
@media (min-width: 768px) { .mslide__text { border-radius: 36px; padding: 32px; } }
@media (min-width: 1024px) { .mslide { grid-template-rows: none; grid-template-columns: 1fr 1fr; } .mslide__text { padding: 40px; } .mslide--img-left .mslide__text { grid-column-start: 2; } .mslide--img-right .mslide__text { grid-column-start: 1; } }
.mslide__title { font-size: clamp(2rem, 8vw, 3.75rem); line-height: .95; letter-spacing: -.04em; }
@media (min-width: 1024px) { .mslide__title { font-size: 4.4vw; } }
.mslide__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mslide__counter { display: flex; flex-shrink: 0; font-size: 14px; }
.mslide__counter span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; }
.mslide__counter span + span { margin-left: -1px; opacity: .4; }
@media (min-width: 768px) { .mslide__counter span { width: 56px; height: 56px; } }
.mslide__copy { max-width: 22rem; font-size: 12px; line-height: 1.4; letter-spacing: -.01em; }
@media (min-width: 768px) { .mslide__copy { font-size: 16px; } }
.mswiper { position: absolute; inset: auto 0 0; z-index: 50; height: calc(50% - 6px); overflow: hidden; border-radius: 28px; isolation: isolate; }
@media (min-width: 768px) { .mswiper { border-radius: 36px; } }
@media (min-width: 1024px) { .mswiper { inset: 0 0 0 auto; height: auto; width: calc(50% - 6px); } }
.mswiper__item { position: absolute; inset: 0; overflow: hidden; }
.mswiper__item img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* 5 · Transición «No todas las ventanas…» */
.wash { position: relative; z-index: 30; margin-top: -50vh; height: 80vh; width: 100%; overflow-x: clip; background: #fff; color: var(--tinta); }
@media (min-width: 1024px) { .wash { height: 160vh; } }
.wash__bg { pointer-events: none; position: absolute; inset: -40vh 0 0; z-index: 35; background: #fff; opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.9) 42%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.6) 30%, rgba(0,0,0,.9) 42%, #000 50%); }
.wash .wash__sticky { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; height: 100svh; width: 100%; padding: 0 24px; }
.wash__copy { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; }
.wash__copy p { margin-bottom: 16px; font-size: 10px; text-transform: uppercase; letter-spacing: .24em; }
.wash__copy h2 { max-width: 15ch; font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 9vw, 8rem); line-height: .94; }
@media (min-width: 1024px) { .wash__copy p { margin-bottom: 20px; font-size: 12px; } }

/* 6 · Dentro de casa (fotos que rotan entre posiciones) */
.rooms { position: relative; z-index: 30; width: 100%; background: var(--papel); color: var(--tinta); }
.rooms__stage { position: relative; height: 100vh; width: 100%; overflow: hidden; background: #fff; }
.rooms__img { position: absolute; overflow: hidden; }
.rooms__img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.rooms__hero { position: absolute; inset: auto 0 0; z-index: 20; display: flex; flex-direction: column; gap: 16px; padding: 24px; color: #fff; }
@media (min-width: 768px) { .rooms__hero { padding: 32px; } }
@media (min-width: 1024px) { .rooms__hero { gap: 20px; padding: 48px; } }
.rooms__hero h2 { font-size: clamp(2.75rem, 12vw, 5.5rem); line-height: .92; letter-spacing: -.05em; font-weight: 400; }
@media (min-width: 1024px) { .rooms__hero h2 { font-size: 7vw; } }
.rooms__texts { position: absolute; left: 6%; right: 6%; top: 56%; bottom: 16%; }
@media (min-width: 1024px) { .rooms__texts { left: 74%; right: 3%; top: 18%; bottom: 24%; } }
.rooms__text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
@media (min-width: 1024px) { .rooms__text { gap: 20px; } }
.rooms__text h3 { font-size: clamp(1.75rem, 6.5vw, 2.75rem); line-height: .98; letter-spacing: -.04em; font-weight: 400; }
@media (min-width: 1024px) { .rooms__text h3 { font-size: 2.8vw; } }
.rooms__text .copy { max-width: 24rem; font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }
@media (min-width: 768px) { .rooms__text .copy { font-size: 14px; } }
.rooms__text .details { font-size: 10px; text-transform: uppercase; line-height: 1.6; letter-spacing: .16em; opacity: .7; }
.rooms__label { position: absolute; bottom: 3.4%; left: 2.6%; z-index: 20; display: none; align-items: center; gap: 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
@media (min-width: 1024px) { .rooms__label { display: flex; } }
.rooms__count { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rooms__count-win { display: block; height: 1.4em; overflow: hidden; line-height: 1.4em; }
.rooms__count-col { display: flex; flex-direction: column; }
.rooms__count-col span { display: block; height: 1.4em; line-height: 1.4em; }

/* 7 · «Te lo medimos» (caja que crece a pantalla completa) */
.measure { position: relative; z-index: 30; width: 100%; background: var(--papel); color: #fff; }
.measure__stage { position: relative; height: 100vh; width: 100%; overflow: hidden; background: var(--papel); }
.measure__box { position: absolute; left: 4%; top: 12%; width: 92%; height: 70%; overflow: hidden; border-radius: 28px; cursor: pointer; }
@media (min-width: 1024px) { .measure__box { left: 19%; top: 14%; width: 62%; height: 72%; } }
.measure__box > img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.measure__box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 24, 41, .55), rgba(14, 24, 41, .05) 55%, rgba(14, 24, 41, .25)); pointer-events: none; }
.measure__content { position: absolute; inset: 32px 0 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
@media (min-width: 768px) { .measure__content { padding: 40px; } }
.measure__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.measure__top p { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; }
.measure__steps { display: none; align-items: center; gap: 24px; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
@media (min-width: 1024px) { .measure__steps { display: flex; } }
.measure__steps li { display: flex; align-items: center; gap: 10px; }
.measure__steps kbd { display: inline-flex; height: 28px; min-width: 28px; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .7); padding: 0 6px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.measure__bottom { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .measure__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; } }
.measure__bottom h2 { font-size: clamp(2.75rem, 12vw, 5.5rem); line-height: .9; letter-spacing: -.05em; font-weight: 400; }
@media (min-width: 1024px) { .measure__bottom h2 { font-size: 7.5vw; } }
.measure__side { display: flex; max-width: 28rem; flex-direction: column; align-items: flex-start; gap: 20px; }
.measure__side p { font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }
@media (min-width: 768px) { .measure__side p { font-size: 14px; } }
.btn-pill { display: inline-block; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); padding: 12px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; transition: background-color .3s, color .3s; }
.btn-pill:hover { background: #fff; color: var(--tinta); }
.btn-pill--dark { border-color: rgba(31, 51, 82, .5); }
.btn-pill--dark:hover { background: var(--tinta); color: #fff; }
.tap-hint { pointer-events: none; position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; }
.tap-hint__ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.tap-hint__dot { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--tinta); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.tap-hint__dot svg { width: 20px; height: 20px; }

/* ---------- Pie (marco que se dibuja) ---------- */
.footer { position: relative; z-index: 30; display: flex; flex-direction: column; min-height: 100svh; width: 100%; padding: 72px 16px max(16px, env(safe-area-inset-bottom)); background: var(--papel); color: var(--tinta); }
@media (min-width: 768px) { .footer { padding: 80px 40px 24px; } }
@media (min-width: 1024px) { .footer { display: block; height: 100vh; padding: 80px 40px 64px; } }
.footer__frame { display: flex; flex: 1; flex-direction: column; justify-content: space-between; border-radius: 20px; border: 1px solid var(--linea); padding: 24px 20px; }
@media (min-width: 768px) { .footer__frame { border-radius: 30px; padding: 40px; } }
@media (min-width: 1024px) { .footer__frame { display: block; } }
.footer .mask { overflow: hidden; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.footer__top a { font-weight: 600; letter-spacing: .08em; }
.footer__top .mask:last-child { display: none; }
@media (min-width: 768px) { .footer__top { font-size: 14px; } .footer__top .mask:last-child { display: block; } }
.footer__rule { margin: 32px 0; height: 1px; transform-origin: left; transform: scaleX(0); background: var(--linea); }
@media (min-width: 768px) { .footer__rule { margin: 64px 0; } }
.footer__main { display: grid; gap: 40px; }
@media (min-width: 1024px) { .footer__main { grid-template-columns: 1fr auto; gap: 64px; } }
.footer__claim { max-width: 12ch; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 13vw, 7rem); line-height: .88; letter-spacing: -.03em; }
@media (min-width: 1024px) { .footer__claim { font-size: clamp(2.75rem, 8vw, 7rem); } }
.footer__sub { margin-top: 24px; max-width: 36rem; font-size: 18px; line-height: 1.2; }
@media (min-width: 768px) { .footer__sub { font-size: 20px; } }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 14px; }
@media (min-width: 768px) { .footer__cols { gap: 48px; } }
@media (min-width: 1024px) { .footer__cols { min-width: 360px; gap: 80px; font-size: 16px; } }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col h4 { margin: 0; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(31, 51, 82, .65); }
.footer__col a, .footer__col button { display: block; padding: 4px 0; text-align: left; transition: opacity .3s; }
.footer__col a:hover, .footer__col button:hover { opacity: .6; }
@media (min-width: 1024px) { .footer__col a, .footer__col button { padding: 0; } }
.footer__bottom { display: flex; flex-direction: column; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 1024px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; font-size: 14px; } }
.footer__bottom small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .12em; color: rgba(31, 51, 82, .55); text-transform: none; }
.footer__status { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; color: rgba(31, 51, 82, .7); }
.footer__status i { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.footer__status i::before, .footer__status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acento); }
.footer__status i::before { animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Modal de contacto (cortina oscura) ---------- */
.cx { position: fixed; inset: 0; z-index: 999; height: 100svh; overflow: hidden; background: var(--hondo); color: var(--papel); clip-path: inset(100% 0 0 0); visibility: hidden; }
.cx.is-open { visibility: visible; }
.cx__glow { pointer-events: none; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: rgba(141, 180, 216, .1); filter: blur(64px); }
.cx__content { position: relative; margin: 0 auto; display: flex; height: 100%; width: 100%; max-width: 1280px; flex-direction: column; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .cx__content { padding: 16px 40px 24px; } }
.cx__head { display: flex; align-items: center; justify-content: space-between; }
.cx__head img { width: 132px; height: 35px; }
.cx__close { display: flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(238, 241, 244, .25); padding: 8px 12px 8px 16px; font-size: 14px; font-weight: 600; line-height: 1; transition: background-color .3s, color .3s; }
.cx__close:hover { background: var(--papel); color: var(--tinta); }
.cx__close i { position: relative; width: 16px; height: 16px; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.cx__close:hover i { transform: rotate(90deg); }
.cx__close i::before, .cx__close i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; }
.cx__close i::before { transform: translate(-50%, -50%) rotate(45deg); }
.cx__close i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cx__main { display: grid; min-height: 0; flex: 1; align-content: center; gap: 24px; padding: 16px 0; }
@media (min-width: 1024px) { .cx__main { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 56px; } }
.cx__badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(238, 241, 244, .2); background: rgba(238, 241, 244, .04); padding: 6px 12px; font-size: 12px; color: rgba(238, 241, 244, .8); }
.cx__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--vidrio); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.cx__title { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, min(5.4vw, 8.5vh), 4.5rem); line-height: 1; letter-spacing: -.03em; }
.cx__title .mline:last-child { color: rgba(238, 241, 244, .5); }
.cx__lead { margin-top: 16px; max-width: 28rem; font-size: 14px; line-height: 1.6; color: rgba(238, 241, 244, .65); }
@media (min-width: 768px) { .cx__lead { font-size: 15px; } }
.cx__mail { margin-top: 20px; display: flex; max-width: 100%; align-items: center; justify-content: space-between; gap: 8px; border-radius: 999px; border: 1px solid rgba(238, 241, 244, .25); background: rgba(238, 241, 244, .04); padding: 6px 6px 6px 20px; }
@media (min-width: 640px) { .cx__mail { display: inline-flex; gap: 24px; } }
.cx__mail a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
@media (min-width: 768px) { .cx__mail a { font-size: 18px; } }
.cx__copy { flex-shrink: 0; border-radius: 999px; background: var(--papel); padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--tinta); transition: opacity .3s; }
.cx__copy:hover { opacity: .85; }
.cx__links { display: flex; flex-direction: column; gap: 12px; }
.cx__links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(238, 241, 244, .15); padding: 14px 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; transition: color .3s; }
.cx__links a small { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: rgba(238, 241, 244, .5); }
.cx__links a:hover { color: var(--vidrio); }
.cx__foot { border-top: 1px solid rgba(238, 241, 244, .2); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: rgba(238, 241, 244, .45); }

/* =========================================================
   PÁGINAS INTERIORES (mismo lenguaje: titulares serif, cajas redondeadas, revelados)
   ========================================================= */
.phero { position: relative; height: 100svh; overflow: hidden; background: var(--papel); color: #fff; }
.phero__box { position: absolute; inset: 0; overflow: hidden; }
.phero__box img { width: 100%; height: 100%; object-fit: cover; }
.phero__box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14, 24, 41, .5) 0%, rgba(14, 24, 41, .14) 26%, rgba(14, 24, 41, .1) 48%, rgba(14, 24, 41, .62) 100%); }
.phero__body { position: absolute; inset: auto 0 0; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
@media (min-width: 768px) { .phero__body { padding: 40px; } }
@media (min-width: 1024px) { .phero__body { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 48px; } }
.phero__body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 12vw, 8rem); line-height: .9; letter-spacing: -.02em; }
.phero__body p { max-width: 26rem; font-size: 14px; line-height: 1.5; }
@media (min-width: 768px) { .phero__body p { font-size: 16px; } }
.phero__kicker { position: absolute; left: var(--pad); top: 90px; z-index: 2; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }

.block { position: relative; padding: clamp(80px, 12vw, 160px) var(--pad); }
@media (min-width: 1024px) { .block { padding-left: clamp(64px, 7vw, 140px); padding-right: clamp(64px, 7vw, 140px); } }
.block--white { background: #fff; }
.block--dark { background: var(--hondo); color: #fff; }
.block__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 1024px) { .block__head { grid-template-columns: 2fr 10fr; gap: 24px; } }
.block__label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.block__title { font-size: clamp(2rem, 6vw, 5.2vw); line-height: .95; letter-spacing: -.045em; font-weight: 400; }
@media (min-width: 1024px) { .block__title { font-size: 4.4vw; } }
.block__lead { margin-top: 24px; max-width: 34rem; font-size: 16px; line-height: 1.45; opacity: .8; }
.block__rule { margin-top: 24px; height: 1px; background: currentColor; opacity: .25; transform-origin: left; }

.cards { display: grid; gap: 12px; }
/* Rejilla de medias columnas: así la última card, si queda sola, se centra */
@media (min-width: 700px) { .cards { grid-template-columns: repeat(4, 1fr); } .cards > * { grid-column: span 2; } .cards > :last-child:nth-child(2n+1) { grid-column: 2 / span 2; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(6, 1fr); } .cards > :last-child:nth-child(2n+1) { grid-column: span 2; } .cards > :last-child:nth-child(3n+1) { grid-column: 3 / span 2; } }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #fff; }
.block--white .card { background: var(--papel); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.card__n { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.card__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.card__body p { font-size: 14px; line-height: 1.5; opacity: .8; }
.card__tags { margin-top: auto; padding-top: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; opacity: .6; }

.split2 { display: grid; gap: 12px; }
@media (min-width: 1024px) { .split2 { grid-template-columns: 1fr 1fr; } }
.split2__img { min-height: 60vh; overflow: hidden; border-radius: 28px; }
.split2__img img { width: 100%; height: 100%; object-fit: cover; }
.split2__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-radius: 28px; padding: 32px; background: var(--hondo); color: #fff; }
@media (min-width: 1024px) { .split2__text { padding: 40px; } }
.split2__text h2 { font-size: clamp(2rem, 4.4vw, 4.4vw); line-height: .95; letter-spacing: -.04em; font-weight: 400; }
.split2__text p { max-width: 26rem; font-size: 15px; line-height: 1.5; opacity: .8; }

.steps2 { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.steps2 li { display: grid; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .steps2 li { grid-template-columns: 2fr 4fr 6fr; gap: 24px; align-items: baseline; } }
.steps2 b { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; opacity: .4; }
.steps2 h3 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.steps2 p { font-size: 15px; line-height: 1.5; opacity: .8; max-width: 40rem; }

.gallery2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .gallery2 { grid-template-columns: repeat(3, 1fr); } }
.gallery2 figure { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; }
.gallery2 figure:nth-child(3n+1) { aspect-ratio: 4 / 3; grid-column: span 2; }
@media (min-width: 1024px) { .gallery2 figure:nth-child(3n+1) { grid-column: auto; aspect-ratio: 4 / 5; } }
.gallery2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery2 figure:hover img { transform: scale(1.05); }
.gallery2 figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.values2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .values2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .values2 { grid-template-columns: repeat(4, 1fr); } }
.values2 li { border-radius: 28px; border: 1px solid rgba(255, 255, 255, .18); padding: 28px; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(40px, 5vw, 72px); }   /* todo alineado arriba: títulos y textos a la misma altura en las cuatro */
.values2__top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; opacity: .7; }
.values2 h3 { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-bottom: 16px; }
.values2 p { font-size: 15px; line-height: 1.55; opacity: .8; }

.family { display: grid; gap: 40px; }
@media (min-width: 1024px) { .family { grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; } }
.family__quote { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.6vw); line-height: 1.02; letter-spacing: -.02em; max-width: 14ch; }
.family__list { border-top: 1px solid var(--linea); }
.family__list li { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 700px) { .family__list li { grid-template-columns: 2fr 3fr; gap: 24px; align-items: baseline; } }
.family__list h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 400; }
.family__list p { font-size: 15px; line-height: 1.5; opacity: .8; }

.form2 { display: grid; gap: 24px 28px; }
@media (min-width: 800px) { .form2 { grid-template-columns: 1fr 1fr; } }
.form2 .full { grid-column: 1 / -1; }
.form2 label { display: flex; flex-direction: column; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--gris); }
.form2 input, .form2 select, .form2 textarea { font: inherit; font-size: 17px; color: var(--tinta); text-transform: none; letter-spacing: 0; border: 0; border-bottom: 1px solid var(--linea); background: transparent; padding: 10px 0; border-radius: 0; }
.form2 textarea { min-height: 120px; resize: vertical; }
.form2 input:focus, .form2 select:focus, .form2 textarea:focus { outline: none; border-color: var(--tinta); }
.form2 .note { font-size: 13px; color: var(--gris); text-transform: none; letter-spacing: 0; }
.data2 { display: grid; gap: 28px; }
.data2 dt { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--gris); }
.data2 dd { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }

.demo-note { position: fixed; left: 12px; bottom: 12px; z-index: 40; border-radius: 999px; background: rgba(20, 34, 58, .85); color: #fff; padding: 6px 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }

/* Sin movimiento (?estatico): todo visible y sin pines */
.is-static [data-reveal], .is-static .about__text, .is-static .wash__copy, .is-static .about__support { opacity: 1 !important; visibility: visible !important; }

/* Proyectos: fichas de portafolio (foto grande + datos), alternando lado */
.projects { display: grid; gap: 12px; }
.project { display: grid; gap: 12px; }
@media (min-width: 1024px) { .project { grid-template-columns: 7fr 5fr; } .project--flip { grid-template-columns: 5fr 7fr; } .project--flip .project__img { order: 2; } }
.project__img { position: relative; min-height: 58vh; overflow: hidden; border-radius: 28px; }
.project__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project:hover .project__img img { transform: scale(1.04); }
.project__badge { position: absolute; left: 16px; top: 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--tinta); padding: 6px 12px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.project__info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-radius: 28px; background: #fff; padding: 28px; }
@media (min-width: 1024px) { .project__info { padding: 40px; } }
.project__n { font-size: 12px; letter-spacing: .14em; opacity: .55; font-variant-numeric: tabular-nums; }
.project__info h3 { font-size: clamp(2rem, 3.6vw, 3.6vw); line-height: .95; letter-spacing: -.04em; font-weight: 400; }
.project__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; border-top: 1px solid var(--linea); padding-top: 20px; }
.project__meta dt { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--gris); }
.project__meta dd { margin-top: 4px; font-size: 15px; line-height: 1.35; }

/* ---------- Marino con acabado de cristal (sutil) ----------
   En vez de marino plano: un degradado vertical, un reflejo suave arriba a la izquierda,
   una veta de luz en diagonal, el canto superior iluminado y un borde fino translúcido. */
.mslide__text--dark, .split2__text, .block--dark, .cx {
  color: #fff;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(141, 180, 216, .2), rgba(141, 180, 216, 0) 55%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .055) 44%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .03) 66%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, #24406A 0%, #1C3152 45%, #15253F 100%);
}
.mslide__text--dark, .split2__text {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 -40px 80px -60px rgba(141, 180, 216, .25);
}
.block--dark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.values2 li { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* ---------- Cards claras con acabado de cristal ----------
   Vidrio blanco esmerilado: degradado lechoso, reflejo azulado arriba a la izquierda,
   veta de luz en diagonal, canto superior iluminado, borde fino y sombra muy suave. */
.card, .block--white .card, .project__info {
  background:
    radial-gradient(110% 60% at 0% 0%, rgba(111, 159, 203, .14), rgba(111, 159, 203, 0) 55%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 44%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .3) 66%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(246, 249, 252, .78) 55%, rgba(232, 239, 246, .72) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(31, 51, 82, .07), inset 0 -40px 70px -60px rgba(111, 159, 203, .35), 0 18px 40px -28px rgba(20, 34, 58, .28);
}
.block--white .card, .block--white .project__info { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(31, 51, 82, .09), inset 0 -40px 70px -60px rgba(111, 159, 203, .4), 0 18px 40px -28px rgba(20, 34, 58, .3); }
.card__img { box-shadow: 0 1px 0 rgba(255, 255, 255, .8); }

/* ---------- Pie: el marco es una lámina de vidrio ----------
   Vidrio claro con el canto azulado (como el de una ventana de verdad), dos vetas de reflejo
   en diagonal, brillo arriba a la izquierda, canto superior iluminado y sombra suave. */
.footer__frame {
  position: relative;
  border-color: rgba(111, 159, 203, .45);
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .5) 26%, rgba(255, 255, 255, 0) 31%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .32) 41%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .28) 78%, rgba(255, 255, 255, 0) 84%),
    linear-gradient(180deg, rgba(248, 251, 253, .9) 0%, rgba(232, 240, 247, .75) 60%, rgba(214, 228, 240, .7) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 #fff, inset 1px 0 0 rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset 0 0 0 5px rgba(111, 159, 203, .07),
    inset 0 -60px 120px -80px rgba(111, 159, 203, .45),
    0 30px 60px -40px rgba(20, 34, 58, .3);
}

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--linea); max-width: 1100px; margin-left: auto; }
.faq__item { border-bottom: 1px solid var(--linea); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item p { max-width: 46rem; padding: 0 0 26px; font-size: 16px; line-height: 1.6; color: #4B5B6C; }

/* ---------- Páginas legales ---------- */
.legal { padding-top: 140px; }
.legal__title { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.legal__note { margin-top: 16px; font-size: 13px; color: var(--gris); }
.legal__body { margin-top: 48px; max-width: 46rem; }
.legal__body h2 { margin: 40px 0 12px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.legal__body p, .legal__body li { font-size: 16px; line-height: 1.65; color: #3E4C5E; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { display: grid; gap: 6px; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
