/* =========================
  0) INTER (LOCAL – WOFF2) CARGAMOS FUENTE
========================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
   1) VARIABLES / RESET
========================= */
:root {
  --bg: #121212;
  --panel: #181818;
  --panel2: #202020;

  --txt: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.5);

  --accent: #1DB954;
  --accent-press: #1AA34A;

  --radius-lg: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.65);

  --masthead-offset: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--txt);
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* FIX OVERFLOW (evita banda lateral) */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.muted {
  color: var(--muted);
}

.highlight {
  color: var(--accent);
}

/* =========================
   2) TIPOGRAFÍA / UTIL
========================= */
.h1 {
  font-size: clamp(64px, 7.8vw, 132px);
  line-height: 0.92;
  margin: 10px 0 10px;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.h2 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.02em;
}

/* CORRECCIÓN: display block en vez de flex para párrafos de texto */
.lead {
  display: block;
  max-width: 640px;
  margin: 10px;
  line-height: 1.6;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eyebrow {
  margin: 0;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
}

/* =========================
   3) CONTENEDOR PRINCIPAL
========================= */
.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px 0 10px;
  border-radius: 16px;
}

/* =========================
   4) CABECERA / NAVEGACION
========================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  max-width: 1200px;
  margin: 0px auto;
  padding: 14px 18px;
  position: relative;
}

.masthead__brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 20px;
  color: #fff;
}

.masthead__nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

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

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: #22c55e;
  box-shadow:
    0 0 0 6px rgba(29, 185, 84, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.40);
}

.btn--primary:active {
  background: var(--accent-press);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--active {
  background: rgba(29, 185, 84, 0.15) !important;
  border-color: rgba(29, 185, 84, 0.55) !important;
  color: var(--accent) !important;
}

.btn--sm {
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Botón me gusta */
.btn--like {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms ease, background 180ms ease,
              border-color 180ms ease, transform 180ms ease,
              box-shadow 180ms ease;
}

/* Latido suave en botones sin like — llama la atención al usuario */
.btn--like:not(.is-liked) {
  animation: like-pulse 2.4s ease-in-out infinite;
}

@keyframes like-pulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
  50% {
    border-color: rgba(29, 185, 84, 0.55);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.10);
  }
}

.btn--like:hover:not(.is-liked) {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  animation: none;
}

.btn--like.is-liked {
  background: var(--accent);
  border-color: transparent;
  color: #000;
  cursor: default;
  animation: none;
}

.btn--like.is-liked:hover {
  background: #22c55e;
  box-shadow:
    0 0 0 6px rgba(29, 185, 84, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.40);
  transform: none;
}

.like-icon {
  display: flex;
  align-items: center;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn--like:not(.is-liked):hover .like-icon {
  transform: scale(1.25);
}

.btn--like.is-liked .like-icon {
  transform: scale(1.15);
}

.like-count {
  font-size: 12px;
  font-weight: 700;
  min-width: 8px;
}

/* =========================
   TICKER 
========================= */

.ticker {
  width: 100%;
  position: relative;
  z-index: 2;
}

.ticker__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

/* Fades laterales */
.ticker__inner::before,
.ticker__inner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.ticker__inner::before {
  left: 0;
  background: linear-gradient(to right, #121212, transparent);
}

.ticker__inner::after {
  right: 0;
  background: linear-gradient(to left, #121212, transparent);
}

/* TRACK: múltiples copias del texto */
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* TEXTO */
.ticker__track span {
  white-space: nowrap;
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================
   6) CUERPO DEL HERO 
========================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 25px;
  width: 100%;
  margin: auto;
  padding-bottom: 25px;
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr .55fr;
  gap: 44px;
  align-items: center;
}

.hero__right {
  justify-self: end;
  display: grid;
  padding-bottom: 15px;
  gap: 15px;
}

.hero__stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 24, 0.70);
  padding: 20px 20px;
  text-align: center;
}

.stat__label {
  display: block;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}

.stat__value {
  display: block;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 24px;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }

  .hero__left,
  .hero__right {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__right {
    justify-self: center;
    width: 100%;
    max-width: 400px;
    align-items: center;
  }

  .hero__stat {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   7) INPUTS VARIOS
========================= */
.input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 24, 24, 0.92);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  font: inherit;
  font-size: 15px;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input:focus {
  border-color: rgba(29, 185, 84, 0.55);
  box-shadow: 0 0 0 6px rgba(29, 185, 84, 0.12);
}

/* =========================
   8) SECCIONES / FILTROS
========================= */
.section {
  padding: 5px 0;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 75px;
  margin: 18px 0px;
  padding: 0px;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filters {
  position: static;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.40);
}

.filters__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr .8fr .8fr auto;
  gap: 14px;
}

.filters__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.sort-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn--sort {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.55);
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.btn--sort:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
}

.btn--sort.btn--active {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.55);
  color: var(--accent);
}

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

  #clearFilters {
    grid-column: 1 / -1;
  }

  .sort-bar {
    justify-content: center;
  }
}

/* =========================
   9) LAYOUT PRINCIPAL
========================= */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.layout>* {
  position: relative;
  z-index: 2;
}

/* =========================
   10) SESIONES (Cards)
========================= */
.posters {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.62);
  backdrop-filter: blur(8px);
  padding: 18px;
  box-shadow: var(--shadow);
}

.posters__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poster {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;

  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;

  box-shadow:
    inset 0 0 24px rgba(29, 185, 84, 0.15),
    inset 0 0 60px rgba(29, 185, 84, 0.08);
}

.poster:hover::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {

  .poster:hover {
    background: var(--panel2);
    border-color: rgba(29, 185, 84, 0.35);
    transform: translateY(-3px) scale(1.005);
    box-shadow:
      0 0 0 1px rgba(29, 185, 84, 0.18),
      0 0 12px rgba(29, 185, 84, 0.18),
      0 12px 28px rgba(0, 0, 0, 0.45);
  }
}

.poster.is-playing {
  background: var(--panel2);
  border-color: rgba(29, 185, 84, 0.65);
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    0 0 0 1px rgba(29, 185, 84, 0.25),
    0 0 16px rgba(29, 185, 84, 0.35),
    0 0 32px rgba(29, 185, 84, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.55);
  animation: playingGlow 2.2s ease-in-out infinite alternate;
}

@keyframes playingGlow {
  0% {
    box-shadow:
      0 0 24px rgba(29, 185, 84, 0.45),
      0 0 60px rgba(29, 185, 84, 0.25);
  }
  100% {
    box-shadow:
      0 0 36px rgba(29, 185, 84, 0.65),
      0 0 90px rgba(29, 185, 84, 0.35);
  }
}

.poster.is-playing .poster__title::after {
  content: " ▶";
  color: var(--accent);
  font-weight: 900;
}

.poster__media {
  height: 100%;
  min-height: 280px;
  position: relative;
  background: #0e0e0f;
  overflow: hidden;
}

/* Overlay gradiente sobre la imagen para dar profundidad */
.poster__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.1) contrast(1.08) brightness(0.92);
  will-change: transform;
  transition: transform 500ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .poster:hover .poster__img {
    transform: scale(1.06);
  }
}

.poster__body {
  padding: 22px;
}

.poster__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.poster__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

@media (hover: hover) and (pointer: fine) {
  .poster__title {
    transition: letter-spacing 160ms ease;
  }
  .poster:hover .poster__title {
    letter-spacing: -0.01em;
  }
}

.poster__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.badge {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 9px 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.18);
}

.badge--new {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.55);
  color: var(--accent);
  font-weight: 700;
}

.poster__bottom {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

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

.poster__actions .btn--primary:hover {
  box-shadow:
    0 0 0 6px rgba(29, 185, 84, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.40);
}

.poster__notes {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

/* Fade-in sesiones */
@media (hover: hover) {
  .poster {
    animation: fadeUp 260ms ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* =========================
   10.5) PLAYER CUSTOMIZABLE
========================= */
.poster__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.player {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.player__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
}

.player__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.90);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.player__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.player__btn:active { transform: translateY(0); }

.player__btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.player__btn--play {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  transition: transform 0.16s ease, box-shadow 0.22s ease;
}

.player__btn--play:hover {
  background: #22c55e;
  box-shadow:
    0 0 0 8px rgba(29, 185, 84, 0.15),
    0 8px 24px rgba(29, 185, 84, 0.35);
  transform: scale(1.06);
}

.player__time {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.50);
  min-width: 40px;
  text-align: center;
}

.player__seek,
.player__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  outline: none;
  cursor: pointer;
  transition: height 120ms ease;
}

.player__seek:hover,
.player__vol:hover {
  height: 6px;
}

.player__seek:focus-visible,
.player__vol:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

/* Seek en verde */
.player__seek {
  background: linear-gradient(90deg, var(--accent) var(--p, 0%), rgba(255,255,255,0.12) var(--p, 0%));
}

.player__vol {
  width: 100px;
  background: linear-gradient(90deg, rgba(255,255,255,0.65) var(--v, 80%), rgba(255,255,255,0.10) var(--v, 80%));
}

.player__seek::-webkit-slider-thumb,
.player__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 120ms ease;
}

.player__seek::-webkit-slider-thumb:hover,
.player__vol::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.player__seek::-moz-range-thumb,
.player__vol::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.player__seek::-moz-range-track,
.player__vol::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.icon {
  width: 25px;
  height: 25px;
  display: block;
}

/* Responsive player */
@media (max-width: 900px) {
  .hero {
    gap: 10px;
    padding-bottom: 0px;
  }

  .poster {
    grid-template-columns: 1fr;
  }

  .poster__media {
    min-height: 220px;
    margin: 10px 10px 0 10px;
    border-radius: 12px;
    overflow: hidden;
  }

  .poster__img {
    border-radius: 12px;
  }

  .poster__body {
    padding: 18px;
    text-align: center;
  }

  .poster__bottom {
    justify-content: center;
  }

  .poster__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    align-items: stretch;
  }

  .poster__actions .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    justify-content: center;
    text-align: center;
  }

  .poster__actions .btn--like {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 11px;
    max-width: none;
    margin: 0;
    animation: like-pulse-mobile 2.4s ease-in-out infinite;
  }

  .poster__actions .btn--like.is-liked {
    animation: none;
  }

  @keyframes like-pulse-mobile {
    0%, 100% {
      border-color: rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
    }
    50% {
      border-color: rgba(29, 185, 84, 0.65);
      background: rgba(29, 185, 84, 0.15);
      box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.12);
    }
  }

  .poster__head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .player__row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "play . cur dur"
      "seek seek seek seek"
      "mute vol vol vol";
    justify-items: end;
    align-items: center;
    gap: 15px;
  }

  .player__btn--play {
    grid-area: play;
  }

  .player__time--cur {
    grid-area: cur;
  }

  .player__time--dur {
    grid-area: dur;
  }

  .player__seek {
    grid-area: seek;
  }

  .player__btn--mute {
    grid-area: mute;
    border-radius: 12px;
  }

  .player__vol {
    grid-area: vol;
    width: 80%;
  }

  .poster:hover {
    background: var(--panel);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
  }

  .masthead,
  .filters,
  .posters,
  .legal-card {
    backdrop-filter: none !important;
  }

  .masthead {
    box-shadow: none !important;
  }

  .filters {
    box-shadow: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================
   11) CONTACTO + FOOTER
========================= */
.section--tight {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.contact__big {
  margin: 0;
  font-weight: 900;
  font-size: 1.2em;
  letter-spacing: -0.02em;
  color: var(--accent);
  transition: color 180ms ease, transform 180ms ease;
}

.contact__big:hover {
  color: #22c55e;
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .contact {
    padding: 0px 15px 0px 15px;
  }

  .contact__big {
    font-size: 1.1em;
  }
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  margin-bottom: 18px;
  color: var(--txt);
  font-size: 13px;
  text-align: center;
}

/* =========================
   13) TOAST
========================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;

  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 16px;

  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  box-shadow:
    0 0 0 4px rgba(29, 185, 84, 0.25),
    0 18px 60px rgba(0, 0, 0, 0.6);
}

/* =========================
   RESPONSIVE (<400px)
========================= */
@media (max-width: 400px) {
  :root {
    --masthead-offset: 110px;
  }

  .masthead__inner {
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .masthead__nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .masthead__nav .btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .brand__name {
    font-size: 14px;
  }

  .hero__grid {
    padding: 0 12px;
  }

  .hero__left {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .h1 {
    font-size: clamp(54px, 10vw, 64px);
    line-height: 0.95;
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #clearFilters {
    width: 100%;
  }
}

/* =========================
   BOTON TOP
========================= */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent);
  color: #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background: #22c55e;
  box-shadow:
    0 0 0 6px rgba(29, 185, 84, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.40);
  transform: scale(1.1);
}

.scroll-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}

html {
  scroll-behavior: smooth;
}


/* =========================================================
   LEGAL PAGES (Aviso legal / Privacidad)
========================================================= */
.legal-page {
  padding-top: calc(var(--masthead-offset) + 24px);
  padding-bottom: 48px;
}

.legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
}

.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.62);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: 22px;
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-title {
  margin: 0;
}

.legal-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.legal-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(24, 24, 24, 0.55);
}

.legal-h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.legal-p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.legal-p+.legal-p {
  margin-top: 10px;
}

.legal-list {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.legal-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   BG LAYER (HOME + LEGAL PAGES) FONDO PANTALLA
========================================================= */
.hero,
.main,
.legal-page,
#contact,
.footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .ticker {
    display: block !important;
  }
}

/* =========================================================
   BG LAYER GLOBAL FONDO PANTALLA
========================================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url("../img/hero1920x1080-2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 0%;

  opacity: 0.30;
  filter: blur(4px);
  transform: translate3d(0, 0, 0) scale(1.12);
}

@media (max-width: 900px) {
  .bg-layer {
    position: fixed;
    opacity: 0.18;
    filter: none;
    transform: none;
    background-position: 50% 50%;
  }
}

/* =========================
   ACCESIBILIDAD: reduced-motion
   CORRECCIÓN: el ticker se pausa (no se excluye del reset)
   para usuarios con vestigo o fotosensibilidad
========================= */
@media (prefers-reduced-motion: reduce) {
  /* Parar el ticker completamente */
  .ticker__track {
    animation-play-state: paused !important;
  }

  /* Eliminar el resto de animaciones y transiciones */
  *:not(.ticker__track) {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   MINI REPRODUCTOR AHORA SONANDO
========================= */
.now-playing-floating {
  position: fixed;
  bottom: 1.2vw;
  left: 1.7vw;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 12px 16px;

  background: rgba(24, 24, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;

  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;

  opacity: 0;
  transform: translateY(10px);
  transition: 220ms ease;
  max-width: 260px;
}

.now-playing-floating.is-active {
  opacity: 1;
  transform: translateY(0);
  box-shadow:
    0 0 0 4px rgba(29, 185, 84, 0.15),
    0 12px 34px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(29, 185, 84, 0.35);
}

.np-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.np-title {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 300px) {
  .now-playing-floating {
    display: none;
  }
}

/* =========================
   PAGINACION
========================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 10px 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 24, 0.8);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
}

.page-btn.is-active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.18);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pagination-info {
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* =========================
   SKIP LINK (A11Y)
========================= */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 9999;
  transition: 180ms ease;
}

.skip-link:focus {
  top: 18px;
  box-shadow:
    0 0 0 4px rgba(29,185,84,0.18),
    0 8px 22px rgba(0,0,0,0.55);
}

/* =========================
   SKELETON LOADER
========================= */
@keyframes skeleton-pulse {
  0%   { opacity: 0.45; }
  50%  { opacity: 0.75; }
  100% { opacity: 0.45; }
}

.poster--skeleton {
  pointer-events: none;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-block {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.skeleton-line {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  margin-bottom: 12px;
  height: 16px;
}

.skeleton-line--title {
  width: 75%;
  height: 22px;
  margin-top: 4px;
}

.skeleton-line--meta {
  width: 50%;
}

.skeleton-line--short {
  width: 35%;
  height: 12px;
}

@media (max-width: 900px) {
  .skeleton-block {
    min-height: 200px;
  }
}
