/*=============================================
REDISEÑO 221 — ajustes que complementan a Tailwind (prefijo tw-)
=============================================*/

/* Material Symbols (iconos de la maqueta) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Offsets para el header fijo (80px) y el reproductor sticky (64px) */
body {
  padding-top: 80px;
  padding-bottom: 64px;
}

/* El reproductor sticky siempre por encima */
#reproductor-sticky {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(90deg, #1a1c1c 0%, #2a2422 100%);
  border-top: 2px solid #a13b00;
}

/* Mantener oculto el <audio> nativo (usamos controles propios) */
#player-audio {
  display: none;
}

/* ===== Player profesional ===== */
.rp-bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; height: 100%; width: 100%;
  padding: 0 16px; gap: 16px;
}
.rp-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rp-play {
  width: 42px; height: 42px; flex-shrink: 0;
  background: #a13b00; color: #fff; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(161,59,0,0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.rp-play:hover { transform: scale(1.07); background: #ca4c00; }
.rp-play:active { transform: scale(0.95); }
.rp-play .material-symbols-outlined { font-size: 26px; }
/* Ecualizador animado */
.rp-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.rp-eq span { width: 3px; background: #a13b00; border-radius: 2px; height: 6px; animation: rp-eq 0.9s ease-in-out infinite; }
.rp-eq span:nth-child(2) { animation-delay: 0.2s; }
.rp-eq span:nth-child(3) { animation-delay: 0.4s; }
.rp-eq span:nth-child(4) { animation-delay: 0.1s; }
@keyframes rp-eq { 0%,100%{height:6px;} 50%{height:20px;} }
.rp-meta { min-width: 0; }
.rp-meta__title { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-meta__sub { color: #c4b8b1; font-size: 11px; line-height: 1; margin: 3px 0 0; }
.rp-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.rp-vol { display: flex; align-items: center; gap: 8px; }
.rp-mute { background: none; border: 0; color: #e0dad6; cursor: pointer; display: flex; transition: color 0.15s ease; }
.rp-mute:hover { color: #fff; }
.rp-range { width: 96px; accent-color: #a13b00; cursor: pointer; }
.rp-live { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.rp-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #e10600; animation: twitch-pulse 1.4s ease-in-out infinite; }
@media (max-width: 575.98px) { .rp-vol, .rp-eq { display: none; } }


/*=============================================
CONTAINER — Grid de noticias (cards modernizadas)
Alineado al sistema de diseño nuevo (header/footer):
  primary #a13b00 · surface #f9f9f9 · outline tan #e3bfb1
  fuentes: Montserrat (títulos), Inter (meta), Source Serif 4 (cuerpo)
=============================================*/

/* Espaciado vertical consistente entre filas */
.fila_portada {
  --gutter: 24px;
}

/* Card de nota — delimitada por líneas, sin caja completa */
.card-nota {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e7ddd7;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s ease;
  height: 100%;
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.card-nota:hover {
  transform: translateY(-3px);
}

/* Media (foto / iframe / play) — mantiene el 16:9, esquinas redondeadas */
.card-nota__media {
  position: relative;
  padding-top: 56.25%;
  background: #eeeeee;
  overflow: hidden;
  border-radius: 12px;
}

.card-nota__media > .card-nota__media-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-nota__media img,
.card-nota__media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Card de Twitch / video en vivo: forzar el iframe embebido (viene con width/height fijos) a llenar el 16:9 */
.card-nota--twitch .card-nota__media-inner iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.card-nota--twitch .card-nota__fecha::before {
  background: #e10600; /* rojo "en vivo" */
}

/* ===== Twitch / transmisión en vivo — banner hero full-width apaisado ===== */
.twitch-hero {
  position: relative;
  width: 100%;
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(26, 28, 28, 0.18);
}

.twitch-hero__media {
  position: relative;
  width: 100%;
  padding-top: 42%; /* apaisado, más panorámico que 16:9 */
}

.twitch-hero__media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.twitch-hero__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e10600;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.twitch-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: twitch-pulse 1.4s ease-in-out infinite;
}

@keyframes twitch-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 767.98px) {
  .twitch-hero__media { padding-top: 56.25%; } /* en mobile, 16:9 */
}

/* Zoom sutil de la imagen al hover de la card */
.card-nota__media img {
  transition: transform 0.4s ease;
}
.card-nota:hover .card-nota__media img {
  transform: scale(1.04);
}

/* Cuerpo de texto de la card */
.card-nota__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 2px 0;
  flex: 1 1 auto;
}

/* Título */
.card-nota__titulo {
  margin: 0;
  font-family: 'Montserrat', 'Open Sans Condensed', sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card-nota__titulo a {
  color: #1a1c1c;
  text-decoration: none;
  transition: color 0.2s ease;
}
.card-nota__titulo a:hover {
  color: #a13b00;
}

/* Fecha / meta */
.card-nota__fecha {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-nota__fecha::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #a13b00;
  border-radius: 2px;
}

/* Bajada / contenido */
.card-nota__bajada {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: #5e5e5e;
  margin: 0;
}

/* Player de audio embebido en la card */
.card-nota__audio audio {
  width: 100%;
  margin-top: 4px;
}

/* ===== Columna de publicidad / avisos ===== */
.columna_publicidad .publi_home > div {
  border-radius: 12px !important;
}

.columna_publicidad .aviso-card,
.columna_publicidad .publi_home {
  border-radius: 12px;
  overflow: hidden;
}

/* ===== Banners horizontales entre filas de notas ===== */
/* Da aire arriba y abajo para que no queden pegados a las cards */
[class^="publicidad-"],
[class*=" publicidad-"] {
  margin: 16px 0 32px;
  text-align: center;
}

[class^="publicidad-"] img,
[class*=" publicidad-"] img {
  border-radius: 12px;
}

/* Responsive: en mobile la card ocupa todo el ancho con menos margen */
@media (max-width: 767.98px) {
  .card-nota {
    margin-bottom: 20px;
  }
  .card-nota__titulo {
    font-size: 20px;
  }
}

/*=============================================
WIDGET CARROUSEL DE SHORTS
=============================================*/
.shorts-widget {
  width: 100%;
  margin: 0 0 32px;
  padding: 20px 0 4px;
  border-top: 1px solid #e7ddd7;
  border-bottom: 1px solid #e7ddd7;
}
.shorts-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.shorts-widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1a1c1c;
}
.shorts-widget__title .material-symbols-outlined { color: #e10600; font-size: 28px; }
.shorts-widget__nav { display: flex; gap: 8px; }
.shorts-widget__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #e3bfb1;
  background: #fff;
  color: #a13b00;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.shorts-widget__btn:hover { background: #fff0e8; transform: translateY(-1px); }
.shorts-widget__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.shorts-widget__track::-webkit-scrollbar { height: 6px; }
.shorts-widget__track::-webkit-scrollbar-thumb { background: #d8d2cf; border-radius: 10px; }
.short-card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
}
.short-card__inner {
  position: relative;
  width: 100%;
  padding-top: 177.7%; /* 9:16 vertical */
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(26,28,28,0.18);
}
.short-card__inner img,
.short-card__inner iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: 0;
}
.short-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18);
  transition: background 0.2s ease;
}
.short-card__play .material-symbols-outlined {
  font-size: 30px; color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 50%; padding: 8px;
  font-variation-settings: 'FILL' 1;
}
.short-card:hover .short-card__play { background: rgba(0,0,0,0.05); }
.short-card.is-playing .short-card__play { display: none; }
.short-card__title {
  margin: 8px 2px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3a;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Desktop: mostrar exactamente 4 shorts en el ancho de la columna */
@media (min-width: 768px) {
  .short-card { width: calc((100% - 48px) / 4); } /* 3 gaps de 16px */
}
@media (max-width: 575.98px) { .short-card { width: 140px; } }


