/* ==========================================================================
   IO Sistemas Audiovisuales — hoja de estilos
   Marca: degradado del logotipo (ciruela → frambuesa → coral → melocotón),
   tipografías Dela Gothic One (titulares) + Poppins (texto), fondo oscuro.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas: sin llamadas a terceros) ---------- */
@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/DelaGothicOne-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colores de marca, muestreados del logotipo */
  --plum: #863b50;
  --raspberry: #d34b6f;
  --coral: #fb6870;
  --tangerine: #ff916c;
  --peach: #ffa777;

  /* Superficies (el azul pizarra #1A242E viene de la web actual) */
  --ink: #0b0d12;
  --ink-2: #11151c;
  --slate: #1a242e;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);

  /* Texto */
  --text: #f6f2ee;
  --text-soft: #d9d2cd;
  --muted: #a9a3a0;
  --on-accent: #1a0b10;

  --grad-brand: linear-gradient(100deg, var(--plum) 0%, var(--raspberry) 34%, var(--coral) 62%, var(--peach) 100%);
  --grad-text: linear-gradient(100deg, var(--raspberry) 0%, var(--coral) 45%, var(--peach) 100%);
  --grad-button: linear-gradient(100deg, var(--coral) 0%, var(--tangerine) 55%, var(--peach) 100%);

  --font-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--coral);
  color: var(--on-accent);
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--peach);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.section-title {
  font-size: clamp(1.8rem, 1.05rem + 4vw, 4.25rem);
  overflow-wrap: break-word;
}

/* Las columnas de rejilla no deben ensancharse por una palabra larga */
.process > *,
.contact__grid > *,
.section__head > * {
  min-width: 0;
}

.section-lead {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

/* ---------- Botones ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--grad-button);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -10px rgba(251, 104, 112, 0.65);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(251, 104, 112, 0.85);
}

/* Botón contorneado: el mismo estilo que el de la web original */
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(11, 13, 18, 0.25);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #fff;
  color: #000;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  transition: transform 0.45s var(--ease-out), background-color 0.35s ease, backdrop-filter 0.35s ease,
    border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 13, 18, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: #fff;
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-cta {
  --btn-pad-y: 10px;
  --btn-pad-x: 20px;
  min-height: 44px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.5);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 28px var(--gutter) 40px;
    background: rgba(11, 13, 18, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    color: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav .nav__cta {
    display: flex;
    margin-top: 28px;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Con el menú abierto, la cabecera no se oculta ni pierde el fondo */
  .site-header.menu-is-open {
    transform: none;
    background: rgba(11, 13, 18, 0.97);
  }
}

@media (min-width: 961px) {
  .nav .nav__cta {
    display: none;
  }
}

/* ==========================================================================
   HERO — película controlada por el scroll (hacia abajo y hacia arriba)
   ========================================================================== */
.hero {
  position: relative;
  height: 460vh; /* recorrido de scroll de la película */
  background: #000;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
}

.hero__poster,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__poster {
  object-fit: cover;
  object-position: 50% 55%;
  z-index: 0;
}

.hero__canvas {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero.is-ready .hero__canvas {
  opacity: 1;
}

/* Viñeteado para asegurar la legibilidad del texto sobre la película */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.62) 32%, rgba(6, 7, 10, 0.12) 62%, rgba(6, 7, 10, 0) 80%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.55) 0%, rgba(6, 7, 10, 0) 22%, rgba(6, 7, 10, 0) 70%, rgba(6, 7, 10, 0.75) 100%);
}

.hero__chapters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.chapter {
  --chapter-anchor: center;
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(640px, calc(100% - 2 * var(--gutter) - 70px));
  opacity: 0;
  transform: translateY(calc(-50% + 36px));
  /* Salida rápida… */
  transition: opacity 0.22s ease, transform 0.4s ease;
}

.chapter.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
  /* …y entrada con un pequeño retardo: nunca se solapan dos textos */
  transition: opacity 0.55s ease 0.2s, transform 0.8s var(--ease-out) 0.2s;
}

/* Al subir, el texto sale hacia abajo (dirección coherente con el scroll) */
.chapter.is-before {
  transform: translateY(calc(-50% - 36px));
}

.chapter__eyebrow {
  margin-bottom: 18px;
}

.chapter__title {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 6rem);
  line-height: 0.98;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.chapter__title--sm {
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5rem);
}

/* En pantallas poco altas el titular no debe desbordar */
.chapter__title {
  font-size: min(clamp(2.6rem, 1.4rem + 5.2vw, 6rem), 12vh);
}

.chapter__title--sm {
  font-size: min(clamp(2.3rem, 1.3rem + 4.2vw, 5rem), 10vh);
}

/* La sombra del titular no debe oscurecer el degradado de la marca */
.chapter__title .gradient-text,
.band__title .gradient-text {
  text-shadow: none;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.45));
}

.chapter__text {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.chapter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.chapter__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--peach);
}

/* Indicador para invitar a hacer scroll */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-hint__line {
  position: relative;
  width: 2px;
  height: 46px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  animation: hint 2.2s var(--ease-out) infinite;
}

@keyframes hint {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

.hero.is-scrolled .scroll-hint {
  opacity: 0;
}

/* Fader "MASTER": muestra el progreso y permite saltar entre capítulos */
.fader::before {
  content: "";
  position: absolute;
  inset: -16px -12px -52px -14px;
  z-index: -1;
  border-radius: 14px;
  background: rgba(6, 7, 10, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.fader {
  position: absolute;
  right: clamp(14px, 3vw, 40px);
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: min(56vh, 460px);
  transform: translateY(-50%);
}

.fader__track {
  position: relative;
  width: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.fader__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(0deg, var(--plum), var(--raspberry) 35%, var(--coral) 65%, var(--peach));
  transform-origin: bottom;
  transform: scaleY(var(--p, 0));
}

.fader__knob {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 18px;
  margin-left: -17px;
  margin-bottom: -9px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f3f3f3, #9d9d9d);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(calc(var(--p, 0) * -1 * min(56vh, 460px)));
}

.fader__knob::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #222;
}

.fader__labels {
  position: relative;
  width: 86px;
  list-style: none;
}

.fader__labels li {
  position: absolute;
  left: 0;
  transform: translateY(50%);
}

.fader__labels button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.fader__labels button::before {
  content: "";
  width: 10px;
  height: 2px;
  background: currentColor;
}

.fader__labels button:hover,
.fader__labels button.is-active {
  color: #fff;
}

.fader__caption {
  position: absolute;
  left: -2px;
  bottom: -38px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.fader__value {
  color: var(--peach);
  font-variant-numeric: tabular-nums;
}

/* Barra de carga de la película */
.hero__loader {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  height: 3px;
  width: 100%;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(var(--loaded, 0));
  transition: transform 0.3s ease, opacity 0.6s ease 0.4s;
}

.hero.is-loaded .hero__loader {
  opacity: 0;
}

@media (max-width: 760px) {
  .hero {
    height: 420vh;
  }

  .hero__poster {
    object-position: 50% 50%;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, 0.72) 0%, rgba(6, 7, 10, 0.1) 30%, rgba(6, 7, 10, 0.2) 45%, rgba(6, 7, 10, 0.92) 78%, rgba(6, 7, 10, 0.96) 100%);
  }

  .chapter {
    --chapter-anchor: bottom;
    top: auto;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 2 * var(--gutter) - 40px);
    transform: translateY(36px);
  }

  .chapter.is-active {
    transform: none;
  }

  .chapter.is-before {
    transform: translateY(-36px);
  }

  /* Antes de empezar a bajar, la portada deja sitio al aviso de scroll */
  html.js:not(.reduced-motion):not(.hero-static) .hero:not(.is-scrolled) .chapter[data-index="0"].is-active {
    transform: translateY(-26px);
  }

  .chapter__text {
    margin-top: 14px;
  }

  .chapter__actions {
    margin-top: 22px;
  }

  .chapter__actions .btn {
    flex: 1 1 auto;
  }

  .fader {
    right: 12px;
    top: calc(var(--header-h) + 24px);
    height: 34vh;
    transform: none;
  }

  .fader::before {
    display: none;
  }

  .fader__knob {
    width: 26px;
    margin-left: -13px;
    transform: translateY(calc(var(--p, 0) * -34vh));
  }

  .fader__labels,
  .fader__caption {
    display: none;
  }

  .scroll-hint {
    bottom: 18px;
    font-size: 0.68rem;
  }

  .scroll-hint__line {
    height: 36px;
  }

  .hero.is-scrolled .scroll-hint,
  .scroll-hint {
    opacity: 0;
  }

  .hero:not(.is-scrolled) .scroll-hint {
    opacity: 1;
  }

  /* En móviles, parte del escenario queda bajo la barra del navegador: se compensa */
  @supports (height: 100svh) {
    .chapter {
      bottom: calc(92px + 100lvh - 100svh + env(safe-area-inset-bottom, 0px));
    }

    .scroll-hint {
      bottom: calc(18px + 100lvh - 100svh);
    }
  }
}

@media (max-width: 340px) {
  html.js:not(.reduced-motion):not(.hero-static) .chapter__eyebrow {
    display: none;
  }
}

/* Pantallas bajas: sin aviso de scroll */
@media (max-height: 620px) {
  .scroll-hint {
    display: none;
  }
}

/* Móviles en horizontal y ventanas muy bajas: textos compactos bajo la cabecera */
@media (max-height: 500px) and (orientation: landscape) {
  .chapter,
  .chapter.is-active,
  .chapter.is-before {
    --chapter-anchor: top;
    top: calc(var(--header-h) + 4px);
    bottom: auto;
    width: min(560px, calc(100% - 2 * var(--gutter) - 90px));
  }

  .chapter {
    transform: translateY(24px);
  }

  .chapter.is-active {
    transform: none;
  }

  .chapter.is-before {
    transform: translateY(-24px);
  }

  html.js:not(.reduced-motion):not(.hero-static) .chapter__eyebrow,
  html.js:not(.reduced-motion):not(.hero-static) .chapter__num {
    display: none;
  }

  .chapter__title,
  .chapter__title--sm {
    font-size: clamp(1.5rem, 8.5vh, 2.4rem);
  }

  .chapter__text {
    margin-top: 8px;
    max-width: 46ch;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .chapter__actions {
    margin-top: 12px;
  }

  .chapter__actions .btn {
    flex: 0 0 auto;
    min-height: 44px;
    --btn-pad-y: 10px;
  }

  .fader__labels,
  .fader__caption {
    display: none;
  }

  .fader::before {
    display: none;
  }

  html.js:not(.reduced-motion):not(.hero-static) .hero:not(.is-scrolled) .chapter[data-index="0"].is-active {
    transform: none;
  }
}

/* Sin JavaScript, con "reducir movimiento" o en pantallas muy bajas (zoom alto):
   la historia se lee completa y apilada, sin película */
.no-js .hero,
.reduced-motion .hero,
.hero-static .hero {
  height: auto;
}

.no-js .hero__stage,
.reduced-motion .hero__stage,
.hero-static .hero__stage {
  position: relative;
  height: auto;
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 64px;
}

.no-js .hero__poster,
.reduced-motion .hero__poster,
.hero-static .hero__poster {
  position: absolute;
}

.no-js .hero__canvas,
.reduced-motion .hero__canvas,
.hero-static .hero__canvas,
.no-js .fader,
.reduced-motion .fader,
.hero-static .fader,
.no-js .scroll-hint,
.reduced-motion .scroll-hint,
.hero-static .scroll-hint,
.no-js .hero__loader,
.reduced-motion .hero__loader,
.hero-static .hero__loader {
  display: none;
}

.no-js .hero__chapters,
.reduced-motion .hero__chapters,
.hero-static .hero__chapters {
  position: relative;
  display: grid;
  gap: 72px;
  padding-inline: var(--gutter);
}

.no-js .chapter,
.reduced-motion .chapter,
.hero-static .chapter,
.no-js .chapter.is-active,
.reduced-motion .chapter.is-active,
.hero-static .chapter.is-active,
.no-js .chapter.is-before,
.reduced-motion .chapter.is-before,
.hero-static .chapter.is-before {
  position: relative;
  inset: auto;
  width: auto;
  max-width: 680px;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

/* ==========================================================================
   Declaración (las palabras se encienden con el scroll)
   ========================================================================== */
.statement {
  position: relative;
  padding: clamp(96px, 16vw, 200px) 0 clamp(80px, 12vw, 160px);
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(211, 75, 111, 0.16), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(255, 167, 119, 0.1), transparent 70%),
    var(--ink);
}

.statement__text {
  max-width: 22ch;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 4vw, 4.6rem);
  line-height: 1.08;
}

.statement__quote {
  margin: 0;
}

.statement__sign {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.statement__sign strong {
  color: var(--text);
  font-weight: 600;
}

.statement__text .w {
  color: rgba(246, 242, 238, 0.3);
  transition: color 0.35s ease;
}

.statement__text .w.is-lit {
  color: var(--text);
}

.statement__text .w.is-accent.is-lit {
  color: var(--peach);
}

.no-js .statement__text .w,
.reduced-motion .statement__text .w {
  color: var(--text);
}

.statement__foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 48px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.statement__foot h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.statement__foot p {
  color: var(--text-soft);
}

.statement__foot .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--coral);
}

/* ---------- Cinta en movimiento (cambia de sentido al subir) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 38px;
  padding-right: 38px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1rem + 3.2vw, 3.6rem);
  line-height: 1;
  white-space: nowrap;
}

.marquee__group .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 242, 238, 0.55);
}

.marquee__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-brand);
  flex: none;
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(88px, 12vw, 160px) 0;
}

.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__head--split {
  grid-template-columns: 1fr;
  align-items: end;
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}

.service:hover {
  border-color: rgba(251, 104, 112, 0.5);
  transform: translateY(-4px);
}

.service__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}

.service__media img {
  position: relative;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  transform: translateY(var(--parallax, 0px)) scale(1.02);
  will-change: transform;
}

.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 21, 28, 0) 55%, rgba(17, 21, 28, 0.95) 100%);
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 6px clamp(20px, 2.4vw, 30px) clamp(24px, 2.6vw, 32px);
}

.service__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--coral);
}

.service h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
}

.service p {
  color: var(--text-soft);
}

.checklist {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.97rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-button);
  box-shadow: 0 0 0 4px rgba(251, 104, 112, 0.14);
}

@media (max-width: 980px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .service:last-child {
    grid-column: 1 / -1;
  }

  .service:last-child .service__media {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 640px) {
  .services {
    grid-template-columns: 1fr;
  }

  .service:last-child .service__media {
    aspect-ratio: 4 / 3.4;
  }
}

/* ==========================================================================
   Eventos — galería horizontal anclada (se desplaza con el scroll en ambos sentidos)
   ========================================================================== */
.events {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--slate) 100%);
}

.events__intro {
  padding-top: clamp(88px, 12vw, 160px);
}

.events__pin {
  position: relative;
}

.events__viewport {
  overflow: hidden;
}

.events__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 8px var(--gutter) clamp(88px, 12vw, 140px);
  padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  list-style: none;
}

.event-card {
  position: relative;
  flex: none;
  width: min(78vw, 440px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow-lg);
}

.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.event-card:hover img {
  transform: scale(1.05);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0) 38%, rgba(6, 7, 10, 0.92) 100%);
}

.event-card__body {
  container-type: inline-size;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(20px, 2.4vw, 30px);
}

.event-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(11, 13, 18, 0.72);
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  /* El titular se adapta al ancho real de la tarjeta */
  font-size: min(clamp(1.5rem, 1.2rem + 1vw, 2.1rem), 11cqi);
}

.event-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-size: min(0.98rem, 6.4cqi);
}

.events__hint {
  display: none;
}

/* Modo anclado (escritorio con movimiento permitido) */
.events.is-pinned .events__pin {
  height: var(--pin-h, 300vh);
}

.events.is-pinned .events__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.events.is-pinned .events__track {
  padding-bottom: 8px;
  will-change: transform;
}

.events.is-pinned .events__intro {
  padding-top: calc(var(--header-h) + 8px);
}

.events.is-pinned .section__head {
  margin-bottom: clamp(20px, 3vh, 36px);
}

.events.is-pinned .event-card {
  width: auto;
  height: clamp(260px, calc(100vh - 380px), 560px);
}

.events.is-pinned .events__hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.events__bar {
  position: relative;
  width: 160px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.events__bar span {
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform-origin: left;
  transform: scaleX(var(--hp, 0));
}

/* Sin anclar (móvil, pantallas bajas, "reducir movimiento" o sin JS): carrusel nativo */
.events:not(.is-pinned) .events__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 104, 112, 0.6) transparent;
  -webkit-overflow-scrolling: touch;
}

.events:not(.is-pinned) .event-card {
  scroll-snap-align: start;
}

.events:not(.is-pinned) .events__track {
  padding-bottom: 14px;
}

.events:not(.is-pinned) .events__viewport {
  margin-bottom: clamp(68px, 10vw, 120px);
}

/* Botones anterior / siguiente: solo con ratón y cuando la galería es un carrusel */
.events__nav {
  display: none;
  justify-content: flex-end;
  gap: 10px;
  max-width: var(--maxw);
  margin: -8px auto 14px;
  padding-inline: var(--gutter);
}

@media (hover: hover) and (pointer: fine) {
  .events:not(.is-pinned) .events__nav {
    display: flex;
  }
}

.no-js .events__nav {
  display: none !important;
}

.events__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.events__btn svg {
  width: 22px;
  height: 22px;
}

.events__btn:hover:not(:disabled) {
  background: #fff;
  color: #000;
}

.events__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.events.is-fit .events__hint {
  display: none;
}

@media (max-width: 899px) {
  .events:not(.is-pinned) .events__viewport {
    scrollbar-width: none;
  }

  .events:not(.is-pinned) .events__viewport::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   Cómo trabajamos — la línea se llena al bajar y se vacía al subir
   ========================================================================== */
.process {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

@media (min-width: 960px) {
  .process {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .process__intro {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }
}

.steps {
  position: relative;
  padding-left: 72px;
}

.steps__list {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__rail {
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps__rail span {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--raspberry), var(--coral), var(--peach));
  transform-origin: top;
  transform: scaleY(var(--sp, 0));
}

.step {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 21, 28, 0.7);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -72px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.step.is-lit {
  border-color: rgba(251, 104, 112, 0.45);
  background: rgba(26, 36, 46, 0.7);
}

.step.is-lit::before {
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(251, 104, 112, 0.15), 0 0 30px rgba(251, 104, 112, 0.45);
}

.step h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
}

.step p {
  color: var(--text-soft);
}

.no-js .steps__rail span,
.reduced-motion .steps__rail span {
  transform: none;
}

/* ==========================================================================
   Banda de montaje (parallax)
   ========================================================================== */
.band {
  position: relative;
  min-height: clamp(520px, 80vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.band__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.9) 0%, rgba(11, 13, 18, 0) 30%, rgba(11, 13, 18, 0.25) 55%, rgba(11, 13, 18, 0.94) 100%);
}

@media (max-width: 760px) {
  .band::before {
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.9) 0%, rgba(11, 13, 18, 0.35) 28%, rgba(11, 13, 18, 0.72) 55%, rgba(11, 13, 18, 0.94) 100%);
  }
}

.band__content {
  padding-block: clamp(64px, 10vw, 120px);
}

.band__title {
  max-width: 16ch;
  font-size: clamp(2.2rem, 1.3rem + 4vw, 4.8rem);
}

.band__text {
  max-width: 52ch;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Trabajos reales
   ========================================================================== */
.works {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 2vw, 28px);
}

.work {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 24px 22px;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0), rgba(6, 7, 10, 0.9));
  font-size: 0.95rem;
  color: #fff;
}

.work figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.works__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 167, 119, 0.28), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(134, 59, 80, 0.55), transparent 60%),
    var(--slate);
  border: 1px solid var(--line);
}

.works__cta h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

.works__cta p {
  color: var(--text-soft);
}

.works__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.work--wide {
  grid-column: 1 / -1;
}

.work--wide img {
  aspect-ratio: 21 / 9;
}

.credits {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.credits__title {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
}

.credits__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
}

.credits__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 21, 28, 0.7);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.credits__list a:hover,
.credits__list a:focus-visible {
  border-color: rgba(251, 104, 112, 0.6);
  background: rgba(26, 36, 46, 0.9);
}

.credits__name {
  font-weight: 600;
  color: var(--text);
}

.credits__meta {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .works {
    grid-template-columns: 1fr;
  }

  .work--wide img {
    aspect-ratio: 16 / 10;
  }
}

/* En móvil el pie de foto va debajo para no tapar la imagen real */
@media (max-width: 640px) {
  .work figcaption {
    position: static;
    padding: 14px 18px 18px;
    background: var(--ink-2);
  }

  .work figcaption strong {
    margin-bottom: 4px;
    font-size: 1.05rem;
  }

  .work img {
    height: auto;
  }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(211, 75, 111, 0.2), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(255, 167, 119, 0.12), transparent 70%),
    var(--ink);
}

.contact__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact__grid > div:first-child {
  container-type: inline-size;
}

.contact__mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.55rem + 1.9vw, 1.45rem);
  font-size: min(clamp(1.05rem, 0.55rem + 1.9vw, 1.45rem), 5.4cqi);
  line-height: 1.25;
  overflow-wrap: normal;
  text-decoration: none;
}

.contact__mail span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 100% 100%;
}

.contact__mail:hover span,
.contact__mail:focus-visible span {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 6px;
}

.contact__list {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-soft);
}

.contact__list svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex: none;
  color: var(--coral);
}

.contact__list a {
  color: var(--text);
  text-decoration-color: rgba(251, 104, 112, 0.6);
  text-underline-offset: 4px;
}

.copy-btn {
  display: flex;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  --btn-pad-y: 6px;
  --btn-pad-x: 14px;
  min-height: 40px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.social a:hover,
.social a:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.social svg {
  width: 18px;
  height: 18px;
}

/* Formulario */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(17, 21, 28, 0.82);
  box-shadow: var(--shadow-lg);
}

.form__full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field legend {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.field .req {
  color: var(--peach);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 18, 0.8);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFA777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option {
  background: var(--ink-2);
  color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d8784;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(251, 104, 112, 0.22);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(4) hue-rotate(320deg);
  cursor: pointer;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff8a8a;
}

.field__error {
  min-height: 0;
  font-size: 0.85rem;
  color: #ffb3b3;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.form__consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--coral);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form__note {
  flex: 1 1 260px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form__status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--peach);
}

.form__status.is-error {
  color: #ffb3b3;
}

@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }

  .form__foot .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  background: #07080b;
}

.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer__brand img {
  width: 150px;
  height: auto;
}

.footer__brand p {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
}

.footer__links {
  display: grid;
  gap: 8px;
  list-style: none;
}

.footer__links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.97rem;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__bottom a {
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Sin JavaScript: el menú desplegable y copiar el email no están disponibles */
.no-js .menu-toggle,
.no-js .copy-btn,
.no-js .to-top {
  display: none;
}

@media (max-width: 960px) {
  .no-js .header-cta {
    display: inline-flex;
    margin-left: auto;
  }
}

/* Botón volver arriba */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s, background-color 0.2s ease;
}

.to-top:hover {
  background: var(--coral);
  color: var(--on-accent);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Aparición al hacer scroll (funciona al bajar y al subir)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.from-top {
  transform: translateY(-40px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reduced-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Página legal / secundaria */
.page {
  padding: calc(var(--header-h) + 64px) 0 96px;
}

.page h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  margin-bottom: 28px;
}

.page h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
}

.page ul {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-left: 1.2em;
}

.page a {
  overflow-wrap: anywhere;
  color: var(--peach);
  text-underline-offset: 3px;
}

.page .btn {
  color: var(--on-accent);
}

.page p,
.page li {
  max-width: 72ch;
  color: var(--text-soft);
}

.page p + p {
  margin-top: 14px;
}
