/* ═══════════════════════════════════════════════════════
   EL CANTANTE DEL GOL FM — style.css
   Un solo sistema visual, tomado del popup:
   azul profundo + dorado + blanco. Mobile-first.
   ═══════════════════════════════════════════════════════ */

:root {
  /* Marca */
  --navy-950: #000d22;
  --navy-900: #001533;
  --navy-850: #001844;
  --navy-700: #002d6e;
  --navy-600: #004aaa;
  --navy-500: #0066dd;
  --gold:      #FFD700;
  --gold-deep: #FFA500;
  --live:      #ff3048;
  /* Naranja de la marca de Javier Fernández (logo) */
  --orange-1:  #DA3518;
  --orange-2:  #F08A2C;
  --orange-3:  #F9AE3A;
  --orange-grad: linear-gradient(90deg, var(--orange-1), var(--orange-2), var(--orange-3));

  --white:      #ffffff;
  --text-soft:  rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.62);

  /* Superficies */
  --card-bg: linear-gradient(145deg, #004aaa 0%, #002d6e 52%, #001844 100%);
  --card-line: rgba(255, 215, 0, 0.38);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.10);
  --gold-grad: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 74, 170, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --shadow-gold: 0 8px 24px rgba(255, 165, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.2);

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: inherit; }
/* Texto solo para Google y lectores de pantalla (no se ve) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(0, 102, 221, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 70% 40% at 100% 100%, rgba(255, 165, 0, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-850) 0%, var(--navy-950) 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 1px; line-height: 1.05; }
.gold { color: var(--gold); text-shadow: 0 0 22px rgba(255, 215, 0, 0.45); }

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


/* ─── Tarjeta base (misma del popup) ─── */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-1), var(--orange-2), var(--orange-3), var(--orange-2), var(--orange-1));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}


/* ─── Botones ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 165, 0, 0.55); }
.btn-gold:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; white-space: nowrap; }

.btn-outline {
  padding: 12px 20px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy-900); }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }
.icon-btn-sm { width: 30px; height: 30px; }


/* ═══════════════ LAYOUT ═══════════════ */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding:
    calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.main { display: flex; flex-direction: column; gap: 28px; }


/* ═══════════════ HEADER ═══════════════ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Foto de Javier en círculo con aro naranja (colores de su marca) */
.avatar {
  flex: none;
  width: 62px; height: 62px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-1), var(--orange-3));
  box-shadow: 0 0 18px rgba(240, 138, 44, 0.45);
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy-900);
}

/* Logo "Javier Fernández — El cantante del gol" */
.brand-logo { line-height: 0; }
.brand-logo img { height: 60px; width: auto; }

/* Columna derecha: pastilla MÚSICA/EN VIVO y debajo "Radio deportiva FM" */
.header-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--text-muted);
}
.brand-tag strong { color: var(--orange-3); }

/* Pastilla de estado: MÚSICA / EN VIVO */
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-line);
  color: var(--gold);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-live {
  color: #fff;
  background: var(--live);
  border-color: var(--live);
  box-shadow: 0 0 24px rgba(255, 48, 72, 0.55);
}
.pill-live .pill-dot { animation: blink 1.1s ease-in-out infinite; background: #fff; }


/* ═══════════════ REPRODUCTOR ═══════════════ */
.player {
  padding: 30px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fondo animado (partículas fluidas) detrás de todo lo del reproductor */
.player-fx {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.player > :not(.player-fx) { position: relative; z-index: 1; }
.player::before { z-index: 2; }

.cover-wrap { position: relative; margin-bottom: 18px; }
.cover {
  width: 250px; height: 250px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 215, 0, 0.15);
  background: var(--navy-700);
}
.live-ribbon {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--live);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 48, 72, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.np-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.np-title {
  margin-top: 6px;
  font-size: clamp(26px, 7.5vw, 34px);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.np-artist { margin-top: 2px; font-size: 15px; color: var(--text-soft); }

.controls { margin: 22px 0 14px; }

/* Botón PLAY (dorado como el CTA del popup) */
.play {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad);
  color: var(--navy-900);
  box-shadow: 0 10px 34px rgba(255, 165, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(0.95); }
.play svg { width: 38px; height: 38px; fill: currentColor; grid-area: 1 / 1; }
.play .i-play { margin-left: 4px; }
.play .i-pause, .play .spinner { display: none; }
.play-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.35);
  animation: ring 2.6s ease-out infinite;
  pointer-events: none;
}
.play-ring.r2 { animation-delay: 1.3s; }
.spinner {
  grid-area: 1 / 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(0, 21, 51, 0.25);
  border-top-color: var(--navy-900);
  animation: spin 0.8s linear infinite;
}

body.is-playing .play .i-play,
body.is-loading .play .i-play { display: none; }
body.is-playing .play .i-pause { display: block; }
body.is-loading .play .spinner { display: block; }

/* Ecualizador */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 30px; }
.eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--gold-deep), var(--gold));
  transform-origin: bottom;
  transform: scaleY(0.18);
  opacity: 0.45;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
body.is-playing .eq i { opacity: 1; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(3n)   { animation-duration: 0.7s; }
.eq i:nth-child(3n+1) { animation-duration: 1.1s; }
.eq i:nth-child(4n)   { animation-delay: -0.3s; }
.eq i:nth-child(5n)   { animation-delay: -0.6s; }

.player-msg {
  margin-top: 12px;
  min-height: 1.5em;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.volume {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(240px, 100%);
  color: var(--text-muted);
}
.volume input { flex: 1; accent-color: var(--gold); }
/* En celulares el volumen lo manejan los botones del teléfono */
@media (pointer: coarse) { .volume { display: none; } }

/* Estado EN VIVO: la tarjeta se enciende en rojo */
body.is-live .player { border-color: rgba(255, 48, 72, 0.7); box-shadow: var(--shadow-card), 0 0 50px rgba(255, 48, 72, 0.35); }
body.is-live .player::before { background: linear-gradient(90deg, var(--live), #ff8a9a, var(--live)); background-size: 200% 100%; }
body.is-live .live-ribbon { opacity: 1; }
body.is-live .np-label { color: #ff8a9a; }
body.is-live .cover { border-color: var(--live); }


/* ═══════════════ INSTALAR (tarjeta) ═══════════════ */
.install-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}
.install-icon img { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.install-copy { flex: 1; min-width: 0; }
.install-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.install-text { font-size: 13px; color: var(--text-muted); margin-top: 2px; }


/* ═══════════════ SECCIONES ═══════════════ */
.section { text-align: center; }
.section-title { font-family: var(--font-display); font-size: 30px; letter-spacing: 1px; }
.section-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Redes: mismas tarjetas de vidrio, solo el ícono lleva el color de la red */
.social {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.social-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease-bounce), border-color 0.2s, background 0.2s;
}
.social-tile svg { width: 30px; height: 30px; fill: var(--net); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--net) 45%, transparent)); }
.social-tile:hover { transform: translateY(-4px); border-color: var(--card-line); background: rgba(255, 255, 255, 0.08); }
.social-tile:active { transform: scale(0.97); }
@media (min-width: 480px) { .social { grid-template-columns: repeat(4, 1fr); } }

/* ═══════════════ ESPACIOS DE PATROCINIO ═══════════════
   Sin patrocinador: "Tu marca aquí" (abre los paquetes).
   Con patrocinador (CONFIG.SPONSORS en script.js): su imagen.
   - Dentro del reproductor (celular/tablet): 1200×400 px (3:1)
   - Laterales (computador ≥1100 px): 300×600 px (1:2)            */
.sponsor-slot {
  position: relative;
  display: flex;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r-md);
  border: 1px dashed rgba(255, 215, 0, 0.55);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(240, 138, 44, 0.06) 50%, rgba(0, 102, 221, 0.16));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.sponsor-slot:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(255, 165, 0, 0.25); }
.slot-tag {
  position: absolute; top: 8px; left: 12px;
  font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-muted);
}
.slot-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.slot-title { font-size: 28px; line-height: 1; }
.slot-text { font-size: 12.5px; line-height: 1.35; color: var(--text-soft); }
.slot-cta {
  flex: none;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-size: 13px; font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}
/* Con patrocinador real: solo su imagen + etiqueta */
.sponsor-slot.has-sponsor { border-style: solid; border-color: var(--card-line); background: var(--navy-850); padding: 0; }
.sponsor-slot.has-sponsor img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-sponsor .slot-tag { z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(0, 13, 34, 0.72); color: var(--text-soft); }

/* Dentro del reproductor: franja horizontal debajo del play */
.sponsor-inline {
  width: 100%;
  min-height: 104px;
  margin-top: 22px;
  padding: 24px 14px 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.sponsor-inline.has-sponsor { aspect-ratio: 3 / 1; min-height: 0; }

/* Laterales: solo en computador, fijos en el espacio vacío de cada lado */
.sponsor-side { display: none; }
.sponsor-tall {
  width: 100%;
  aspect-ratio: 1 / 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 16px;
  text-align: center;
}
.sponsor-tall .slot-title { font-size: clamp(34px, 3vw, 46px); }
@media (min-width: 1100px) {
  .sponsor-side {
    --side: calc((100vw - 560px) / 2);
    --w: min(300px, calc(var(--side) - 96px), calc((100vh - 140px) / 2));
    display: block;
    position: fixed;
    z-index: 5;
    top: 50%;
    width: var(--w);
    transform: translateY(-50%);
    animation: fade-in 0.6s 0.3s both;
  }
  .sponsor-left { left: calc((var(--side) - var(--w)) / 2); }
  .sponsor-right { right: calc((var(--side) - var(--w)) / 2); }
  .sponsor-inline { display: none; }      /* en computador van a los lados */
}

/* Anúnciate */
.advertise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px 20px;
}
.advertise-title { font-size: 26px; }
.advertise-text { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
@media (min-width: 480px) {
  .advertise { flex-direction: row; align-items: center; justify-content: space-between; }
}


/* ═══════════════ FOOTER ═══════════════ */
.footer { margin-top: 44px; text-align: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--card-line), transparent); margin-bottom: 26px; }
.footer-brand { display: inline-block; opacity: 0.9; transition: opacity 0.2s; }
.footer-brand:hover { opacity: 1; }
.footer-brand img { width: 170px; height: auto; }
.copy { margin-top: 14px; font-size: 11px; color: var(--text-muted); }
.footer-links {
  margin-top: 18px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.footer-links a, .link-btn {
  color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--card-line);
}
.link-btn { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.footer-links a:hover, .link-btn:hover { color: var(--gold); }


/* ═══════════════ SISTEMA ÚNICO ═══════════════ */
.system { padding: 26px 22px 22px; text-align: center; }
.system-title { margin-top: 2px; font-size: 34px; }
.system-text { margin: 10px auto 0; max-width: 460px; font-size: 14.5px; line-height: 1.6; color: var(--text-soft); }
.system-text strong { color: var(--white); font-weight: 600; }
.system-flow { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.system-flow li {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-line);
}
.system-flow strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 36px; line-height: 1;
  color: var(--gold); text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}
.system-flow span { margin-top: 4px; font-size: 12px; color: var(--text-soft); }


/* ═══════════════ SOBRE LA RADIO + PREGUNTAS ═══════════════ */
.about-text {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.about-text strong { color: var(--white); font-weight: 600; }
.faq-title { font-size: 26px; }
.faq { margin-top: 14px; display: grid; gap: 10px; text-align: left; }
.faq details {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: var(--card-line); background: rgba(255, 255, 255, 0.07); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-size: 15px; font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--gold);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.faq details a { color: var(--gold); text-underline-offset: 3px; }


/* ═══════════════ PÁGINA DE PRIVACIDAD / 404 ═══════════════ */
a.brand { color: inherit; text-decoration: none; }
.legal { padding: 30px 22px; }
.legal-title { font-size: 40px; line-height: 1; }
.legal-date { margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.legal h2 { margin: 26px 0 8px; font-size: 18px; font-weight: 700; color: var(--gold); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); }
.legal ul { padding-left: 18px; display: grid; gap: 8px; }
.legal a { color: var(--gold); }
.legal strong { color: var(--white); }
.legal .btn-gold { margin-top: 6px; }
.legal-table { overflow-x: auto; margin: 6px 0 10px; border-radius: var(--r-sm); border: 1px solid var(--glass-line); }
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.legal th, .legal td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--glass-line); color: var(--text-soft); }
.legal th { color: var(--white); background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.footer .copy a { color: var(--text-soft); }
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }


/* ═══════════════ AVISO DE COOKIES ═══════════════ */
.cookie-banner {
  position: fixed;
  z-index: 95;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 536px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 215, 0, 0.12);
  animation: slide-up 0.5s var(--ease-bounce) both;
}
.cookie-text { font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.cookie-text a { color: var(--gold); text-underline-offset: 3px; }
.cookie-actions { margin-top: 12px; display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn-outline { padding: 9px 14px; font-size: 13px; }
.cookie-banner.closing { animation: slide-down 0.3s var(--ease) both; }


/* ═══════════════ POPUP ═══════════════ */
.popup, .sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 13, 34, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.35s var(--ease) both;
}
.popup.closing, .sheet.closing { animation: fade-out 0.3s var(--ease) both; }

.popup-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 40px 28px 26px;
  text-align: center;
  animation: slide-up 0.5s var(--ease-bounce) both 0.08s;
}
.popup-close { position: absolute; top: 14px; right: 14px; }

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}
.popup-title { margin: 16px 0 10px; font-size: clamp(32px, 9vw, 42px); }
.popup-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.benefits { list-style: none; text-align: left; display: grid; gap: 9px; margin-bottom: 24px; }
.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.benefits li span { font-size: 18px; }
.fine { margin-top: 12px; font-size: 11px; letter-spacing: 0.5px; color: var(--text-muted); }


/* ═══════════════ BANNER INSTALAR ═══════════════ */
.install-banner {
  position: fixed;
  z-index: 90;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 536px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 12px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 215, 0, 0.12);
  animation: slide-up 0.5s var(--ease-bounce) both;
}
.install-banner img { border-radius: 11px; flex: none; }
.install-banner-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-banner-copy strong { font-size: 14px; }
.install-banner-copy span { font-size: 12px; color: var(--text-muted); }
.install-banner.closing { animation: slide-down 0.3s var(--ease) both; }


/* ═══════════════ GUÍA (sheet) ═══════════════ */
.sheet { align-items: flex-end; padding: 0; }
.sheet-panel {
  width: 100%;
  max-width: 560px;
  border-radius: 24px 24px 0 0;
  padding: 34px 22px calc(26px + env(safe-area-inset-bottom));
  animation: slide-up 0.45s var(--ease-bounce) both;
}
@media (min-width: 600px) { .sheet { align-items: center; padding: 20px; } .sheet-panel { border-radius: var(--r-lg); } }
.sheet-title { font-size: 30px; margin-bottom: 18px; padding-right: 40px; }
.sheet-text { font-size: 15px; color: var(--text-soft); margin-bottom: 18px; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-soft); }
.step-n {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-900);
  font-weight: 800;
}
.inline-ico { width: 20px; height: 20px; vertical-align: -4px; color: #4da3ff; }
.kbd { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--glass-line); background: var(--glass); font-size: 13px; }


/* ═══════════════ TOAST ═══════════════ */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 13, 34, 0.92);
  border: 1px solid var(--card-line);
  font-size: 14px;
  white-space: nowrap;
  animation: fade-in 0.25s both;
}


/* ═══════════════ ESCRITORIO ═══════════════ */
@media (min-width: 720px) {
  .page { padding-top: 32px; }
  .avatar { width: 76px; height: 76px; }
  .brand-logo img { height: 74px; }
  .brand-tag { font-size: 11px; }
  .cover { width: 300px; height: 300px; }
  .player { padding: 36px 32px 28px; }
}

@media (max-width: 380px) {
  .brand { gap: 9px; }
  .avatar { width: 52px; height: 52px; }
  .brand-logo img { height: 50px; }
  .brand-tag { font-size: 9px; letter-spacing: 1.2px; }
  .pill { padding: 7px 10px; letter-spacing: 1.2px; }
  .cover { width: 220px; height: 220px; }
}


/* ═══════════════ ANIMACIONES ═══════════════ */
@keyframes shimmer   { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes blink     { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes ring      { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes eq        { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes slide-up  { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slide-down { to { opacity: 0; transform: translateY(40px); } }

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