/* Montserrat self-hosteada (fuente variable, un archivo cubre 400–800) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --bg-card: rgba(12, 12, 12, 0.72);
  --text: #ffffff;
  --text-muted: #9a9a9a;
  --orange: #f1592a;
  --orange-bright: #ff6b35;
  --orange-glow: rgba(241, 89, 42, 0.55);
  --border-soft: rgba(255, 255, 255, 0.22);
  --border-orange: rgba(241, 89, 42, 0.55);
  --radius: 20px;
  --radius-pill: 999px;
  --transition: 0.28s ease;
  --font: 'Montserrat', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 85% 8%, rgba(241, 89, 42, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 92%, rgba(241, 89, 42, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 30% at 8% 70%, rgba(241, 89, 42, 0.06), transparent 55%);
}

.bg-abstract {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #030304 url('../images/background-desktop.png') center / cover no-repeat;
}

.bg-abstract::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(70, 19, 7, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(2, 2, 3, 0.12), rgba(0, 0, 0, 0.42));
}

@media (max-width: 720px) {
  .bg-abstract {
    background-image: url('../images/background-mobile.png');
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* <picture> transparente al layout: las reglas de img siguen aplicando igual */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 22px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo {
  width: min(240px, 62vw);
  filter: drop-shadow(0 0 22px rgba(241, 89, 42, 0.45));
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

/* Frequency selector — estilo captura */
.freq-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.freq-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(241, 89, 42, 0.35);
}

/* Pill único segmentado (2da captura) */
.frequencies {
  display: flex;
  width: 100%;
  max-width: 480px;
  align-items: stretch;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 22px rgba(0, 0, 0, 0.55);
}

.frequency {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 5px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: #fff;
  line-height: 1.15;
  transition: background var(--transition), box-shadow var(--transition),
    color var(--transition);
}

.freq-city {
  font-size: clamp(0.48rem, 2vw, 0.62rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.9;
}

.freq-hz {
  font-size: clamp(0.8rem, 3vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.frequency:hover {
  background: rgba(241, 89, 42, 0.14);
}

.frequency.is-active {
  background: linear-gradient(180deg, var(--orange-bright) 0%, var(--orange) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 22px var(--orange-glow),
    0 0 44px rgba(241, 89, 42, 0.3);
}

.frequency.is-active .freq-city {
  opacity: 1;
}

/* Player */
.player-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--border-orange);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow:
    0 0 0 1px rgba(241, 89, 42, 0.1),
    0 0 42px rgba(241, 89, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241, 89, 42, 0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.25;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 75%);
}

/* Estado pausado (por defecto): gris, sin pulso */
.live-badge {
  position: relative;
  z-index: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7a7a7a;
  box-shadow: none;
  animation: none;
  transition: background var(--transition);
}

/* Estado en vivo (reproduciendo): rojo con pulso */
.live-badge.is-live {
  color: #fff;
}

.live-badge.is-live .live-dot {
  background: #ff2d2d;
  box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.55);
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 45, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0);
  }
}

/* Cuerpo del player — móvil: apilado y centrado para que entre completo */
.player-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'cover'
    'info'
    'wave'
    'vol'
    'social';
  justify-items: center;
  align-items: center;
  row-gap: 12px;
  width: 100%;
}

/* Columna izquierda: carátula + badge EN VIVO debajo */
.cover-col {
  grid-area: cover;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cover {
  width: min(148px, 42vw);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(241, 89, 42, 0.45);
  box-shadow: 0 0 26px rgba(241, 89, 42, 0.32);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-info {
  grid-area: info;
  min-width: 0;
  width: 100%;
  text-align: center;
}

.track-title {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  word-break: break-word;
  text-shadow: 0 0 20px rgba(241, 89, 42, 0.28);
}

.track-artist {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 500;
}

.waveform-row {
  grid-area: wave;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.play-button {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--orange-bright), var(--orange));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px rgba(241, 89, 42, 0.15),
    0 0 32px var(--orange-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 2;
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 5px rgba(241, 89, 42, 0.2),
    0 0 40px rgba(241, 89, 42, 0.8);
}

.play-button:active {
  transform: scale(0.97);
}

/* Icono SVG base (reemplaza a FontAwesome): hereda tamaño (font-size) y color */
.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.play-button .ico-play {
  display: grid;
  place-items: center;
  line-height: 0;
}

/* Corrimiento óptico del triángulo de play dentro del círculo */
.play-button .ico-play .ico {
  margin-left: 2px;
}

.loader {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 70%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 48px;
  min-width: 0;
  filter: drop-shadow(0 0 10px rgba(241, 89, 42, 0.65));
}

.waveform--left {
  justify-content: flex-end;
}

.waveform--right {
  justify-content: flex-start;
}

.wave-bar {
  flex: 1;
  max-width: 4px;
  min-width: 1.5px;
  height: 18%;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff9a62, var(--orange));
  opacity: 0.85;
}

.waveform.is-playing .wave-bar {
  animation: waveBounce 0.9s ease-in-out infinite alternate;
}

.waveform.is-playing .wave-bar:nth-child(odd) {
  animation-duration: 0.75s;
}

.waveform.is-playing .wave-bar:nth-child(3n) {
  animation-duration: 1.1s;
}

.waveform.is-playing .wave-bar:nth-child(1) { animation-delay: -0.1s; }
.waveform.is-playing .wave-bar:nth-child(2) { animation-delay: -0.25s; }
.waveform.is-playing .wave-bar:nth-child(3) { animation-delay: -0.05s; }
.waveform.is-playing .wave-bar:nth-child(4) { animation-delay: -0.4s; }
.waveform.is-playing .wave-bar:nth-child(5) { animation-delay: -0.15s; }
.waveform.is-playing .wave-bar:nth-child(6) { animation-delay: -0.35s; }
.waveform.is-playing .wave-bar:nth-child(7) { animation-delay: -0.2s; }
.waveform.is-playing .wave-bar:nth-child(8) { animation-delay: -0.45s; }
.waveform.is-playing .wave-bar:nth-child(9) { animation-delay: -0.08s; }
.waveform.is-playing .wave-bar:nth-child(10) { animation-delay: -0.3s; }
.waveform.is-playing .wave-bar:nth-child(11) { animation-delay: -0.18s; }
.waveform.is-playing .wave-bar:nth-child(12) { animation-delay: -0.42s; }

@keyframes waveBounce {
  0% {
    height: 14%;
    opacity: 0.5;
  }
  100% {
    height: 100%;
    opacity: 1;
  }
}

.volume-control {
  grid-area: vol;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.volume-icon {
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--orange);
  font-size: 1rem;
  cursor: pointer;
  filter: drop-shadow(0 0 6px var(--orange-glow));
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--orange) 0%,
    var(--orange) var(--vol, 80%),
    rgba(255, 255, 255, 0.16) var(--vol, 80%),
    rgba(255, 255, 255, 0.16) 100%
  );
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
  cursor: pointer;
}

.volume-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.volume-meter span.label {
  margin-right: 4px;
  align-self: center;
}

.vol-bar {
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.vol-bar:nth-child(2) { height: 4px; }
.vol-bar:nth-child(3) { height: 6px; }
.vol-bar:nth-child(4) { height: 8px; }
.vol-bar:nth-child(5) { height: 10px; }
.vol-bar:nth-child(6) { height: 12px; }
.vol-bar:nth-child(7) { height: 14px; }
.vol-bar:nth-child(8) { height: 16px; }

.vol-bar.is-on {
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange-glow);
}

/* Redes sociales dentro del reproductor */
.social {
  grid-area: social;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-orange);
  color: #fff;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 16px var(--orange-glow);
  transform: translateY(-2px);
}

/* Separa el reproductor de las tarjetas con el mismo aire que hay entre tarjetas */
main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-orange);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 0 28px rgba(241, 89, 42, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(241, 89, 42, 0.2);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.card-visual {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}

.card-visual img {
  max-height: 78px;
  max-width: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(241, 89, 42, 0.4));
}

/* Marco de teléfono para la captura, inclinado como un mockup, sin glow ni sombra.
   La proporción coincide con la captura (1206x2622) para que se vea COMPLETA. */
.card-visual--phone {
  display: block;
  width: auto;
  height: 132px;
  aspect-ratio: 1206 / 2622;
  overflow: visible;
  padding: 3px;
  border-radius: 15px;
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: perspective(800px) rotateY(20deg) rotateZ(-6deg);
  transform-origin: center;
}

/* Selector con doble clase para ganarle al cap de .card-visual img en desktop */
.card-visual.card-visual--phone img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  filter: none;
  transform: none;
}

/* Club Zero: solo la imagen, sin borde ni recorte circular */
.card-visual--club img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card--club .card-title {
  color: var(--orange-bright);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 34ch;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 4px;
}

/* Badges de tienda estilo oficial (dos líneas) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 12px;
  background: #08090a;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.store-badge:hover {
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(241, 89, 42, 0.25);
}

.store-badge .ico {
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-badge__text small {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
  white-space: nowrap;
}

.store-badge__text strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-orange);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.btn:hover {
  background: rgba(241, 89, 42, 0.16);
  box-shadow: 0 0 18px rgba(241, 89, 42, 0.28);
}

.btn--solid {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--solid:hover {
  border-color: var(--orange);
}

.btn--accent {
  color: var(--orange-bright);
  border-color: var(--orange);
  box-shadow: 0 0 14px rgba(241, 89, 42, 0.2);
}

.btn .ico {
  width: 1.05rem;
  height: 1.05rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 12px 0 6px;
}

.footer-legal {
  color: #8a8a8a;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Crédito discreto: diseño y alojamiento por SIS Argentina */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a8a8a;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.credit:hover {
  color: #c4c4c4;
}

.credit strong {
  color: #d0d0d0;
  font-weight: 700;
}

.credit-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(77, 148, 200, 0.35));
}

/* Desktop */
@media (min-width: 720px) {
  .page {
    padding: 20px 24px 26px;
    gap: 22px;
  }

  .logo {
    width: 190px;
  }

  .frequencies {
    padding: 4px;
    max-width: 440px;
  }

  .frequency {
    padding: 7px 12px;
  }

  .freq-city {
    font-size: 0.62rem;
  }

  .freq-hz {
    font-size: 1.05rem;
  }

  .player-card {
    padding: 18px 30px 16px;
  }

  .player-body {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'cover info'
      'cover wave'
      'cover vol'
      'cover social';
    justify-items: stretch;
    column-gap: 30px;
    row-gap: 12px;
  }

  .track-info {
    text-align: left;
  }

  .cover {
    width: 180px;
    border-radius: 18px;
  }

  .track-title {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  }

  .play-button {
    width: 82px;
    height: 82px;
    font-size: 1.65rem;
  }

  .waveform {
    height: 66px;
  }

  .volume-control {
    padding: 0 2px;
  }

  .cards {
    flex-direction: row;
    align-items: stretch;
  }

  .card {
    flex: 1;
    padding: 18px 18px;
    gap: 14px;
  }

  .card-visual {
    width: 62px;
    height: 62px;
  }

  .card-visual img {
    max-height: 62px;
    max-width: 62px;
  }

  .card-visual--phone {
    height: 122px;
  }

  /* La card de la app es más ancha para que los badges entren lado a lado */
  .card--app {
    flex: 1.6;
  }

  .card--app .card-actions {
    flex-wrap: nowrap;
  }
}

@media (min-width: 980px) {
  .cover {
    width: 200px;
  }

  .track-title {
    font-size: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
