* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #050608;
  --dark: #0a0d11;
  --panel: #10141a;
  --panel-light: #161b22;
  --line: rgba(255,255,255,.08);
  --text: #f4f6f8;
  --muted: #9da7b4; /* Tono ajustado para mejorar contraste con letra más grande */
  --accent: #16d9c5;
  --accent-dark: #0aa89a;
  --gold: #d9b86c;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
}

main {
  min-height: 100vh;
}


/* HEADER */

header {
  height: 74px;
  background: rgba(5,6,8,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.header-container {
  max-width: 1280px;
  height: 100%;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 124px;
  display: block;
}

nav {
  display: flex;
  gap: 38px;
}

nav a {
  color: #c5cbd3;
  text-decoration: none;
  font-size: .9rem; /* Aumentado de .78rem */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: .25s;
}

nav a:hover {
  color: var(--accent);
}

.header-live {
  font-size: .8rem; /* Aumentado de .67rem */
  font-weight: 800;
  letter-spacing: .12em;
  color: #9da7b4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 1.5s infinite;
}


/* HERO */

.hero-section {
  max-width: 1280px;
  margin: auto;
  padding: 54px 28px 0;
}

.hero-wrap {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1fr 1.35fr .75fr;
  gap: 45px;
  align-items: center;
}


/* TEXTO IZQUIERDO */

.hero-copy {
  padding-left: 15px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: .8rem; /* Aumentado de .68rem */
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 25px;
}

.eyebrow span {
  width: 27px;
  height: 2px;
  background: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 6vw, 6rem); /* Mantenido */
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 800;
}

.hero-copy h1 strong {
  color: var(--accent);
  font-weight: 800;
}

.hero-copy p {
  color: var(--gold);
  font-size: 1.15rem; /* Aumentado de 1rem */
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 25px;
}

.hero-description {
  color: var(--muted);
  font-size: .95rem; /* Aumentado de .82rem */
  line-height: 1.7;
  max-width: 320px;
  margin-top: 20px;
}


/* PLAYER CENTRAL */

.main-player {
  min-height: 550px;
  background:
    radial-gradient(circle at 50% 40%, rgba(22,217,197,.08), transparent 36%),
    linear-gradient(150deg,#12171d,#080a0d);
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 35px 80px rgba(0,0,0,.45);
}

.player-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(22,217,197,.06);
  filter: blur(80px);
  border-radius: 50%;
  top: 100px;
  pointer-events: none;
}

.player-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.on-air {
  font-size: .78rem; /* Aumentado de .63rem */
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .15em;
  display: flex;
  gap: 7px;
  align-items: center;
}

.on-air i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.2s infinite;
}

.frequency {
  font-size: .78rem; /* Aumentado de .62rem */
  color: #838e9c;
  font-weight: 700;
  letter-spacing: .12em;
}


/* DISCO */

.disc-area {
  width: 235px;
  height: 235px;
  position: relative;
  margin: 42px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-art {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background: #171c22;
  border: 7px solid #0b0e12;
  outline: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #59636f;
  font-size: 2.7rem;
  box-shadow: 0 15px 40px rgba(0,0,0,.7);
}

.album-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disc-wave {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(22,217,197,.18);
}

.wave-1 {
  width: 204px;
  height: 204px;
}

.wave-2 {
  width: 225px;
  height: 225px;
}

.wave-3 {
  width: 245px;
  height: 245px;
}


/* INFORMACIÓN */

.now-playing {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.np-label {
  font-size: .75rem; /* Aumentado de .57rem */
  color: #8994a3;
  font-weight: 800;
  letter-spacing: .2em;
  margin-bottom: 7px;
}

.np-song {
  font-size: 1.25rem; /* Aumentado de 1.08rem */
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: .92rem; /* Aumentado de .76rem */
  color: var(--accent);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* BOTÓN */

.big-control {
  width: 76px;
  height: 76px;
  position: relative;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
  border-top-color: var(--accent);
  animation: spin 3s linear infinite;
}

.hero-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #04100e;
  cursor: pointer;
  position: relative;
  z-index: 3;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
  box-shadow: 0 0 25px rgba(22,217,197,.18);
}

.hero-play-btn:hover {
  transform: scale(1.08);
  background: #65f1e2;
}

.hero-play-btn i {
  margin-left: 3px;
}


/* ECUALIZADOR */

.equalizer {
  position: absolute;
  bottom: 22px;
  height: 22px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  opacity: .45;
}

.equalizer span {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.equalizer span:nth-child(2n) {
  height: 9px;
}

.equalizer span:nth-child(3n) {
  height: 15px;
}

.equalizer span:nth-child(5n) {
  height: 20px;
}


/* PANEL DERECHO */

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.side-title {
  color: #eef1f3;
  font-size: .85rem; /* Aumentado de .72rem */
  font-weight: 800;
  letter-spacing: .15em;
}

.side-line {
  width: 45px;
  height: 2px;
  background: var(--accent);
  margin: 15px 0 20px;
}

.hero-side p {
  color: var(--muted);
  font-size: .95rem; /* Aumentado de .8rem */
  line-height: 1.75;
}

.side-stats {
  display: flex;
  gap: 30px;
  margin-top: 38px;
}

.side-stats div {
  display: flex;
  flex-direction: column;
}

.side-stats strong {
  font-size: 1.5rem; /* Aumentado de 1.35rem */
  color: var(--accent);
}

.side-stats span {
  color: #798593;
  font-size: .7rem; /* Aumentado de .55rem */
  font-weight: 800;
  letter-spacing: .1em;
  margin-top: 3px;
}

.mini-social {
  display: flex;
  gap: 8px;
  margin-top: 42px;
}

.mini-social a {
  width: 38px; /* Aumentado de 33px */
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #939da8;
  text-decoration: none;
  font-size: .9rem; /* Aumentado de .75rem */
  transition: .25s;
}

.mini-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* PUBLICIDAD HORIZONTAL */

.ad-banner {
  margin: 45px auto 0;
  width: min(100%, 900px);
  text-align: center;
}

.ad-banner > span,
.square-ad > span {
  display: block;
  color: #6a7480;
  font-size: .68rem; /* Aumentado de .5rem */
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 7px;
}

.ad-banner-content {
  min-height: 90px;
  background: #0b0d10;
  border: 1px solid rgba(255,255,255,.045);
  display: flex;
  justify-content: center;
  align-items: center;
}


/* PROGRAMACIÓN */

.programs {
  max-width: 1280px;
  margin: auto;
  padding: 90px 28px 100px;
}

.section-head {
  display: flex;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}

.section-head span {
  color: var(--accent);
  font-size: .75rem; /* Aumentado de .6rem */
  font-weight: 800;
  letter-spacing: .18em;
}

.section-head h2 {
  margin-top: 7px;
  font-size: 2.2rem; /* Mantenido */
  letter-spacing: -.04em;
}

.section-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  margin-bottom: 8px;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.prog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s,border-color .25s;
}

.prog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22,217,197,.35);
}

.prog-thumb {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: #080a0c;
}

.prog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.prog-card:hover .prog-thumb img {
  transform: scale(1.04);
}

.prog-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(0,0,0,.85);
  color: var(--accent);
  font-size: .75rem; /* Aumentado de .6rem */
  font-weight: 800;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.prog-info {
  padding: 16px 18px 18px;
}

.prog-info h3 {
  font-size: 1rem; /* Aumentado de .86rem */
  font-weight: 800;
}

.prog-info p {
  color: var(--accent);
  font-size: .8rem; /* Aumentado de .66rem */
  margin-top: 7px;
}


/* ANUNCIO CUADRADO */

.square-ad {
  width: 300px;
  margin: 65px auto 0;
  text-align: center;
}

.square-ad > div {
  width: 300px;
  height: 250px;
  background: #0b0d10;
  border: 1px solid rgba(255,255,255,.045);
}


/* FENCIL */

.grupo-fencil {
  border-top: 1px solid var(--line);
  background: #080a0d;
  padding: 42px 0;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  padding: 0 28px;
}

.grupo-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 27px;
}

.grupo-heading span {
  color: #7d8794;
  font-size: .72rem; /* Aumentado de .58rem */
  font-weight: 700;
  letter-spacing: .15em;
}

.grupo-heading strong {
  color: #cdd4dc;
  font-size: .88rem; /* Aumentado de .75rem */
  letter-spacing: .12em;
}

.grupo-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.grupo-logos a {
  display: block;
}

.grupo-logos img {
  height: 58px;
  width: auto;
  border-radius: 5px;
  opacity: .68;
  transition: .25s;
}

.grupo-logos img:hover {
  opacity: 1;
}


/* FOOTER */

footer {
  background: #050608;
  padding: 30px 0 150px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 118px;
}

.footer-social {
  display: flex;
  gap: 9px;
}

.footer-social a {
  width: 40px; /* Aumentado de 36px */
  height: 40px;
  border: 1px solid var(--line);
  color: #96a1ad;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: .9rem;
  transition: .25s;
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #7a8592;
  font-size: .78rem; /* Aumentado de .65rem */
}

.footer-bottom strong {
  color: #9ba5b0;
}


/* PLAYER INFERIOR */

#player {
  position: fixed;
  z-index: 200;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1120px);
  height: 76px;
  background: rgba(14,18,23,.94);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 17px;
}

.viz {
  width: 35px;
  height: 25px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.vb {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.vb.on {
  animation: bars var(--s,.8s) ease-in-out infinite alternate;
}

@keyframes bars {
  from { height: var(--a,3px); }
  to { height: var(--b,20px); }
}

.p-info {
  flex: 1;
  min-width: 0;
}

.p-label {
  color: var(--accent);
  font-size: .68rem; /* Aumentado de .5rem */
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 2px;
}

.p-song {
  color: white;
  font-size: .98rem; /* Aumentado de .85rem */
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-art {
  color: #929ca7;
  font-size: .8rem; /* Aumentado de .66rem */
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbtn-wrap {
  width: 50px;
  height: 50px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 3s linear infinite;
}

.pbtn {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #06100e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.pbtn i {
  font-size: .9rem; /* Aumentado de .78rem */
  margin-left: 2px;
}

.vol {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8994a0;
}

.vol i {
  font-size: .8rem; /* Aumentado de .65rem */
}

input[type="range"] {
  width: 80px;
  height: 4px;
  appearance: none;
  background: #353c44;
  border-radius: 10px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .72rem; /* Aumentado de .58rem */
  font-weight: 800;
  letter-spacing: .12em;
}

.live-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.2s infinite;
}


/* ANIMACIONES */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,100% {
    opacity: .35;
  }
  50% {
    opacity: 1;
  }
}


/* CUANDO REPRODUCE */

#heroBtnWrap.playing .control-ring {
  animation-duration: 1s;
  border-top-color: var(--gold);
}

#heroBtnWrap.playing ~ .equalizer span {
  animation: bars .6s ease-in-out infinite alternate;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(2) {
  animation-delay: -.2s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(3) {
  animation-delay: -.4s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(4) {
  animation-delay: -.1s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(5) {
  animation-delay: -.35s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(6) {
  animation-delay: -.5s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(7) {
  animation-delay: -.15s;
}

#heroBtnWrap.playing ~ .equalizer span:nth-child(8) {
  animation-delay: -.35s;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

  .hero-wrap {
    grid-template-columns: 1fr 1.3fr;
  }

  .hero-side {
    display: none;
  }

  .hero-copy {
    padding-left: 5px;
  }

  .prog-grid {
    grid-template-columns: repeat(2,1fr);
  }
}


@media (max-width: 700px) {

  header {
    height: 64px;
  }

  .header-container {
    padding: 0 18px;
  }

  nav,
  .header-live {
    display: none;
  }

  .hero-section {
    padding: 25px 15px 0;
  }

  .hero-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 25px;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
    padding: 15px 0 0;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: 3.7rem;
  }

  .hero-description {
    margin: 17px auto 0;
  }

  .main-player {
    width: 100%;
    min-height: 500px;
    padding: 24px 18px;
  }

  .disc-area {
    margin-top: 35px;
  }

  .ad-banner {
    margin-top: 28px;
  }

  .programs {
    padding: 65px 15px 80px;
  }

  .wrap {
    padding: 0 18px;
  }

  .section-head {
    gap: 15px;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .prog-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
  }

  .prog-info {
    padding: 12px;
  }

  .prog-info h3 {
    font-size: .88rem; /* Ajustado en móvil */
  }

  .prog-info p {
    font-size: .72rem; /* Ajustado en móvil */
  }

  .footer-main {
    flex-direction: column;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  #player {
    width: calc(100% - 20px);
    bottom: 10px;
    height: 65px;
    padding: 0 12px;
    gap: 10px;
  }

  .viz {
    display: none;
  }

  .vol,
  .live-badge {
    display: none;
  }

  .pbtn-wrap {
    width: 45px;
    height: 45px;
  }

  .pbtn {
    width: 34px;
    height: 34px;
  }

  .p-song {
    font-size: .88rem;
  }

  .p-art {
    font-size: .72rem;
  }
}


@media (max-width: 380px) {

  .prog-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .main-player {
    min-height: 480px;
  }
}