:root {
  --c-primario: #1d4ed8;
  --c-primario-osc: #1e3a8a;
  --c-primario-claro: #3b82f6;
  --c-acento: #f59e0b;
  --c-acento-osc: #d97706;
  --c-rojo: #ef4444;
  --c-fondo: #f1f5f9;
  --c-superficie: #ffffff;
  --c-texto: #0f172a;
  --c-texto-suave: #475569;
  --c-borde: #e2e8f0;
  --sombra-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --sombra: 0 8px 24px rgba(29, 78, 216, 0.08);
  --sombra-fuerte: 0 12px 32px rgba(29, 78, 216, 0.18);
  --radio: 14px;
  --max: 1180px;
  --tipo: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 96px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; width: 100%; overflow-x: clip; }

body {
  font-family: var(--tipo);
  color: var(--c-texto);
  background:
    radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.08), transparent 55%),
    var(--c-fondo);
  background-attachment: fixed;
  scroll-behavior: smooth;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 0.5rem; line-height: 1.2; }
a { color: var(--c-primario); text-decoration: none; }
a:hover { color: var(--c-primario-osc); }

/* ============ HEADER FIJO ============ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  color: #fff;
  padding: clamp(0.6rem, 1.8vw, 1.1rem) clamp(0.7rem, 2.5vw, 1rem);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--sombra);
}
.site-header .header-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--c-primario-osc) 0%, var(--c-primario) 50%, #6366f1 100%);
  z-index: -2;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.25), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.35), transparent 35%);
  z-index: -1;
  pointer-events: none;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  transition: gap 0.25s ease;
}
.brand:hover, .brand:focus { color: inherit; text-decoration: none; }
.brand:hover h1, .brand:hover .tagline { color: inherit; }
.logo {
  width: clamp(48px, 11vw, 70px);
  height: clamp(48px, 11vw, 70px);
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: width 0.25s ease, height 0.25s ease;
  flex-shrink: 0;
}
.brand-text h1 {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: font-size 0.25s ease;
  margin: 0;
}
.brand-text .tagline {
  margin: 0;
  opacity: 0.9;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  transition: opacity 0.25s ease, font-size 0.25s ease;
}

.nav { display: flex; gap: clamp(0.25rem, 0.8vw, 0.4rem); flex-wrap: wrap; justify-content: center; }
.nav a {
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  padding: clamp(0.4rem, 1vw, 0.45rem) clamp(0.7rem, 2vw, 0.95rem);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ============ REPRODUCTOR ============ */
.player {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.2vw, 0.7rem);
  padding: clamp(0.32rem, 0.8vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.32rem, 0.8vw, 0.4rem) clamp(0.32rem, 0.8vw, 0.4rem);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
#audio-player { display: none; }

.btn-play {
  position: relative;
  width: clamp(42px, 10vw, 48px);
  height: clamp(42px, 10vw, 48px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--c-acento);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}
.btn-play:hover { background: var(--c-acento-osc); transform: scale(1.05); }
.btn-play:active { transform: scale(0.96); }
.btn-play .icon { width: 22px; height: 22px; }
.btn-play .icon-pause, .btn-play .icon-loading { display: none; }
.btn-play.is-playing { background: var(--c-rojo); color: #fff; }
.btn-play.is-playing .icon-play { display: none; }
.btn-play.is-playing .icon-pause { display: block; }
.btn-play.is-loading .icon-play, .btn-play.is-loading .icon-pause { display: none; }
.btn-play.is-loading .icon-loading { display: block; }
.btn-play.is-error { background: var(--c-rojo); color: #fff; }

.icon-loading {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c-rojo);
  opacity: 0;
  pointer-events: none;
}
.btn-play.is-playing .btn-pulse {
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.player-meta { display: flex; flex-direction: column; line-height: 1.1; min-width: clamp(80px, 22vw, 110px); }
.player-label {
  font-size: clamp(0.6rem, 1.3vw, 0.65rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--c-acento);
}
.btn-play.is-playing ~ .player-meta .player-label { color: #fecaca; }
.player-status { font-size: clamp(0.76rem, 1.7vw, 0.85rem); color: #fff; opacity: 0.95; }

/* ============ HEADER SHRINK ON SCROLL ============ */
.site-header.scrolled { padding: 0.55rem 1rem; box-shadow: var(--sombra-fuerte); }
.site-header.scrolled .logo { width: 46px; height: 46px; }
.site-header.scrolled .brand-text h1 { font-size: 1.1rem; }
.site-header.scrolled .brand-text .tagline { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 1.4rem 1rem 2rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(99, 102, 241, 0.85)),
    radial-gradient(ellipse at center, #3b82f6 0%, #1e3a8a 100%);
  overflow: hidden;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  margin: 0 0 0.35rem;
  color: var(--c-acento);
  font-weight: 700;
}
.hero-title {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 0.45rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.hero-jingle {
  font-style: italic;
  opacity: 0.95;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
}
.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background:
    radial-gradient(ellipse 50% 100% at 50% 100%, var(--c-fondo) 50%, transparent 51%);
}

/* ============ MAIN LAYOUT ============ */
main { max-width: var(--max); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(0.7rem, 2.5vw, 1rem); }
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.layout > * { min-width: 0; }
.grilla-wrap { max-width: 100%; }
@media (min-width: 980px) {
  .layout { grid-template-columns: 1fr 380px; align-items: start; }
  .side-col { position: sticky; top: 120px; }
}

/* ============ SECTIONS ============ */
.section {
  background: var(--c-superficie);
  border-radius: var(--radio);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--sombra);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
  min-width: 0;
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--c-acento), var(--c-primario));
}
.section-head { margin-bottom: 1.1rem; }
.section h2 {
  font-size: 1.4rem;
  color: var(--c-primario-osc);
  display: inline-block;
  position: relative;
  padding-bottom: 0.3rem;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 50%; height: 3px;
  background: var(--c-acento);
  border-radius: 2px;
}
.section-sub { margin: 0.4rem 0 0; color: var(--c-texto-suave); font-style: italic; font-size: 0.92rem; }

/* ============ GRILLA PROGRAMACION (tabla fluida, sin min-width, se adapta al viewport) ============ */
.grilla-wrap { border-radius: 10px; border: 1px solid var(--c-borde); overflow: hidden; }
.grilla {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  table-layout: auto;
}
.grilla th, .grilla td {
  padding: clamp(0.45rem, 1vw, 0.72rem) clamp(0.4rem, 0.9vw, 0.7rem);
  text-align: left;
  word-break: break-word;
  vertical-align: top;
}
.grilla thead th {
  background: linear-gradient(135deg, var(--c-primario-osc), var(--c-primario));
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.grilla th:first-child, .grilla td:first-child { width: 28%; white-space: nowrap; }
.grilla tbody tr { border-top: 1px solid var(--c-borde); transition: background 0.15s ease; }
.grilla tbody tr:hover { background: #fef3c7; }
.grilla tbody tr.destacado td:first-child { font-weight: 700; color: var(--c-primario); }
.grilla tbody tr.destacado td:nth-child(2) { font-weight: 600; }
.grilla tbody tr:not(.destacado) td { color: var(--c-texto-suave); }

/* ============ SOBRE NOSOTROS ============ */
.sobre p { color: #334155; margin: 0 0 0.85rem; }
.sobre p strong { color: var(--c-primario-osc); }
.contact-card {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
  border-radius: 10px;
  border-left: 4px solid var(--c-acento);
  display: grid;
  gap: 0.6rem;
}
.contact-card > div { display: flex; flex-direction: column; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-texto-suave);
  font-weight: 700;
}
.contact-value { font-size: 1rem; color: var(--c-primario-osc); font-weight: 600; }

/* ============ FACEBOOK SIDEBAR (compacto, header propio) ============ */
.facebook {
  padding: 0.9rem;
  background: var(--c-superficie);
  text-align: center;
}
.facebook::before { display: none; }

.fb-mini-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #dddfe2;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  text-align: left;
}
.fb-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  object-fit: contain;
}
.fb-mini-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1c1e21;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-mini-icon { flex-shrink: 0; }

.fb-clip {
  overflow: hidden;
  border: 1px solid #dddfe2;
  border-radius: 0 0 8px 8px;
  background: #fff;
  height: 720px;
  position: relative;
}
.fb-clip iframe {
  display: block;
  width: 100%;
  max-width: 340px;
  height: 900px;
  margin: -130px auto 0;
  border: none;
}

.fb-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.5rem 0.95rem;
  background: #1877f2;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.fb-cta:hover { background: #166fe5; color: #fff; }
.side-col .section { margin-bottom: 0; }

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 1.4rem 1rem 1.6rem;
  color: var(--c-texto-suave);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(29, 78, 216, 0.06));
  border-top: 1px solid var(--c-borde);
  margin-top: 2rem;
}
.footer-line { margin: 0 0 0.3rem; font-weight: 600; color: var(--c-primario-osc); }
.footer-credit { margin: 0; font-size: 0.82rem; opacity: 0.85; }

/* Sin reglas mobile-specific. El diseno de PC se adapta solo via flex/grid/clamp.
   El unico breakpoint que queda es @media (min-width: 980px) para el layout 2-col,
   declarado mas arriba en este archivo. */
