:root {
  --navy: #020b18;
  --navy-soft: #071a30;
  --blue: #009fe3;
  --cyan: #26d8ff;
  --red: #e81e4d;
  --white: #ffffff;
  --muted: #a9bbcf;
  --surface: #0a2038;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: #172033;
  background: #f5f8fc;
}

.navbar {
  padding: 0.7rem 0;
  background: linear-gradient(to bottom, rgba(2, 11, 24, 0.88), transparent);
  transition: background-color 0.25s, box-shadow 0.25s;
}

.navbar.fixed {
  background: rgba(2, 11, 24, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.navbar-brand img {
  width: 140px;
  height: auto;
}

.navbar-nav .nav-link {
  margin-left: 0.35rem;
  padding: 0.55rem 0.8rem !important;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--cyan) !important;
}

.portada {
  position: relative;
  min-height: min(780px, 92vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
}

.portada > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portada-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 11, 24, 0.94) 0%, rgba(2, 11, 24, 0.65) 50%, rgba(2, 11, 24, 0.18) 100%);
}

.portada-title {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 2rem));
  padding-top: 5rem;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portada-title h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.portada-title p {
  max-width: 600px;
  margin: 1.5rem 0 2rem;
  color: #d8e4f0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 30px rgba(232, 30, 77, 0.32);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(232, 30, 77, 0.42);
}

.playerSection {
  color: var(--white);
  background: radial-gradient(circle at 15% 10%, #12385d, var(--navy) 55%);
}

.radio-player {
  width: min(900px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(10, 32, 56, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-brand {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue), #004a82);
}

.player-brand img {
  position: relative;
  z-index: 2;
  width: min(180px, 68%);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.25));
}

.broadcast-ring {
  position: absolute;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.broadcast-ring-two { width: 320px; }

.player-content {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.player-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  color: #ffdce4;
  background: rgba(232, 30, 77, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.player-status { color: var(--muted); font-size: 0.84rem; }
.player-content h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; }
.player-content > p { margin: 0.55rem 0 1.75rem; color: var(--muted); }
.player-controls { display: flex; align-items: center; gap: 1.25rem; }

.play-button {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 28px rgba(232, 30, 77, 0.38);
  font-size: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.play-button:hover { transform: scale(1.05); box-shadow: 0 14px 34px rgba(232, 30, 77, 0.48); }
.play-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.radio-player[data-state="loading"] .play-button { animation: player-pulse 1s ease-in-out infinite; }
.radio-player[data-state="error"] .player-status { color: #ff99b0; }

.volume-control {
  width: min(250px, 100%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cyan);
}

.volume-control input { width: 100%; accent-color: var(--red); cursor: pointer; }

@keyframes player-pulse {
  50% { transform: scale(0.94); opacity: 0.72; }
}

.programationSection { background: #f5f8fc; }
.subtitle { margin: 0; text-align: center; color: var(--navy-soft); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.programacion-title::after { content: ""; display: block; width: 64px; height: 4px; margin: 0.8rem auto 0; border-radius: 4px; background: var(--red); }

.program-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e1e9f2;
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 26, 48, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(7, 26, 48, 0.13); }
.program-card img { width: 140px; height: 140px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; }
.program-card h3 { color: var(--navy-soft); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.program-card p { margin-bottom: 0.35rem; font-weight: 400; }

.nosotrosSection { padding: 3.5rem 1rem; background: linear-gradient(135deg, #008bc9, var(--blue)); }
.nosotrosSection h6 { max-width: 820px; margin: auto; font-size: 1.05rem; line-height: 1.8; }
.contactSection { padding: 2.5rem 1rem; background: var(--navy); }
.footer { padding: 0.8rem 0; color: var(--muted); text-align: center; background: #010711; }
.footer p { margin: 0; }

@media (max-width: 767px) {
  .navbar { background: rgba(2, 11, 24, 0.9); }
  .navbar-brand img { width: 100px; }
  .portada { min-height: 680px; }
  .portada-overlay { background: linear-gradient(0deg, rgba(2, 11, 24, 0.98), rgba(2, 11, 24, 0.35)); }
  .portada-title { align-self: end; padding: 0 0 4.5rem; }
  .radio-player { grid-template-columns: 1fr; }
  .player-brand { min-height: 190px; }
  .player-brand img { width: 140px; }
  .program-card { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
