/* =========================================================================
   MULTISERVICIOS COE S.L. — Propuesta web
   Dirección artística: «Paisaje y precisión»
   Fondos negros cinematográficos + papel cálido, tipografía condensada
   de gran tamaño y el rojo corporativo reservado para detalles finos.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --red: #E60000;
  --red-hot: #FF2B1F;          /* rojo para texto sobre negro (mejor contraste) */
  --red-deep: #B30000;
  --ink: #0E0E0E;
  --ink-2: #151515;
  --anthracite: #242424;
  --paper: #F5F5F3;
  --white: #FFFFFF;
  --muted: #5C5B57;            /* texto secundario sobre papel (AA) */
  --muted-dark: rgba(255, 255, 255, .66);
  --line: rgba(14, 14, 14, .14);
  --line-dark: rgba(255, 255, 255, .14);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1480px;
  --radius: 6px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
em { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Tipografía compartida ---------- */
.h1, .h2 {
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .9;
}
.h1 { font-size: clamp(2.8rem, 7.4vw, 7.4rem); }
.h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); }

.h1 em, .h2 em, .statement em, .footer__claim em, .hero__title em, .cta__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--red);
}
[data-theme="dark"] .h1 em,
[data-theme="dark"] .h2 em { color: var(--red-hot); }

.eyebrow, .index-label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.index-label span {
  color: var(--red);
  font-weight: 500;
}
.index-label::after {
  content: "";
  width: 56px; height: 1px;
  background: currentColor;
  opacity: .5;
  order: 1;
}
.index-label span { order: 0; }
.index-label--dark { color: var(--muted-dark); }
.index-label--dark span { color: var(--red-hot); }

/* Líneas con máscara (revelado de títulos) */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: block; will-change: transform; }

/* Palabras para títulos con [data-split] (las crea JS) */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; will-change: transform; }
em .split-w { padding-right: .08em; margin-right: -.08em; }

/* ---------- 4. Botones y enlaces ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-fill: var(--white);
  --btn-fg-hover: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); }
.btn > span { position: relative; }

.btn--red { --btn-bg: var(--red); --btn-fill: var(--white); --btn-fg-hover: var(--red); }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12.5px; }
.btn--block { width: 100%; }

.btn__arrow {
  position: relative;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Subrayado animado */
.link-u {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.link-u:hover, .link-u:focus-visible {
  background-size: 100% 1px;
  background-position: 0 100%;
}

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 16px;
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease-out);
}
.link-arrow:hover::after {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateX(4px) rotate(-45deg);
}
.link-arrow--light { color: var(--white); }
.link-arrow--light:hover::after { background: var(--white); color: var(--red); border-color: var(--white); }

.magnetic { will-change: transform; }

/* ---------- 5. Intro, progreso, capítulo, aviso ---------- */
.intro { display: none; }
.motion .intro {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--ink);
  /* Seguridad: si el JS fallase, la cortina desaparece igualmente */
  animation: intro-safety 0s 4.5s forwards;
}
@keyframes intro-safety { to { visibility: hidden; } }
.intro__line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.intro__word {
  position: relative;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 18px;
  background: var(--ink);
  opacity: 0;
}
.intro__word span:last-child { color: var(--red-hot); }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.chapter {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
}
.chapter.is-visible { opacity: 1; }
.chapter__bar { width: 1px; height: 44px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.chapter__bar i { display: block; width: 100%; height: 100%; background: var(--white); transform-origin: top; transform: scaleY(0); }
@media (min-width: 1280px) { .chapter { display: flex; } }

.draft-pill {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(14, 14, 14, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.draft-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
.draft-pill button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
}
.draft-pill button:hover { background: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }

.photo-note {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 6. Cabecera ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: transform .6s var(--ease-out), color .4s, background-color .4s, box-shadow .4s;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 14, 14, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .4s, background-color .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark); }
.header.on-light { color: var(--ink); }
.header.on-light::before { background: rgba(245, 245, 243, .8); }
.header.on-light.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { transform: none; color: var(--white); }
body.menu-open .header::before { opacity: 0; }

.header__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
  padding: 5px 16px;
  border-radius: 999px;
  /* Cápsula clara (simétrica al botón «Presupuesto»): el logotipo tiene partes negras
     y necesita fondo claro sobre las zonas oscuras. Sobre fondo claro desaparece. */
  background: rgba(245, 245, 243, .94);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, padding .4s;
}
.header.on-light .brand { background: rgba(245, 245, 243, 0); box-shadow: none; }
.brand img { height: 50px; width: auto; }
.brand:hover { transform: translateY(-1px); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: inherit; }

.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
}
.burger span {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease-out), top .3s;
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 46px) 38px);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 46px) 38px); }
.menu ol { display: grid; gap: 4px; }
.menu li { overflow: hidden; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out), color .3s;
}
.menu.is-open .menu__nav a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.menu.is-open li:nth-child(6) a { transition-delay: .25s; }
.menu.is-open li:nth-child(7) a { transition-delay: .3s; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--red-hot); }
.menu__nav small {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--red-hot);
  letter-spacing: .1em;
}
.menu__foot {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted-dark);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(120px, 16vh, 170px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: -8% 0 -8% 0;
  z-index: -2;
  will-change: transform;
  background: var(--ink);
}
/* Vídeo de fondo: dos clips superpuestos + imagen fija de respaldo debajo */
.hero__videos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 60%;
  background: #0b0b0b;
}
.hero__still,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ajuste sutil para integrar los clips con la paleta COE */
  filter: saturate(.9) contrast(1.06) brightness(.94);
}
.hero__still { z-index: 0; object-position: 66% 50%; }
.hero__video { z-index: 1; opacity: 0; transition: opacity .9s cubic-bezier(.45, 0, .2, 1); }
.hero__video.is-active { opacity: 1; z-index: 3; }
.hero__video.is-under { opacity: 1; z-index: 2; transition: none; }
/* Encuadre de cada clip (escritorio): el sujeto queda a la derecha del titular */
.hero__video[data-clip="motosierra"] { object-position: 50% 38%; }
.hero__video[data-clip="jardin"] { object-position: 55% 50%; }
/* Respaldo: autoplay bloqueado, error o movimiento reducido */
.hero.is-static .hero__video { display: none; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.74) 0%, rgba(10,10,10,.42) 36%, rgba(10,10,10,.06) 68%),
    linear-gradient(180deg, rgba(10,10,10,.56) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,.16) 55%, rgba(10,10,10,.92) 100%),
    radial-gradient(55% 50% at 0% 100%, rgba(230,0,0,.18), transparent 70%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Indicador de escenas 01 — 02 — 03 */
.reel {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.reel__label { min-width: 9ch; text-align: right; color: var(--white); }
.reel__segs { display: flex; gap: 6px; }
.reel__seg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
  transition: color .4s;
}
.reel__seg:hover, .reel__seg.is-active { color: var(--white); }
.reel__seg i {
  position: relative;
  display: block;
  width: 34px; height: 1px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}
.reel__seg b {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.reel__toggle {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  transition: box-shadow .3s, background .3s;
}
.reel__toggle:hover { background: rgba(255, 255, 255, .1); }
.reel__toggle i, .reel__toggle i::before {
  position: absolute;
  top: 10px;
  width: 2px; height: 10px;
  background: var(--white);
}
.reel__toggle i { left: 11px; }
.reel__toggle i::before { content: ""; left: 6px; top: 0; }
.reel__toggle[aria-pressed="true"] i { left: 12px; width: 0; height: 0; background: none; border-left: 8px solid var(--white); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.reel__toggle[aria-pressed="true"] i::before { display: none; }

.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vh, 34px);
  color: rgba(255, 255, 255, .85);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230, 0, 0, .6);
  animation: ping 2.4s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(230, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); } }

.hero__title {
  font-size: clamp(3.3rem, 11.2vw, 12.4rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: .84;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title em { color: var(--red-hot); padding-right: .04em; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 64px;
  margin-top: clamp(28px, 4.5vh, 52px);
}
.hero__lead {
  max-width: 38ch;
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 50px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.hero__tags li { display: flex; align-items: center; gap: 22px; }
.hero__tags li + li::before { content: ""; width: 4px; height: 4px; background: var(--red); transform: rotate(45deg); }

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.scroll-cue__track {
  position: relative;
  width: 1px; height: 56px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}
.scroll-cue__track i {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--red);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- 8. Cinta tipográfica ---------- */
.ribbon {
  position: relative;
  padding-block: clamp(26px, 4vw, 48px) clamp(70px, 9vw, 110px);
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.ribbon__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  will-change: transform;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 1;
}
.ribbon__track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42); }
.ribbon__track span:nth-of-type(3n+1) { color: var(--white); -webkit-text-stroke: 0; }
.ribbon__track b { color: var(--red); font-size: .4em; font-weight: 400; }

/* ---------- 9. Paneles claros (transición entre atmósferas) ---------- */
.panel {
  position: relative;
  z-index: 2;
}
.panel--light {
  background: var(--paper);
  color: var(--ink);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
  margin-top: calc(clamp(24px, 4vw, 56px) * -1);
}

.section-head { margin-bottom: clamp(40px, 6vw, 88px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end;
  gap: 32px 64px;
}
.section-head--split .index-label { grid-column: 1 / -1; margin-bottom: 0; }

/* ---------- 10. Sobre ---------- */
.about { padding-block: clamp(90px, 12vw, 180px) clamp(90px, 10vw, 160px); }

.statement {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 600;
  font-stretch: 82%;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin-bottom: clamp(70px, 10vw, 150px);
}
.statement em { font-size: 1.06em; }
.statement .w { display: inline; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.about__links { display: flex; flex-wrap: wrap; gap: 0 32px; }
.about__text { grid-column: 1 / span 6; align-self: center; }
.about__fig--b { grid-column: 8 / span 5; }

.about__text .h2 { margin-bottom: 30px; }
.about__text p { color: var(--muted); max-width: 46ch; }
.about__text p + p { margin-top: 16px; }

.reveal-img__mask {
  overflow: hidden;
  border-radius: var(--radius);
  background: #dcdcd6;
}
.about__fig--b .reveal-img__mask { aspect-ratio: 4 / 3; }
.reveal-img__mask img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
figcaption span { color: var(--ink); text-transform: uppercase; letter-spacing: .12em; }
.tag-demo {
  padding: 2px 8px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red-deep);
  font-size: 10.5px;
}

.values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.values__item {
  position: relative;
  padding: 28px 24px 8px 0;
}
.values__item::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.values__item:hover::before { transform: scaleX(1); }
.values__n {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--red);
  margin-bottom: 28px;
  transition: transform .5s var(--ease-out);
}
.values__item:hover .values__n { transform: translateX(8px); }
.values__item h3 {
  font-size: 1.32rem;
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.1;
  margin-bottom: 10px;
}
.values__item p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- 11. Servicios ---------- */
.services {
  --tint: 96, 140, 60;
  position: relative;
  padding-block: clamp(110px, 13vw, 190px) clamp(80px, 10vw, 140px);
  background: var(--ink-2);
}
.services__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 20% 40%, rgba(var(--tint), .16), transparent 70%),
    radial-gradient(40vw 40vh at 90% 90%, rgba(230, 0, 0, .06), transparent 70%);
  transition: background 1.2s;
}
.services .section-head { position: relative; }

.services__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
}

.services__sticky {
  position: sticky;
  align-self: start;
  top: calc(var(--header-h) + 4vh);
  height: calc(100vh - var(--header-h) - 10vh);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.services__stage {
  position: relative;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d1d1d;
}
.stage__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-io);
}
.stage__img.is-prev { z-index: 1; clip-path: inset(0 0 0 0); transition: none; }
.stage__img.is-active { z-index: 2; clip-path: inset(0 0 0 0); }
.stage__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.6s var(--ease-out);
}
.stage__img.is-active img { transform: scale(1); }

.stage__hud {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 80px 28px 26px;
  background: linear-gradient(0deg, rgba(10, 10, 10, .85), transparent);
}
.stage__count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted-dark); }
.stage__count b { color: var(--white); font-weight: 500; }
.stage__title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: 1;
}
.stage__dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stage__dots li { height: 2px; background: rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.stage__dots li::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.stage__dots li.is-active::after, .stage__dots li.is-done::after { transform: scaleX(1); }
.stage__dots li.is-done::after { background: rgba(255, 255, 255, .5); }

.services__list { position: relative; }
.service {
  position: relative;
  padding-block: clamp(60px, 14vh, 150px);
  border-top: 1px solid var(--line-dark);
  opacity: .32;
  transition: opacity .7s var(--ease-out);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service.is-active { opacity: 1; }
.service__media { display: none; }
.service__n {
  display: block;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--red-hot);
  margin-bottom: 18px;
}
.service__title {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.service__desc {
  max-width: 44ch;
  color: var(--muted-dark);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.service__items {
  display: grid;
  border-top: 1px solid var(--line-dark);
}
.service__items li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15.5px;
  transition: padding .45s var(--ease-out), color .3s;
}
.service__items li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--red-hot);
  transition: width .45s var(--ease-out);
}
.service__items li:hover { padding-left: 38px; }
.service__items li:hover::before { width: 22px; }

/* ---------- 12. Por qué elegirnos ---------- */
.why {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.why__pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(36px, 6vh, 64px);
  padding-block: clamp(90px, 12vh, 130px);
}
.why__bgword {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: clamp(8rem, 26vw, 28rem);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.why__head { position: relative; }
.why__head .index-label { margin-bottom: 24px; }

.why__track {
  position: relative;
  display: flex;
  gap: clamp(16px, 1.8vw, 28px);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  padding-bottom: 12px;
}
.why.is-pinned .why__track { overflow: visible; will-change: transform; padding-bottom: 0; }

.why-card {
  --mx: 50%; --my: 50%;
  position: relative;
  flex: none;
  width: clamp(290px, 30vw, 440px);
  min-height: clamp(340px, 50vh, 480px);
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 40px);
  border-radius: var(--radius);
  background: #171717;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  scroll-snap-align: start;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .4s;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 43, 31, .16), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.why-card__n {
  font-size: clamp(4.5rem, 7vw, 7rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-hot);
  margin-bottom: auto;
}
.why-card h3 {
  margin-top: 40px;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: .95;
}
.why-card p { margin-top: 14px; color: var(--muted-dark); max-width: 30ch; }
.why-card__glyph {
  position: absolute;
  top: clamp(26px, 2.6vw, 40px);
  right: clamp(26px, 2.6vw, 40px);
  font-size: 20px;
  color: rgba(255, 255, 255, .3);
  transition: transform .8s var(--ease-out), color .4s;
}
.why-card:hover .why-card__glyph { transform: rotate(180deg) scale(1.2); color: var(--red-hot); }
.why-card--red { background: var(--red); box-shadow: none; }
.why-card--red .why-card__n { -webkit-text-stroke-color: var(--white); }
.why-card--red p { color: rgba(255, 255, 255, .9); }
.why-card--red::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .18), transparent 45%); }

.why__progress {
  position: relative;
  margin-inline: auto;
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line-dark);
  display: none;
}
.why__progress i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.why.is-pinned .why__progress { display: block; }

/* ---------- 14. Presupuesto ---------- */
.cta {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: clamp(140px, 16vw, 220px) clamp(130px, 14vw, 200px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cta__media {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  will-change: transform;
}
.cta__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: grayscale(.6) contrast(1.1);
}
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, rgba(230, 0, 0, .22), transparent 60%), linear-gradient(180deg, var(--ink) 0%, rgba(14,14,14,.3) 40%, rgba(14,14,14,.4) 70%, var(--ink) 100%);
}
.cta__inner { position: relative; }
.cta__title {
  font-size: clamp(3.4rem, 10.6vw, 12rem);
  font-weight: 900;
  font-stretch: 64%;
  line-height: .82;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cta__row { display: block; will-change: transform; }
.cta__row--alt { padding-left: 6vw; }
.cta__title em { color: var(--red-hot); }
.cta__title b { color: var(--red-hot); }
.cta__bottom {
  display: grid;
  grid-template-columns: minmax(0, 420px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: clamp(48px, 7vw, 100px);
}
.cta__bottom > p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; }
.cta__actions { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.cta__circle {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(140px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: background .4s, color .4s;
}
.cta__circle::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .35);
  animation: spin 18s linear infinite;
}
.cta__circle:hover { background: var(--white); color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta__phones {
  display: grid;
  gap: 6px;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: .01em;
}

/* ---------- 15. Contacto ---------- */
.contact { padding-block: clamp(110px, 12vw, 170px); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.contact__info .h1 { margin-bottom: 28px; }
.pending {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(230, 0, 0, .06);
  border: 1px dashed rgba(230, 0, 0, .4);
  margin-bottom: 36px;
}
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list dt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact__list dd { font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact__list dd .link-arrow { margin-top: 12px; font-size: 12.5px; }
.contact__list dd .link-arrow::after { width: 34px; height: 34px; }
.is-pending { color: var(--muted); font-style: italic; font-weight: 400 !important; }
.is-pending::before { content: "Pendiente · "; font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--red-deep); text-transform: uppercase; }

.form {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 80px -40px rgba(14, 14, 14, .35), 0 0 0 1px var(--line);
  display: grid;
  gap: 8px;
}
.form__title {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field { position: relative; padding-top: 18px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; padding-right: 24px; }
.field--select::after {
  content: "";
  position: absolute;
  right: 4px; top: 36px;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute;
  left: 0; top: 30px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label {
  transform: translateY(-24px) scale(.78);
  color: var(--ink);
}
.field::after {
  content: "";
}
.field:not(.field--select)::after {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.field:not(.field--select):focus-within::after { transform: scaleX(1); }
.field select:focus { border-bottom-color: var(--red); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-bottom-color: var(--red); }
.field.has-error label { color: var(--red-deep); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 14px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--red);
}
.check em { font-style: italic; }
.check.has-error { color: var(--red-deep); }

.form__status:empty { display: none; }
.form__status {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
}
.form__status.is-error { border-left-color: var(--red); }
.form__status .btn { margin-top: 12px; }
.form__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- 16. Footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(80px, 9vw, 130px);
  margin-top: calc(clamp(24px, 4vw, 56px) * -1);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
  overflow: hidden;
}
.footer__top {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand { flex: none; }
.footer__brand img { height: 104px; width: auto; }
.footer__claim {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: 1;
}
.footer__claim em { color: var(--red-hot); }
.to-top {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 20px;
  transition: background .4s, box-shadow .4s;
}
.to-top:hover { background: var(--red); box-shadow: none; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}
.footer__cols h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 18px;
}
.footer__cols h4 small { color: var(--muted-dark); font-size: inherit; }
.footer__cols li { padding: 4px 0; color: rgba(255, 255, 255, .78); font-size: 15px; overflow-wrap: anywhere; }

.footer__word {
  font-size: 12.2vw;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .8;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
  text-align: center;
  margin-inline: calc(var(--gutter) * -1);
  transition: color .8s, -webkit-text-stroke-color .8s;
  user-select: none;
}
@media (min-width: 1480px) { .footer__word { font-size: 180px; } }
.footer__word:hover { color: var(--red); -webkit-text-stroke-color: var(--red); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
}

body.no-scroll { overflow: hidden; }

/* ---------- 18. Estados iniciales para animaciones (solo con .motion) ---------- */
.motion .hero__title .line__in { transform: translateY(110%); }
.motion [data-hero-item] { opacity: 0; }
.motion .hero__videos { transform: scale(1.12); }
.motion .header { opacity: 0; }

/* ---------- 18b. Botón «Ver trabajos realizados» ---------- */
.works-btn {
  --ang: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 14px 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  text-align: left;
  isolation: isolate;
  transition: background .5s var(--ease-out);
}
/* Borde dinámico: un arco rojo recorre el contorno al pasar el cursor */
.works-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), rgba(255,255,255,.22) 0 60%, var(--red-hot) 75%, rgba(255,255,255,.22) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.works-btn:hover::before, .works-btn:focus-visible::before { animation: border-spin 2.4s linear infinite; }
@keyframes border-spin { to { --ang: 360deg; } }
.works-btn:hover, .works-btn:focus-visible { background: rgba(230, 0, 0, .12); }
.works-btn__txt { display: grid; gap: 2px; overflow: hidden; }
.works-btn__txt small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.works-btn__txt strong {
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.works-btn__icon {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  overflow: hidden;
  transition: transform .6s var(--ease-out);
}
.works-btn__icon i, .works-btn__icon i::after {
  position: absolute;
  width: 16px; height: 1.5px;
  background: var(--white);
  transition: transform .55s var(--ease-out);
}
.works-btn__icon i::after {
  content: "";
  width: 8px; height: 8px;
  right: 0; top: -3.5px;
  background: none;
  border-top: 1.5px solid var(--white);
  border-right: 1.5px solid var(--white);
  transform: rotate(45deg);
}
.works-btn:hover .works-btn__icon { transform: rotate(-45deg) scale(1.06); }
.works-btn--inline { display: none; width: auto; margin-top: 28px; padding-block: 8px; }
.works-btn--inline .works-btn__icon { width: 40px; height: 40px; }

/* ---------- 18c. Capa de trabajos realizados ---------- */
.works {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
}
.works__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 6, .7); }
.works__panel {
  position: relative;
  margin: clamp(0px, 2vw, 24px);
  padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 72px) clamp(32px, 4vw, 56px);
  padding-top: calc(clamp(24px, 4vw, 56px) + env(safe-area-inset-top, 0px));
  border-radius: clamp(0px, 1.4vw, 14px);
  background: #101010;
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.works__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.works__head .index-label { margin-bottom: 16px; }
.works__title {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
  font-stretch: 70%;
  text-transform: uppercase;
  line-height: .88;
}
.works__title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; color: var(--red-hot); }
.works__close {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  font-size: 18px;
  transition: background .3s, transform .5s var(--ease-out);
}
.works__close:hover { background: var(--red); transform: rotate(90deg); }
.works__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.works__tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  transition: background .35s, color .35s, box-shadow .35s;
}
.works__tab sup { margin-left: 6px; font-family: var(--f-mono); font-size: 10px; color: var(--red-hot); }
.works__tab:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); color: var(--white); }
.works__tab[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: none; }

.works__empty {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.works__frames { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.works__frames span {
  position: relative;
  display: grid;
  place-items: end start;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--red), var(--red)) top left / 14px 1px no-repeat,
    linear-gradient(var(--red), var(--red)) top left / 1px 14px no-repeat,
    linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) bottom right / 14px 1px no-repeat,
    linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) bottom right / 1px 14px no-repeat,
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 12px),
    #151515;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.works__frames span:first-child { grid-row: span 2; }
.works__frames i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.works__soon-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 16px; }
.works__soon-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  font-stretch: 78%;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.works__soon-title em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; color: var(--red-hot); font-size: 1.15em; }
.works__soon-text { color: var(--muted-dark); max-width: 46ch; margin-bottom: 28px; }

.works__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.work-card { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--radius); overflow: hidden; color: var(--white); }
.work-card__img { display: block; aspect-ratio: 4 / 3; background: #1a1a1a; overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.06); }
.work-card__meta { display: grid; gap: 4px; padding: 14px 2px 6px; }
.work-card__meta small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.work-card__meta strong { font-size: 1.2rem; font-stretch: 80%; text-transform: uppercase; }

.works__viewer {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 72px clamp(16px, 7vw, 120px) 40px;
  background: rgba(6, 6, 6, .96);
}
.viewer__fig { display: grid; gap: 16px; width: 100%; max-width: 1200px; }
.viewer__frame { display: grid; place-items: center; }
.viewer__frame img { max-height: 70vh; width: auto; max-width: 100%; border-radius: var(--radius); }
.viewer__fig figcaption { margin: 0; color: rgba(255, 255, 255, .7); }
.viewer__cat { color: var(--red-hot) !important; }
.viewer__title { color: var(--white); font-size: 1.3rem; font-stretch: 80%; text-transform: uppercase; }
.viewer__meta { text-transform: none !important; letter-spacing: .02em !important; color: rgba(255, 255, 255, .7) !important; }
.viewer__desc { flex-basis: 100%; font-family: var(--f-display); font-size: 15px; color: rgba(255, 255, 255, .8); }
.viewer__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  color: var(--white);
  transition: background .3s;
}
.viewer__btn:hover { background: var(--red); }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 16px; top: 50%; transform: translateY(-50%); }
.viewer__count { position: absolute; top: 32px; left: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }

/* ---------- 18d. Transición «Por qué» → mapa ---------- */
.why__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #070707;
  opacity: var(--why-fade, 0);
  pointer-events: none;
}

/* ---------- 19. Responsive ---------- */

/* Portátiles pequeños / tablets horizontales */
@media (max-width: 1200px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablets */
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__tags { display: none; }
  .section-head--split { grid-template-columns: 1fr; }
  .cta__bottom { grid-template-columns: 1fr; }
}

/* Servicios y "Por qué" pasan a flujo vertical */
@media (max-width: 899px) {
  .services__layout { grid-template-columns: 1fr; }
  .services__sticky { display: none; }
  .service { opacity: 1; padding-block: 56px; }
  .service:first-child { padding-top: 0; }
  .service__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
  }
  .service__media img { width: 100%; height: 100%; object-fit: cover; }
  .works-btn--inline { display: inline-flex; }
  .works__empty { grid-template-columns: 1fr; }
  .works__frames { aspect-ratio: 16 / 9; }

  .why__pin { min-height: 0; }
  .why__track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    padding-inline: var(--gutter);
  }
  .why-card { width: auto; min-height: 300px; }
  .why__bgword { top: 18%; }

  .about__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .about__text { grid-column: 1 / -1; padding-top: 12px; }
  .about__fig--b { grid-column: 1 / -1; grid-row: auto; margin-top: 12px; }


  .contact__grid { grid-template-columns: 1fr; }
  .chapter { display: none; }
}

/* Móviles */
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .brand { padding: 4px 12px; }

  .hero { padding-bottom: 150px; }
  .hero__title { font-size: clamp(2.9rem, 15.5vw, 5rem); line-height: .88; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__foot { bottom: 40px; }
  .reel__label { display: none; }
  .reel__seg i { width: 22px; }
  .scroll-cue span:last-child { display: none; }
  .photo-note { left: var(--gutter); right: auto; bottom: 14px; font-size: 9.5px; }
  /* Recortes verticales adaptados para cada escena */
  .works__panel { margin: 0; border-radius: 0; }
  .works__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
            mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .works__tabs::-webkit-scrollbar { display: none; }
  .works__tab { flex: none; }
  .works__close { width: 46px; height: 46px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 16px; transform: none; }
  .viewer__prev { left: calc(50% - 64px); }
  .viewer__next { right: calc(50% - 64px); }
  .works__viewer { padding-bottom: 90px; }

  .statement { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .values { grid-template-columns: 1fr; }
  .values__item { display: grid; grid-template-columns: 44px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .values__n { margin: 4px 0 0; grid-row: span 2; }

  .why__track { grid-template-columns: 1fr; }
  .why-card { min-height: 0; }
  .why-card h3 { margin-top: 28px; }


  .cta { min-height: 0; }
  .cta__title { font-size: clamp(2.7rem, 15vw, 5rem); white-space: normal; }
  .cta__row--alt { padding-left: 0; }
  .cta__actions { flex-wrap: wrap; }

  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .field-row { grid-template-columns: 1fr; }

  .footer__top { flex-wrap: wrap; gap: 24px; }
  .footer__brand img { height: 84px; }
  .to-top { margin-left: 0; width: 52px; height: 52px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__cols > div:nth-child(2) { display: none; }


  .draft-pill span { display: none; }
  .draft-pill { padding-left: 8px; }
}


/* ---------- 20. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .stage__img img, .hero__img { transform: none !important; }
  .reel__seg b, .works-btn::before, .svc-fx *, .family * { animation: none !important; }
}
