/* ============================================================
   AR Simón Díaz — Estilos principales
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0d0d;
}

/* ---------- UTILIDAD ---------- */
.hidden {
  display: none !important;
}

/* ============================================================
   PANTALLA INICIAL (SPLASH)
   ============================================================ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a1a3e 50%, #0d0d1a 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.splash-content {
  text-align: center;
  max-width: 380px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}

.splash-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.splash-content h1 {
  font-size: 2rem;
  color: #FFD700;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.splash-subtitle {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.splash-description {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 32px;
}

.splash-description strong {
  color: #FFD700;
}

/* Botón principal */
.btn-primary {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: #FFD700;
  color: #0d0d1a;
  border: none;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
  transform: scale(0.97);
  background: #e6c200;
}

.splash-features {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.feature-chip {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #FFD700;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.artists-label {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* Cuadrícula de artistas */
#artists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.artist-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,215,0,0.15);
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.artist-card.active {
  border-color: rgba(255,215,0,0.4);
}

.artist-card.active {
  cursor: pointer;
}

.artist-card.active:active {
  transform: scale(0.97);
}

.artist-card.selected {
  border-color: #FFD700;
  box-shadow: 0 0 0 2px #FFD700, 0 0 20px rgba(255,215,0,0.3);
}

.artist-card.selected img {
  filter: brightness(1);
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.artist-card.inactive img {
  filter: brightness(0.3) grayscale(0.6);
}

.artist-card-info {
  padding: 8px 10px 10px;
}

.artist-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFD700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card-song {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Badge activo */
.badge-active {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #FFD700;
  color: #0d0d1a;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge próximamente */
.badge-soon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* Ícono de lock en inactivas */
.artist-card-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  pointer-events: none;
}

.splash-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #666;
}

.karaoke-badge {
  display: inline-block;
  margin-top: 6px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #FFD700;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ============================================================
   ESCENA AR
   ============================================================ */
#ar-container {
  position: fixed;
  inset: 0;
  z-index: 2;
}

#ar-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ============================================================
   OVERLAY DE ESTADO
   ============================================================ */
#status-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 16px 10px;
  pointer-events: none;
}

#status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 13, 26, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

#status-icon {
  font-size: 1.1rem;
}

#status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

#status-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* Estado: detectado */
#status-bar.detected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(20, 20, 10, 0.88);
}

#status-bar.detected #status-text {
  color: #FFD700;
}

/* ============================================================
   TOAST DE DETECCIÓN
   ============================================================ */
#detection-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
}

#detection-toast.show {
  animation: toast-pop 2.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toast-pop {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  20%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  35%  { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  75%  { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.1);  opacity: 0; }
}

.toast-thumb {
  font-size: 5rem;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.8));
  animation: thumb-wiggle 0.4s ease 0.2s 2;
}

@keyframes thumb-wiggle {
  0%, 100% { transform: rotate(0deg);   }
  25%       { transform: rotate(-15deg); }
  75%       { transform: rotate(15deg);  }
}

.toast-text {
  font-size: 2rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.9), 0 0 40px rgba(255,215,0,0.5);
  letter-spacing: 2px;
}

/* ============================================================
   PANTALLA DE BÚSQUEDA
   ============================================================ */
#scanning-screen {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.scanning-content {
  text-align: center;
  padding: 24px;
}

/* Marco de escaneo */
.scan-frame {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #FFD700;
  border-style: solid;
}
.scan-corner.tl { top: 0; left: 0;  border-width: 3px 0 0 3px; }
.scan-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.scan-corner.bl { bottom: 0; left: 0;  border-width: 0 0 3px 3px; }
.scan-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

/* Línea de escaneo animada */
.scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  box-shadow: 0 0 8px #FFD700, 0 0 20px rgba(255,215,0,0.5);
  animation: scan-sweep 2s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%   { top: 4px;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 190px; opacity: 0; }
}

.scan-icon {
  font-size: 4rem;
  animation: scan-pulse 2s ease-in-out infinite;
}

@keyframes scan-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.08); opacity: 1;   }
}

.scan-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFD700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.scan-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.scan-subtitle strong {
  color: #fff;
  font-weight: 700;
}

/* Puntos animados */
.scan-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.scan-dots span {
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.scan-dots span:nth-child(2) { animation-delay: 0.2s; }
.scan-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#countdown-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.25);
  box-shadow:
    0 0 0 0 rgba(255, 215, 0, 0.5),
    inset 0 0 40px rgba(255, 215, 0, 0.05);
  animation: ring-pulse 1s ease-out infinite;
}

@keyframes ring-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,215,0,0.5); }
  70%  { transform: scale(1.15); box-shadow: 0 0 0 30px rgba(255,215,0,0);   }
  100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(255,215,0,0);   }
}

#countdown-number {
  font-size: 7rem;
  font-weight: 900;
  color: #FFD700;
  line-height: 1;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.9),
    0 0 60px rgba(255, 215, 0, 0.5),
    0 0 100px rgba(255, 215, 0, 0.3);
  animation: num-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes num-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

#countdown-label {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   LETRAS (KARAOKE)
   ============================================================ */
#lyrics-panel {
  position: fixed;
  bottom: 210px;
  left: 12px;
  right: 12px;
  z-index: 50;
  text-align: center;
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

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

#lyrics-text {
  display: inline-block;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  max-width: 100%;
}

/* ============================================================
   PANEL DE MÚSICA
   ============================================================ */
#music-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 12px 24px;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.music-panel-inner {
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.music-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.music-song-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-counter {
  font-size: 0.7rem;
  color: rgba(255,215,0,0.6);
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.song-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.song-nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.song-nav-btn:active {
  color: #FFD700;
  background: rgba(255,215,0,0.1);
}

.song-nav-label {
  flex: 1;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* En el panel de artista */
.ad-song-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

#ad-song-nav {
  margin-bottom: 12px;
}

.music-artist {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.music-song {
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 700;
}

/* ============================================================
   VISTA DE LETRAS — Spotify style
   ============================================================ */
#lyrics-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lv-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d0d1a 0%, #111128 100%);
  transition: background 1s ease;
}

/* Header */
.lv-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 20px 16px;
}

.lv-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.lv-photo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.lv-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#lv-artist-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#lv-song-name {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lv-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.lv-close-btn:active { background: rgba(255,255,255,0.2); }

/* Área de scroll de letras */
.lv-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: hidden;
  /* Fade top e inferior para efecto profundidad */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 72%,
    transparent 100%
  );
}

.lv-lines {
  padding: 0 28px;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Líneas individuales */
.lv-line {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.22);
  transition: color 0.4s ease, font-size 0.4s ease, opacity 0.4s ease;
  cursor: default;
  user-select: none;
}

.lv-line.current {
  color: #fff;
  font-size: 1.7rem;
  text-shadow: 0 0 40px rgba(255,215,0,0.25);
}

.lv-line.near {
  color: rgba(255,255,255,0.55);
}

/* Footer */
.lv-footer {
  position: relative;
  z-index: 2;
  padding: 12px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lv-scrubber {
  width: 100%;
  margin-bottom: 0;
}

.lv-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #0d0d1a;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}

.lv-play-btn:active { transform: scale(0.93); }

/* Botones de abrir letras */
.btn-lyrics {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-lyrics:active,
.btn-lyrics.active {
  background: rgba(255,215,0,0.15);
  border-color: #FFD700;
  color: #FFD700;
}

.ad-btn-lyrics {
  padding: 15px 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: background 0.15s;
}

.ad-btn-lyrics:active {
  background: rgba(255,215,0,0.15);
  border-color: #FFD700;
  color: #FFD700;
}

/* Fila de controles en el music panel */
.music-controls-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.music-controls-row .btn-audio {
  flex: 1;
}

/* ============================================================
   SCRUBBER (barra de progreso del reproductor)
   ============================================================ */
.scrubber-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.scrubber-detail {
  margin-bottom: 16px;
}

.time-current,
.time-total {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}

.time-current { text-align: right; }
.time-total   { text-align: left;  color: rgba(255,255,255,0.35); }

.audio-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #FFD700 var(--fill, 0%),
    rgba(255,255,255,0.18) var(--fill, 0%)
  );
  outline: none;
  cursor: pointer;
  transition: height 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.audio-scrubber:active {
  height: 6px;
}

/* Thumb — Chrome / Safari */
.audio-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 10px rgba(255,215,0,0.7), 0 0 0 3px rgba(255,215,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

.audio-scrubber:active::-webkit-slider-thumb {
  transform: scale(1.25);
}

/* Thumb — Firefox */
.audio-scrubber::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFD700;
  border: none;
  box-shadow: 0 0 10px rgba(255,215,0,0.7);
  cursor: pointer;
}

.audio-scrubber::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
}

/* Botón de audio */
.btn-audio {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 215, 0, 0.12);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-audio:active {
  transform: scale(0.97);
  background: rgba(255, 215, 0, 0.25);
}

.btn-audio.playing {
  background: rgba(255, 215, 0, 0.2);
}

/* Mensaje de audio */
.audio-message {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* Visualizador de fondo */
#visualizer-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#visualizer-bg.active {
  opacity: 1;
}

/* Panel con glow de color cuando suena */
.music-panel-inner.playing {
  border-color: rgba(255, 107, 107, 0.5);
  animation: panel-glow 2s ease-in-out infinite alternate;
}

@keyframes panel-glow {
  0%   { box-shadow: 0 0 12px rgba(255,215,0,0.3),  0 0 30px rgba(255,215,0,0.1);  border-color: rgba(255,215,0,0.5); }
  33%  { box-shadow: 0 0 12px rgba(255,107,107,0.3), 0 0 30px rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.5); }
  66%  { box-shadow: 0 0 12px rgba(78,205,196,0.3),  0 0 30px rgba(78,205,196,0.1);  border-color: rgba(78,205,196,0.5); }
  100% { box-shadow: 0 0 12px rgba(255,215,0,0.3),  0 0 30px rgba(255,215,0,0.1);  border-color: rgba(255,215,0,0.5); }
}

/* ============================================================
   NOTAS FLOTANTES
   ============================================================ */
#notes-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

.floating-note {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  opacity: 0;
  animation: float-up 3s ease-out forwards;
  user-select: none;
}

@keyframes float-up {
  0%   { transform: translateY(0)   rotate(0deg);   opacity: 0;   }
  10%  { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(-70vh) rotate(25deg); opacity: 0; }
}

/* ============================================================
   MURO DE INSTALACIÓN
   ============================================================ */
#install-wall {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.iw-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #05050f 0%, #0d0820 50%, #05050f 100%);
}

/* Estrellas CSS */
.iw-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,215,0,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,215,0,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,215,0,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(78,205,196,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 90%, rgba(255,215,0,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 5%,  rgba(78,205,196,0.5) 0%, transparent 100%);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
}

@keyframes stars-twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.iw-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 28px 40px;
  max-width: 380px;
  width: 100%;
  overflow-y: auto;
  max-height: 100vh;
}

/* Logo animado */
.iw-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iw-logo {
  font-size: 3.5rem;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(255,215,0,0.4);
  position: relative;
  z-index: 2;
  animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.iw-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,215,0,0.3);
  animation: iw-ring-pulse 2.5s ease-out infinite;
}

.iw-ring1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.iw-ring2 { width: 104px; height: 104px; animation-delay: 0.6s; }
.iw-ring3 { width: 128px; height: 128px; animation-delay: 1.2s; }

@keyframes iw-ring-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  30%  { opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0; }
}

.iw-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(255,215,0,0.5);
  margin-bottom: 4px;
}

.iw-region {
  font-size: 0.75rem;
  color: rgba(255,215,0,0.55);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.iw-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 20px;
}

.iw-desc strong { color: #fff; }

.iw-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,215,0,0.3);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.iw-required {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

/* Botón instalar Android */
.iw-btn-install {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: #FFD700;
  color: #0d0d1a;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 32px rgba(255,215,0,0.45), 0 0 0 0 rgba(255,215,0,0.3);
  animation: install-pulse 2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}

.iw-btn-install:active { transform: scale(0.97); }

@keyframes install-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(255,215,0,0.4), 0 0 0 0 rgba(255,215,0,0.3); }
  50%       { box-shadow: 0 8px 40px rgba(255,215,0,0.6), 0 0 0 12px rgba(255,215,0,0); }
}

.iw-btn-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.iw-btn-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.iw-btn-text small {
  font-size: 0.78rem;
  opacity: 0.65;
  font-weight: 500;
}

/* Spinner */
.iw-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 16px;
}

.iw-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,215,0,0.2);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* iOS instructions */
.iw-ios-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.iw-ios-steps {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 14px;
  padding: 4px 0;
  margin-bottom: 16px;
  text-align: left;
}

.iw-ios-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.iw-ios-step:last-child { border-bottom: none; }

.iw-ios-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  border: 1.5px solid #FFD700;
  color: #FFD700;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iw-ios-step strong { color: #FFD700; }

.iw-ios-arrow {
  font-size: 2rem;
  color: rgba(255,215,0,0.4);
  animation: bounce-down 1.2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Desktop message */
.iw-desktop-msg {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 20px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.iw-desktop-msg strong { color: #FFD700; }

/* ---- Tour post-instalación ---- */
#iw-confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.iw-tour-step {
  display: none;
  animation: iw-step-in 0.4s ease;
  text-align: center;
}

.iw-tour-step.active { display: block; }

@keyframes iw-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.iw-tour-emoji {
  font-size: 4.5rem;
  margin-bottom: 12px;
  animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iw-tour-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.iw-tour-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.iw-tour-desc strong { color: #FFD700; }

/* Badge app instalada */
.iw-installed-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,215,0,0.08);
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 auto;
  max-width: 260px;
}

.iw-badge-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #0d0d1a, #1a1a3e);
  border: 2px solid #FFD700;
  border-radius: 14px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  box-shadow: 0 0 16px rgba(255,215,0,0.4);
  flex-shrink: 0;
}

.iw-badge-text {
  flex: 1;
  text-align: left;
}

.iw-badge-text strong {
  display: block;
  color: #FFD700;
  font-size: 1rem;
  font-weight: 800;
}

.iw-badge-text small {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
}

.iw-badge-check {
  font-size: 1.3rem;
  color: #4ECDC4;
  font-weight: 900;
}

/* Teléfono del tour */
.iw-tour-phone {
  margin: 0 auto 16px;
  width: 160px;
}

/* Animación dedo tocando el ícono */
.ob-app-cell.tapping {
  position: relative;
  overflow: visible;
}

.iw-tap-finger {
  position: absolute;
  font-size: 1.4rem;
  bottom: -4px;
  right: -4px;
  z-index: 10;
  animation: tap-anim 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tap-anim {
  0%, 100% { transform: scale(1)   translateY(0);   opacity: 1; }
  40%       { transform: scale(0.85) translateY(4px);  opacity: 1; }
  50%       { transform: scale(0.85) translateY(4px);  opacity: 0.7; }
  60%       { transform: scale(1)   translateY(0);   opacity: 1; }
}

.iw-tap-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.8);
  animation: tap-ripple 1.2s ease-out infinite;
  pointer-events: none;
}

@keyframes tap-ripple {
  0%   { transform: scale(0.8); opacity: 0.8; }
  50%  { opacity: 0; }
  50.1%{ transform: scale(0.8); opacity: 0; }
  60%  { opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Navegación del tour */
.iw-tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.iw-tour-dots {
  display: flex;
  gap: 8px;
}

.iw-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,215,0,0.25);
  transition: background 0.25s, transform 0.25s;
}

.iw-tour-dot.active {
  background: #FFD700;
  transform: scale(1.3);
}

.iw-tour-btn {
  padding: 12px 22px;
  background: rgba(255,215,0,0.12);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.iw-tour-btn:active { background: rgba(255,215,0,0.25); }
.iw-tour-btn.done   {
  background: rgba(78,205,196,0.12);
  border-color: #4ECDC4;
  color: #4ECDC4;
}

.iw-brand {
  margin-top: 28px;
  font-size: 0.75rem;
  color: rgba(255,215,0,0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ============================================================
   BOTÓN INSTALAR PWA (en splash, fallback)
   ============================================================ */
.btn-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  margin-top: 10px;
  background: transparent;
  color: #4ECDC4;
  border: 2px solid #4ECDC4;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  animation: install-glow 2.5s ease-in-out infinite;
}

@keyframes install-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78,205,196,0); }
  50%       { box-shadow: 0 0 16px 4px rgba(78,205,196,0.3); }
}

.btn-install:active {
  transform: scale(0.97);
  background: rgba(78,205,196,0.15);
}

/* ============================================================
   ONBOARDING
   ============================================================ */
#onboarding {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.ob-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a0a2e 60%, #0d0d1a 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Steps */
.ob-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 120px;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.ob-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.ob-step.exit {
  opacity: 0;
  transform: translateX(-60px);
}

.ob-icon-big {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.ob-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
  line-height: 1.2;
}

.ob-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 300px;
}

/* App badge (paso 1) */
.ob-app-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,215,0,0.1);
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 16px;
  padding: 14px 24px;
  margin-top: 24px;
}

.ob-app-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0d0d1a, #1a1a3e);
  border: 2px solid #FFD700;
  border-radius: 14px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.ob-app-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFD700;
  text-align: left;
  line-height: 1.3;
}

.ob-app-name small {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 400;
}

/* Mockup de celular (paso 2) */
.ob-phone {
  width: 170px;
  background: #111;
  border-radius: 28px;
  border: 3px solid #2a2a4e;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,215,0,0.15);
}

.ob-phone-bar {
  background: #0a0a0a;
  padding: 8px 14px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ob-phone-screen {
  background: #1a1a2e;
  padding: 16px 14px 8px;
}

.ob-phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.ob-app-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.ob-app-cell.grey {
  background: rgba(255,255,255,0.07);
}

.ob-app-cell.our-app {
  background: linear-gradient(135deg, #0d0d1a, #1a1a3e);
  border: 2px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FFD700;
  box-shadow: 0 0 16px rgba(255,215,0,0.6);
  animation: our-app-pulse 1.5s ease-in-out infinite;
  position: relative;
}

@keyframes our-app-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.5); }
  50%       { box-shadow: 0 0 28px rgba(255,215,0,0.9); }
}

.ob-app-cell-icon {
  display: block;
}

.ob-app-cell-arrow {
  position: absolute;
  top: -28px;
  font-size: 1.2rem;
  animation: arrow-bounce 0.8s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.ob-phone-label {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  grid-column: 2;
  margin-top: 4px;
}

.ob-phone-home {
  background: #0a0a0a;
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.3);
}

/* Lista pasos "cómo usar" (paso 3) */
.ob-steps-list {
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
}

.ob-how-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.ob-how-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,215,0,0.15);
  border: 2px solid #FFD700;
  color: #FFD700;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ob-how-num.tip {
  font-size: 1.1rem;
  border-color: #4ECDC4;
  background: rgba(78,205,196,0.12);
  color: #4ECDC4;
}

.ob-how-text strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.ob-how-text span {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Cards "Cómo funciona" */
.ob-how-cards {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 20px;
}

.ob-how-card {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.ob-how-emoji {
  font-size: 1.8rem;
}

.ob-how-card strong {
  font-size: 0.78rem;
  color: #FFD700;
  font-weight: 800;
  display: block;
}

.ob-how-card span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

.ob-how-arrow {
  font-size: 1.2rem;
  color: rgba(255,215,0,0.4);
  flex-shrink: 0;
}

/* Tip box */
.ob-tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(78,205,196,0.08);
  border: 1px solid rgba(78,205,196,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  max-width: 340px;
}

.ob-tip-box span:first-child { font-size: 1.1rem; flex-shrink: 0; }

/* Entry visual (paso 1 onboarding) */
.ob-entry-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-entry-logo {
  font-size: 3.5rem;
  color: #FFD700;
  text-shadow: 0 0 30px rgba(255,215,0,0.8);
  position: relative;
  z-index: 2;
}

.ob-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,215,0,0.3);
  animation: ob-ring-pulse 2.5s ease-out infinite;
}

.ob-ring1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.ob-ring2 { width: 104px; height: 104px; animation-delay: 0.7s; }
.ob-ring3 { width: 128px; height: 128px; animation-delay: 1.4s; }

@keyframes ob-ring-pulse {
  0%   { transform: scale(0.8); opacity: 0; }
  30%  { opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

.ob-entry-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 24px rgba(255,215,0,0.5);
  margin-bottom: 4px;
}

.ob-entry-region {
  font-size: 0.72rem;
  color: rgba(255,215,0,0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Marca paso 4 */
.ob-brand-big {
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255,215,0,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Botón terminar */
.ob-btn-finish {
  width: 100%;
  max-width: 300px;
  padding: 18px 24px;
  background: #FFD700;
  color: #0d0d1a;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 32px rgba(255,215,0,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}

.ob-btn-finish:active { transform: scale(0.97); }

/* Navegación inferior */
.ob-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(13,13,26,0.95), transparent);
}

.ob-dots {
  display: flex;
  gap: 8px;
}

.ob-dot-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,215,0,0.3);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.ob-dot-nav.active {
  background: #FFD700;
  transform: scale(1.3);
}

.ob-btn-next {
  padding: 12px 22px;
  background: rgba(255,215,0,0.12);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.ob-btn-next:active { background: rgba(255,215,0,0.25); }

/* Confetti */
.confetti-piece {
  position: absolute;
  top: -10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ============================================================
   MODAL COMPARTIR + QR
   ============================================================ */
#share-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sm-card {
  background: #13131f;
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 24px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  position: relative;
  animation: card-slide-up 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

@keyframes card-slide-up {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.sm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sm-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255,215,0,0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sm-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 8px;
}

.sm-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* QR code */
.sm-qr-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(255,215,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-qr-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.sm-qr-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  transition: opacity 0.3s;
}

.sm-qr-loader.hidden { opacity: 0; pointer-events: none; }

/* URL */
.sm-url {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  word-break: break-all;
  margin-bottom: 18px;
  font-family: monospace;
}

/* Botones de acción */
.sm-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.sm-btn {
  flex: 1;
  padding: 14px 10px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s, opacity 0.15s;
}

.sm-btn:active { transform: scale(0.96); }

.sm-btn-copy {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.sm-btn-copy.copied {
  background: rgba(78,205,196,0.15);
  border-color: #4ECDC4;
  color: #4ECDC4;
}

.sm-btn-share {
  background: #FFD700;
  color: #0d0d1a;
}

.sm-brand {
  font-size: 0.7rem;
  color: rgba(255,215,0,0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Botones splash row */
.splash-secondary-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.splash-secondary-row .btn-install {
  flex: 1;
  margin-top: 0;
  padding: 13px 10px;
  font-size: 0.88rem;
}

.btn-qr-share {
  flex: 1;
  padding: 13px 10px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-qr-share:active {
  background: rgba(255,255,255,0.08);
}

/* Botón QR en panel artista */
.ad-secondary-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ad-secondary-row .ad-btn-back {
  flex: 1;
  margin-bottom: 0;
}

.ad-btn-qr {
  padding: 14px 16px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: background 0.15s;
}

.ad-btn-qr:active {
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   SKIP TOAST (+5s)
   ============================================================ */
#skip-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 85;
  background: rgba(255,215,0,0.92);
  color: #0d0d1a;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 40px;
  pointer-events: none;
  opacity: 0;
  letter-spacing: 1px;
}

#skip-toast.show {
  animation: skip-pop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes skip-pop {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0; }
  30%  { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  60%  { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(0.9); opacity: 0; }
}

/* ============================================================
   PANEL ARTISTA (cuando se pierde la placa)
   ============================================================ */
#artist-detail {
  position: fixed;
  inset: 0;
  z-index: 65;
  overflow: hidden;
}

.ad-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d0d1a 0%, #1a0a2e 50%, #0d0d1a 100%);
}

.ad-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 24px;
}

.ad-content {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

/* Foto con glow */
.ad-photo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.ad-photo-wrap img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  display: block;
  position: relative;
  z-index: 2;
}

.ad-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, transparent 70%);
  animation: glow-pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.1); opacity: 1; }
}

/* Now playing */
.ad-now-playing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFD700;
  animation: dot-pulse 1.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Ecualizador */
.ad-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin-bottom: 16px;
}

.ad-eq span {
  width: 5px;
  border-radius: 3px;
  background: #FFD700;
  animation: eq-bar 0.8s ease-in-out infinite alternate;
}

.ad-eq span:nth-child(1) { height: 40%; animation-duration: 0.7s; }
.ad-eq span:nth-child(2) { height: 100%; animation-duration: 0.5s; }
.ad-eq span:nth-child(3) { height: 60%; animation-duration: 0.9s; }
.ad-eq span:nth-child(4) { height: 85%; animation-duration: 0.6s; }
.ad-eq span:nth-child(5) { height: 45%; animation-duration: 0.8s; }

.ad-eq.paused span { animation-play-state: paused; }

@keyframes eq-bar {
  from { transform: scaleY(0.3); opacity: 0.5; }
  to   { transform: scaleY(1);   opacity: 1; }
}

/* Texto del artista */
#ad-name {
  font-size: 2rem;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  margin-bottom: 4px;
}

#ad-nickname {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#ad-song-label {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Controles en fila */
.ad-controls-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ad-btn-main {
  flex: 1;
  padding: 15px 10px;
  background: rgba(255,215,0,0.12);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.ad-btn-main.playing {
  background: rgba(255,215,0,0.22);
}

.ad-btn-main:active { background: rgba(255,215,0,0.3); }

.ad-btn-skip {
  padding: 15px 14px;
  background: rgba(78,205,196,0.12);
  color: #4ECDC4;
  border: 2px solid #4ECDC4;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.ad-btn-skip:active { background: rgba(78,205,196,0.25); }

.ad-btn-share {
  padding: 15px 14px;
  background: rgba(255,107,107,0.12);
  color: #FF6B6B;
  border: 2px solid #FF6B6B;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ad-btn-share:active { background: rgba(255,107,107,0.25); }

/* Letras karaoke en panel artista */
.ad-lyrics-display {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  white-space: pre-line;
  transition: color 0.3s;
}

.ad-lyrics-display.has-lyric {
  color: #FFD700;
  border-color: rgba(255,215,0,0.5);
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}

.ad-lyrics-display.lyric-anim {
  animation: lyric-pop 0.25s ease;
}

@keyframes lyric-pop {
  0%   { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Botón volver */
.ad-btn-back {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, color 0.2s;
}

.ad-btn-back:active {
  border-color: #FFD700;
  color: #FFD700;
}

/* Marca paratachira.com */
.ad-brand {
  font-size: 0.8rem;
  color: rgba(255,215,0,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — pantallas más grandes
   ============================================================ */
@media (min-width: 480px) {
  .splash-content h1 {
    font-size: 2.4rem;
  }

  #music-panel {
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
  }

  #music-panel.hidden {
    transform: translateX(-50%) !important;
  }

  #status-overlay {
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
  }
}
