/* =====================================================================
   Portafolio de Amon · estilos
   No necesitas editar este archivo para agregar videos o contactos:
   eso se hace en el bloque "EDITA AQUÍ" de index.html.
   ===================================================================== */

:root {
  /* Noche (fondo base) */
  --night-0: #05070c;
  --night-1: #070d1f;
  --night-2: #050914;
  --surface: #0d1631;      /* un paso de tono sobre la noche */
  --surface-2: #142045;

  /* Marca */
  --red: #df2615;
  --red-press: #bf1f10;
  --gold: #f5b82e;
  --sky: #5a3fc8;          /* violeta del cielo */
  --visor: #8ec5eb;
  --rb-pink: #f4498a;
  --rb-orange: #f46b45;
  --rb-yellow: #d8e048;
  --rb-green: #56d49b;
  --rb-purple: #7c67d6;

  /* Texto */
  --ink: #f5f7fc;
  --ink-soft: #b9c2d8;
  --ink-dark: #070d1f;

  /* Tipografía: una sola familia */
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-mark: clamp(112px, 27vw, 430px);   /* el nombre */
  --t-h2: clamp(44px, 6vw, 88px);         /* encabezados de sección */
  --t-big: clamp(24px, 2.4vw, 34px);      /* frases destacadas */
  --t-body: 18px;
  --t-small: 15px;

  /* Espacio */
  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 1240px;
  --section: clamp(104px, 13vw, 200px);
  --radius: 22px;
  --top-h: 68px;   /* alto de la barra superior */

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night-0);
}

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  /* sin fondo propio: el color base está en html y el cielo va detrás */
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 750; letter-spacing: -0.035em; line-height: 0.95; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--ink-dark); }

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-dark);
  font-weight: 700;
  text-decoration: none;
}
.skip:not(:focus) { clip-path: inset(50%); }
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------------------------------------------------------------------
   Fondo atmosférico: cielo con arcoíris → noche estrellada
   --------------------------------------------------------------------- */

/* Capa 1: la noche, fija detrás de toda la página */
.sky {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 100%);
}

/* Capa 2: el cielo de la portada. Crepúsculo violeta (opción 3 elegida
   por Amon): pasa por el horizonte con arcoíris y un brillo de atardecer,
   y se oscurece hasta fundirse con la noche. Es parte de la página (no
   depende de JavaScript ni de animaciones). --dusk es lo que dura el
   paso del violeta a la noche por debajo de la portada.
   taste-skill-ignore: el brief pide este degradado atmosférico. */
.sky-day {
  --dusk: clamp(760px, 110svh, 1200px);
  position: absolute;
  top: calc(-1 * var(--top-h));
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--dusk));
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 300px at 50% calc(100% - var(--dusk) + 20px),
      rgb(253 103 160 / .40), rgb(253 136 65 / .12) 55%, transparent 100%),
    linear-gradient(180deg,
      #3b2a9e 0,
      #5a3fc8 calc((100% - var(--dusk)) * .45),
      #7c67d6 calc((100% - var(--dusk)) * .94),
      #6d5ac9 calc(100% - var(--dusk) * .94),
      #4f3ea6 calc(100% - var(--dusk) * .82),
      #33287a calc(100% - var(--dusk) * .66),
      #1e1a52 calc(100% - var(--dusk) * .48),
      #110f33 calc(100% - var(--dusk) * .30),
      #070d1f calc(100% - var(--dusk) * .12),
      rgb(7 13 31 / 0) 100%);
}

/* Capa 3: estrellas fijas, por encima del cielo y la noche */
.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.sky-stars {
  position: absolute;
  inset: 0;
  background-image: url("img/estrellas.svg");
  background-size: 600px 600px;
  opacity: .34;
}

/* En pantallas amplias, más estrellas en los laterales */
.sky-stars--sides {
  background-size: 380px 380px;
  background-position: 170px 90px;
  opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 24%, transparent 76%, #000 100%);
}

@media (min-width: 1280px) {
  .sky-stars--sides {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 6%, transparent calc(50% - var(--max) / 2 + 80px), transparent calc(50% + var(--max) / 2 - 80px), #000 94%, #000 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 6%, transparent calc(50% - var(--max) / 2 + 80px), transparent calc(50% + var(--max) / 2 - 80px), #000 94%, #000 100%);
    opacity: .9;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sky-stars--sides { animation: twinkle 7s ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: .55; } to { opacity: .95; } }
}

/* La portada y su horizonte de arcoíris */
.hero-band {
  position: relative;
  overflow-x: clip;   /* el arcoíris puede ser más ancho que la pantalla sin causar desborde */
}

.rainbow {
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 50%;
  width: max(100%, 1180px);
  max-width: none;
  height: auto;
  aspect-ratio: 1600 / 600;
  transform: translate(-50%, -90%);
  opacity: .92;
  pointer-events: none;
}

@media (max-width: 640px) {
  .rainbow { width: 900px; left: -40px; transform: translate(0, -86%); }
}

/* ---------------------------------------------------------------------
   Botones (planos, redondos)
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.97); }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-press); }

.btn--light { background: rgb(255 255 255 / .1); color: var(--ink); }
.btn--light:hover { background: rgb(255 255 255 / .18); }

.btn--white { background: #fff; color: var(--red-press); }
.btn--white:hover { background: var(--ink-dark); color: #fff; }

.btn--ghost {
  min-height: 48px;
  padding: 10px 22px;
  background: rgb(255 255 255 / .1);
  color: var(--ink);
}
.btn--ghost:hover { background: rgb(255 255 255 / .18); }

/* ---------------------------------------------------------------------
   Barra superior
   --------------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--top-h);
  padding-top: 20px;
}

.top-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -14px; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color .2s var(--ease);
}
.top-nav a:hover { background: rgb(255 255 255 / .14); }
.top-nav .only-sm { display: none; }

.top-cta { min-height: 48px; padding: 10px 24px; }

@media (max-width: 760px) {
  .top-nav .hide-sm { display: none; }
  .top-nav .only-sm { display: inline-flex; }
}

/* ---------------------------------------------------------------------
   Portada
   --------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(32px, 4vw, 52px);
  min-height: calc(100svh - var(--top-h));
  /* la franja inferior queda libre para el horizonte con arcoíris */
  padding-block: clamp(28px, 6vh, 72px) clamp(200px, 22vw, 320px);
}

.hero-title { font-weight: 800; }

.hero-name {
  display: flex;
  align-items: baseline;
  margin-left: -0.02em;
  font-size: var(--t-mark);
  line-height: .8;
  letter-spacing: -0.065em;
  white-space: nowrap;
  transform-origin: 0 100%;
  scale: var(--mark-scale, 1);
}

.hero-o {
  width: .7em;
  height: .7em;
  margin: 0 .035em 0 .055em;
  align-self: baseline;
  translate: 0 .05em;
  border-radius: 50%;
}

.hero-role {
  display: block;
  margin-top: .22em;
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.hero-lede {
  max-width: 34ch;
  font-size: var(--t-big);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Sobre el cielo azul, el botón secundario usa un tono noche para mantener el contraste */
.hero .btn--light { background: rgb(7 13 31 / .34); }
.hero .btn--light:hover { background: rgb(7 13 31 / .5); }

@media (max-width: 860px) {
  .hero { gap: 36px; min-height: 0; padding-block: 36px clamp(170px, 36vw, 280px); }
}
@media (max-width: 640px) {
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------------
   Secciones de trabajos (carruseles)
   --------------------------------------------------------------------- */

.work { padding-top: var(--section); }

.work-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 40px;
}
.work-head h2 { font-size: var(--t-h2); }
.work-head > p,
.work-intro { max-width: 38ch; justify-self: end; }
.work-head p { color: var(--ink); font-size: 20px; line-height: 1.45; }
.work-head .price-note { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

@media (max-width: 860px) {
  .work-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .work-head > p,
  .work-intro { justify-self: start; }
}

.reel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 24px;
}

.reel-tabs { display: flex; flex-wrap: wrap; gap: 10px; }

.reel-tab {
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .09);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.reel-tab:hover { background: rgb(255 255 255 / .17); }
.reel-tab:active { transform: scale(.97); }
.reel-tab[aria-selected="true"] { background: var(--ink); color: var(--ink-dark); }
.reel-tab-price { margin-left: 8px; font-weight: 500; opacity: .72; white-space: nowrap; }

/* Precio de la categoría elegida, justo debajo de las pestañas */
.reel-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px clamp(28px, 4vw, 56px);
  margin-bottom: 20px;
}
.price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.price-amount {
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.price-detail { color: var(--ink-soft); font-size: 15px; white-space: nowrap; }

.reel-arrows { display: flex; gap: 10px; flex: none; }

.reel-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .09);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.reel-arrow:hover:not(:disabled) { background: rgb(255 255 255 / .18); }
.reel-arrow:active:not(:disabled) { transform: scale(.94); }
.reel-arrow:disabled { opacity: .3; cursor: default; }
.reel-arrows[hidden] { display: none; }

@media (max-width: 640px) {
  .reel-bar { flex-direction: column; align-items: stretch; }
  .reel-arrows { display: none; }   /* en celular se desliza con el dedo */
  /* en celular la pista llega al borde de la pantalla para invitar a deslizar */
  .reel-track {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .reel-tabs { gap: 8px; }
  .reel-tab { padding: 10px 18px; }
  /* en celular, cada precio de shorts lleva su duración debajo, en dos columnas */
  .reel-price--tall { gap: 8px 36px; }
  .reel-price--tall .price-item { flex-direction: column; align-items: flex-start; }
}

.reel-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  padding: 6px 0 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track:focus-visible { outline-offset: -3px; }

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

.card {
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
}
[data-format="wide"] .card { --card-w: clamp(272px, 38vw, 540px); }
[data-format="tall"] .card { --card-w: clamp(216px, 21vw, 288px); }
@media (max-width: 640px) {
  [data-format="wide"] .card { --card-w: 84vw; }
  [data-format="tall"] .card { --card-w: 62vw; }
}

.card-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
[data-format="wide"] .card-media { aspect-ratio: 16 / 9; }
[data-format="tall"] .card-media { aspect-ratio: 9 / 16; }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card-link:hover .card-media img { transform: scale(1.04); }

.card-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transition: transform .25s var(--ease);
}
.card-link:hover .card-play { transform: scale(1.1); }

/* Si la miniatura no carga, queda una tarjeta con enlace */
.card-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 24px 24px 96px;
  font-size: var(--t-big);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card-fallback small { font-size: var(--t-small); font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.card.is-broken img { display: none; }
.card.is-broken .card-fallback { display: grid; }

/* Póster para TikTok / Instagram (sin miniatura confiable) */
.card-poster {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--ink-dark);
}
.card-poster[data-tone="0"] { background: var(--rb-pink); }
.card-poster[data-tone="1"] { background: var(--rb-orange); }
.card-poster[data-tone="2"] { background: var(--rb-yellow); }
.card-poster[data-tone="3"] { background: var(--rb-green); }
.card-poster[data-tone="4"] { background: var(--visor); }

.poster-cat { font-size: 18px; font-weight: 650; line-height: 1.2; }
.poster-big {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.05em;
}
.poster-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  transition: transform .25s var(--ease);
}
.card-link:hover .poster-cta { transform: translateX(4px); }

.card-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 14px 4px 0;
  font-size: var(--t-small);
  line-height: 1.35;
}
.card-title { color: var(--ink); font-size: 18px; font-weight: 600; flex-basis: 100%; }
.card-meta { color: var(--ink-soft); }

.reel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}
.reel-count { color: var(--ink-soft); font-size: var(--t-small); }
.reel-quote { min-height: 48px; }

.reel-empty { padding: 32px; border-radius: var(--radius); background: var(--surface); }

/* Animación al cambiar de categoría */
@media (prefers-reduced-motion: no-preference) {
  .card.is-entering > .card-link { animation: card-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes card-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------------
   Sobre mí
   --------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  padding-top: var(--section);
}
.about h2 { font-size: var(--t-h2); margin-bottom: 40px; }

.facts { display: grid; gap: 14px; }
.facts li { font-size: var(--t-big); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.bio { max-width: 40em; padding-top: 12px; font-size: 20px; line-height: 1.6; }
.bio > p + p, .bio-more p + p { margin-top: 1em; }
.bio-hello {
  margin-bottom: .5em;
  font-size: var(--t-big);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bio-more { margin-top: 1em; overflow: hidden; }
.bio.is-collapsed .bio-more {
  max-height: 5.4em;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 10%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .bio-more.is-animating { transition: max-height .5s var(--ease); }
}

.bio-toggle { margin-top: 16px; }
.bio-goal {
  margin-top: 40px;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about h2 { margin-bottom: 28px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .facts li { font-size: 22px; }
  .bio { font-size: 18px; padding-top: 0; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------
   Contacto
   --------------------------------------------------------------------- */

.contact { padding-top: var(--section); }

.contact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
  margin-bottom: 40px;
}
.contact-head h2 { font-size: var(--t-h2); }
.contact-head p { max-width: 40ch; justify-self: end; font-size: 20px; line-height: 1.45; }

.contact-list { display: grid; gap: 12px; }

.contact-row {
  display: grid;
  grid-template-columns: clamp(110px, 14vw, 190px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 32px;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}
.contact-row:nth-child(even) { background: var(--surface-2); }
.contact-row[hidden] { display: none; }

.contact-label { color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.contact-value {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  user-select: all;
  -webkit-user-select: all;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.contact-actions .btn[hidden] { display: none; }

.copy-status { min-height: 1.5em; margin-top: 12px; color: var(--gold); font-size: var(--t-small); }

@media (max-width: 860px) {
  .contact-head { grid-template-columns: 1fr; }
  .contact-head p { justify-self: start; }
  .contact-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-row .btn, .contact-actions { justify-self: start; margin-top: 8px; }
  .contact-actions { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------
   Pie de página
   --------------------------------------------------------------------- */

.foot {
  position: relative;
  margin-top: var(--section);
  overflow: hidden;
  background: var(--red);
  color: #fff;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(72px, 9vw, 128px);
}

.foot-call { display: grid; justify-items: start; gap: 32px; }
.foot-title {
  max-width: 11ch;
  font-size: var(--t-h2);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: .95;
}

.foot-links { display: grid; gap: 2px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(64px, 8vw, 112px);
  font-size: var(--t-small);
}
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }

.foot-mark {
  margin: 0 0 -0.2em calc(var(--gutter) - .06em);
  color: var(--ink-dark);
  font-size: clamp(150px, 34vw, 560px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -0.07em;
  white-space: nowrap;
  user-select: none;
}

.foot :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------
   Reproductor
   --------------------------------------------------------------------- */

.player {
  width: min(100% - 24px, 1100px);
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--night-1);
  color: var(--ink);
  overflow: hidden;
}
.player.is-tall { width: min(100% - 24px, 440px); }
.player::backdrop { background: rgb(3 5 12 / .86); }

.player-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 22px;
}
.player-title {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-open { min-height: 48px; padding: 10px 20px; font-size: 15px; }
.player-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .1);
  cursor: pointer;
}
.player-close:hover { background: rgb(255 255 255 / .2); }

.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player.is-tall .player-frame { aspect-ratio: 9 / 16; max-height: calc(100svh - 110px); margin-inline: auto; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 520px) {
  .player-title { display: none; }
  .player-bar { justify-content: space-between; padding-left: 12px; }
}

/* ---------------------------------------------------------------------
   Entradas al hacer scroll (solo con JS y movimiento permitido)
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .motion-ok .reveal > * {
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .motion-ok .reveal:not(.is-in) > * { opacity: 0; transform: translateY(24px); }

  .motion-ok .hero-title, .motion-ok .hero-foot { animation: rise .9s var(--ease) both; }
  .motion-ok .hero-foot { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
