/* =========================================================
   IDENTIDAD — cambia aquí colores y tipografía
   ========================================================= */
:root {
  --negro: #000;
  --casi-negro: #0b0b0c;
  --gris-oscuro: #1d1d1f;
  --gris: #86868b;
  --gris-claro: #d2d2d7;
  --blanco: #f5f5f7;
  --acento: #f7aa04;         /* ámbar del logo */
  --acento-claro: #ffc53d;
  --acento-oscuro: #b87a00;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ancho: 1200px;
  --suave: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
p { margin: 0; }
.gris { color: var(--gris); }

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
/* Texto solo para lectores de pantalla */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Enlace "Saltar al contenido": aparece al pulsar Tab */
.saltar {
  position: fixed; top: .6rem; left: .6rem; z-index: 100; padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--acento); color: #000; font-weight: 600; transform: translateY(-200%); transition: transform .2s;
}
.saltar:focus { transform: none; text-decoration: none; }
/* Foco siempre visible al navegar con teclado */
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

/* =========================================================
   NAVEGACIÓN — barra fina translúcida
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(0,0,0,.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__fila { display: flex; align-items: center; justify-content: space-between; height: 52px; width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 28px; width: auto; }
.nav__logo:hover { text-decoration: none; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a { color: var(--gris-claro); font-size: 13px; transition: color .3s; }
.nav__menu a:hover { color: #fff; text-decoration: none; }
.nav__cta { padding: .35rem .9rem; border-radius: 99px; background: var(--acento); color: #000 !important; font-weight: 500; }
.nav__boton { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav__boton span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--blanco); transition: transform .35s var(--suave); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 0; }

/* =========================================================
   INTRO: entramos entre el texto y las imágenes
   ========================================================= */
.intro { height: 180vh; position: relative; }
.intro__fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.intro__frente, .intro__fondo { position: absolute; inset: 0; display: grid; align-items: center; }
.intro__frente { padding-top: 52px; z-index: 2; }
.intro__frente .hero__texto { padding: 0; }
.intro__frente .hero__columna, .intro__frente .hero__imagenes, .intro__fondo { will-change: transform, opacity; }
.intro__fondo { z-index: 1; pointer-events: none; place-items: center; text-align: center; opacity: 0; padding: 52px 1.5rem 0; }
.intro__titulo {
  margin: 0; font-size: clamp(2.8rem, 8vw, 7.5rem); font-weight: 700; letter-spacing: -.05em; line-height: .92;
  background: linear-gradient(180deg, #fff 30%, #9a9aa0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__titulo .acento { background: linear-gradient(180deg, var(--acento-claro) 20%, var(--acento-oscuro) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   PROMOCIONES DEL MOMENTO
   ========================================================= */
/* Las fichas suben por debajo del título antes de que este se vaya */
.promos { position: relative; z-index: 2; margin-top: -30vh; padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.promos__rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.promo {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: var(--gris-oscuro); border: 1px solid rgba(255,255,255,.06);
  transition: transform .5s var(--suave), border-color .5s, box-shadow .5s;
}
.promo:hover { transform: translateY(-6px); border-color: rgba(247,170,4,.5); box-shadow: 0 24px 60px rgba(247,170,4,.12); }
.promo__imagen { aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.promo__imagen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--suave); }
.promo:hover .promo__imagen img { transform: scale(1.04); }
.promo__info { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.6rem 1.8rem; flex: 1; }
.promo__info h3 { font-size: 1.5rem; }
.promo__info > p { color: var(--gris-claro); font-size: 15px; line-height: 1.5; }
.promo__info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--gris); font-size: 14px; }
.promo__info li { padding-left: 1rem; position: relative; }
.promo__info li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--acento); }
.promo__lugar { color: var(--acento) !important; font-weight: 600; font-size: 14px !important; margin-top: auto !important; padding-top: .4rem; }
.promo .boton { align-self: flex-start; }
.promo .boton:hover { text-decoration: none; }
.boton--whatsapp { display: inline-flex; align-items: center; gap: .55rem; }
.boton--whatsapp::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.7a2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.7a2.7 2.7 0 0 0 1.8-1.3 2.2 2.2 0 0 0 .2-1.3c-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero__texto {
  width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto;
  padding: clamp(4rem, 12vh, 8rem) 0 4rem;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__antetitulo { color: var(--gris); font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; margin-bottom: .8rem; }
.hero__titulo {
  font-size: clamp(3rem, 6.6vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  background: linear-gradient(180deg, #fff 30%, #9a9aa0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__titulo .acento {
  background: linear-gradient(180deg, var(--acento-claro) 20%, var(--acento-oscuro) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 1.4rem; color: var(--gris); font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* Lista de servicios del hero */
.hero__servicios {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 0;
  max-width: 30rem;
}
.hero__servicios li { display: flex; align-items: baseline; }
.hero__servicios li:not(:last-child)::after { content: "·"; color: #3a3a3d; margin: 0 .55rem; font-size: clamp(1.3rem, 2.3vw, 1.9rem); }
.hero__servicios button {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: -.025em;
  color: #7a7a80; transition: color .35s var(--suave);
}
.hero__servicios button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 2px; border-radius: 2px;
  background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--suave);
}
.hero__servicios button:hover, .hero__servicios button.activo { color: var(--blanco); }
.hero__servicios button.activo::after { transform: scaleX(1); }
.hero__servicios button:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; border-radius: 4px; }

/* Imagen que cambia según el servicio */
.hero__imagenes { position: relative; aspect-ratio: 4 / 5; max-height: 68vh; width: 100%; border-radius: 28px; overflow: hidden; background: var(--casi-negro); }
.hero__imagen {
  position: absolute; inset: 0;
  background:
    var(--img, none) center / cover no-repeat,
    radial-gradient(70% 60% at 35% 30%, hsl(var(--tono) 85% 52% / .85), transparent 70%),
    radial-gradient(60% 50% at 80% 85%, hsl(calc(var(--tono) - 15) 80% 35% / .7), transparent 70%),
    linear-gradient(160deg, hsl(var(--tono) 35% 14%), #050506);
  opacity: 0; transform: scale(1.08);
  transition: opacity .7s var(--suave), transform 1.4s var(--suave);
}
.hero__imagen.activa { opacity: 1; transform: none; }
.hero__imagen span {
  position: absolute; left: 1.4rem; bottom: 1.3rem;
  padding: .4rem .9rem; border-radius: 99px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 500; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .5s .2s, transform .5s .2s var(--suave);
}
.hero__imagen.activa span { opacity: 1; transform: none; }

/* Showreel a pantalla completa, sin transición */
.hero__escena { position: relative; }
.hero__marco {
  --p: 1;
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: var(--casi-negro);
}
.hero__video, .hero__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 1; }
/* Fondo animado provisional (se ve mientras no haya showreel) */
.hero__placeholder { overflow: hidden; background: #050506; }
.hero__placeholder::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(40% 50% at 30% 35%, rgba(247,170,4,.42), transparent 60%),
    radial-gradient(35% 45% at 70% 65%, rgba(214,90,10,.32), transparent 60%),
    radial-gradient(30% 40% at 55% 25%, rgba(255,214,120,.18), transparent 60%);
  animation: deriva 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes deriva { from { transform: translate3d(-8%, -6%, 0); } to { transform: translate3d(8%, 6%, 0); } }
.hero__play {
  position: absolute; z-index: 2; left: 50%; bottom: 2.5rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.3rem .75rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff; font-size: 15px; font-weight: 500;
  opacity: calc(var(--p) * 1.4);
  transition: background .3s;
}
.hero__pausa {
  position: absolute; z-index: 2; right: 1.5rem; bottom: 2.5rem;
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(0,0,0,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font: inherit; font-size: 14px; font-weight: 500;
}
.hero__pausa-icono { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pausa[aria-pressed="true"] .hero__pausa-icono { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sin-video .hero__pausa { display: none; }
.hero__play:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.hero__play-icono { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 4px; }

/* =========================================================
   MANIFIESTO — palabras que se encienden
   ========================================================= */
.manifiesto { height: 220vh; position: relative; }
.manifiesto__fijo { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 1.25rem; }
.manifiesto__texto {
  max-width: 980px;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -.035em;
}
.manifiesto__texto .palabra { color: #2a2a2c; transition: color .4s; }
.manifiesto__texto .palabra.on { color: var(--blanco); }

/* =========================================================
   SECCIONES
   ========================================================= */
.seccion { padding: clamp(6rem, 14vw, 10rem) 0; }
.seccion__cabecera { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 820px; }
.seccion__cabecera h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.seccion__cabecera p { margin-top: 1.2rem; color: var(--gris); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.4; }

/* Trabajos */
.trabajos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.trabajo { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate; }
.trabajo--grande { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.trabajo:hover { text-decoration: none; }
.trabajo__imagen {
  position: absolute; inset: 0; z-index: -1;
  background:
    var(--img, none) center / cover no-repeat,
    radial-gradient(80% 90% at 30% 20%, hsl(var(--tono) 70% 45% / .9), transparent 70%),
    linear-gradient(160deg, hsl(var(--tono) 40% 18%), #070708);
  transition: transform 1.2s var(--suave);
}
.trabajo:hover .trabajo__imagen { transform: scale(1.05); }
.trabajo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 45%, rgba(0,0,0,.65)); }
.trabajo__info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3vw, 2.4rem); }
.trabajo__info span { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }
.trabajo__info h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin: .35rem 0 .25rem; }
.trabajo__info p { color: rgba(255,255,255,.7); }
/* Títulos de los trabajos en mayúsculas (en el código van en minúscula para que los lectores de pantalla los pronuncien bien) */
.trabajo__info h3 { text-transform: uppercase; letter-spacing: -.01em; }
.trabajo__premio {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem;
  padding: .35rem .8rem; border-radius: 99px; background: rgba(0,0,0,.55);
  color: var(--acento) !important; font-size: 13px; font-weight: 600;
}
.trabajo__premio::before { content: "★"; font-size: 12px; }
.trabajo__distinciones { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: .5rem; }
.trabajo__distinciones .trabajo__premio { margin-top: 0; }
.trabajo__premio--seleccion::before { content: "◆"; font-size: 9px; }

/* Servicios — visual fijo + pasos */
.servicios { padding: clamp(6rem, 14vw, 10rem) 0 4rem; background: var(--casi-negro); }
.servicios__pista { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.servicios__visual { position: sticky; top: 15vh; height: 70vh; }
.servicios__pantalla { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.servicios__capa {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--suave), transform 1.2s var(--suave);
}
.servicios__capa.activa { opacity: 1; transform: none; }
.servicios__capa span { font-size: clamp(5rem, 14vw, 11rem); font-weight: 700; letter-spacing: -.06em; color: rgba(255,255,255,.92); mix-blend-mode: overlay; }
.servicios__capa[data-paso="0"] { background: radial-gradient(70% 70% at 30% 30%, #f7aa04, #2a1a00 70%); }
.servicios__capa[data-paso="1"] { background: radial-gradient(70% 70% at 70% 30%, #ffd166, #2b2210 70%); }
.servicios__capa[data-paso="2"] { background: radial-gradient(70% 70% at 30% 70%, #e2630f, #2a0f02 70%); }
.servicios__capa[data-paso="3"] { background: radial-gradient(70% 70% at 70% 70%, #c98a1b, #141210 70%); }
.servicios__lista { list-style: none; margin: 0; padding: 0; }
.servicios__paso { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--suave); }
.servicios__paso.activo { opacity: 1; }
.servicios__paso h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.servicios__paso p { color: var(--gris); font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 30ch; line-height: 1.45; }

/* Estudio — sección clara para contraste */
.seccion--claro { background: var(--blanco); color: var(--gris-oscuro); }
.redes + .seccion--claro { padding-top: 1.5rem; }
/* Título de "El estudio" visible desde el principio para enlazar con la transición */
.redes + .seccion--claro .seccion__cabecera .aparecer { opacity: 1; transform: none; }
.seccion--claro .seccion__cabecera p { color: #6e6e73; }
.cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cifras li { padding: 2.5rem 2rem; border-radius: 24px; background: #fff; border-top: 4px solid var(--acento); }
.cifras strong { display: block; font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #000; }
.cifras span { display: block; margin-top: .6rem; color: #6e6e73; }
.clientes { margin-top: 4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; color: #a1a1a6; font-weight: 600; font-size: 1.15rem; }

/* Contacto */
.contacto__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contacto h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.contacto header > p { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.contacto__datos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .6rem; font-size: 1.15rem; color: var(--gris-claro); }

.formulario { display: grid; gap: 1rem; }
.campo { position: relative; }
.campo input, .campo textarea {
  width: 100%; padding: 1.6rem 1rem .6rem; font: inherit; color: var(--blanco);
  background: var(--gris-oscuro); border: 1px solid transparent; border-radius: 14px;
  transition: border-color .3s, background .3s; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: #232326; }
.campo label {
  position: absolute; left: 1rem; top: 1.1rem; color: var(--gris); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--suave), color .25s;
}
.campo input:focus + label, .campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label, .campo textarea:not(:placeholder-shown) + label { transform: translateY(-.6rem) scale(.75); }
.trampa { position: absolute; left: -9999px; }
.casilla { display: flex; gap: .6rem; align-items: center; color: var(--gris); font-size: 14px; }
.casilla input { accent-color: var(--acento); width: 18px; height: 18px; }
.boton {
  justify-self: start; padding: .85rem 2rem; border: 0; border-radius: 99px;
  background: var(--acento); color: #000; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .3s var(--suave), filter .3s;
}
.boton:hover { filter: brightness(1.12); transform: scale(1.03); }
.boton:disabled { opacity: .5; cursor: wait; transform: none; }
.formulario__estado { min-height: 1.5em; font-size: 15px; }
.formulario__estado.ok { color: var(--acento); }
.formulario__estado.error { color: #ff453a; }

/* Pie */
.pie { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--gris); font-size: 13px; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pie a { color: var(--gris); }
.pie a:hover { color: var(--blanco); }

/* =========================================================
   RIDER TÉCNICO — zoom a través de las letras
   ========================================================= */
.rider { background: #000; }
.rider__escena { height: 190vh; position: relative; }
.rider__fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.rider__fondo, .rider__mascara, .rider__color {
  position: absolute; inset: 0; display: grid; place-items: center; place-content: center; text-align: center;
}
/* Interior de las letras */
.rider__fondo {
  z-index: 1; gap: 1.4rem; padding: 0 1.5rem;
  background:
    linear-gradient(180deg, transparent 62%, #000 100%),
    radial-gradient(60% 55% at 30% 30%, rgba(247,170,4,.55), transparent 70%),
    radial-gradient(55% 50% at 75% 75%, rgba(210,86,12,.45), transparent 70%),
    linear-gradient(160deg, #2a1a04, #0b0703);
  transform-origin: center;
}
.rider__etiqueta { color: var(--acento); font-weight: 600; font-size: clamp(.95rem, 1.4vw, 1.15rem); letter-spacing: .02em; }
.rider__subtitulo { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -.045em; line-height: .98; color: #fff; }
.rider__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
.rider__chips span {
  padding: .5rem 1rem; border-radius: 99px; font-size: 15px; font-weight: 500;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Mismo tamaño y tipografía que "Creamos contigo." pero más grande */
.rider__titulo {
  margin: 0; font-size: clamp(4rem, 15vw, 15rem); font-weight: 700; letter-spacing: -.055em; line-height: .88;
}
/* Negro con letras blancas en modo "multiplicar": lo blanco deja ver el fondo, lo negro lo tapa */
.rider__mascara { z-index: 2; background: #000; color: #fff; mix-blend-mode: multiply; backface-visibility: hidden; }
.rider__color { z-index: 3; pointer-events: none; backface-visibility: hidden; }
.rider__color .rider__titulo { background: linear-gradient(180deg, #fff 30%, #9a9aa0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rider__color .acento { background: linear-gradient(180deg, var(--acento-claro) 20%, var(--acento-oscuro) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Contenido completo del rider */
.rider__detalle {
  padding: 0 0 clamp(6rem, 12vw, 9rem);
  background: #000;
}
.rider__tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem 2.5rem; align-items: stretch; padding-top: clamp(3rem, 6vw, 5rem); }
.rider__tarjeta { padding: 0; }
.rider__tarjeta::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--acento); margin-bottom: 1rem; }
/* Todos los títulos ocupan el alto de dos líneas, alineados abajo: las listas empiezan a la misma altura */
.rider__tarjeta h3 { font-size: 1.5rem; line-height: 1.05; min-height: 2.1em; display: flex; align-items: flex-end; margin-bottom: 1.1rem; }
.rider__tarjeta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--gris-claro); font-size: 15px; }
.rider__tarjeta li { padding-left: 1rem; position: relative; }
.rider__tarjeta li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #5c5c61; }
.rider__pdf { margin-top: 3rem; text-align: center; }
.rider__pdf .boton { display: inline-block; }
.rider__pdf .boton:hover { text-decoration: none; }

@media (max-width: 820px) {
  .rider__tarjeta h3 { min-height: 0; }
  .rider__escena { height: 170vh; }
  .rider__tarjetas { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  .promos__rejilla { grid-template-columns: repeat(2, 1fr); }
  .rider__tarjetas { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   REDES SOCIALES — móvil que se acerca
   ========================================================= */
.redes { background: #000; }
.redes__escena { height: 270vh; position: relative; }
.redes__fijo { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; perspective: 1400px; background: #000; }
.redes__titulo {
  position: absolute; left: 0; right: 0; top: 13vh; text-align: center; margin: 0; z-index: 1;
  font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 700; letter-spacing: -.05em; line-height: .92;
  background: linear-gradient(180deg, #fff 30%, #9a9aa0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.redes__titulo .acento { background: linear-gradient(180deg, var(--acento-claro) 20%, var(--acento-oscuro) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.movil { position: relative; z-index: 2; width: min(300px, 72vw); aspect-ratio: 9 / 19; transform-style: preserve-3d; will-change: transform; }
.movil__cuerpo {
  position: absolute; inset: 0; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #3a3a3e, #121214 60%, #2a2a2e);
  box-shadow: 0 0 0 2px #4a4a50 inset, 0 40px 90px rgba(0,0,0,.7), 0 0 80px rgba(247,170,4,.12);
}
.movil__pantalla { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.movil__isla { position: absolute; z-index: 3; top: 9px; left: 50%; width: 32%; height: 22px; margin-left: -16%; border-radius: 99px; background: #000; }
.movil__app { height: 100%; padding: 12px 12px 0; background: #0c0c0d; color: #f5f5f7; font-size: 11px; line-height: 1.35; overflow: hidden; }
.movil__barra { display: flex; justify-content: space-between; padding: 0 10px 16px; font-weight: 600; font-size: 11px; }
.movil__iconos { width: 38px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #f5f5f7 0 60%, transparent 60% 68%, #f5f5f7 68%); opacity: .85; }
.movil__usuario { font-weight: 700; font-size: 14px; margin: 0 0 12px; }
.movil__perfil { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.movil__avatar { width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--acento), #d0560c); }
.movil__datos { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; justify-content: space-around; text-align: center; font-size: 9.5px; color: #c7c7cc; }
.movil__datos b { display: block; font-size: 13px; color: #fff; }
.movil__bio { margin: 0 0 10px; color: #d2d2d7; font-size: 10.5px; }
.movil__bio b { color: #fff; }
.movil__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.movil__botones span { padding: 6px 0; border-radius: 8px; background: #26262a; text-align: center; font-weight: 600; font-size: 11px; }
.movil__botones span:first-child { background: var(--acento); color: #000; }
.movil__rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -12px; }
.movil__foto {
  aspect-ratio: 4 / 5; background-size: cover; background-position: center;
  background-color: #1a1a1c;
  background-image: radial-gradient(70% 60% at 35% 30%, hsl(var(--tono, 38) 85% 52% / .85), transparent 70%), linear-gradient(160deg, hsl(var(--tono, 38) 35% 16%), #050506);
}
.movil__captura { position: absolute; z-index: 1; left: 0; top: 34px; width: 100%; height: auto; }
/* Con captura real: fondo del color de la app y sin el perfil simulado */
.movil__pantalla:has(.movil__captura) { background: #0b1014; }
.movil__pantalla:has(.movil__captura) .movil__app { visibility: hidden; }
.movil__estado { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 34px; display: none; align-items: center; justify-content: space-between; padding: 0 26px; color: #fff; font-size: 11px; font-weight: 600; background: #0b1014; }
.movil__pantalla:has(.movil__captura) .movil__estado { display: flex; }
.movil__inicio { position: absolute; z-index: 1; bottom: 7px; left: 50%; width: 34%; height: 4px; margin-left: -17%; border-radius: 4px; background: rgba(255,255,255,.75); }
.movil__sombra { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.78); opacity: 0; pointer-events: none; }
.movil__boton {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 10px 40px rgba(247,170,4,.35);
  transition: transform .4s var(--suave);
}
.movil__boton:hover { text-decoration: none; transform: translate(-50%, -50%) scale(1.05) !important; }
.movil__boton.visible-boton { pointer-events: auto; }
/* Si se llega con el teclado, el botón se ve siempre */
.movil__boton:focus-visible { opacity: 1 !important; pointer-events: auto; }


/* Frases a los lados del móvil */
.redes__frases { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.frase { position: absolute; width: min(30vw, 340px); opacity: 0; will-change: transform, opacity; }
.frase strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  /* Mismo ámbar degradado que "redes." */
  background: linear-gradient(180deg, var(--acento-claro) 20%, var(--acento-oscuro) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frase span { display: block; margin-top: .45rem; color: #fff; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.4; }
.frase--izq { right: calc(50% + min(19vw, 250px)); text-align: right; }
.frase--der { left: calc(50% + min(19vw, 250px)); text-align: left; }
.frase--izq strong::after, .frase--der strong::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--acento); vertical-align: middle; }
.frase--izq strong::after { margin-left: .6rem; }
.frase--der strong::before { margin-right: .6rem; }
.frase:nth-child(1) { top: 24%; } .frase:nth-child(2) { top: 34%; }
.frase:nth-child(3) { top: 46%; } .frase:nth-child(4) { top: 56%; }
.frase:nth-child(5) { top: 68%; } .frase:nth-child(6) { top: 78%; }

@media (max-width: 820px) {
  /* En móvil las frases salen de una en una en el centro; después entra el teléfono */
  .redes__frases { inset: 0; }
  .frase, .frase:nth-child(n) { position: absolute; top: 0; left: 1.5rem; right: 1.5rem; width: auto; text-align: center; transform-origin: 50% 0; }
  .frase strong { font-size: 2.2rem; }
  .frase span { margin-top: .5rem; font-size: 1.05rem; }
  .frase--izq strong::after, .frase--der strong::before { display: none; }
  .redes__escena { height: 720vh; }
  .redes__titulo { top: 10vh; }
}

/* =========================================================
   RENDIMIENTO EN MÓVIL
   El desenfoque de fondo (backdrop-filter) es de lo más costoso en un móvil:
   lo sustituimos por fondos sólidos semitransparentes.
   ========================================================= */
@media (max-width: 820px), (hover: none) {
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.92); }
  .hero__imagen span, .hero__play, .hero__pausa, .nav__menu {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hero__imagen span { background: rgba(0,0,0,.7); }
  .hero__play { background: rgba(40,40,42,.85); }
  .hero__pausa { background: rgba(0,0,0,.75); }
  .movil__cuerpo { box-shadow: 0 0 0 2px #4a4a50 inset, 0 20px 40px rgba(0,0,0,.6); }
  .promo:hover, .rider__tarjeta:hover { box-shadow: none; }
}

/* =========================================================
   ANIMACIÓN DE ENTRADA
   ========================================================= */
.aparecer { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--suave), transform 1.2s var(--suave); }
.aparecer.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparecer { opacity: 1; transform: none; transition: none; }
  .hero__placeholder::before { animation: none; }
  .manifiesto { height: auto; }
  .manifiesto__fijo { position: relative; height: auto; padding: 8rem 1.25rem; }
  .manifiesto__texto .palabra { color: var(--blanco); }
}

/* =========================================================
   MÓVIL
   ========================================================= */
@media (max-width: 820px) {
  .nav__boton { display: block; }
  .nav__menu {
    position: fixed; top: 52px; left: 0; right: 0; height: 0; overflow: hidden;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 0 1.5rem;
    background: #000;
    transition: height .5s var(--suave);
  }
  .nav__menu.abierto { height: calc(100vh - 52px); padding-top: 1.5rem; }
  .nav__menu a { font-size: 1.9rem; font-weight: 600; color: var(--blanco); padding: .45rem 0; }
  .nav__cta { background: none; color: var(--blanco) !important; padding: .45rem 0; }
  .nav__boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
  .nav__boton[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

  .hero__texto { grid-template-columns: 1fr; text-align: left; padding-top: 3rem; gap: 2rem; }
  .intro__frente { align-items: start; padding-top: 70px; }
  .intro__frente .hero__texto { gap: 1.4rem; }
  .intro__frente .hero__imagenes { aspect-ratio: 16 / 10; }
  .intro__frente .hero__servicios { margin-top: 1.2rem; }
  .intro__frente .hero__sub { display: none; }
  .promos__rejilla { grid-template-columns: 1fr; }
  .hero__servicios { max-width: none; }
  .hero__imagenes { aspect-ratio: 4 / 3; }
  /* Showreel en móvil: recuadro vertical tipo reel con el vídeo entero (sin recortar) */
  .hero__marco { height: auto; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 70px 0 2rem; background: #000; }
  .hero__video {
    position: relative; inset: auto; z-index: 1;
    height: min(76svh, calc((100vw - 2.5rem) * 16 / 9)); width: auto; aspect-ratio: 9 / 16;
    object-fit: contain; border-radius: 24px;
    background: #050506 url(../img/showreel-fondo.jpg) center / cover no-repeat;
  }
  .hero__placeholder { display: none; }
  .hero__marco.sin-video .hero__placeholder { display: block; }
  .hero__play { position: relative; left: auto; bottom: auto; transform: none; }
  .hero__marco { flex-direction: row; flex-wrap: wrap; align-content: center; column-gap: .6rem; row-gap: 1.1rem; }
  .hero__video { flex: 0 0 auto; }
  .hero__marco > .hero__video { margin: 0 calc((100% - min(76svh, calc((100vw - 2.5rem) * 16 / 9)) * 9 / 16) / 2); }
  .hero__pausa { position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; }
  .hero__play { order: 2; } .hero__pausa { order: 3; }
  .trabajos { grid-template-columns: 1fr; gap: 1rem; }
  .trabajo, .trabajo--grande { aspect-ratio: 4 / 3; border-radius: 20px; }
  /* Fichas con premios o festivales: algo más altas para que quepan las etiquetas */
  .trabajo:has(.trabajo__premio) { aspect-ratio: 4 / 4.4; }
  .trabajo__premio { font-size: 12px; padding: .3rem .7rem; }
  /* Showreel: la pausa arriba a la derecha para no chocar con "Ver trabajos" */
  .hero__pausa { top: 64px; bottom: auto; right: 1rem; }
  .servicios { padding-bottom: 1rem; }
  .seccion { padding: 4.5rem 0; }
  .seccion__cabecera { margin-bottom: 2.2rem; }
  .promo:hover, .rider__tarjeta:hover { transform: none; }
  .nav__menu a { font-size: 1.7rem; padding: .35rem 0; }
  .servicios__pista { grid-template-columns: 1fr; }
  .servicios__visual { display: none; }
  .servicios__lista { counter-reset: paso; display: grid; gap: 3.5rem; }
  .servicios__paso { min-height: 0; opacity: 1; counter-increment: paso; }
  .servicios__paso::before {
    content: "0" counter(paso);
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem;
    border-radius: 16px; font-weight: 700; font-size: 1.1rem; color: #fff;
    background: linear-gradient(135deg, var(--acento-claro), var(--acento-oscuro)); color: #000;
  }
  .servicios__paso:nth-child(3)::before { background: linear-gradient(135deg, #f7aa04, #d0560c); }
  .servicios__paso:nth-child(4)::before { background: linear-gradient(135deg, #ffd166, #b87a00); }
  .cifras { grid-template-columns: 1fr; }
  .contacto__rejilla { grid-template-columns: 1fr; }
}
