/* ==========================================================================
   Catering La Gran Familia — v2
   Tipografía: Fraunces (variable, ejes opsz/SOFT/WONK) + Manrope
   Técnicas: View Transitions entre páginas, scroll-driven animations (CSS),
   galería horizontal anclada, texto que se ilumina al leer, cursor propio,
   grano, mix-blend en cabecera, container queries, <dialog> nativo.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --bone: #f1ece3;
  --bone-2: #e7e0d3;
  --bone-3: #dcd3c3;
  --ink: #151412;
  --ink-2: #2a2724;
  --mute: #6e685f;
  --line: rgba(21,20,18,.14);
  --paprika: #b4472a;
  --paprika-2: #8f341d;
  --olive: #4f5b3c;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(18px, 4vw, 56px);
  --max: 1440px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--paprika); color: var(--bone); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8.5vw, 8.6rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-variation-settings: "opsz" 72, "SOFT" 30, "WONK" 1; line-height: 1.05; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; color: var(--paprika); }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; font-weight: 400; color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.small { font-size: .85rem; }
.mono { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mute); }
.paprika { color: var(--paprika); }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* Grano sobre toda la página */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .14; mix-blend-mode: multiply;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,3%)} 50%{transform:translate(3%,-1%)} 75%{transform:translate(-1%,-3%)} 100%{transform:translate(2%,2%)} }

/* ---------- View Transitions (navegación entre páginas) ---------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* ---------- Botones y enlaces ------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paprika); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .5s var(--ease-out), border-radius .5s var(--ease-out); }
.btn:hover::after { transform: translateY(0); border-radius: 0; }
.btn:hover { color: #fff; }
.btn .arr { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--paprika); }
.btn-light { --bg: var(--bone); --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paprika); }

.ul { position: relative; display: inline-block; font-weight: 600; font-size: .9rem; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform-origin: right; transform: scaleX(1); transition: transform .5s var(--ease-out); }
.ul:hover::after { transform: scaleX(0); transform-origin: right; animation: ul-in .6s var(--ease-out) .25s forwards; }
@keyframes ul-in { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

/* ---------- Cabecera ---------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: clamp(14px, 2vw, 22px) 0;
  color: #fff; mix-blend-mode: difference;   /* contraste automático sobre cualquier fondo */
  pointer-events: none;
}
.site-header > .container { display: flex; align-items: center; justify-content: space-between; }
.site-header a, .site-header button { pointer-events: auto; }
.brand img { height: clamp(40px, 4.4vw, 56px); width: auto; filter: invert(1); }
.header-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); font-weight: 600; font-size: .85rem; }
.header-right .phone { display: inline-flex; align-items: center; gap: 8px; }
.header-right .phone span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.menu-btn i { display: block; width: 28px; height: 10px; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8px; }
.menu-open .menu-btn i::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 4px; transform: rotate(-45deg); }
.menu-btn .lbl-close { display: none; }
.menu-open .menu-btn .lbl-open { display: none; }
.menu-open .menu-btn .lbl-close { display: inline; }

/* Al hacer scroll la cabecera se condensa en una cápsula con fondo (legible sobre cualquier contenido) */
.site-header { transition: transform .5s var(--ease-out); }
.site-header.hide:not(.menu-open *) { transform: translateY(-120%); }
.site-header.scrolled { mix-blend-mode: normal; color: var(--ink); padding: 12px 0; }
.site-header.scrolled > .container {
  width: auto; margin-inline: auto; max-width: calc(100% - 2 * var(--gutter));
  display: inline-flex; gap: clamp(20px, 3vw, 44px);
  padding: 8px 10px 8px 18px; border-radius: 999px;
  background: rgba(241,236,227,.82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px rgba(21,20,18,.12), 0 0 0 1px rgba(21,20,18,.06);
  pointer-events: auto;
}
.site-header.scrolled .brand img { height: 34px; filter: none; }
.site-header.scrolled .menu-btn { background: var(--ink); color: var(--bone); padding: 10px 14px 10px 18px; border-radius: 999px; }
.site-header > .container, .brand img, .menu-btn { transition: all .45s var(--ease-out); }
.menu-open .site-header.scrolled > .container { background: rgba(21,20,18,.6); color: var(--bone); box-shadow: 0 0 0 1px rgba(241,236,227,.15); }
.menu-open .site-header.scrolled .brand img { filter: invert(1); }
.menu-open .site-header.scrolled .menu-btn { background: var(--bone); color: var(--ink); }
.site-header.scrolled { display: flex; justify-content: center; }
@media (max-width: 720px) { .header-right .phone { display: none; } .site-header.scrolled > .container { max-width: calc(100% - 32px); } }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--bone);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: end;
  padding: 120px var(--gutter) 48px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1; font-weight: 300;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem); line-height: 1.02; letter-spacing: -.03em;
  transform: translateY(110%); transition: transform .9s var(--ease-out), color .3s;
}
.menu-links a sup { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--paprika); align-self: flex-start; margin-top: .55em; }
.menu-links a:hover { color: var(--paprika); }
.menu-links a[aria-current] { font-style: italic; }
.menu-open .menu-links a { transform: translateY(0); }
.menu-open .menu-links li:nth-child(1) a { transition-delay: .25s }
.menu-open .menu-links li:nth-child(2) a { transition-delay: .3s }
.menu-open .menu-links li:nth-child(3) a { transition-delay: .35s }
.menu-open .menu-links li:nth-child(4) a { transition-delay: .4s }
.menu-open .menu-links li:nth-child(5) a { transition-delay: .45s }
.menu-open .menu-links li:nth-child(6) a { transition-delay: .5s }
.menu-aside { display: grid; gap: 28px; opacity: 0; transform: translateY(20px); transition: opacity .8s .5s, transform .8s .5s var(--ease-out); }
.menu-open .menu-aside { opacity: 1; transform: none; }
.menu-preview { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: #222; position: relative; }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); transform: scale(1.06); }
.menu-preview img.on { opacity: 1; transform: scale(1); }
.menu-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .9rem; color: rgba(241,236,227,.7); }
.menu-meta strong { display: block; color: var(--bone); font-weight: 600; margin-bottom: 6px; }
.menu-meta a:hover { color: var(--paprika); }
@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr; align-items: start; padding-top: 100px; overflow: auto; }
  .menu-preview { display: none; }
}

/* ---------- Cursor propio --------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 12px; height: 12px; border-radius: 50%; background: var(--paprika); transform: translate(-50%, -50%); transition: width .4s var(--ease-out), height .4s var(--ease-out), background .3s; mix-blend-mode: normal; display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
  .cursor.is-label { width: 84px; height: 84px; }
  .cursor.is-hidden { opacity: 0; }
}
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } }

/* ---------- Hero ------------------------------------------------------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 52% 48%;
  position: relative;
}
.hero-copy { padding: clamp(120px, 18vh, 200px) var(--gutter) 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; }
.hero-copy h1 { margin: 0; }
.hero-copy .meta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.hero-copy .lede { max-width: 28em; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .frame { position: absolute; inset: 0; }
.hero-media .frame img { opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.hero-media .frame img.on { opacity: 1; }
.hero-media .frame-index { position: absolute; left: 24px; bottom: 22px; color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .12em; display: flex; gap: 14px; align-items: center; mix-blend-mode: difference; }
.hero-media .frame-index i { display: block; width: 60px; height: 1.5px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero-media .frame-index i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: bar 6s linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sello giratorio */
.stamp { position: absolute; right: 28px; bottom: 28px; width: 128px; height: 128px; color: #fff; mix-blend-mode: difference; }
.stamp svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stamp text { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Aparición de líneas del titular */
.lines .line { display: block; overflow: hidden; }
.lines .line > span { display: block; transform: translateY(110%); animation: line-in 1.1s var(--ease-out) forwards; }
.lines .line:nth-child(2) > span { animation-delay: .1s; }
.lines .line:nth-child(3) > span { animation-delay: .2s; }
.lines .line:nth-child(4) > span { animation-delay: .3s; }
@keyframes line-in { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fade-up 1s var(--ease-out) .5s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 62vw; min-height: 0; }
  .hero-copy { padding-top: 110px; gap: 24px; }
  .hero-media { min-height: 62vw; }
  .stamp { width: 92px; height: 92px; right: 16px; bottom: auto; top: 16px; }
}

/* Hero interior (foto de fondo a sangre + titular gigante abajo) */
.hero-page { position: relative; min-height: 88svh; display: grid; align-items: end; color: var(--bone); isolation: isolate; overflow: hidden; }
.hero-page > img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2; }
.hero-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21,20,18,.85) 0%, rgba(21,20,18,.25) 55%, rgba(21,20,18,.1) 100%); }
.hero-page .container { padding: 180px 0 52px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.hero-page h1 { color: var(--bone); margin: 0; font-size: clamp(3.2rem, 11vw, 11rem); }
.hero-page h1 em { color: var(--bone); }
.hero-page .lede { color: rgba(241,236,227,.85); max-width: 26em; }
.hero-page .mono { color: rgba(241,236,227,.7); }
@media (max-width: 900px) { .hero-page .container { grid-template-columns: 1fr; padding-top: 140px; } .hero-page { min-height: 78svh; } }

/* ---------- Cinta en movimiento (marquee) ------------------------------ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; font-family: var(--display); font-variation-settings: "opsz" 72, "SOFT" 30; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; color: var(--ink); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { padding: 0 .9em; }
.marquee span::after { content: "·"; color: var(--paprika); margin-left: 1.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones -------------------------------------------------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-sm { padding-block: clamp(56px, 7vw, 96px); }
.dark { background: var(--ink); color: rgba(241,236,227,.82); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }
.dark .mono { color: rgba(241,236,227,.55); }
.dark .lede { color: rgba(241,236,227,.85); }
.bone-2 { background: var(--bone-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-color: rgba(241,236,227,.15); }

.head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.head .mono { margin-bottom: 18px; display: block; }
.head p { max-width: 36em; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } }

/* Texto que se ilumina al leer (scroll-driven) */
.manifesto { max-width: 22ch; font-family: var(--display); font-variation-settings: "opsz" 120, "SOFT" 30, "WONK" 1; font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 4.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.manifesto .w { display: inline-block; opacity: .18; }
.manifesto .w.on { opacity: 1; transition: opacity .5s; }
@supports (animation-timeline: view()) {
  .manifesto .w { animation: w-in linear both; animation-timeline: view(); animation-range: cover 22% cover 42%; }
  @keyframes w-in { from { opacity: .18; } to { opacity: 1; } }
}

/* Índice de servicios (filas con imagen flotante) */
.index { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 64px 1fr auto 40px; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left .5s var(--ease-out); }
.index-row:hover { padding-left: 12px; }
.index-row .n { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--paprika); }
.index-row h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.6rem); transition: font-variation-settings .5s, transform .5s var(--ease-out); }
.index-row:hover h3 { font-style: italic; }
.index-row p { margin: 0; color: var(--mute); font-size: .95rem; max-width: 30em; text-align: right; }
.index-row .go { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s var(--ease-out); }
.index-row:hover .go { background: var(--ink); color: var(--bone); transform: rotate(-45deg); }
.index-row .thumb { display: none; }
.float-img { position: fixed; z-index: 60; width: 300px; aspect-ratio: 4/5; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg); transition: opacity .35s, transform .5s var(--ease-out); }
.float-img.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.float-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.float-img img.on { opacity: 1; }
@media (max-width: 900px) {
  .index-row { grid-template-columns: 1fr 40px; grid-template-areas: "n go" "t go" "p p"; gap: 8px 16px; }
  .index-row .n { grid-area: n; } .index-row h3 { grid-area: t; } .index-row p { grid-area: p; text-align: left; } .index-row .go { grid-area: go; align-self: center; }
  .index-row .thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16/10; object-fit: cover; margin-top: 12px; border-radius: 4px; }
  .float-img { display: none; }
}

/* ---------- Galería horizontal anclada al scroll ----------------------- */
.hscroll { position: relative; }
.hscroll .track { display: flex; flex: none; width: max-content; align-items: center; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); will-change: transform; }
.hscroll figure { margin: 0; flex: none; }
.hscroll figure img { height: min(62vh, 620px); width: auto; border-radius: 3px; object-fit: cover; }
.hscroll figure.tall img { height: min(76vh, 760px); }
.hscroll figure.short img { height: min(46vh, 460px); }
.hscroll figcaption { margin-top: 12px; font-size: .82rem; color: var(--mute); display: flex; justify-content: space-between; gap: 20px; }
.hscroll .intro { flex: none; width: min(420px, 80vw); padding-right: 24px; }
.hscroll .intro h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
/* Con soporte: sección alta + pista pegajosa que se desplaza según el scroll */
@supports (animation-timeline: view()) {
  .hscroll { height: 320vh; view-timeline: --hs block; }
  .hscroll .sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .hscroll .track { animation: hs linear both; animation-timeline: --hs; animation-range: contain 0% contain 100%; }
  @keyframes hs { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
}
/* Sin soporte o en táctil: scroll horizontal normal con snap */
@supports not (animation-timeline: view()) {
  .hscroll .sticky { overflow-x: auto; scroll-snap-type: x proximity; padding-block: 24px; scrollbar-width: none; }
  .hscroll figure { scroll-snap-align: start; }
}
@media (max-width: 900px), (pointer: coarse) {
  .hscroll { height: auto !important; }
  .hscroll .sticky { position: static !important; height: auto !important; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-block: 8px; }
  .hscroll .track { animation: none !important; }
  .hscroll figure img, .hscroll figure.tall img, .hscroll figure.short img { height: 56vw; }
  .hscroll .intro { width: min(320px, 78vw); }
}

/* ---------- Espacios: tarjetas apiladas (sticky stack) ----------------- */
.stack { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.stack-copy { position: sticky; top: 120px; }
.stack-list { display: grid; gap: 24px; }
.stack-card { position: sticky; top: 110px; display: grid; grid-template-columns: 1fr; background: var(--bone-2); border-radius: 6px; overflow: hidden; box-shadow: 0 -1px 0 var(--line); }
.stack-card figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.stack-card:hover img { transform: scale(1.04); }
.stack-card .body { padding: 22px 26px 26px; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: end; }
.stack-card .body h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.stack-card .body .place { font-size: .78rem; color: var(--mute); }
.stack-card .body .n { grid-column: 2; grid-row: 1 / 3; font-family: var(--display); font-size: 2rem; font-weight: 300; color: var(--paprika); }
@supports (animation-timeline: view()) {
  .stack-card { animation: stack-scale linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: top center; }
  @keyframes stack-scale { to { transform: scale(.92) translateY(-12px); opacity: .6; } }
}
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } .stack-copy { position: static; } .stack-card { position: static; animation: none !important; } }

/* ---------- Cifras ------------------------------------------------------ */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures > div { padding: 32px 28px 32px 0; border-top: 1px solid var(--line); }
.figures strong { display: block; font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 30; font-weight: 300; font-size: clamp(3.2rem, 6.5vw, 6.4rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.figures strong sup { font-size: .4em; vertical-align: top; color: var(--paprika); margin-left: 2px; }
.figures > div > span { font-size: .85rem; color: var(--mute); }
@media (max-width: 900px) { .figures { grid-template-columns: 1fr 1fr; } }

/* ---------- Bloques texto + imagen desplazada -------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: center; }
.split + .split { margin-top: clamp(80px, 11vw, 160px); }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.split-media .over { position: absolute; width: 42%; aspect-ratio: 3/4; object-fit: cover; right: -8%; bottom: -12%; border-radius: 4px; box-shadow: 0 30px 60px rgba(21,20,18,.18); }
.split-media .over.left { right: auto; left: -8%; top: -10%; bottom: auto; }
.split:nth-child(even) .split-media { order: 2; }
.split-copy .lst { display: grid; gap: 14px; margin: 28px 0 32px; }
.split-copy .lst li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.split-copy .lst li b { font-family: var(--display); font-weight: 300; color: var(--paprika); font-size: 1.05rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split:nth-child(even) .split-media { order: 0; } .split-media .over { right: 4%; bottom: -8%; } .split-media .over.left { left: 4%; top: -6%; } }

/* Revelado de imágenes al entrar (scroll-driven, con fallback) */
.reveal { clip-path: inset(0 0 0 0); overflow: clip; border-radius: 4px; }
.split > *, .two > *, .stack > *, .head > *, .cta .row > *, .contact > *, .quote > *, .hero > * { min-width: 0; }
html { overflow-x: clip; }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .reveal img { animation: reveal-img linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { clip-path: inset(12% 0 12% 0); } to { clip-path: inset(0); } }
  @keyframes reveal-img { from { transform: scale(1.15); } to { transform: scale(1); } }
}
.parallax { overflow: hidden; }
@supports (animation-timeline: view()) {
  .parallax img { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
  .hero-page > img { animation: hero-par linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  @keyframes hero-par { to { transform: translateY(14%); } }
}

/* Aparición genérica (JS añade .in) */
.up { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.up.in { opacity: 1; transform: none; }
.up-d1 { transition-delay: .1s } .up-d2 { transition-delay: .2s } .up-d3 { transition-delay: .3s }

/* ---------- Pasos (proceso) ------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(241,236,227,.15); }
.step { padding: 36px 28px 36px 0; border-right: 1px solid rgba(241,236,227,.12); padding-left: 24px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--display); font-weight: 300; font-size: 3.4rem; color: var(--paprika); line-height: 1; display: block; margin-bottom: 22px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step { border-right: 0; padding-left: 0; border-bottom: 1px solid rgba(241,236,227,.12); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonio grande ------------------------------------------ */
.quote { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; align-items: start; }
.quote blockquote { margin: 0; font-family: var(--display); font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 1; font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.quote footer { margin-top: 24px; display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.quote footer b { font-weight: 600; }
.quote footer span { color: var(--mute); }
.quote-nav { display: flex; gap: 10px; margin-top: 32px; }
.quote-nav button { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background .3s, color .3s; }
.quote-nav button:hover { background: var(--ink); color: var(--bone); }
.quote-slide { display: none; } .quote-slide.on { display: block; animation: fade-up .8s var(--ease-out) both; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }

/* ---------- Galería en rejilla (páginas interiores) -------------------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.grid a { display: block; overflow: hidden; border-radius: 3px; position: relative; }
.grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.3s var(--ease-out); }
.grid a:hover img { transform: scale(1.04); }
.grid .c4 { grid-column: span 4; } .grid .c5 { grid-column: span 5; } .grid .c6 { grid-column: span 6; } .grid .c7 { grid-column: span 7; } .grid .c8 { grid-column: span 8; } .grid .c3 { grid-column: span 3; }
.grid .wide img { aspect-ratio: 16/10; } .grid .sq img { aspect-ratio: 1; } .grid .pano img { aspect-ratio: 21/9; }
.grid .off { margin-top: clamp(40px, 8vw, 120px); }
.grid .off2 { margin-top: clamp(20px, 4vw, 60px); }
.grid .cap { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; mix-blend-mode: difference; }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid a { grid-column: span 1 !important; margin-top: 0 !important; }
  .grid .pano, .grid .c8, .grid .c7 { grid-column: span 2 !important; }
}

/* ---------- Ficha de espacio ------------------------------------------ */
.facts { display: grid; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 6px; position: sticky; top: 110px; background: var(--bone); }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.facts .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .74rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.facts .btn { justify-content: center; }
.two { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .facts { position: static; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: grid; gap: 14px; }
.card figure { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.card:hover img { transform: scale(1.04); }
.card .t { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { margin: 0; font-size: 1.5rem; }
.card .place { font-size: .8rem; color: var(--mute); white-space: nowrap; }
.card p { font-size: .95rem; color: var(--mute); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Equipo ------------------------------------------------------ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.member { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; }
.member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.member:hover img { filter: none; }
.member h3 { margin: 0 0 2px; font-size: 1.45rem; }
.member .role { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--paprika); margin-bottom: 8px; }
.member p { font-size: .92rem; color: var(--mute); }
.member .tu { width: 88px; height: 88px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; font-weight: 300; font-style: italic; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ---------- CTA gigante ------------------------------------------------ */
.cta { background: var(--ink); color: var(--bone); padding-block: clamp(80px, 12vw, 180px); position: relative; overflow: hidden; }
.cta .big { font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1; font-weight: 300; font-size: clamp(4rem, 15vw, 15rem); line-height: .85; letter-spacing: -.04em; margin: 0 0 .25em; color: var(--bone); }
.cta .big em { color: transparent; -webkit-text-stroke: 1.5px var(--bone); font-style: italic; }
.cta .row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.cta .row p { max-width: 34em; color: rgba(241,236,227,.75); }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .cta .row { grid-template-columns: 1fr; } }

/* ---------- Contacto --------------------------------------------------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 120px); }
.contact-info dl { display: grid; gap: 22px; margin: 32px 0 0; }
.contact-info dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.contact-info dd { margin: 4px 0 0; font-family: var(--display); font-weight: 300; font-size: 1.6rem; color: var(--ink); line-height: 1.15; }
.contact-info dd a:hover { color: var(--paprika); }
.map { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; margin-top: 40px; filter: grayscale(1) contrast(1.05); background: var(--bone-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field { position: relative; margin-bottom: 30px; }
.field label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.15rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line); padding: 10px 0 12px; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151412' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--paprika); }
.field textarea { min-height: 120px; resize: vertical; }
.field-hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--mute); max-width: 32em; }
.check input { margin-top: 4px; accent-color: var(--paprika); }
.check a { text-decoration: underline; }
.alert { padding: 18px 22px; margin-bottom: 32px; border-radius: 4px; background: var(--olive); color: #fff; }
.alert.error { background: var(--paprika); }
.alert a { text-decoration: underline; }
.alert ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* ---------- Legal -------------------------------------------------------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 2rem; margin-top: 2.2em; }

/* ---------- Lightbox nativo --------------------------------------------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; display: none; place-items: center; }
dialog.lb[open] { display: grid; }
dialog.lb::backdrop { background: rgba(21,20,18,.94); }
dialog.lb img { max-width: min(92vw, 1500px); max-height: 88vh; object-fit: contain; border-radius: 3px; }
dialog.lb button { position: absolute; color: var(--bone); font-size: 2rem; padding: 14px 20px; opacity: .8; }
dialog.lb button:hover { opacity: 1; }
dialog.lb .x { top: 10px; right: 14px; }
dialog.lb .p { left: 6px; top: 50%; transform: translateY(-50%); }
dialog.lb .nx { right: 6px; top: 50%; transform: translateY(-50%); }
dialog.lb .cnt { position: absolute; left: 20px; bottom: 18px; color: rgba(241,236,227,.6); font-size: .78rem; letter-spacing: .1em; }

/* ---------- WhatsApp --------------------------------------------------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; transition: transform .4s var(--ease-out), background .3s; }
.wa:hover { transform: translateY(-3px); background: var(--paprika); }

/* ---------- Pie ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(241,236,227,.7); padding: clamp(64px, 8vw, 120px) 0 28px; border-top: 1px solid rgba(241,236,227,.1); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-top h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,236,227,.45); margin: 0 0 16px; font-weight: 700; }
.footer-top li { margin-bottom: 8px; font-size: .95rem; }
.footer-top a:hover { color: var(--bone); }
.footer-top .dim { color: rgba(241,236,227,.4); }
.footer-brand img { width: 170px; filter: invert(1); opacity: .95; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; font-size: .95rem; }
.clock { font-family: var(--display); font-weight: 300; font-size: 1.6rem; color: var(--bone); margin-top: 18px; font-variant-numeric: tabular-nums; }
.clock small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(241,236,227,.45); margin-top: 2px; }
.footer-big { font-family: var(--display); font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1; font-weight: 300; font-size: clamp(2.4rem, 9.5vw, 9.5rem); line-height: .9; letter-spacing: -.04em; color: rgba(241,236,227,.16); white-space: nowrap; overflow: hidden; padding-block: 24px 16px; border-top: 1px solid rgba(241,236,227,.1); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; font-size: .78rem; color: rgba(241,236,227,.45); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--bone); }
.footer-bottom img { width: 220px; filter: grayscale(1) invert(1); opacity: .45; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Accesibilidad / movimiento reducido ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  body::before { display: none; }
  .lines .line > span { transform: none; }
  .fade-up, .up { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
}
