/* Fraile y Blanco · web
   Sistema: manual de identidad (negro, rojo 485 C, gris Cool Gray 3 C).
   Jost hace de Futura Std hasta que el cliente entregue la fuente licenciada. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  --negro: #000;
  --rojo: #E30613;
  --gris: #C6C6C6;
  --gris-oscuro: #595959;
  --blanco: #fff;
  --linea: #d9d9d9;

  --f-text: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --f-amp: "Bodoni Moda", "Didot", "Bodoni 72", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --head: 5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(16px, .45vw + 12px, 22px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: var(--head); scrollbar-color: var(--rojo) var(--negro); scrollbar-width: thin; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--negro);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: var(--rojo); color: var(--blanco); }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible, .sedes :focus-visible, .foot :focus-visible, .goods :focus-visible { outline-color: var(--blanco); }
h1, h2, h3 { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--rojo); color: #fff; padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ── Botones ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.75rem;
  font: 700 1rem/1 var(--f-text); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--rojo); color: #fff; }
.btn--red:hover { background: #fff; color: var(--rojo); border-color: var(--rojo); }
.btn--line { border-color: #fff; color: #fff; }
.btn--line:hover { background: #fff; color: #000; }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: var(--rojo); }
.hero .btn--red:hover { border-color: #fff; background: #fff; color: #000; }

/* ── Cabecera ──────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: transparent;
  color: #fff;
  transition: background-color .35s var(--ease);
}
.top.is-solid { background: #000; }
.top__logo { display: block; color: #fff; }
.logo { width: 8.5rem; height: auto; aspect-ratio: 400 / 190; display: block; color: inherit; }
.top__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.top__nav a { white-space: nowrap;
  font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .5rem 0; background: linear-gradient(var(--rojo), var(--rojo)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.top__nav a:hover { background-size: 100% 2px; }
.top__nav .top__cta { background: #fff; color: #000; padding: .65rem 1.2rem; font-weight: 700; transition: background-color .25s var(--ease), color .25s var(--ease); }
.top__nav .top__cta:hover { background: var(--rojo); color: #fff; }
.top__toggle { display: none; }

/* ── Portada ───────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--negro); color: #fff;
}
.hero__amp {
  position: absolute; z-index: -1; right: -3vw; top: 50%;
  font: italic 500 min(112vh, 78vw)/1 var(--f-amp);
  color: var(--rojo);
  transform: translateY(-36%);
  user-select: none; pointer-events: none;
  animation: amp-in 1.6s var(--ease) both;
}
.hero__copy { align-self: end; padding: calc(var(--head) + 2rem) var(--pad) clamp(2rem, 5vh, 3.5rem); max-width: 62rem; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: .93; }
.hero h1 span { display: block; animation: rise 1.1s var(--ease) both; }
.hero h1 span + span { animation-delay: .12s; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 300; color: var(--gris); letter-spacing: .02em; animation: rise 1.1s .28s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; animation: rise 1.1s .4s var(--ease) both; }

.reel { overflow: hidden; border-top: 1px solid #2b2b2b; }
.reel__track { display: flex; gap: .6rem; width: max-content; padding: .6rem 0; animation: reel 90s linear infinite; }
.reel:hover .reel__track { animation-play-state: paused; }
.reel img { height: clamp(5.5rem, 15vh, 9.5rem); width: auto; aspect-ratio: 16/9; object-fit: cover; }

@keyframes rise { from { opacity: 0; transform: translateY(1.6rem); } }
@keyframes amp-in { from { opacity: 0; transform: translate(14vw, -36%) rotate(4deg); } }
@keyframes reel { to { transform: translateX(-50%); } }

/* ── Somos: escenario fijado ───────────── */
.somos { background: var(--blanco); }
.stage-track { height: 440svh; position: relative; }
.stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 2rem;
  padding: var(--head) var(--pad) 2rem;
  --u: min(.77vw, 1.6vh);
}
.pairs { position: relative; height: 100%; max-height: 40rem; }
.pair {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: .92;
  font-size: clamp(2.5rem, min(4.8vw, 9.5vh), 5rem);
  opacity: 0; transform: translateY(2.5rem); transition: opacity .6s var(--ease), transform .8s var(--ease);
  pointer-events: none;
}
.pair.is-past { transform: translateY(-2.5rem); }
.pair.is-active { opacity: 1; transform: none; }
.pair i {
  display: block; font: italic 500 3.4em/.72 var(--f-amp); color: var(--rojo); letter-spacing: 0; text-transform: none;
  margin: .14em 0 .12em -.05em;
}

.device-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; }
.device {
  position: relative; background: #0b0b0b; overflow: visible;
  width: calc(var(--u) * 56); height: calc(var(--u) * 35);
  border: calc(var(--u) * .5) solid #1b1b1b; border-radius: calc(var(--u) * .8);
  box-shadow: 0 1.8rem 3rem -1.2rem rgba(0,0,0,.45), 0 .4rem .8rem rgba(0,0,0,.18);
  transition: width .9s var(--ease), height .9s var(--ease), border-radius .9s var(--ease), border-width .9s var(--ease), padding .9s var(--ease);
}
.device__screen { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #000; }
.device__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.device__screen img.is-on { opacity: 1; }

/* navegador */
.stage[data-state="0"] .device { padding-top: calc(var(--u) * 3.2); }
.stage[data-state="0"] .device::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--u) * -.0); height: calc(var(--u) * 3.2);
  background:
    radial-gradient(circle at calc(var(--u) * 2) 50%, #E30613 0 calc(var(--u) * .45), transparent calc(var(--u) * .5)),
    radial-gradient(circle at calc(var(--u) * 3.6) 50%, #8a8a8a 0 calc(var(--u) * .45), transparent calc(var(--u) * .5)),
    radial-gradient(circle at calc(var(--u) * 5.2) 50%, #8a8a8a 0 calc(var(--u) * .45), transparent calc(var(--u) * .5)),
    #1b1b1b;
}
.stage[data-state="0"] .device__screen { inset: calc(var(--u) * 3.2) 0 0 0; border-radius: 0 0 calc(var(--u) * .4) calc(var(--u) * .4); }
/* móvil */
.stage[data-state="1"] .device { width: calc(var(--u) * 22); height: calc(var(--u) * 45); border-width: calc(var(--u) * .7); border-radius: calc(var(--u) * 3.6); }
.stage[data-state="1"] .device::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--u) * .7); width: calc(var(--u) * 5); height: calc(var(--u) * 1.2); transform: translateX(-50%);
  background: #1b1b1b; border-radius: 99px;
}
/* televisión */
.stage[data-state="2"] .device { width: calc(var(--u) * 60); height: calc(var(--u) * 33.75); border-width: calc(var(--u) * .55); border-radius: calc(var(--u) * .5); }
.stage[data-state="2"] .device::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--u) * -2.6); width: calc(var(--u) * 12); height: calc(var(--u) * 2); transform: translateX(-50%);
  background: #1b1b1b; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
/* cine */
.stage[data-state="3"] .device { width: calc(var(--u) * 64); height: calc(var(--u) * 27.2); border-width: calc(var(--u) * .35); border-radius: 0; background: #000; }

.device__cap {
  appearance: none; background: none; border: 0; padding: .25rem 0; cursor: pointer; text-align: center;
  font: 500 1rem/1.3 var(--f-text); color: var(--negro); letter-spacing: .02em;
}
.device__cap b { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.device__cap span { color: var(--gris-oscuro); }
.device__cap:hover b { color: var(--rojo); }

.somos__text { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); border-top: 1px solid var(--linea); text-align: center; display: grid; gap: clamp(4rem, 8vw, 7rem); justify-items: center; }
.somos__lead { font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04; max-width: 24ch; margin-inline: auto; }
.info { display: grid; gap: 1.25rem; justify-items: center; width: 100%; max-width: 62rem; }
.info__title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--rojo); }
.info__sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--gris-oscuro); max-width: 34rem; }
.info__big { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: .98; max-width: 16ch; text-wrap: balance; }
.chips { list-style: none; margin: .5rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; width: 100%; background: var(--linea); border: 1px solid var(--linea); }
.chips li { background: #fff; display: grid; justify-items: center; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.25rem) .75rem; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; transition: background-color .3s var(--ease), color .3s var(--ease); }
.chips svg { width: clamp(2.4rem, 4vw, 3.2rem); height: auto; color: var(--rojo); transition: color .3s var(--ease); }
@media (hover: hover) { .chips li:hover { background: var(--negro); color: #fff; } }
.w4 { list-style: none; margin: 1rem 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); width: 100%; }
.w4 li { display: grid; justify-items: center; gap: 0; border-top: 3px solid var(--negro); padding-top: 1.5rem; }
.w4 b { font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.w4 i { font: italic 500 clamp(3.5rem, 7vw, 6rem)/.8 var(--f-amp); color: var(--rojo); margin: .15em 0; }
.somos__close { margin-top: 1rem; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; max-width: 30ch; }

/* ── Making Virtual Goods ──────────────── */
.goods { position: relative; background: var(--rojo); color: #fff; }
.goods__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); padding: clamp(5rem, 12vw, 10rem) var(--pad); align-items: start; }
.goods h2 { font-size: clamp(2.1rem, 4.1vw, 4.4rem); line-height: .96; overflow-wrap: break-word; }
.goods__body { display: grid; gap: 1.4rem; font-size: 1.25rem; max-width: 34rem; }
.goods__body strong { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; border-bottom: 3px solid #000; }
.bar { height: clamp(.6rem, 1.2vw, 1rem); background: linear-gradient(90deg, var(--rojo) 0 50%, #000 50% 100%); }
.goods .bar { background: #000; }

/* ── Casos de éxito ────────────────────── */
.casos { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.casos__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.casos h2 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
.casos__head p { color: var(--gris-oscuro); max-width: 24rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 2.4vw, 2.25rem) clamp(.9rem, 1.6vw, 1.5rem); }
.tile { grid-column: span 4; min-width: 0; }
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 6; }
.tile[hidden] { display: none; }
.tile button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
}
.tile button:focus-visible { outline: 3px solid var(--rojo); outline-offset: 4px; }
.tile__img { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--gris); }
.tile__img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); pointer-events: none; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.tile__play {
  position: absolute; right: 1rem; bottom: 1rem; width: 3.25rem; height: 3.25rem; background: var(--rojo); display: grid; place-items: center;
  transform: translateY(.6rem); opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.tile__play svg { width: 1.1rem; height: 1.1rem; fill: #fff; margin-left: .12rem; }
.tile button:hover .tile__img img, .tile button:focus-visible .tile__img img { transform: scale(1.045); }
.tile button:hover .tile__play, .tile button:focus-visible .tile__play { opacity: 1; transform: none; }
.tile__cap { padding-top: .8rem; }
.tile__client { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.tile__title { display: block; margin-top: .2rem; color: var(--gris-oscuro); font-size: 1.05rem; line-height: 1.3; }
.tile:nth-child(-n+2) .tile__client { font-size: 1.1rem; }
.tile:nth-child(-n+2) .tile__title { font-size: 1.35rem; line-height: 1.2; color: var(--negro); font-weight: 500; }
.tile button:hover .tile__client { color: var(--rojo); }
.casos__more { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ── Sedes ─────────────────────────────── */
.sedes { background: var(--negro); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.sedes h2 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sedes__list { list-style: none; margin: 0; padding: 0; }
.sedes__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); padding: clamp(1.75rem, 3.5vw, 3rem) 0; border-top: 1px solid #333; align-items: start; }
.sedes__list li:last-child { border-bottom: 1px solid #333; }
.sedes h3 { font-size: clamp(2rem, 5vw, 4.25rem); }
.sedes__role { display: inline-block; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin-bottom: .9rem; padding-bottom: .35rem; border-bottom: 3px solid var(--rojo); }
.sedes li p:not(.sedes__role) { color: var(--gris); max-width: 36rem; }
.sedes address { margin-top: 1.1rem; font-style: normal; font-size: 1rem; line-height: 1.6; }
.sedes address a { text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }
.sedes address a:hover { color: var(--rojo); }

/* ── Contacta ──────────────────────────── */
.contacta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.contacta__intro h2 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
.contacta__intro p { margin-top: 1.25rem; max-width: 22rem; color: var(--gris-oscuro); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; align-content: start; }
.field { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.field label span { color: var(--rojo); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: 400 1.1rem/1.4 var(--f-text); color: var(--negro); background: #fff;
  border: 0; border-bottom: 2px solid var(--negro); border-radius: 0; padding: .7rem .1rem; width: 100%;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 1rem) 55%, calc(100% - .65rem) 55%; background-size: .4rem .4rem; background-repeat: no-repeat; padding-right: 2rem; }
.field textarea { resize: vertical; min-height: 7rem; border: 2px solid var(--negro); padding: .7rem .8rem; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #f4f4f4; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--rojo); background-color: #fff; box-shadow: 0 2px 0 0 var(--rojo); }
.field [aria-invalid="true"] { border-color: var(--rojo); }
.field__err { color: #b30010; font-size: .95rem; font-weight: 500; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field--check input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--rojo); }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; }
.field--check .field__err { grid-column: 2; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { color: var(--gris-oscuro); font-size: .95rem; }
.form__ok { flex-basis: 100%; font-weight: 500; }

/* ── Pie ───────────────────────────────── */
.foot { background: var(--negro); color: #fff; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 3rem var(--pad); }
.logo--foot { width: 9rem; }
.foot p { color: var(--gris); font-size: .95rem; }
.foot a:hover { color: #fff; text-decoration-color: var(--rojo); }

/* ── Reproductor ───────────────────────── */
.player { margin: 4.5rem auto 1rem; border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; max-height: 94svh; overflow: visible; color: #fff; }
.player::backdrop { background: rgba(0,0,0,.96); }
.player__box { background: #000; }
.player__frame { aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__info { padding: 1.25rem 1.5rem 1.75rem; max-height: 28svh; overflow: auto; }
.player h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .7rem; }
.player h3 b { color: var(--gris); font-weight: 800; }
.player__info > p:last-child { color: var(--gris); max-width: 62ch; }
.player__close {
  position: absolute; right: 0; top: -3.1rem; background: var(--rojo); color: #fff; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; padding: .9rem 1.25rem; min-height: 2.75rem;
}
.player__close:hover { background: #fff; color: #000; }
.player__close:focus-visible { outline-color: #fff; }

/* ── Adaptación ────────────────────────── */
@media (max-width: 1100px) {
  :root { --head: 4.25rem; }
  .logo { width: 7rem; }
  .top__toggle {
    display: block; background: var(--rojo); color: #fff; border: 0; padding: .7rem 1.1rem; min-height: 2.75rem;
    font: 700 .9rem/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  }
  .top__nav {
    position: fixed; inset: var(--head) 0 0 0; background: #000; flex-direction: column; align-items: flex-start; justify-content: center; gap: .6rem;
    padding: 2rem var(--pad); transform: translateY(-110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .top__nav.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .top__nav a { font-size: 1.75rem; font-weight: 800; }
  .top__nav .top__cta { margin-top: 1rem; font-size: 1.1rem; }

  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 0; padding-top: calc(var(--head) + 1rem); --u: min(1.5vw, 1vh); align-content: center; }
  .stage[data-state="1"] { --u: min(2.4vw, 1.2vh); }
  .pairs { height: 9rem; }
  .pair { font-size: clamp(2rem, 8.6vw, 3.2rem); flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 .35em; align-content: center; }
  .pair i { font-size: 2.1em; line-height: .6; margin: 0; }
  .device-wrap { gap: 1.25rem; padding-top: 1rem; }
  .stage[data-state="1"] .device { width: calc(var(--u) * 24); height: calc(var(--u) * 49); }
  .goods__inner, .contacta, .sedes__list li { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(1) { grid-column: span 12; }
  .tile, .tile:nth-child(2) { grid-column: span 6; }
  .hero__amp { font-size: 90vw; top: 21%; right: -10vw; }
  .contacta__amp { font-size: 8.5rem; margin-top: 1.5rem; }
  .logo { width: 7.6rem; }
}
@media (max-width: 560px) {
  .w4 { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(2) { grid-column: span 12; }
  .form { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stage-track { height: 400svh; }
}
@media (hover: none) { .tile__play { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__amp, .hero h1 span, .hero__sub, .hero__actions { animation: none; }
  .reel { overflow-x: auto; }
  .reel__track { animation: none; }
  .stage-track { height: auto; }
  .stage { position: static; height: auto; grid-template-rows: auto; padding-bottom: 3rem; }
  .pairs { height: auto; max-height: none; display: grid; gap: 2rem; }
  .pair { position: static; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; gap: 0 .4em; font-size: clamp(1.8rem, 5vw, 3rem); }
  .pair i { font-size: 1.4em; }
  .device { transition: none; }
}

/* El ampersand como conector: entre sedes y en el contacto */
.sedes__list li { position: relative; }
.sedes__list li + li::before {
  content: "&"; position: absolute; right: 0; top: 0; transform: translateY(-50%);
  font: italic 500 clamp(4rem, 8vw, 7rem)/1 var(--f-amp); color: var(--rojo); background: var(--negro); padding: 0 1rem;
}
.contacta__intro { position: relative; }
.contacta__amp {
  display: block; margin-top: 3rem; font: italic 500 clamp(10rem, 24vw, 22rem)/.7 var(--f-amp); color: var(--rojo);
  user-select: none; pointer-events: none; margin-left: -.04em;
}
.casos__more { position: relative; }

.sedes__list li + li { padding-top: clamp(3rem, 6.5vw, 5.5rem); }

.stage[data-state="1"] .device__screen img { object-position: 90% 50%; }

/* ── Somos, método, qué hacemos, trayectoria, marcas ── */
.somos { background: var(--blanco); }
.somos__head { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(3rem, 6vw, 5rem); text-align: center; display: grid; justify-items: center; gap: 1.75rem; }
.somos__head h2 { font-size: clamp(2.5rem, 7.2vw, 6.5rem); line-height: .94; max-width: 14ch; }
.somos__head p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--gris-oscuro); max-width: 36rem; }
.strip { background: var(--rojo); color: #fff; text-align: center; padding: clamp(2rem, 4.5vw, 3.5rem) var(--pad); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; font-size: clamp(1.5rem, 3.6vw, 3rem); text-wrap: balance; }
.metodo { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); text-align: center; display: grid; justify-items: center; gap: 1.25rem; }
.metodo__title { font-size: clamp(2rem, 4.6vw, 4rem); max-width: 18ch; }
.metodo__sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--gris-oscuro); }
.b4 { list-style: none; margin: clamp(2rem, 4vw, 3.5rem) 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 76rem; }
.b4 li { position: relative; display: grid; justify-items: center; align-content: start; gap: .9rem; padding: 0 clamp(1rem, 2vw, 2rem); }
.b4 li + li::before { content: "&"; position: absolute; left: 0; top: .9rem; transform: translateX(-50%); font: italic 500 2.6rem/1 var(--f-amp); color: var(--rojo); background: #fff; padding: .1em .15em; }
.ring { display: grid; place-items: center; width: 5.25rem; height: 5.25rem; border: 2px solid var(--negro); border-radius: 50%; color: var(--rojo); margin-bottom: .6rem; }
.ring svg, .node svg { width: 2.2rem; height: 2.2rem; }
.b4 h3 { font-size: 1.5rem; }
.b4 p { color: var(--gris-oscuro); font-size: 1.05rem; line-height: 1.5; max-width: 17rem; }
.metodo__close { margin-top: 1.5rem; font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.7rem); max-width: 30ch; line-height: 1.2; }

.hacemos { background: var(--negro); color: #fff; padding: clamp(4.5rem, 9vw, 8rem) var(--pad); text-align: center; }
.hacemos h2 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.flow { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 76rem; position: relative; }
.flow::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 2.75rem; height: 2px; background: var(--rojo); }
.flow li { position: relative; display: grid; justify-items: center; align-content: start; gap: 1.25rem; padding: 0 1rem; }
.node { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--rojo); color: #fff; box-shadow: 0 0 0 .6rem var(--negro); position: relative; }
.flow b { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; max-width: 12ch; }

.tray { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }
.tray__num { display: grid; justify-items: start; line-height: .8; }
.tray__num span { font-weight: 800; font-size: clamp(7rem, 20vw, 17rem); letter-spacing: -.06em; color: var(--rojo); }
.tray__num small { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.2rem, 2.4vw, 2rem); margin-top: .8rem; }
.tray__kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 1rem; }
.tray h2 { font-size: clamp(1.9rem, 3.6vw, 3.3rem); margin-bottom: 1.25rem; }
.tray__copy > p:last-child { color: var(--gris-oscuro); max-width: 34rem; }

.marcas { padding: clamp(4rem, 8vw, 7rem) var(--pad); background: #f4f4f4; text-align: center; }
.marcas h2 { font-size: clamp(2rem, 4.6vw, 4rem); max-width: 18ch; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.wall { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: clamp(.9rem, 2vw, 1.75rem) clamp(1.5rem, 3.5vw, 3.25rem); max-width: 80rem; }
.wall li { font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; color: var(--negro); }
.wall .t1 { font-size: clamp(2.2rem, 6.4vw, 5.6rem); }
.wall .t2 { font-size: clamp(1.5rem, 3.6vw, 3rem); }
.wall .t3 { font-size: clamp(1.1rem, 2.2vw, 1.75rem); color: #333; }
.wall .t4 { font-size: clamp(.9rem, 1.4vw, 1.1rem); color: var(--gris-oscuro); font-weight: 700; letter-spacing: 0; }
.wall .t1:first-child { color: var(--rojo); }

@media (max-width: 1100px) {
  .b4, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .b4 li:nth-child(3)::before { display: none; }
  .flow::before { display: none; }
  .tray { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .b4, .flow { grid-template-columns: 1fr; }
  .b4 li + li::before { display: none; }
  .flow li { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 1.25rem; }
  .flow b { max-width: none; }
  .flow { row-gap: 1.75rem; }
  .flow::before { display: block; left: 2.75rem; right: auto; top: 2.75rem; bottom: 2.75rem; width: 2px; height: auto; }
  .tray__num span { font-size: 8.5rem; }
}

/* Making Virtual Goods: titular centrado y dos tarjetas unidas por el & */
.goods__inner { display: block; text-align: center; padding: clamp(5rem, 10vw, 8.5rem) var(--pad); }
.goods__kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; margin-bottom: 1.5rem; }
.goods h2 { font-size: clamp(2rem, 5vw, 4.6rem); max-width: 18ch; margin: 0 auto; }
.goods__pair { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 7.6vw, 6.8rem); max-width: 72rem; margin: clamp(3rem, 6vw, 5rem) auto 0; text-align: left; }
.goods__card { background: #000; color: #fff; padding: clamp(1.75rem, 3.2vw, 3rem); display: grid; align-content: start; gap: 1.25rem; }
.goods__term { font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(1.7rem, 2.7vw, 2.6rem); padding-bottom: 1.25rem; border-bottom: 3px solid var(--rojo); }
.goods__card p:not(.goods__term) { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: #e8e8e8; max-width: none; }
.goods .goods__card strong { border: 0; font-weight: 700; text-transform: none; letter-spacing: 0; color: #fff; }
.goods__amp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(4.5rem, 7vw, 6rem); aspect-ratio: 1; border-radius: 50%; background: var(--rojo); color: #fff; border: .4rem solid #fff; font: italic 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-amp); padding-bottom: .12em; }
@media (max-width: 760px) {
  .goods__pair { grid-template-columns: 1fr; gap: 5.5rem; }
  .goods__amp { top: calc(50% - .1rem); }
}

/* Mural de marcas con logotipos a color: altura por relevancia */
.wall { align-items: center; }
.wall li:not(.txt) { line-height: 0; }
.wall img { width: auto; max-width: 100%; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.wall li:hover img { transform: scale(1.06); }
.wall .t1 img { height: clamp(3rem, 7.5vw, 6.5rem); }
.wall .t2 img { height: clamp(2rem, 4.2vw, 3.6rem); }
.wall .t3 img { height: clamp(2rem, 3.6vw, 3.1rem); }
.wall .t4 img { height: clamp(1.7rem, 2.8vw, 2.4rem); }
.wall .t1:not(.txt) { font-size: 0; }

/* Portada sin tira de vídeos: texto más abajo y sin pisar el & */
.hero { grid-template-rows: 1fr; }
.hero__copy { padding-bottom: clamp(2rem, 5.5vh, 3.5rem); max-width: min(62rem, 57vw); }
.hero__amp { right: -9vw; }
@media (max-width: 1100px) {
  .hero__copy { max-width: none; padding-bottom: 2.25rem; }
  .hero__amp { right: -12vw; }
}

/* Cookies + páginas legales */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linkbtn:hover { color: #fff; text-decoration-color: var(--rojo); }
.player__frame { position: relative; }
.player__consent { position: absolute; inset: 0; display: grid; place-content: center; gap: 1rem; padding: 1.5rem; text-align: center; background: #000; color: #fff; }
.player__consent[hidden], .player__frame iframe[hidden] { display: none; }
.player__consent a { color: #fff; }
.player__consent div { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.legal-top { padding: 1.25rem var(--pad); background: #000; }
.legal-top a { color: #fff; }
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem var(--pad) 4rem; line-height: 1.6; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--linea); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.legal mark { background: #fff3b0; padding: 0 .25em; }
.legal a { color: var(--rojo); }
.legal-foot { background: #000; padding: 1.5rem var(--pad); color: var(--gris); }
.legal-foot a { color: #fff; }
