/* ==========================================================================
   SunoWave Studio - Master Analog Edition
   Estética Retro Vintage: Piel, Cuero Repujado, Caoba y Latón Dorado
   Preparado para Google AdSense con Arquitectura Editorial de Alta Gama
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('videomaker.css?v=13');

:root {
  /* Paleta Base: Piel & Cuero Oscuro / Maderas Nobles */
  --bg-main: #130d09;
  --bg-main-alt: #1a120c;
  --bg-card: rgba(35, 24, 17, 0.85);
  --bg-card-hover: rgba(48, 33, 23, 0.92);
  --bg-elevated: rgba(55, 38, 27, 0.65);
  --bg-input: rgba(19, 13, 9, 0.9);
  --bg-leather: #241811;

  /* Acentos Vintage: Latón, Oro Envejecido, Coñac y Ámbar Valvular */
  --vintage-gold: #d4af37;
  --vintage-gold-light: #f3cf65;
  --vintage-gold-glow: rgba(212, 175, 55, 0.35);
  --vintage-amber: #e59b3c;
  --vintage-amber-glow: rgba(229, 155, 60, 0.3);
  --vintage-cognac: #aa5a22;
  --vintage-leather-brown: #6b3f20;
  --vintage-burgundy: #7a2222;
  --vintage-sage: #52795d;

  /* Compatibilidad con clases anteriores (Mapeadas a paleta vintage) */
  --neon-cyan: #e59b3c;
  --neon-cyan-glow: rgba(229, 155, 60, 0.35);
  --neon-purple: #c47b38;
  --neon-purple-glow: rgba(196, 123, 56, 0.35);
  --neon-pink: #d97742;
  --neon-pink-glow: rgba(217, 119, 66, 0.35);
  --neon-blue: #b38b4d;
  --neon-green: #2ecc71;

  /* Gradientes de Estudio Analógico */
  --grad-primary: linear-gradient(135deg, #e5b95c 0%, #c47b38 50%, #8e4a1a 100%);
  --grad-gold: linear-gradient(135deg, #f3cf65 0%, #d4af37 50%, #997316 100%);
  --grad-leather: linear-gradient(145deg, rgba(46, 32, 23, 0.95) 0%, rgba(20, 14, 10, 0.98) 100%);
  --grad-card: linear-gradient(145deg, rgba(38, 27, 19, 0.85) 0%, rgba(22, 15, 10, 0.92) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);

  /* Tipografía Editorial Clásica */
  --font-title: 'Cinzel', 'Playfair Display', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Texto & Pergamino */
  --text-main: #fbf7ee;
  --text-cream: #ede1c9;
  --text-muted: #bdae96;
  --text-dim: #7f705c;

  /* Bordes Pespunte & Sombras */
  --border-subtle: rgba(212, 175, 55, 0.16);
  --border-stitch: rgba(212, 175, 55, 0.28);
  --border-focus: #d4af37;
  --shadow-glass: 0 12px 36px 0 rgba(0, 0, 0, 0.6);
  --shadow-warm: 0 0 25px rgba(212, 175, 55, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Estilos Globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(at 15% 10%, rgba(196, 123, 56, 0.15) 0px, transparent 55%),
    radial-gradient(at 85% 20%, rgba(212, 175, 55, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(142, 74, 26, 0.12) 0px, transparent 60%);
  background-attachment: fixed;
}

/* Textura sutil de cuero y vinilo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar Vintage */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #140d09;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vintage-gold);
}

/* Contenedor Principal */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Barra Superior Vintage
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  background: var(--grad-leather);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--vintage-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.brand-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  color: var(--vintage-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  letter-spacing: 1px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

/* Menú de Pestañas Estilo Consola Vintage */
.nav-tabs {
  display: flex;
  gap: 6px;
  background: rgba(14, 9, 6, 0.8);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(212, 175, 55, 0.08);
}

.nav-tab-btn.active {
  background: var(--grad-primary);
  color: #120c08;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

/* Badge de Suscripción en Header */
.user-license-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: #fff;
}

.user-license-badge:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--vintage-gold);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.license-badge-user {
  font-weight: 700;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 5px;
}

.license-badge-days {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Google AdSense: Contenedores y Ranuras Publicitarias Semánticas
   ========================================================================== */
.adsense-slot-wrapper {
  margin: 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(22, 15, 10, 0.6);
  border: 1px dashed rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: border-color var(--transition-fast);
  overflow: hidden;
  max-width: 980px;
}

.adsense-slot-wrapper:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.adsense-label {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 700;
}

.adsense-banner-responsive {
  min-height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}

.adsense-fallback-box {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  background: rgba(36, 25, 18, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
}

/* ==========================================================================
   Sección Hero Vintage & Cajas de Búsqueda
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 16px 10px 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--vintage-gold-light);
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  color: var(--text-cream);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 30px;
  font-weight: 400;
  line-height: 1.65;
}

/* Caja de Búsqueda Estilo Piel Repujada con Bisel de Latón */
.search-card {
  max-width: 840px;
  margin: 0 auto 28px;
  background: var(--grad-card);
  border: 1.5px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.search-card:focus-within {
  border-color: var(--vintage-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.25);
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  font-size: 20px;
  padding-left: 10px;
  color: var(--vintage-gold);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  padding: 10px 4px;
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Botones con Acabado de Cuero & Latón */
.btn-paste {
  background: rgba(45, 30, 21, 0.8);
  border: 1px solid var(--border-stitch);
  color: var(--text-cream);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-paste:hover {
  background: rgba(65, 44, 30, 0.95);
  border-color: var(--vintage-gold);
  color: #fff;
  transform: translateY(-1px);
}

.btn-submit {
  background: var(--grad-primary);
  border: none;
  color: #140d09;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  white-space: nowrap;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  filter: brightness(1.08);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Barra de Ejemplos */
.btn-sample {
  background: rgba(35, 24, 17, 0.7);
  border: 1px dashed var(--border-stitch);
  color: var(--vintage-gold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sample:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--vintage-gold);
  color: var(--vintage-gold-light);
}

/* Estado de Carga */
.loading-box {
  display: none;
  text-align: center;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  margin: 20px auto;
  max-width: 500px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--vintage-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-status-text {
  font-size: 14px;
  color: var(--vintage-gold-light);
  font-weight: 600;
}

/* ==========================================================================
   Tarjeta de Resultado: Reproductor Analógico & Visualizador Vúmetro
   ========================================================================== */
.result-card {
  display: none;
  background: var(--grad-leather);
  border: 1.5px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 30px auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.song-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: center;
}

.album-art-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
  border: 2px solid var(--vintage-gold);
}

.album-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-version {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(18, 12, 8, 0.88);
  border: 1px solid var(--vintage-gold);
  color: var(--vintage-gold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.song-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.song-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.creator-name {
  color: var(--vintage-gold-light);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-pill {
  font-size: 11px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-cream);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* Visualizador Canvas Estilo Vúmetro de Tubo */
.visualizer-wrapper {
  background: #0d0805;
  border: 1.5px solid var(--border-stitch);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.visualizer-canvas {
  width: 100%;
  height: 110px;
  display: block;
}

/* Controles de Reproducción */
.player-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-play-pause {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #140d09;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-play-pause:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
}

.timeline-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 12px;
  font-family: monospace;
  color: var(--text-muted);
  width: 36px;
}

.scrub-bar {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.scrub-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vintage-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 75px;
  -webkit-appearance: none;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--vintage-gold);
  cursor: pointer;
}

/* Opciones de Descarga */
.downloads-section-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dl-card-btn {
  background: rgba(36, 25, 18, 0.85);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-card-btn:hover {
  background: rgba(52, 36, 26, 0.95);
  border-color: var(--vintage-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.2);
}

.dl-card-btn.primary-action {
  border-color: rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, rgba(60, 42, 30, 0.9), rgba(30, 20, 14, 0.95));
}

.dl-icon-badge {
  font-size: 24px;
  margin-bottom: 2px;
}

.dl-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.dl-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.dl-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--grad-primary);
  width: 0%;
  transition: width 0.2s linear;
}

/* ==========================================================================
   Sección Editorial & Guías Técnicas (Para Google AdSense)
   ========================================================================== */
.editorial-section {
  margin-top: 48px;
  border-top: 1px solid var(--border-stitch);
  padding-top: 40px;
}

.editorial-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.editorial-tag {
  font-family: var(--font-title);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--vintage-gold);
  font-weight: 800;
  margin-bottom: 8px;
}

.editorial-title {
  font-family: var(--font-title);
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.editorial-card {
  background: var(--grad-card);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.editorial-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.editorial-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--vintage-gold-light);
  margin-bottom: 10px;
}

.editorial-card p {
  font-size: 13.5px;
  color: var(--text-cream);
  line-height: 1.6;
}

/* Acordeón FAQ */
.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--vintage-gold);
}

.faq-question {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 13.5px;
  color: var(--text-cream);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--vintage-gold);
}

/* ==========================================================================
   Pestañas de Lotes, Historial, Transcriptor y Cortador
   ========================================================================== */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.batch-box {
  background: var(--grad-card);
  border: 1.5px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glass);
}

.batch-textarea {
  width: 100%;
  min-height: 160px;
  background: var(--bg-input);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  resize: vertical;
  margin-bottom: 18px;
  outline: none;
}

.batch-textarea:focus {
  border-color: var(--vintage-gold);
}

.batch-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.batch-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
}

/* Historial */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.history-card {
  background: var(--grad-card);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.history-card:hover {
  transform: translateY(-3px);
  border-color: var(--vintage-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.2);
}

.history-img-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.history-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-body {
  padding: 16px;
}

.history-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-stitch);
  background: rgba(45, 30, 21, 0.8);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--transition-fast);
}

.btn-small:hover {
  background: var(--vintage-cognac);
  border-color: var(--vintage-gold);
}

/* Transcriptor & Cortador Buttons */
.txr-lang-btn, .trimmer-preset-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-stitch);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.txr-lang-btn:hover, .trimmer-preset-btn:hover {
  border-color: var(--vintage-gold);
  color: #fff;
  background: rgba(212, 175, 55, 0.12);
}

.txr-lang-btn.active, .trimmer-preset-btn.active {
  border-color: var(--vintage-gold);
  background: var(--grad-primary);
  color: #120c08;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.trimmer-time-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  flex: 1;
}

.trimmer-time-val {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--vintage-gold);
  margin-top: 4px;
}

/* Modal de Letras */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 3, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--grad-leather);
  border: 1.5px solid var(--border-stitch);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-stitch);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--vintage-gold-light);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #f4ecd8;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-stitch);
}

/* Toast Notificaciones */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(30, 20, 14, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-stitch);
  border-left: 4px solid var(--vintage-gold);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-slide 0.3s ease-out;
}

.toast.success { border-left-color: #2ed573; }
.toast.error { border-left-color: #e74c3c; }
.toast.info { border-left-color: var(--vintage-gold); }

@keyframes toast-slide {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Paywall Modal Vintage ($10 USD / COP)
   ========================================================================== */
.paywall-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 7, 5, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.paywall-card {
  background: var(--grad-leather);
  border: 1.5px solid var(--vintage-gold);
  border-radius: 26px;
  max-width: 540px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.25);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.paywall-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--vintage-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.paywall-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: #fff;
}

.paywall-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paywall-desc {
  font-size: 14px;
  color: var(--text-cream);
  line-height: 1.6;
  margin: 0 auto 22px auto;
  max-width: 440px;
}

.paywall-pricing-box {
  background: rgba(45, 30, 21, 0.6);
  border: 1px solid var(--border-stitch);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.pricing-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--vintage-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pricing-main-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.pricing-usd {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.pricing-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-cop-row {
  margin-top: 4px;
}

.pricing-cop {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #2ed573;
}

.pricing-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.paywall-features {
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border-subtle);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #f4ecd8;
}

.feat-check {
  color: var(--vintage-gold);
  font-weight: 800;
}

.paywall-form {
  margin-bottom: 20px;
  text-align: left;
}

.paywall-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cream);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.paywall-input-row {
  display: flex;
  gap: 8px;
}

.paywall-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-stitch);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: monospace;
  outline: none;
}

.paywall-input-row input:focus {
  border-color: var(--vintage-gold);
}

.paywall-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

.paywall-msg-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ff6b6b;
}

.paywall-msg-success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.paywall-footer-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.btn-whatsapp-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-pay:hover {
  filter: brightness(1.06);
}

.paywall-guarantee {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Footer Editorial Retro Vintage (AdSense Compliance)
   ========================================================================== */
.studio-footer {
  margin-top: 80px;
  border-top: 1.5px solid var(--border-stitch);
  background: var(--grad-leather);
  padding: 60px 20px 30px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--vintage-gold-light);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-cream);
  max-width: 380px;
}

.footer-col h5 {
  font-family: var(--font-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--vintage-gold);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-cream);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--vintage-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--vintage-gold);
  text-decoration: none;
}

/* ==========================================================================
   Banner Flotante de Consentimiento de Cookies (RGPD / AdSense)
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 680px;
  width: calc(100% - 40px);
  background: var(--grad-leather);
  border: 1.5px solid var(--vintage-gold);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  font-size: 13px;
  color: var(--text-cream);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-text {
  line-height: 1.5;
}

.cookie-text a {
  color: var(--vintage-gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--grad-primary);
  color: #120c08;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.btn-cookie-accept:hover {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .song-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .album-art-wrap {
    margin: 0 auto;
  }
  .song-meta-row, .tag-cloud {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
  }
  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .search-input-row {
    flex-wrap: wrap;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-consent-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ======================================================
   Studio Vintage Luxury Footer (Reset & Estilos Completos)
   ====================================================== */
.studio-vintage-footer {
  margin-top: 60px;
  padding: 48px 36px 28px;
  background: linear-gradient(180deg, rgba(28, 16, 10, 0.95) 0%, rgba(16, 9, 5, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 36px;
  position: relative;
}

.studio-vintage-footer::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--leather-stitch);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.sv-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-footer-logo {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--brass-gold);
  letter-spacing: 1px;
}

.sv-footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: var(--parchment-300);
  margin: 0;
}

.sv-footer-nav-col h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--brass-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sv-footer-nav-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-footer-nav-col li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sv-footer-nav-col a {
  color: var(--parchment-200);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sv-footer-nav-col a:hover {
  color: var(--brass-gold);
  transform: translateX(3px);
  text-decoration: none;
}

.sv-footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 20px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--leather-sand);
}

@media (max-width: 900px) {
  .studio-vintage-footer {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 20px 20px;
  }
}

@media (max-width: 600px) {
  .studio-vintage-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sv-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
