/* ============================================================
   FM SIERRAS 107.9 — Estilos base
   Paleta oscura. Blanco, negro y el azul del río del logo.
   El amarillo vive únicamente dentro del logo.
   ============================================================ */

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

:root {
  --fondo:       #0f1113;
  --panel:       #171a1e;
  --panel-alto:  #21262b;
  --borde:       rgba(255,255,255,.09);
  --borde-fuerte:rgba(255,255,255,.18);
  --texto:       #eceeef;
  --texto-suave: #939aa1;
  --texto-tenue: #6b7278;
  --azul:        #2b8fd0;
  --azul-osc:    #1c6ea6;
  --azul-luz:    #6bbcec;
  --ancho:       1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.1;
}

a { color: var(--azul-luz); }
img { max-width: 100%; }

.mayus {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--azul-luz);
}

/* ---------- NAV ---------- */
nav {
  background: rgba(15,17,19,.88);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--borde);
}

.nav-inner {
  max-width: var(--ancho); margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}

.nav-marca {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--texto);
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px; letter-spacing: .02em;
}
.nav-marca em { font-style: normal; color: var(--azul); }

.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--texto-suave); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 7px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--texto); background: rgba(255,255,255,.06); }
.nav-links a.activo { color: #fff; background: var(--azul); }

.hamburguesa {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburguesa span {
  display: block; width: 24px; height: 2px;
  background: var(--texto); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburguesa.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa.activo span:nth-child(2) { opacity: 0; }
.hamburguesa.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- PLACA DEL LOGO ---------- */
.placa {
  background: #fff;
  padding: 14px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25),
              0 0 44px rgba(255,255,255,.16),
              0 18px 44px rgba(0,0,0,.55);
}
.placa img { display: block; width: 100%; height: auto; }

/* ---------- REPRODUCTOR EN VIVO ---------- */
.vivo {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--panel-alto);
  border: 1px solid var(--borde-fuerte);
  border-radius: 60px;
  padding: 10px 24px 10px 10px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.vivo:hover { border-color: var(--azul); background: #262c32; }

.vivo-btn {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%; background: var(--azul);
  border: none; display: flex; align-items: center; justify-content: center;
  transition: background .18s; pointer-events: none;
}
.vivo:hover .vivo-btn { background: var(--azul-osc); }
.vivo-btn svg { width: 19px; height: 19px; fill: #fff; margin-left: 3px; }
.vivo.sonando .vivo-btn svg { margin-left: 0; }

.vivo-info { display: flex; flex-direction: column; text-align: left; }
.vivo-titulo {
  font-family: 'Archivo Black', sans-serif; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; color: #fff;
}
.vivo-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-tenue); flex-shrink: 0; }
.vivo.sonando .vivo-punto { background: #e74c3c; animation: parpadeo 1.5s ease-in-out infinite; }
@keyframes parpadeo { 0%,100%{opacity:1} 50%{opacity:.2} }
.vivo-estado { font-size: 12.5px; color: var(--texto-suave); }

.ondas { display: flex; align-items: center; gap: 3px; height: 24px; margin-left: 4px; }
.ondas i { display: block; width: 3px; border-radius: 2px; background: var(--azul); opacity: .3; height: 7px; }
.vivo.sonando .ondas i { opacity: 1; }
.vivo.sonando .ondas i:nth-child(1){ animation: onda 1.1s ease-in-out infinite }
.vivo.sonando .ondas i:nth-child(2){ animation: onda 1.1s ease-in-out .15s infinite }
.vivo.sonando .ondas i:nth-child(3){ animation: onda 1.1s ease-in-out .3s infinite }
.vivo.sonando .ondas i:nth-child(4){ animation: onda 1.1s ease-in-out .45s infinite }
.vivo.sonando .ondas i:nth-child(5){ animation: onda 1.1s ease-in-out .6s infinite }
@keyframes onda { 0%,100%{height:6px} 50%{height:20px} }

/* ---------- SECCIONES ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 68px 26px; }

.titulo { font-size: 32px; }
.raya { width: 46px; height: 4px; background: var(--azul); border-radius: 2px; margin: 16px 0 22px; }
.subtitulo { color: var(--texto-suave); font-size: 15.5px; max-width: 680px; }

.page-header {
  border-bottom: 1px solid var(--borde);
  background:
    radial-gradient(900px 340px at 20% -30%, rgba(43,143,208,.20), transparent 70%),
    var(--fondo);
  padding: 62px 26px 54px;
}
.page-header .inner { max-width: var(--ancho); margin: 0 auto; }
.page-header h1 { font-size: 38px; margin: 12px 0 10px; }
.page-header p { color: var(--texto-suave); font-size: 15.5px; max-width: 620px; }

.texto { color: var(--texto-suave); font-size: 15.5px; line-height: 1.85; max-width: 760px; }
.texto + .texto { margin-top: 15px; }
.texto strong { color: var(--texto); font-weight: 600; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--azul); color: #fff; border: none; border-radius: 8px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background .18s;
}
.btn:hover { background: var(--azul-osc); }

.btn-linea {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--texto);
  border: 1px solid var(--borde-fuerte); border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background .18s, border-color .18s;
}
.btn-linea:hover { background: rgba(255,255,255,.07); border-color: var(--azul); }

/* ---------- PANEL / TARJETAS ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 34px;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px,1fr)); gap: 16px; }

/* ---------- WHATSAPP ---------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel-alto); border: 1px solid var(--borde-fuerte);
  display: flex; align-items: center; justify-content: center;
  opacity: .8; transition: opacity .2s, background .18s, border-color .18s;
}
.wa-flotante:hover { opacity: 1; background: #25D366; border-color: #25D366; }
.wa-flotante svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--borde); background: #0b0d0e; padding: 46px 26px 26px; }
.footer-inner {
  max-width: var(--ancho); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 36px; flex-wrap: wrap;
}
.footer-placa { width: 96px; flex-shrink: 0; }
.footer-col h4 {
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--texto); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--texto-suave);
  text-decoration: none; font-size: 14px; line-height: 1.95;
}
.footer-col a:hover { color: var(--texto); }
.footer-legal {
  max-width: var(--ancho); margin: 34px auto 0; padding-top: 20px;
  border-top: 1px solid var(--borde);
  font-size: 12.5px; color: var(--texto-tenue);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hamburguesa { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: #14171a; flex-direction: column; gap: 0;
    padding: 8px 0; border-bottom: 1px solid var(--borde);
  }
  .nav-links.abierto { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 26px; border-radius: 0; font-size: 15px; }

  .titulo { font-size: 25px; }
  .page-header { padding: 44px 22px 40px; }
  .page-header h1 { font-size: 28px; }
  .seccion { padding: 48px 22px; }
  .panel { padding: 20px; border-radius: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
}
