/* ==========================================================================
   CLASSICA FM 106.9 - Estilos Principales
   Colores originales: Negro (#000), Rojo (#ed1c24), Blanco (#fff), Gris (#888)
   ========================================================================== */

:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-card: #0d0d0d;
  --panel-hover: #141414;
  --border: #1a1a1a;
  --border-light: #262626;
  --red: #ed1c24;
  --red-hover: #c9141b;
  --red-glow: rgba(237, 28, 36, 0.4);
  --text: #f5f5f5;
  --text-muted: #8e8e8e;
  --text-dim: #606060;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

/* ==========================================================================
   CABECERA / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 56px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Redes Sociales en cabecera */
.header-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-link {
  color: #ccc;
  font-size: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Menú principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: #d1d1d1;
  padding: 6px 4px;
  position: relative;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  border-radius: 2px;
}

/* Botón Hamburguesa móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

/* Drawer móvil */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.mobile-nav-item {
  font-size: 22px;
  font-weight: 600;
  color: #bbb;
  transition: color 0.2s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--red);
}

.mobile-socials {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

/* ==========================================================================
   MÓDULO DE RADIO / REPRODUCTOR EN VIVO (INDEX)
   ========================================================================== */
.radio-page-wrap {
  padding: 35px 0 60px;
  flex: 1;
}

.livebar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}

.livebar .dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red-glow), 0 0 4px var(--red);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.livebar .sep {
  color: #555;
  margin: 0 2px;
}

/* Hero Grid */
.hero-player {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

/* Carátula de vinilo / Cover */
.cover-art-wrapper {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% 22%, #3a3a3a 0, #181818 32%, #080808 72%);
  border: 1px solid #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border-radius: 6px;
}

.cover-art-wrapper::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #555;
  box-shadow: 0 0 0 12px rgba(255,255,255,0.03), 0 0 0 30px rgba(255,255,255,0.02), 0 0 0 52px rgba(255,255,255,0.015);
}

.cover-art-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 42%, rgba(237,28,36,0.12));
  pointer-events: none;
}

.cover-art-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  border-radius: 5px;
  background-color: #0d0d0d;
  transition: opacity 0.3s ease;
}

.vinyl-disc {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #161616 0 2px, #292929 3px 4px);
  border: 1px solid #555;
  display: grid;
  place-items: center;
  z-index: 1;
  box-shadow: 0 0 32px #000;
}

.vinyl-center {
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  border: 5px solid #111;
  box-shadow: 0 0 0 1px #777;
}

.cover-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #ccc;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Info del tema */
.track-info {
  display: flex;
  flex-direction: column;
}

.track-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c8c8c;
  margin-bottom: 10px;
  font-weight: 600;
}

.track-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 10px;
  word-break: break-word;
}

.track-artist {
  font-size: 19px;
  color: #c5c5c5;
  margin-bottom: 6px;
  font-weight: 400;
}

.track-stats {
  font-size: 13px;
  color: #858585;
  margin-bottom: 20px;
}

/* Barra de control del reproductor */
.player-control-panel {
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
}

.btn-play-stream {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.35);
}

.btn-play-stream:hover {
  background: var(--red-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.5);
}

.player-details {
  min-width: 0;
  flex: 1;
}

.player-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.radio-audio-element {
  width: 100%;
  height: 32px;
  filter: grayscale(1) invert(0.9);
}

.player-equalizer {
  display: flex;
  gap: 3px;
  height: 22px;
  align-items: center;
  padding-left: 6px;
}

.player-equalizer i {
  width: 3px;
  background: var(--red);
  height: 6px;
  border-radius: 1px;
  animation: eqBounce .7s ease-in-out infinite alternate;
}

.player-equalizer i:nth-child(2) { animation-delay: .2s; }
.player-equalizer i:nth-child(3) { animation-delay: .4s; }
.player-equalizer i:nth-child(4) { animation-delay: .15s; }
.player-equalizer i:nth-child(5) { animation-delay: .35s; }

.player-equalizer.paused i {
  animation-play-state: paused;
  height: 6px;
}

@keyframes eqBounce {
  to { height: 20px; }
}

.stream-status-msg {
  font-size: 11px;
  color: #888;
  margin-top: 12px;
  min-height: 16px;
}

/* ==========================================================================
   SECCIÓN LETRA
   ========================================================================== */
.lyrics-section {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-heading-serif {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-desc-muted {
  color: #888;
  line-height: 1.6;
  font-size: 14px;
  max-width: 380px;
}

.lyrics-box {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  max-height: 340px;
  overflow-y: auto;
  color: #a9a9a9;
  line-height: 1.85;
  font-size: 14px;
  border-radius: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--panel);
}

.lyrics-box::-webkit-scrollbar {
  width: 6px;
}

.lyrics-box::-webkit-scrollbar-track {
  background: var(--panel);
}

.lyrics-box::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}

.lyrics-title-heading {
  display: block;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
}

/* ==========================================================================
   SECCIÓN HISTORIAL DE CANCIONES
   ========================================================================== */
.history-section {
  margin-top: 50px;
  border-top: 1px solid var(--border);
  padding-top: 35px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.history-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.history-card:hover {
  border-color: var(--red);
  background-color: var(--panel-hover);
  transform: translateY(-2px);
}

.history-thumb {
  width: 48px !important;
  height: 48px !important;
  border-radius: 4px;
  background: #161616;
  object-fit: cover !important;
  flex-shrink: 0;
  border: 1px solid #222;
}

.history-meta {
  min-width: 0;
  flex: 1;
}

.history-song-title {
  font-size: 13px;
  color: #eee;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-artist-name {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.history-time-badge {
  font-size: 10px;
  color: var(--red);
  font-weight: 600;
  margin-top: 3px;
}

/* ==========================================================================
   PÁGINA NOSOTROS
   ========================================================================== */
.nosotros-page {
  flex: 1;
}

.nosotros-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.nosotros-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 100%);
}

.nosotros-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.nosotros-content-wrap p {
  font-size: 16px;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 18px;
}

.nosotros-content-wrap p:last-child {
  margin-bottom: 0;
}

/* Secciones con fondo de imagen y panel translúcido */
.section-photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.section-panel-content {
  position: relative;
  z-index: 2;
}

.section-glass-box {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 8px;
  max-width: 920px;
  margin: 0 auto;
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 25px;
}

.ref-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-item.full-width {
  grid-column: 1 / -1;
}

.ref-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}

.ref-value {
  font-size: 15px;
  color: #e5e5e5;
  line-height: 1.5;
}

/* Publicidad */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 25px;
}

.pub-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid #222;
  padding: 24px;
  border-radius: 6px;
}

.pub-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--red);
  padding-bottom: 8px;
  display: inline-block;
}

.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
}

.pub-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pub-list li i {
  color: var(--red);
  margin-top: 4px;
  font-size: 12px;
}

/* Redes / Facebook Feed */
.social-feed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.facebook-embed-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  max-width: 340px;
  width: 100%;
}

/* Ubicación y Mapa */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  align-items: center;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-icon {
  color: var(--red);
  font-size: 20px;
  margin-top: 2px;
}

.location-text h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.location-text p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  height: 320px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   PÁGINA CONTÁCTENOS
   ========================================================================== */
.contacto-page {
  flex: 1;
  padding: 70px 0 90px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.contacto-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacto-brand img {
  width: 260px;
  height: auto;
  margin-bottom: 25px;
}

.contacto-address-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #ddd;
  font-size: 15px;
  line-height: 1.6;
}

.contacto-address-block a {
  color: var(--red);
}

.contacto-address-block a:hover {
  text-decoration: underline;
}

.contacto-social-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.contacto-social-icons {
  display: flex;
  gap: 12px;
}

.contacto-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contacto-social-btn.fb { background-color: #1877f2; }
.contacto-social-btn.tw { background-color: #1da1f2; }
.contacto-social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.contacto-social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.contacto-copyright-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

/* Formulario Contacto */
.contacto-form-card {
  background: #0a0a0a;
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 8px;
}

.contacto-form-card h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccc;
  color: #111;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #777;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit-red {
  background-color: var(--red);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 35px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit-red:hover {
  background-color: var(--red-hover);
}

.btn-submit-red:active {
  transform: scale(0.98);
}

.form-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.form-alert.error {
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.4);
  color: #f87171;
}

/* ==========================================================================
   PIE DE PÁGINA (GLOBAL FOOTER)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  background-color: var(--bg);
  margin-top: auto;
}

.footer-text {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-player {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cover-art-wrapper {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .track-info {
    text-align: center;
  }

  .track-kicker {
    margin-top: 10px;
  }

  .player-control-panel {
    text-align: left;
  }

  .player-equalizer {
    display: none;
  }

  .lyrics-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-desc-muted {
    max-width: 100%;
  }

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

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

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

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

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .site-header {
    padding: 10px 0;
  }

  .brand-logo {
    height: 44px;
  }

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

  .section-glass-box {
    padding: 24px;
  }

  .contacto-form-card {
    padding: 24px;
  }
}
