/* =============================================
   LT17 RADIO — MAIN STYLESHEET
   Font: Questrial (Google Fonts)
   Paleta: #0e1b3a (navy) + #ffc83d (dorado)
   ============================================= */

:root {
  --navy:        #0e1b3a;
  --navy-light:  #162347;
  --navy-deep:   #090f1f;
  --gold:        #ffc83d;
  --gold-dark:   #e0a800;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --border-light: #e0e4ed;
  --gray-text:   #8a93a6;
  --radius:      10px;
  --radius-lg:   14px;
  --trans:       0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Questrial', sans-serif;
  background: var(--off-white);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ─────────────────────────────────── */
.lt17-header {
  background: var(--gold);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lt17-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 4px;
}

.lt17-logo img {
  height: 40px;
  width: auto;
}

.lt17-logo__fallback {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.lt17-logo__sub {
  font-size: 9px;
  color: rgba(14,27,58,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.lt17-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e02020;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.lt17-live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: lt17-blink 1.4s ease-in-out infinite;
}

@keyframes lt17-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* Audio inline en header */
.lt17-audio-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14,27,58,0.1);
  border-radius: 8px;
  padding: 7px 12px;
  flex: 1;
  min-width: 0;
}

.lt17-audio-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--trans);
  font-family: inherit;
}

.lt17-audio-btn:hover { transform: scale(1.08); }

.lt17-audio-btn svg {
  width: 11px;
  height: 11px;
  fill: var(--gold);
  margin-left: 2px;
}

.lt17-audio-btn svg.pause { margin-left: 0; }

.lt17-audio-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-shrink: 0;
}

.lt17-audio-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-family: 'Questrial', sans-serif;
}

.lt17-audio-status {
  font-size: 10px;
  color: rgba(14,27,58,0.5);
  white-space: nowrap;
}

.lt17-audio-status--live {
  color: #1a7a3a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lt17-audio-status--live::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #1a7a3a;
  border-radius: 50%;
  display: inline-block;
  animation: lt17-blink 1.4s ease-in-out infinite;
}

/* Ondas animadas */
.lt17-audio-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex: 1;
  opacity: 0.3;
}

.lt17-audio-wave .b {
  width: 3px;
  background: var(--navy);
  border-radius: 2px;
  animation: lt17-wave 1s ease-in-out infinite;
  height: 4px;
}

.lt17-audio-wave .b:nth-child(1) { animation-delay: 0s; }
.lt17-audio-wave .b:nth-child(2) { animation-delay: .1s; }
.lt17-audio-wave .b:nth-child(3) { animation-delay: .2s; }
.lt17-audio-wave .b:nth-child(4) { animation-delay: .3s; }
.lt17-audio-wave .b:nth-child(5) { animation-delay: .4s; }
.lt17-audio-wave .b:nth-child(6) { animation-delay: .15s; }
.lt17-audio-wave .b:nth-child(7) { animation-delay: .25s; }

@keyframes lt17-wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.lt17-audio-wave--paused .b { animation: none; height: 4px; }

.lt17-freq {
  font-size: 11px;
  font-weight: 700;
  color: rgba(14,27,58,0.5);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── HERO (video) ───────────────────────────── */
.lt17-hero {
  background: var(--navy);
  padding: 20px;
}

.lt17-video-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,200,61,0.25);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.lt17-video-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.lt17-video-overlay.hidden { display: none; }

.lt17-play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--trans);
}

.lt17-play-circle:hover { transform: scale(1.06); }

.lt17-play-circle svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
  margin-left: 4px;
}

.lt17-video-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Questrial', sans-serif;
}

.lt17-video-wrap video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── SECCIONES COMPARTIDAS ──────────────────── */
.lt17-section {
  padding: 20px;
}

.lt17-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.lt17-section-hdr--dark {
  border-bottom: 1px solid rgba(255,200,61,0.15);
}

.lt17-section-hdr--light {
  border-bottom: 2px solid var(--navy);
}

.lt17-section-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lt17-section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 17px;
  background: var(--gold);
  border-radius: 2px;
}

.lt17-section-title--dark { color: var(--white); }
.lt17-section-title--light { color: var(--navy); }

.lt17-section-more {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  opacity: 0.4;
  transition: opacity var(--trans);
}

.lt17-section-more:hover { opacity: 0.8; }

/* ── PODCASTS ───────────────────────────────── */
.lt17-podcasts {
  background: var(--navy);
}

.lt17-podcast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lt17-podcast-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,200,61,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: border-color var(--trans);
}

.lt17-podcast-card:hover {
  border-color: rgba(255,200,61,0.35);
}

.lt17-podcast-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--navy-deep);
}

.lt17-podcast-body {
  padding: 9px 11px 11px;
}

.lt17-podcast-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 3px;
}

.lt17-podcast-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  line-height: 1.4;
  margin-bottom: 7px;
}

.lt17-spotify-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1db954;
  border-radius: 3px;
  padding: 2px 6px;
}

.lt17-spotify-badge svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}

.lt17-spotify-badge span {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  font-family: 'Questrial', sans-serif;
}

/* ── NOTICIAS ───────────────────────────────── */
.lt17-news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.lt17-news-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--trans);
  display: block;
}

.lt17-news-card:hover { border-color: var(--navy); }

.lt17-news-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #e8ecf2;
}

.lt17-news-card__placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lt17-news-card__placeholder svg {
  width: 22px;
  height: 22px;
  opacity: 0.12;
}

.lt17-news-card__body { padding: 10px 12px; }

.lt17-news-card__cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  opacity: 0.4;
  margin-bottom: 5px;
}

.lt17-news-card__title {
  font-size: 12px;
  color: var(--navy);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lt17-news-card__meta {
  font-size: 10px;
  color: var(--gray-text);
  margin-top: 6px;
}

/* Loading / error estado */
.lt17-news-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--gray-text);
  font-size: 14px;
}

.lt17-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dde1ea;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: lt17-spin 0.7s linear infinite;
}

@keyframes lt17-spin { to { transform: rotate(360deg); } }

/* Timestamp de actualización */
.lt17-news-updated {
  font-size: 10px;
  color: var(--gray-text);
  margin-top: 12px;
  text-align: right;
}

/* ── REDES SOCIALES ─────────────────────────── */
.lt17-redes {
  background: var(--gold);
  padding: 16px 20px;
}

.lt17-redes-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(14,27,58,0.5);
  margin-bottom: 10px;
}

.lt17-redes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lt17-red-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  border-radius: 8px;
  padding: 9px 14px;
  transition: opacity var(--trans);
}

.lt17-red-card:hover { opacity: 0.85; }

.lt17-red-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lt17-red-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.lt17-red-handle {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}

/* ── FOOTER ─────────────────────────────────── */
.lt17-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.lt17-footer__call {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.lt17-footer__tag {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.lt17-footer__copy {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* ── RESPONSIVO ─────────────────────────────── */
@media (max-width: 900px) {
  .lt17-podcast-grid { grid-template-columns: repeat(2, 1fr); }
  .lt17-news-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .lt17-header { padding: 0 14px; gap: 10px; }
  .lt17-freq   { display: none; }
  .lt17-hero   { padding: 14px; }
  .lt17-section { padding: 14px; }
  .lt17-podcast-grid { grid-template-columns: repeat(2, 1fr); }
  .lt17-news-grid    { grid-template-columns: 1fr; }
  .lt17-footer { padding: 12px 14px; }
  .lt17-footer__copy { text-align: left; }
}
