/* Studio74 — Minimal Dark Radio */

:root {
  --bg:           #09090b;
  --surface:      #0f0f12;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hi:    rgba(255, 255, 255, 0.12);
  --text:         #f4f4f5;
  --muted:        #71717a;
  --red:          #e31b2f;
  --red-dark:     #c41827;
  --red-glow:     rgba(227, 27, 47, 0.32);
  --green:        #22c55e;
  --yellow:       #eab308;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ─── Container ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Topbar ────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  padding: 0 40px;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-copy         { display: grid; gap: 1px; }

.brand-copy strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-copy span {
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #9a9aaa;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}

.nav a:hover { color: var(--text); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  user-select: none;
}

.live-pill.tone-live {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.live-pill.tone-error {
  background: rgba(227, 27, 47, 0.12);
  border-color: rgba(227, 27, 47, 0.3);
  color: #f87171;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tone-live .live-dot { animation: pulse-dot 1.2s ease-in-out infinite; }

/* ─── Hero + Parallax ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #06060a;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.68) 0%,
    rgba(9, 9, 11, 0.80) 45%,
    rgba(9, 9, 11, 0.97) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: start;
  gap: 72px;
  width: 100%;
  max-width: 1100px;
  padding: 88px 60px 72px;
}

/* ─── Columna izquierda: marca ─── */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ─── Eyebrow ─── */
.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 20px;
}

/* ─── Hero title ─── */
.hero-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.hero-title span { color: var(--red); }

.hero-sub {
  margin: 18px 0 0;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: #9a9aaa;
  letter-spacing: 0.1em;
}

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 28px 0;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease infinite;
  flex-shrink: 0;
}

/* ─── Columna derecha: reproductor ─── */
.hero-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 2.2rem;
}

/* ─── Play button hub ─── */
.player-hub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.ripple {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: ripple-out 2.2s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 0.7s; }
.ripple-3 { animation-delay: 1.4s; }

.play-btn {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.play-btn.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-glow), 0 18px 44px var(--red-glow);
}

.play-btn:not(:disabled):hover { transform: scale(1.06); }

.play-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ─── Track info ─── */
.track-info {
  display: grid;
  gap: 4px;
}

.track-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.track-artist {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ─── Status line ─── */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-line .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-live  .status-dot { background: var(--green); }
.status-error .status-dot { background: #f87171; }
.status-idle  .status-dot { background: var(--yellow); }


/* ─── Share ─── */
.share-wrap { position: relative; }

.share-btn {
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.share-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

.share-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #1c1c22;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  white-space: nowrap;
}

.share-menu button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.share-menu button:hover { background: rgba(255, 255, 255, 0.1); }

/* ─── Ticker bar ─ forma de trapecio ────────────────── */
.ticker-bar {
  display: flex;
  align-items: stretch;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  /* trapecio invertido: estrecho arriba (36px por lado), rectangular abajo */
  clip-path: polygon(36px 0, calc(100% - 36px) 0, 100% 100%, 0 100%);
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px 11px 40px; /* extra izquierda para el corte superior */
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-content { overflow: hidden; flex: 1; }

.ticker-track {
  display: flex;
  gap: 64px;
  min-width: max-content;
  white-space: nowrap;
  padding: 11px 40px 11px 24px; /* extra derecha para el corte superior */
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: ticker 24s linear infinite;
}

/* ─── Sections ──────────────────────────────────────── */
.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-alt { background: var(--surface); }

/* ─── Fondo de imagen en sección Programación ───────── */
.section-bg-studio {
  position: relative;
  overflow: hidden;
}
.section-bg-studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/cover3.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.section-bg-studio .container {
  position: relative;
  z-index: 1;
}

/* ─── Galería ────────────────────────────────────────── */
.gallery-section {
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 270px 270px;
  gap: 5px;
  margin-top: 32px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.gallery-item--main {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.section-header { margin-bottom: 30px; }

.section-header .eyebrow { margin-bottom: 8px; }

.section-header h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ─── History — simple divider list ─────────────────── */
.history-list { display: grid; }

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child { border-bottom: none; }

.history-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}

.history-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.history-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }

.history-meta strong {
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Schedule — divider rows ───────────────────────── */
.schedule-list { display: grid; }

.schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
  line-height: 1.4;
}

.schedule-info { display: grid; gap: 3px; }

.schedule-info h3 {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
}

.schedule-info strong {
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 600;
}

.schedule-info p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Footer ────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-bottom: 68px;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/banner-horizontal.jpeg");
  background-size: cover;
  background-position: center top;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  width: min(100%, 200px);
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.85; }

.footer-tagline {
  margin: 0;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  transition: color 0.15s;
  text-decoration: none;
}

.footer-social:hover { color: var(--text); }

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
}

.footer-social:hover .footer-social-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-sep { opacity: 0.4; }

.footer-bottom-right {
  margin-left: auto;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

/* ─── Mini player · pill flotante centrado ──────────── */
.mini-player {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 18px;
  background: rgba(14, 14, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.25s;
  white-space: nowrap;
}

.mini-player.is-playing {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 22px var(--red-glow);
}

.mini-signal {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
  flex-shrink: 0;
}

.mini-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  align-self: center;
  padding: 0 3px;
  user-select: none;
}

.mini-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.mini-button:hover {
  background: var(--red-dark);
  transform: scale(1.07);
}

/* ─── Equalizer bars ────────────────────────────────── */
.equalizer-bar {
  width: 3px;
  height: 14px;
  background: var(--red);
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.2);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.is-playing .equalizer-bar { opacity: 1; }

.is-playing .equalizer-bar:nth-child(1) { animation: eq1 0.85s ease-in-out infinite; }
.is-playing .equalizer-bar:nth-child(2) { animation: eq2 1.10s ease-in-out infinite; }
.is-playing .equalizer-bar:nth-child(3) { animation: eq3 0.72s ease-in-out infinite; }
.is-playing .equalizer-bar:nth-child(4) { animation: eq4 1.30s ease-in-out infinite; }

/* ─── Keyframes ─────────────────────────────────────── */
@keyframes ripple-out {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ─── Badge combinado: hora + clima ─────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}

.nav-badge-period {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.4;
}

.nav-badge-icon {
  width: 11px;
  height: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.nav-badge-sep {
  color: var(--muted);
  opacity: 0.5;
  font-weight: 400;
}

.nav-badge-temp {
  color: #7dd3fc;
  font-weight: 700;
}

/* ─── Portada con crossfade ─────────────────────────── */
@keyframes art-fade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-art {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  animation: art-fade 0.55s ease;
  flex-shrink: 0;
}

.mini-art img {
  animation: art-fade 0.55s ease;
}

/* ─── Soundwave animada ─────────────────────────────── */
.soundwave {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 28px;
}

.soundwave-bar {
  flex: 1;
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transform: scaleY(0.08);
  transform-origin: center;
  opacity: 0.25;
  animation: wave-bar 1.1s ease-in-out infinite;
  animation-play-state: paused;
  transition: opacity 0.4s;
}

.soundwave.playing .soundwave-bar {
  animation-play-state: running;
  opacity: 1;
}

.soundwave-bar:nth-child(odd)  { animation-duration: 0.9s; }
.soundwave-bar:nth-child(3n)   { animation-duration: 1.3s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.08); }
  50%       { transform: scaleY(1); }
}

@keyframes eq1 {
  0%, 100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1);   }
}
@keyframes eq2 {
  0%       { transform: scaleY(0.7); }
  30%      { transform: scaleY(0.15); }
  70%      { transform: scaleY(1);   }
  100%     { transform: scaleY(0.7); }
}
@keyframes eq3 {
  0%, 100% { transform: scaleY(0.35); }
  40%      { transform: scaleY(1);    }
  65%      { transform: scaleY(0.2);  }
}
@keyframes eq4 {
  0%       { transform: scaleY(0.9);  }
  25%      { transform: scaleY(0.15); }
  60%      { transform: scaleY(0.75); }
  100%     { transform: scaleY(0.9);  }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 0 18px; }
  .nav { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 80px 24px 52px;
    gap: 48px;
  }
  .hero-brand { align-items: center; text-align: center; }
  .hero-meta  { align-items: center; }
  .play-btn   { width: 86px; height: 86px; font-size: 1.2rem; }
  .ripple     { width: 86px; height: 86px; }

  .section     { padding: 52px 0; }

  .schedule-item { grid-template-columns: 1fr; gap: 6px; }
  .schedule-time { min-width: auto; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-socials { justify-content: center; }

  .mini-player { padding: 0 16px; gap: 12px; }
  .mini-live   { display: none; }
  .mini-signal { display: none; }
}
