/* =====================================================================
   ⚠ ARCHIVO TÉCNICO: NO HACE FALTA TOCARLO.
   Los textos, fotos y proyectos se cambian en la carpeta /content.

   LA CASETA® — ESTILOS
   Paleta corporativa: #191919 · #EAEAEA · #9C3835
   ===================================================================== */

/* ---------- 1. TIPOGRAFÍAS (archivos locales en assets/fonts) ---------- */
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Variable-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Variable-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 2. TOKENS ---------- */
:root {
  --silhouette: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1843.750374 1753.685614%22%3E%3Cg transform=%22translate(-1.221037,1755.902532) scale(0.100000,-0.100000)%22 fill=%22%23000%22 stroke=%22none%22%3E %3Cpath d=%22M13885 17540 c-124 -20 -382 -80 -610 -143 -344 -95 -608 -132 -935 -132 -272 0 -329 6 -673 67 -508 89 -820 97 -1332 33 -337 -42 -395 -45 -680 -43 -270 3 -285 2 -410 -24 -367 -75 -459 -74 -955 14 -360 63 -677 46 -1030 -56 -260 -76 -368 -70 -720 41 -314 98 -389 113 -582 113 -294 0 -503 -66 -682 -214 -264 -219 -364 -482 -406 -1076 -25 -347 -65 -478 -370 -1229 -136 -335 -183 -488 -270 -881 -101 -452 -173 -683 -313 -1005 -137 -315 -165 -444 -173 -775 -7 -337 -24 -433 -116 -680 -49 -133 -169 -382 -246 -510 -315 -530 -452 -851 -561 -1315 -153 -652 -223 -862 -463 -1395 -29 -64 -319 -643 -328 -655 -4 -5 -42 -77 -84 -159 -43 -81 -81 -156 -86 -165 -16 -28 -320 -652 -320 -656 0 -2 -24 -53 -53 -112 -29 -59 -84 -180 -121 -268 -140 -329 -170 -394 -256 -560 -88 -171 -199 -365 -315 -550 -373 -596 -679 -1156 -730 -1338 -47 -167 -59 -371 -34 -596 8 -78 7 -141 -5 -298 -30 -372 -14 -549 81 -913 42 -162 49 -334 29 -776 -14 -298 13 -439 118 -629 79 -143 266 -296 431 -354 167 -59 215 -63 705 -68 548 -6 667 3 1075 77 399 72 696 114 941 131 314 23 1552 -9 2614 -67 1166 -63 1916 -74 2455 -34 231 17 579 2 935 -40 162 -20 225 -30 720 -116 47 -8 157 -28 245 -44 554 -102 851 -119 1185 -70 211 31 291 49 820 189 721 189 1903 228 2675 87 44 -8 107 -20 140 -26 33 -6 240 -56 460 -110 365 -90 618 -141 845 -171 149 -19 1097 -23 1215 -5 472 71 734 418 735 971 0 297 -86 851 -211 1365 -40 164 -40 167 -49 440 -10 298 -21 399 -74 663 -20 99 -42 247 -50 347 -30 341 -137 582 -579 1305 -83 135 -167 276 -167 279 0 2 -15 31 -34 64 -29 51 -54 104 -142 297 -65 145 -140 456 -159 660 -3 39 -10 102 -15 140 -5 39 -14 108 -20 155 -33 253 -87 525 -136 690 -127 421 -138 445 -497 1020 -229 366 -305 557 -391 980 -14 69 -30 145 -36 170 -9 43 -34 173 -79 415 -11 61 -27 155 -36 210 -8 55 -20 127 -25 160 -13 80 -37 289 -46 395 -4 47 -8 276 -9 510 -2 570 -29 722 -213 1180 -88 222 -144 401 -181 587 -59 289 -70 382 -121 983 -5 63 -15 174 -21 245 -17 187 -17 757 -1 870 20 134 62 375 72 415 46 186 100 646 100 860 0 574 -291 979 -800 1113 -154 40 -452 48 -645 17z%22/%3E %3C/g%3E%3C/svg%3E");
  --ink: #191919;
  --paper: #EAEAEA;
  --granate: #9C3835;

  --display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1rem, 3.2vw, 2.75rem);
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
  --header-h: 4.25rem;

  --fs-hero: clamp(3.1rem, 11.2vw, 12.5rem);
  --fs-xl: clamp(2.7rem, 8.4vw, 8.75rem);
  --fs-l: clamp(2rem, 5.2vw, 5.25rem);
  --fs-m: clamp(1.45rem, 2.7vw, 2.6rem);
  --fs-s: clamp(1.15rem, 1.55vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background: var(--ink);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grano de película sobre toda la web (como en la pieza de fondo de marca) */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 300;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--granate); color: var(--paper); }

:focus-visible { outline: 2px solid var(--granate); outline-offset: 3px; }
[data-theme="granate"] :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: fixed; left: var(--pad); top: -4rem; z-index: 400;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. TEMAS DE SECCIÓN ---------- */
[data-theme="dark"]    { --bg: var(--ink);     --fg: var(--paper); --muted: rgba(234,234,234,.6); --line: rgba(234,234,234,.18); --accent: var(--granate); }
[data-theme="light"]   { --bg: var(--paper);   --fg: var(--ink);   --muted: rgba(25,25,25,.62);  --line: rgba(25,25,25,.16);   --accent: var(--granate); }
[data-theme="granate"] { --bg: var(--granate); --fg: var(--paper); --muted: rgba(234,234,234,.74); --line: rgba(234,234,234,.32); --accent: var(--paper); }
.section { background: var(--bg); color: var(--fg); position: relative; }

/* ---------- 4. TIPOGRAFÍA DISPLAY ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: .9;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: block; }

.tag-placeholder {
  display: inline-block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .25rem .5rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  line-height: 1.2;
}

/* ---------- 5. CABECERA ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 120;
  padding: calc(env(safe-area-inset-top, 0px) + 1.1rem) var(--pad) 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: var(--paper);
  transition: color .4s var(--ease-out), transform .55s var(--ease-out), opacity .6s;
}
.site-header[data-tone="light"] { color: var(--ink); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__logo { display: block; width: clamp(7.5rem, 11vw, 9.5rem); }
.site-header__logo svg { width: 100%; height: auto; fill: currentColor; }

.site-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.site-nav a {
  font-size: .9375rem; font-weight: 500;
  position: relative; padding: .25rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--granate); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle { display: none; font-weight: 600; font-size: .9375rem; padding: .5rem 0 .5rem 1rem; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--paper);
  padding: calc(env(safe-area-inset-top, 0px) + 6rem) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: .75rem;
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 13vw, 4.5rem); line-height: 1.02;
}
.mobile-menu__links small { font-family: var(--sans); font-size: .75rem; font-weight: 500; color: rgba(234,234,234,.5); letter-spacing: 0; }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; color: rgba(234,234,234,.75); }

/* ---------- 6. HERO ---------- */
.hero {
  height: 100vh; height: 100svh; min-height: 34rem;
  overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
}
/* Placeholder animado: fotogramas encadenados */
.hero__frames { position: absolute; inset: 0; }
.hero__frames img {
  position: absolute; inset: 0; opacity: 0;
  animation: frame 18s infinite;
}
.hero__frames img:nth-child(2) { animation-delay: 6s; }
.hero__frames img:nth-child(3) { animation-delay: 12s; }
@keyframes frame {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25,25,25,.55) 0%, rgba(25,25,25,0) 22%),
    linear-gradient(0deg, rgba(25,25,25,.78) 0%, rgba(25,25,25,.25) 38%, rgba(25,25,25,0) 60%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pad));
}
.hero__title { font-size: var(--fs-hero); max-width: 14ch; }
.hero__foot {
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 1rem 2.5rem;
  font-size: .9375rem;
}
.hero__descriptor { max-width: 34ch; color: rgba(234,234,234,.86); }
.hero__clock { color: rgba(234,234,234,.7); font-variant-numeric: tabular-nums; }
.hero__scroll { display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; }
.hero__scroll i {
  display: block; width: 1px; height: 2.25rem; background: rgba(234,234,234,.3); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--paper);
  animation: drip 2.2s var(--ease-io) infinite;
}
@keyframes drip { to { top: 100%; } }
.hero__tag { position: absolute; z-index: 3; right: var(--pad); top: calc(env(safe-area-inset-top, 0px) + 5rem); }

/* Intro: el vídeo aparece dentro de la silueta de la barraca y se abre */
.intro .hero__media {
  -webkit-mask-image: var(--silhouette); mask-image: var(--silhouette);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 46%; mask-position: 50% 46%;
  -webkit-mask-size: auto 26vh; mask-size: auto 26vh;
  animation: introFade .5s var(--ease-out) both, introOpen 1.5s linear .95s both;
}
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes introOpen {
  0% { -webkit-mask-size: auto 26vh; mask-size: auto 26vh; }
  18% { -webkit-mask-size: auto 29vh; mask-size: auto 29vh; }
  34% { -webkit-mask-size: auto 36vh; mask-size: auto 36vh; }
  50% { -webkit-mask-size: auto 52vh; mask-size: auto 52vh; }
  64% { -webkit-mask-size: auto 90vh; mask-size: auto 90vh; }
  76% { -webkit-mask-size: auto 170vh; mask-size: auto 170vh; }
  87% { -webkit-mask-size: auto 380vh; mask-size: auto 380vh; }
  95% { -webkit-mask-size: auto 820vh; mask-size: auto 820vh; }
  100% { -webkit-mask-size: auto 1600vh; mask-size: auto 1600vh; }
}
.intro-symbol {
  position: absolute; z-index: 4; left: 50%; top: 46%;
  height: 26vh; width: auto; color: var(--paper);
  transform: translate(-50%, -46%); transform-origin: 50% 46%;
  pointer-events: none; opacity: 0;
}
.intro .intro-symbol { animation: introSymbolIn .55s var(--ease-out) .1s both, introSymbolOpen 1.5s linear .95s forwards; }
@keyframes introSymbolIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -46%) scale(1); } }
@keyframes introSymbolOpen {
  0% { opacity: 1; transform: translate(-50%, -46%) scale(1.000); }
  18% { opacity: 1; transform: translate(-50%, -46%) scale(1.115); }
  34% { opacity: 0.7; transform: translate(-50%, -46%) scale(1.385); }
  50% { opacity: 0.25; transform: translate(-50%, -46%) scale(2.000); }
  64% { opacity: 0; transform: translate(-50%, -46%) scale(3.462); }
  76% { opacity: 0; transform: translate(-50%, -46%) scale(6.538); }
  87% { opacity: 0; transform: translate(-50%, -46%) scale(14.615); }
  95% { opacity: 0; transform: translate(-50%, -46%) scale(31.538); }
  100% { opacity: 0; transform: translate(-50%, -46%) scale(61.538); }
}
.intro .hero__content, .intro .hero__shade, .intro .site-header, .intro .hero__tag { opacity: 0; }
.hero__content, .hero__shade, .hero__tag { transition: opacity .8s var(--ease-out); }
.intro-done .hero__title .line-mask > span { animation: lineUp 1.1s var(--ease-out) both; }
.intro-done .hero__title .line-mask:nth-child(2) > span { animation-delay: .08s; }
.intro-done .hero__title .line-mask:nth-child(3) > span { animation-delay: .16s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- 7. CABECERAS DE SECCIÓN ---------- */
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1.25rem;
  align-items: end;
  padding: clamp(5rem, 11vw, 10rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
}
.section-head__title { grid-column: 1 / span 8; font-size: var(--fs-xl); }
.section-head__count { font-family: var(--sans); font-size: .25em; font-weight: 500; letter-spacing: 0; vertical-align: top; margin-left: .35em; color: var(--muted); }
.section-head__intro { grid-column: 9 / -1; color: var(--muted); max-width: 36ch; }
.projects .section-head { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }

/* ---------- 8. PROYECTOS ---------- */
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-top: .75rem; }
.filters button {
  font-size: .9375rem; font-weight: 500; color: var(--muted);
  padding: .35rem 0; position: relative; transition: color .3s;
}
.filters button sup { font-size: .65em; margin-left: .15em; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { color: var(--fg); }
.filters button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--granate);
}
.filters button:disabled { opacity: .35; cursor: default; }

.rail { position: relative; }
.rail__track {
  --rail-h: clamp(16rem, min(54vh, 42vw), 38rem);
  display: flex; gap: var(--gap); align-items: flex-start;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--pad) 1rem;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail__track.is-dragging .slide { pointer-events: none; }
.rail__empty { padding: 3rem var(--pad); color: var(--muted); }

.slide { flex: 0 0 auto; scroll-snap-align: start; display: block; user-select: none; -webkit-user-drag: none; }
.slide[hidden] { display: none; }
.slide__media {
  position: relative; overflow: hidden; background: #000;
  height: var(--rail-h); aspect-ratio: var(--ar, 16 / 9); max-width: 82vw;
}
.slide__media img, .slide__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity .6s;
}
.slide__media video { opacity: 0; }
.slide__media video.is-playing { opacity: 1; }
.slide:hover .slide__media img { transform: scale(1.035); }
.slide__media .tag-placeholder { position: absolute; left: .75rem; top: .75rem; z-index: 2; }
.slide__meta {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline;
  padding-top: .9rem; max-width: 82vw;
}
.slide__title { font-family: var(--display); font-weight: 600; font-size: var(--fs-m); letter-spacing: -.03em; line-height: 1; }
.slide__year { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.slide__sub { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; }

.rail__controls {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1rem var(--pad) 0;
}
.rail__count { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 500; min-width: 4.5rem; }
.rail__progress { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.rail__progress span {
  position: absolute; inset: 0; background: var(--granate);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear;
}
.rail__arrows { display: flex; gap: .5rem; }
.rail__arrows button {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.rail__arrows button:hover:not(:disabled) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.rail__arrows button:disabled { opacity: .3; cursor: default; }
.rail__arrows svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Índice de proyectos */
.index { padding: clamp(4rem, 8vw, 7rem) var(--pad) clamp(5rem, 10vw, 9rem); }
.index__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.index__title { font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; }
.index__hint { color: var(--muted); font-size: .875rem; }
.index__row a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) 4rem;
  gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-top: 1px solid var(--line);
  transition: color .3s, padding .45s var(--ease-out);
}
.index__row:last-child a { border-bottom: 1px solid var(--line); }
.index__row[hidden] { display: none; }
.index__name { font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; line-height: 1.1; }
.index__cell { color: var(--muted); font-size: .9375rem; }
.index__year { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.index__list:hover .index__row a { color: var(--muted); }
.index__list:hover .index__row a:hover { color: var(--fg); padding-left: .75rem; }
.index__list:hover .index__row a:hover .index__cell, .index__list:hover .index__row a:hover .index__year { color: var(--fg); }
.index-preview {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: clamp(12rem, 22vw, 22rem); aspect-ratio: 4 / 3; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.9);
  transition: opacity .3s, scale .4s var(--ease-out);
}
.index-preview.is-on { opacity: 1; }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 9. NOSOTROS ---------- */
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: 0 var(--pad) clamp(5rem, 11vw, 10rem);
}
.about__title { grid-column: 1 / span 8; grid-row: 1; font-size: var(--fs-xl); padding-top: clamp(5rem, 11vw, 10rem); align-self: start; }
.about__img { margin: 0; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: rgba(25,25,25,.08); }
.about__img--2 img { aspect-ratio: 3 / 2; }
.about__img figcaption { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.about__img--1 { grid-column: 9 / -1; grid-row: 1 / span 2; padding-top: clamp(5rem, 11vw, 10rem); }
.about__lead {
  grid-column: 3 / span 6; grid-row: 2; align-self: end;
  font-family: var(--display); font-weight: 500; font-size: var(--fs-m); line-height: 1.08; letter-spacing: -.02em;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.about__img--2 { grid-column: 1 / span 6; grid-row: 3; margin-top: clamp(3rem, 7vw, 6rem); }
.about__text { grid-column: 8 / span 4; grid-row: 3; align-self: end; padding-top: 2.5rem; display: grid; gap: 1rem; max-width: 44ch; font-size: 1.0625rem; }
.about__img--3 { grid-column: 5 / span 3; grid-row: 4; margin-top: clamp(2rem, 5vw, 4rem); }
.about__symbol { grid-column: 10 / span 2; grid-row: 4; align-self: end; justify-self: end; width: clamp(3.5rem, 6vw, 5.5rem); color: var(--granate); }

/* ---------- 10. SERVICIOS ---------- */
.services__list { padding: 0 var(--pad) clamp(5rem, 10vw, 9rem); }
.service {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line);
}
.service__num { grid-column: 1; font-weight: 500; font-size: .9375rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .6em; }
.service__body { grid-column: 2 / span 6; }
.service__title { font-size: var(--fs-l); }
.service__text { margin-top: 1.25rem; max-width: 40ch; color: var(--muted); font-size: 1.0625rem; }
.service__link {
  display: inline-block; margin-top: 1.5rem; font-weight: 600; font-size: .9375rem;
  border-bottom: 2px solid var(--granate); padding-bottom: .15rem;
}
.service__media { grid-column: 9 / -1; overflow: hidden; margin: 0; background: rgba(234,234,234,.05); }
.service__media img, .service__media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service:nth-child(even) .service__num { grid-column: 1; grid-row: 1; }
.service:nth-child(even) .service__media { grid-column: 2 / span 5; grid-row: 1; }
.service:nth-child(even) .service__media img, .service:nth-child(even) .service__media video { aspect-ratio: 3 / 2; }
.service:nth-child(even) .service__body { grid-column: 8 / -1; grid-row: 1; }
.service:nth-child(3) .service__media { grid-column: 10 / -1; }

/* ---------- 11. CULTURE ---------- */
.culture__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(3rem, 7vw, 6rem);
  padding: 0 var(--pad) clamp(5rem, 11vw, 10rem);
  align-items: start;
}
.entry { display: block; }
.entry--large  { grid-column: 1 / span 7; }
.entry--medium { grid-column: span 5; }
.entry--small  { grid-column: span 4; }
.entry:nth-child(2) { grid-column: 9 / span 4; margin-top: clamp(4rem, 12vw, 12rem); }
.entry:nth-child(3) { grid-column: 2 / span 5; }
.entry:nth-child(4) { grid-column: 8 / span 4; margin-top: clamp(2rem, 8vw, 8rem); }
.entry:nth-child(5) { grid-column: 4 / span 5; }
.entry:nth-child(n+6):nth-child(odd) { grid-column: 1 / span 6; }
.entry:nth-child(n+6):nth-child(even) { grid-column: 8 / span 5; }
.entry__media { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; }
.entry__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(25,25,25,.08); }
.entry--large .entry__media img { aspect-ratio: 3 / 2; }
.entry--small .entry__media img { aspect-ratio: 4 / 5; }
.entry__media .tag-placeholder { position: absolute; left: .75rem; top: .75rem; background: var(--ink); color: var(--paper); }
.entry__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .875rem; }
.entry__date { font-weight: 600; font-variant-numeric: tabular-nums; }
.entry__type { color: var(--muted); }
.entry__title { font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; line-height: 1.05; margin-top: .6rem; }
.entry__text { color: var(--muted); margin-top: .5rem; max-width: 44ch; }
.entry__link { display: inline-block; margin-top: .75rem; font-weight: 600; font-size: .9375rem; border-bottom: 2px solid var(--granate); }

/* ---------- 12. CONTACTO ---------- */
.contact__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem;
  padding: clamp(5rem, 11vw, 10rem) var(--pad) clamp(4rem, 9vw, 8rem);
}
.contact__title { grid-column: 1 / -1; font-size: var(--fs-hero); }
.contact__aside { grid-column: 1 / span 4; display: grid; gap: 2rem; align-content: start; }
.contact__text { font-family: var(--display); font-weight: 500; font-size: var(--fs-s); line-height: 1.2; letter-spacing: -.01em; max-width: 24ch; }
.contact__channels { display: grid; gap: .35rem; font-size: 1rem; }
.contact__channels a { font-weight: 600; }
.contact__channels a:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact__channels .is-pending { color: var(--muted); }

.form { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem var(--gap); }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .875rem; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .55rem 0 .7rem; font-size: 1.0625rem; border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .3s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23EAEAEA' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; background-size: .75rem;
  padding-right: 1.75rem;
}
.field select option { color: var(--ink); background: var(--paper); }
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(234,234,234,.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); box-shadow: 0 1px 0 0 var(--paper); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom: 2px solid var(--paper); }
.field__error { font-size: .8125rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field__error::before { content: "⚠ "; }
.check { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; }
.check input {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto;
  width: 1.25rem; height: 1.25rem; margin: .05rem 0 0; padding: 0;
  border: 1.5px solid var(--paper); border-radius: 3px; background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.check input::after { content: ""; width: .35rem; height: .65rem; border: solid var(--granate); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--paper); }
.check input:checked::after { opacity: 1; }
.check.is-invalid input { border-width: 2.5px; }
.check label { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: 0 2rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em;
  border-radius: 999px;
  transition: background .3s, color .3s, transform .3s var(--ease-out);
}
.button:hover { background: var(--ink); color: var(--paper); }
.button:active { transform: scale(.98); }
.button[disabled] { opacity: .6; cursor: progress; }
.button--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.button--ghost:hover { background: var(--paper); color: var(--granate); }
.form__note { font-size: .8125rem; color: var(--muted); max-width: 40ch; }
.form__status { grid-column: 1 / -1; }
.form__status:empty { display: none; }
.status-box { border: 1px solid var(--paper); padding: 1.5rem; display: grid; gap: 1rem; }
.status-box__title { font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; }
.status-box p { max-width: 52ch; }

/* ---------- 13. PIE ---------- */
.site-footer { padding: clamp(4rem, 8vw, 7rem) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 1.5rem); }
.site-footer__mark { color: var(--paper); width: 100%; }
.site-footer__mark svg { width: 100%; height: auto; fill: currentColor; }
.site-footer__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.site-footer__col { grid-column: span 3; display: grid; gap: .3rem; align-content: start; }
.site-footer__col h3 { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.site-footer__col a:hover { color: var(--muted); }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8125rem; margin-top: 1rem; }

/* ---------- 14. FICHA DE PROYECTO ---------- */
.project-view {
  position: fixed; inset: 0; z-index: 200;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--bg); color: var(--fg);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.project-view.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io); }
.pv__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--pad) 1rem;
  pointer-events: none;
}
.pv__bar > * { pointer-events: auto; }
.pv__home { width: 2.6rem; color: var(--paper); filter: drop-shadow(0 1px 8px rgba(0,0,0,.35)); }
.pv__close {
  position: fixed; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 1rem); right: var(--pad);
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 1.25rem;
  background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 600; font-size: .9375rem;
  box-shadow: 0 2px 18px rgba(0,0,0,.18);
}
[data-theme="light"] .pv__close { background: var(--ink); color: var(--paper); }
.pv__close:hover { background: var(--granate); color: var(--paper); }
.pv__cover { position: relative; height: 92vh; height: 92svh; min-height: 28rem; overflow: hidden; background: #000; }
.pv__cover img, .pv__cover video { width: 100%; height: 100%; object-fit: cover; }
.pv__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,25,25,.7) 0%, rgba(25,25,25,0) 50%); }
.pv__headline { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: var(--pad); color: var(--paper); }
.pv__headline .tag-placeholder { margin-bottom: 1rem; }
.pv__title { font-size: var(--fs-xl); }
.pv__client { margin-top: .75rem; font-size: var(--fs-s); font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.pv__info {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem;
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}
.pv__meta { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem var(--gap); align-content: start; }
.pv__meta dt { font-size: .8125rem; color: var(--muted); margin-bottom: .3rem; }
.pv__meta dd { font-size: 1rem; font-weight: 500; }
.pv__desc { grid-column: 7 / -1; display: grid; gap: 1.1rem; max-width: 56ch; font-size: 1.125rem; line-height: 1.55; }
.pv__desc p:first-child { font-family: var(--display); font-weight: 500; font-size: var(--fs-s); line-height: 1.2; letter-spacing: -.01em; }
.pv__video { padding: 0 var(--pad) clamp(3rem, 7vw, 6rem); }
.facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .4s, transform 1.2s var(--ease-out); }
.facade:hover img { opacity: 1; transform: scale(1.02); }
.facade__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 1rem 1.6rem;
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
}
.facade__play svg { width: .9rem; height: .9rem; fill: currentColor; }
.facade iframe, .facade video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pv__gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0 var(--pad) clamp(3rem, 7vw, 6rem); align-items: end;
}
.pv__gallery figure { margin: 0; }
.pv__gallery img { width: 100%; min-height: 6rem; background: rgba(127,127,127,.12); }
.g-full  { grid-column: 1 / -1; }
.g-left  { grid-column: 1 / span 6; }
.g-right { grid-column: 7 / -1; }
.g-wide  { grid-column: 1 / span 8; }
.g-small { grid-column: 10 / -1; }
.g-mid   { grid-column: 3 / span 7; }
.pv__credits { padding: 0 var(--pad) clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.pv__credits h2 { grid-column: 1 / span 4; font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; }
.pv__credits dl { grid-column: 7 / -1; }
.pv__credits div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.pv__credits dt { color: var(--muted); }
.pv__related { padding: 0 var(--pad) clamp(3rem, 6vw, 5rem); }
.pv__related h2 { font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; margin-bottom: 1.25rem; }
.pv__related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.related-card__media { overflow: hidden; }
.related-card:hover img { transform: scale(1.04); }
.related-card__title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin-top: .75rem; }
.related-card__sub { color: var(--muted); font-size: .875rem; }
.pv__next { display: block; padding: clamp(3rem, 7vw, 6rem) var(--pad) calc(env(safe-area-inset-bottom, 0px) + clamp(3rem, 7vw, 6rem)); border-top: 1px solid var(--line); }
.pv__next small { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.pv__next .display { display: inline-block; font-size: var(--fs-xl); transition: color .4s, transform .6s var(--ease-out); }
.pv__next:hover .display { transform: translateX(1.5vw); }
[data-theme="light"] .pv__next:hover .display { color: var(--granate); }
[data-theme="granate"] .pv__next:hover .display { color: var(--ink); }

/* ---------- 15. CURSOR (solo ratón) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
  width: 5.25rem; height: 5.25rem; margin: -2.625rem 0 0 -2.625rem;
  border-radius: 50%; background: var(--granate); color: var(--paper);
  display: grid; place-items: center; font-weight: 600; font-size: .875rem;
  transform: translate3d(-200px, -200px, 0); transition: scale .35s var(--ease-out);
  scale: 0;
}
.cursor.is-on { scale: 1; }

/* ---------- 16. APARICIÓN DE IMÁGENES ---------- */
.js [data-reveal] { clip-path: inset(10% 0 0 0); opacity: 0; transition: clip-path 1.2s var(--ease-out), opacity .9s var(--ease-out); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0); opacity: 1; }
.js [data-reveal-lines] .line-mask > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js [data-reveal-lines].is-in .line-mask > span { transform: none; }
.js [data-reveal-lines].is-in .line-mask:nth-child(2) > span { transition-delay: .07s; }
.js [data-reveal-lines].is-in .line-mask:nth-child(3) > span { transition-delay: .14s; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .section-head__title { grid-column: 1 / -1; }
  .section-head__intro { grid-column: 1 / span 8; }
  .about__title { grid-column: 1 / -1; }
  .about__img--1 { grid-column: 7 / -1; grid-row: 2; padding-top: 2.5rem; }
  .about__lead { grid-column: 1 / span 6; grid-row: 2; }
  .about__text { grid-column: 7 / -1; }
  .form { grid-column: 1 / -1; }
  .contact__aside { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 3.75rem; }
  .site-nav { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 130; }
  .site-header.menu-open { color: var(--paper); transform: none; }
  .site-header__logo { width: 7.5rem; }

  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__clock { display: none; }
  .hero__descriptor { font-size: .9375rem; }

  .section-head { padding-top: 5.5rem; }
  .section-head__intro { grid-column: 1 / -1; }

  .rail__track { --rail-h: auto; }
  .slide__media { height: auto; width: 84vw; max-width: none; max-height: 66svh; }
  .slide[data-format="4:5"] .slide__media { width: 72vw; }
  .slide__meta { max-width: 84vw; }
  .rail__controls { grid-template-columns: auto 1fr; }
  .rail__arrows { display: none; }

  .index__row a { grid-template-columns: minmax(0, 1fr) auto; row-gap: .15rem; }
  .index__cell--cat { display: none; }
  .index__cell--client { grid-column: 1; grid-row: 2; font-size: .875rem; }
  .index__year { grid-row: 1 / span 2; align-self: center; }
  .index-preview { display: none; }

  .about__grid { row-gap: 2rem; }
  .about__title { padding-top: 5.5rem; }
  .about__img--1 { grid-column: 4 / -1; grid-row: auto; padding-top: 0; }
  .about__lead { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .about__img--2 { grid-column: 1 / span 9; grid-row: auto; margin-top: 0; }
  .about__text { grid-column: 1 / -1; grid-row: auto; }
  .about__img--3 { grid-column: 6 / -1; grid-row: auto; margin-top: 0; }
  .about__symbol { grid-column: 1 / span 3; grid-row: auto; justify-self: start; }

  .service, .service:nth-child(even) { row-gap: 1.5rem; }
  .service__num, .service:nth-child(even) .service__num { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .service__body, .service:nth-child(even) .service__body { grid-column: 1 / -1; grid-row: 2; }
  .service__media, .service:nth-child(even) .service__media, .service:nth-child(3) .service__media { grid-column: 1 / -1; grid-row: 3; }
  .service:nth-child(odd) .service__media { grid-column: 3 / -1; }
  .service__media img, .service__media video { aspect-ratio: 3 / 2 !important; }

  .culture__grid { row-gap: 3rem; }
  .entry, .entry:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .entry:nth-child(3n+2) { grid-column: 4 / -1; }
  .entry:nth-child(3n) { grid-column: 1 / span 10; }

  .contact__aside { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .button { width: 100%; }

  .site-footer__col { grid-column: span 6; }

  .pv__meta, .pv__desc { grid-column: 1 / -1; }
  .pv__gallery figure { grid-column: 1 / -1 !important; }
  .pv__gallery .g-small, .pv__gallery .g-right { grid-column: 4 / -1 !important; }
  .pv__credits h2, .pv__credits dl { grid-column: 1 / -1; }
  .pv__credits h2 { margin-bottom: 1rem; }
  .pv__related ul { grid-template-columns: 1fr 1fr; }
  .pv__related li:nth-child(3) { display: none; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 13.2vw; }
}

@media (max-width: 420px) {
  .filters { gap: .1rem 1.1rem; }
  .filters button { font-size: .875rem; }
}

@media (hover: none) {
  .slide:hover .slide__media img { transform: none; }
}

/* ---------- 19. PÁGINAS LEGALES ---------- */
.legal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1.1rem) var(--pad) 1.1rem;
}
.legal-head__logo img { width: clamp(7.5rem, 11vw, 9.5rem); height: auto; }
.legal-head__back { font-weight: 600; font-size: .9375rem; border-bottom: 2px solid var(--granate); }
.legal { padding: clamp(3.5rem, 8vw, 7rem) var(--pad) clamp(4rem, 9vw, 8rem); }
.legal > * { max-width: 46rem; }
.legal__title { font-size: var(--fs-l); }
.legal__date { color: var(--muted); font-size: .875rem; margin-top: 1rem; }
.legal__lead { font-family: var(--display); font-weight: 500; font-size: var(--fs-s); line-height: 1.25; letter-spacing: -.01em; margin-top: 2.5rem; }
.legal section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.015em; margin-bottom: .9rem; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; }
.legal p + p { margin-top: .9rem; }
.legal ul { margin-top: .75rem; display: grid; gap: .4rem; padding-left: 1.2rem; list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--granate); }
.legal__data { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.legal__data div { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.legal__data dt { color: var(--muted); }
.legal__data dd { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 560px) {
  .legal__data div { grid-template-columns: 1fr; gap: .15rem; }
}
.pending { background: var(--granate); color: var(--paper); padding: 0 .3em; }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem var(--pad) calc(env(safe-area-inset-bottom, 0px) + 2rem); font-size: .875rem; }
.legal-foot nav { display: flex; gap: 1.5rem; }
.legal-foot a:hover { color: var(--muted); }

/* Información básica de protección de datos junto al formulario */
.form__legal { grid-column: 1 / -1; font-size: .75rem; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.form__legal a, .check a { text-decoration: underline; text-underline-offset: .18em; }
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- 20. PORTFOLIO v2: filtros, Keve, fichas por tipo, visor ---------- */
.filters {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  gap: 0 clamp(1.1rem, 2vw, 2rem);
  margin: .75rem calc(-1 * var(--pad)) 0; padding: 0 var(--pad);
  scroll-snap-type: x proximity;
}
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; white-space: nowrap; min-height: 2.75rem; font-size: 1.0625rem; scroll-snap-align: start; }
.filters button[aria-pressed="true"]::after { height: 3px; }

.projects .rail__track, .projects .rail__controls, .projects .index__list, .keve {
  transition: opacity .2s var(--ease-out), transform .4s var(--ease-out);
}
.projects.is-switching .rail__track, .projects.is-switching .rail__controls,
.projects.is-switching .index__list, .projects.is-switching .keve { opacity: 0; transform: translateY(.75rem); }
.slide[data-format="1:1"] .slide__media { --ar: 1 / 1; }
.tag-pending { background: var(--granate) !important; color: var(--paper) !important; }
.slide__media .tag-pending { top: auto; bottom: .75rem; }

/* Keve: presentación editorial dentro de Diseños */
.keve {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  align-items: end;
}
.keve[hidden] { display: none; }
.keve__photo { grid-column: 1 / span 4; margin: 0; }
.keve__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.keve__body { grid-column: 6 / span 6; }
.keve__eyebrow { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.keve__name { font-size: clamp(4rem, 15vw, 15rem); line-height: .8; margin-top: .5rem; color: var(--granate); }
.keve__text { margin-top: 1.5rem; font-size: 1.125rem; max-width: 40ch; }
.keve__quote { margin: 1.5rem 0 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-s); line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; }
.keve__quote--pending { color: var(--muted); border-left: 3px solid var(--granate); padding-left: 1rem; }
.keve__link { display: inline-block; margin-top: 1.25rem; font-weight: 600; border-bottom: 2px solid var(--granate); }
.keve__works { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.keve__works-title { font-weight: 600; font-size: .9375rem; margin-bottom: 1rem; }
.keve__works ul { display: flex; gap: var(--gap); overflow-x: auto; scrollbar-width: none; }
.keve__works li { flex: 0 0 clamp(6.5rem, 12vw, 10rem); }
.keve__works img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease-out); }
.keve__works a:hover img { transform: translateY(-.35rem); }

/* Fichas: piezas comunes */
.pv__eyebrow { font-family: var(--display); font-weight: 500; font-size: var(--fs-s); letter-spacing: -.01em; margin-bottom: .5rem; }
.pv__section-title { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: var(--fs-s); letter-spacing: -.02em; }
.pv__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.project-view .button { background: var(--fg); color: var(--bg); }
.project-view .button:hover { background: var(--granate); color: var(--paper); }
.project-view[data-theme="granate"] .button:hover { background: var(--ink); }
.project-view .button--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.pv__pending { margin-top: 1.5rem; font-size: .875rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pv__lead { grid-column: 1 / span 7; }
.pv__lead .pv__desc { grid-column: auto; }
.pv__info--videoclips .pv__meta, [data-type="videoclips"] .pv__info .pv__meta { grid-column: 9 / -1; }
.pv__info--compact .pv__links { grid-column: 7 / -1; margin-top: 0; }
.pv__info--story .pv__desc { grid-column: 1 / span 7; }
.pv__info--story .pv__desc p:first-child { font-size: var(--fs-m); line-height: 1.1; }
.pv__info--story .pv__meta { grid-column: 9 / -1; grid-row: 1; grid-template-columns: 1fr; }
.pv__info--story .pv__links { grid-column: 1 / span 7; }
.pv__info--event { align-items: start; }
.pv__poster { grid-column: 1 / span 4; display: block; cursor: zoom-in; }
.pv__poster img { width: 100%; }
.pv__event-text { grid-column: 6 / -1; display: grid; gap: 2rem; }
.pv__event-text .pv__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv__zoom { display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.pv__zoom img { transition: transform 1s var(--ease-out); }
.pv__zoom:hover img { transform: scale(1.025); }
.pv__gallery figcaption { font-size: .8125rem; color: var(--muted); margin-top: .5rem; }
.pv__gallery--camps { row-gap: clamp(2rem, 5vw, 4.5rem); }
.pv__gallery--camps figcaption { font-size: .9375rem; }

/* Ficha de diseño: la portada entera, sin recortar */
.pv__sleeve {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem;
  align-items: end; min-height: 100vh; min-height: 100svh;
  padding: calc(env(safe-area-inset-top, 0px) + 6rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.pv__artwork { grid-column: 1 / span 7; display: block; cursor: zoom-in; }
.pv__artwork img { width: 100%; aspect-ratio: 1; object-fit: contain; max-height: 82svh; }
.pv__sleeve-info { grid-column: 9 / -1; display: grid; gap: 1.25rem; align-content: end; }
.pv__sleeve-info .pv__title { font-size: var(--fs-l); }
.pv__sleeve-info .pv__client { margin-top: -.5rem; }
.pv__sleeve-info .pv__meta { grid-column: auto; grid-template-columns: 1fr 1fr; }
.pv__sleeve-info .pv__desc { grid-column: auto; font-size: 1rem; }
.pv__sleeve-info .pv__desc p:first-child { font-size: 1.125rem; }
[data-theme="light"] .pv__home { color: var(--ink); filter: none; }
.pv__designer { padding: 0 var(--pad) clamp(3rem, 6vw, 5rem); }
.pv__designer a { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv__designer img { width: 5rem; aspect-ratio: 4 / 5; object-fit: cover; }
.pv__designer small { display: block; color: var(--muted); font-size: .8125rem; }
.pv__designer strong { display: block; font-size: var(--fs-m); line-height: 1; color: var(--granate); }
[data-theme="granate"] .pv__designer strong { color: var(--paper); }
.pv__designer em { font-style: normal; font-weight: 600; font-size: .9375rem; }
.pv__related--disenos { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 280; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s var(--ease-out);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: .9rem; max-width: 92vw; }
.lightbox__stage img { max-width: 92vw; max-height: 80vh; max-height: 80svh; width: auto; height: auto; object-fit: contain; transition: opacity .2s; }
.lightbox.is-loading .lightbox__stage img { opacity: .35; }
.lightbox__stage figcaption { font-size: .875rem; color: rgba(234,234,234,.75); text-align: center; }
.lightbox__count { position: absolute; left: var(--pad); top: calc(env(safe-area-inset-top, 0px) + 1.4rem); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.lightbox__close { position: absolute; right: var(--pad); top: calc(env(safe-area-inset-top, 0px) + 1rem); min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid rgba(234,234,234,.35); display: grid; place-items: center; transition: background .3s, color .3s; }
.lightbox__nav:hover { background: var(--paper); color: var(--ink); }
.lightbox__nav svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }

@media (max-width: 1024px) {
  .keve__photo { grid-column: 1 / span 5; }
  .keve__body { grid-column: 7 / -1; }
  .pv__artwork { grid-column: 1 / span 8; }
  .pv__sleeve-info { grid-column: 9 / -1; }
}
@media (max-width: 860px) {
  .filters button { font-size: 1rem; }
  .slide[data-format="1:1"] .slide__media { width: 74vw; }
  .keve { row-gap: 1.5rem; }
  .keve__photo { grid-column: 1 / span 7; }
  .keve__body { grid-column: 1 / -1; }
  .keve__name { font-size: 26vw; }
  .pv__lead, .pv__info--story .pv__desc, .pv__info--story .pv__links, .pv__info--compact .pv__links,
  .pv__event-text, [data-type="videoclips"] .pv__info .pv__meta, .pv__info--story .pv__meta { grid-column: 1 / -1; grid-row: auto; }
  .pv__info--story .pv__meta { grid-template-columns: 1fr 1fr; }
  .pv__event-text .pv__meta { grid-template-columns: 1fr 1fr; }
  .pv__poster { grid-column: 1 / span 9; }
  .pv__sleeve { min-height: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); align-items: start; }
  .pv__artwork, .pv__sleeve-info { grid-column: 1 / -1; }
  .pv__artwork img { max-height: none; }
  .pv__related--disenos li:nth-child(3) { display: block; }
  .pv__related--disenos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .pv__related--disenos .related-card__title { font-size: .9375rem; }
  .pv__related--disenos .related-card__sub { display: none; }
  .lightbox__nav { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem); transform: none; }
  .lightbox__stage img { max-height: 70svh; }
}

/* ---------- 21. REVISOR (solo en tu ordenador) ---------- */
.revisor {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 500; max-width: min(34rem, calc(100vw - 2rem)); max-height: 60vh; overflow: auto;
  background: var(--paper); color: var(--ink); border: 3px solid var(--granate); padding: 1rem 1.1rem;
  font: 400 .875rem/1.45 var(--sans); box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: opacity .6s;
}
.revisor.is-ok { border-color: var(--ink); }
.revisor.is-faded { opacity: .35; }
.revisor.is-faded:hover { opacity: 1; }
.revisor__title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--granate); }
.revisor__title--ok { color: var(--ink); }
.revisor ol { margin: .6rem 0 0; padding-left: 1.2rem; list-style: decimal; display: grid; gap: .45rem; }
.revisor strong { display: block; font-weight: 600; word-break: break-all; }
.revisor__note { margin-top: .7rem; color: rgba(25,25,25,.65); font-size: .8125rem; }
.revisor button { margin-top: .7rem; font-weight: 600; text-decoration: underline; }

/* ---------- 18. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  body::after { animation: none; }
  .hero__frames img:first-child { opacity: 1; }
  .js [data-reveal], .js [data-reveal-lines] .line-mask > span { clip-path: none; opacity: 1; transform: none; }
}
