:root {
  --negro: #161616;
  --blanco: #FFFFFF;
  --rojo: #F03033;
}

html,
body {
  box-sizing: border-box;
  background-color: var(--negro);
  color: var(--blanco);
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow-x: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.background-texture {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.20;
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

.color-red {
  color: var(--rojo);
}

.header {
  display: flex;
  height: 90px;
  width: 100%;
  padding: 20px 50px;
  background-color: var(--negro);
  box-shadow: 0 10px 10px #00000025;
}

.header-img {
  max-height: 70px;
}

.nav-btn-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.nav-btn {
  color: var(--blanco);
  font-family: "Staatliches", sans-serif;
  font-size: 16px;
  font-weight: 150;
  font-style: normal;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: var(--rojo);
}

.nombre-categoria {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 550;
  font-size: 50px;
  font-family: "Staatliches", sans-serif;
  text-align: center;
}

/* =====================================================
   CATEGORIAS – MÁS separación ENTRE card-notas
   ===================================================== */

/* Desktop + Tablet */
@media (min-width: 481px) {
  .categoria-section .card-notas {
    margin-bottom: 40px !important;
    /* separación real entre cards */
  }
}

/* Mobile */
@media (max-width: 480px) {
  .categoria-section .card-notas {
    margin-bottom: 28px !important;
  }
}

/* ======================================== FOOTER =================================== */

.flex-3-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-3-col article {
  flex: 0 0 30%;
}

.background-footer {
  background-color: #F03033;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ======================================== SECTION DESTACADO =================================== */

.destacado-link {
  display: block;
  text-decoration: none;
  color: inherit;
  z-index: 5;
}


.section-destacado {
  width: 100%;
  height: 800px;
  background-image: url("../img/fondos_categorias/fondo-destacado.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 100px;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.info-destacado {
  width: 800px;
}

.info-destacado .etiqueta {
  color: var(--negro);
  font-size: 15px;
  background-color: var(--rojo);
  width: fit-content;
  padding: 5px;
  font-family: "Staatliches", sans-serif;
  margin-bottom: 20px;
}

/* Si esto lo querías de verdad, va SEPARADO (no anidado) */
.nota-xira-section {
  background-image: url("../img/fondos_categorias/fondo-xira.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 40px;
  z-index: 999;
}

.info-destacado .titulo {
  color: var(--blanco);
  font-size: 60px;
  width: 550px;
  font-weight: 500;
  font-family: "Staatliches", sans-serif;
  line-height: 50px;
  margin-bottom: 20px;
}

.info-destacado .bajada {
  color: var(--blanco);
  font-size: 20px;
  width: 550px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
}

/* ================= DESTACADOS PERÚ ================= */

.destacados-peru {
  margin: 10px 0 25px 0;
}

.destacados-peru-title {
  font-family: "Staatliches", sans-serif;
  font-size: 35px;
  margin-bottom: 30px;
}

.destacados-peru-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.destacados-peru-card {
  background: rgba(32, 32, 32);
  border-radius: 5px;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2px;
  align-items: stretch;
}

.destacados-peru-img {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.destacados-peru-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.destacados-peru-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destacados-peru-h3 {
  font-family: "Staatliches", sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px 0;
}

.destacados-peru-bajada {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 350;
  margin: 0;
  opacity: 0.95;
  max-width: 420px;
}

.destacados-peru-btn {
  width: fit-content;
  font-family: "Staatliches", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--rojo);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform .15s ease, filter .2s ease;

  margin-top: auto;
  /* ← CLAVE: lo empuja al fondo */
  align-self: flex-start;
  /* ← alineado a la izquierda */
}

.destacados-peru-btn:hover {
  transform: scale(0.98);
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 1100px) {
  .destacados-peru-grid {
    grid-template-columns: 1fr;
  }

  .destacados-peru-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 650px) {
  .destacados-peru-card {
    grid-template-columns: 1fr;
  }

  .destacados-peru-img {
    height: 180px;
  }
}

/* ===== Alinear botón VER NOTA con base de imagen ===== */

.destacados-peru-info {
  height: 100%;
}

.destacados-peru-bajada {
  margin-bottom: auto;
  /* empuja el botón hacia abajo */
}

.destacados-peru-btn {
  align-self: flex-start;
}

/* ===== FIX VIDEO RECOMENDACIONES ===== */

.recomendaciones-xira {
  width: 100%;
}

.recomendaciones-xira .video-layout {
  grid-template-columns: 3.5fr 1.2fr;
  /* vuelve a dominar el video */
}

.recomendaciones-xira .video-principal video {
  height: 460px;
  /* recupera presencia visual */
}

.recomendaciones-xira .video-layout {
  grid-template-columns: 4fr 1fr;
}

/* ================= VIDEO RECOMENDACIÓN ================= */

/* ====== RECOMENDACIONES XIRA (FORZAR TAMAÑO VIDEO) ====== */

.video-layout {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 25px;
  align-items: flex-start;
}

/* ===== VIDEO RECOMENDACIONES – ASPECT RATIO CORRECTO ===== */

.video-principal {
  width: 100%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* clave */
}

.video-principal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* NO recorta */
  display: block;
}

.video-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-item:hover {
  transform: scale(0.97);
}

.video-item img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.video-item p {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 18px;
}

/* ===== INFO VIDEO XIRA ===== */

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  max-width: 420px;
}

.video-subtitulo {
  font-family: "Staatliches", sans-serif;
  font-size: 26px;
  line-height: 28px;
  font-weight: 400;
  margin: 0 0 12px 0;
}

.video-bajada {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 350;
  margin: 0;
  opacity: 0.95;
}


/* ======================================== CATEGORIA SECTION =================================== */

.categoria-section {
  width: 100%;
}

.category-title {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 550;
  font-size: 40px;
  font-family: "Staatliches", sans-serif;
}

.category-subtitle {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 550;
  font-size: 35px;
  font-family: "Staatliches", sans-serif;
}

.cards-slider {
  overflow-x: auto;
  display: flex;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 25px;
}

.card-notas {
  width: 300px;
  max-width: 300px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-notas:hover {
  transform: scale(0.97);
}

.img-card-notas {
  max-width: 100%;
  margin-bottom: 20px;
}

.texto-card-notas {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
}

/* ======================================== NOTA XIRA =================================== */

.btn-back {
  font-family: "Roboto", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}

.btn-back::before {
  content: "<";
}

.dos-columnas {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.info-nota-xira .etiqueta {
  color: var(--negro);
  font-size: 21px;
  background-color: var(--rojo);
  width: fit-content;
  padding: 4px 10px;
  font-family: "Staatliches", sans-serif;
}

.info-nota-xira .fecha {
  color: var(--blanco);
  font-size: 18px;
  font-weight: 300;
  font-family: "Roboto", sans-serif;
}

.info-nota-xira .titulo {
  color: var(--blanco);
  font-size: 60px;
  width: fit-content;
  font-weight: 500;
  font-family: "Staatliches", sans-serif;
  line-height: 60px;
  margin-bottom: 20px;
}

.info-nota-xira .bajada {
  color: var(--blanco);
  font-size: 22px;
  line-height: 32px;
  width: fit-content;
  font-weight: 350;
  font-family: "Roboto", sans-serif;
  margin-bottom: 50px;
}

.info-nota-xira .perfil-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 50px;
}

.info-nota-xira .perfil-editor img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #8b8b8b;
}

.imagen-nota {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.imagen-nota img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.contenido-nota-xira {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 350;
  line-height: 28px;
}

/* ======================================== ASIDE NOTA =================================== */

.aside-nota {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--blanco);
  padding: 20px;
  height: fit-content;
  z-index: 999;
}

.titulo-aside-nota {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: "Staatliches", sans-serif;
  font-size: 30px;
  font-weight: 400;
  z-index: 999;
}

.contenidos-relacionados {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  border-bottom: 1px solid var(--blanco);
  padding-bottom: 10px;
  transition: all 0.3s ease;
  z-index: 999;
}

.contenidos-relacionados:last-child {
  border-bottom: none;
  padding-bottom: 0px;
  z-index: 999;
}

.contenidos-relacionados:hover {
  transform: scale(0.97);
}

.contenidos-relacionados img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  filter: grayscale(100%);
  object-fit: cover;
  z-index: 999; 
}

.footer-container {
  width: 100%;
  background-color: var(--rojo);
  margin-top: auto;
  /* empuja el footer al fondo */
  position: static;
  z-index: 10;
  padding: 60px 0;
}

/* ================= BANDA EN CONSTRUCCIÓN ================= */

.banda-construccion {
  width: 100%;
  background-color: var(--rojo);
  color: var(--blanco);
  text-align: center;
  font-family: "Staatliches", sans-serif;
  font-size: 16px;
  padding: 10px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

/* ===================== FAN ART (BLOQUE ESPECIAL) ===================== */

.fanart-section {
  width: 100%;
  background: #F03033;
  /* rectángulo oscuro */
  border-radius: 5px;
  padding: 24px 20px;
  margin: 40px 0 25px 0;
}

.fanart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.fanart-title-wrap {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* Flechas */
.fanart-arrows {
  display: flex;
  gap: 10px;
}

.fanart-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.fanart-arrow:hover {
  transform: scale(1.03);
  background: rgba(240, 48, 51, 0.18);
  border-color: rgba(240, 48, 51, 0.55);
}

/* Slider horizontal */
.fanart-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.fanart-slider::-webkit-scrollbar {
  height: 8px;
}

.fanart-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Card: altura fija, ancho variable (depende de la imagen) */
.fanart-card {
  position: relative;
  flex: 0 0 auto;
  height: 160px;
  /* todas misma altura */
  height: 250px;
  /* más altas */
  max-width: 280px;
  /* permite que entren ~5 en desktop */

  border-radius: 6px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.fanart-card:hover {
  background: var(--rojo);
  border-color: rgba(240, 48, 51, 0.95);
  transform: scale(0.985);
}

/* Imagen: altura fija, ancho automático (respeta proporción y el contenedor “acompaña”) */
.fanart-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}

/* Overlay autor */
.fanart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .2s ease;
}

.fanart-card:hover .fanart-overlay {
  opacity: 1;
}

.fanart-author {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ===================== FANART MODAL (LIGHTBOX) ===================== */

.no-scroll {
  overflow: hidden;
}

.fanart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.fanart-modal.is-open {
  display: block;
}

.fanart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.fanart-modal-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}


/* ===================== PODCAST: PLAY + PLAYER TIEMPO ===================== */

.podcast-item {
  width: 300px;
  max-width: 300px;
  position: relative;
}

.podcast-item .card-podcast {
  display: block;
  position: relative;
}

/* Botón Play (tal como lo tenías) */
.podcast-play {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.podcast-play:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1.03);
}

/* Triángulo "play" */
.podcast-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.7);
}

/* Cuando está reproduciendo, mostramos "pause" */
.podcast-item.is-playing .podcast-play::after {
  content: "";
  width: 16px;
  height: 22px;
  border: 0;
  background:
    linear-gradient(to right,
      rgba(0, 0, 0, 0.75) 0 6px,
      transparent 6px 10px,
      rgba(0, 0, 0, 0.75) 10px 16px);
  transform: translate(-50%, -50%);
}

/* PLAYER TIEMPO debajo (nuevo) */
.podcast-player {
  width: 100%;
  margin-top: -8px;
  margin-bottom: 10px;
}

.podcast-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 8px;
}

/* barra */
.podcast-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.podcast-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: rgba(240, 48, 51, 0.95);
  transition: width 0.08s linear;
}

/* focus accesible (tab) */
.podcast-progress:focus {
  box-shadow: 0 0 0 2px rgba(240, 48, 51, 0.35);
}

/* ================= DESTACADOS PERÚ ================= */

.destacados-peru {
  margin: 10px 0 25px 0;
}

.destacados-peru-title {
  font-family: "Staatliches", sans-serif;
  font-size: 35px;
  margin-bottom: 30px;
}

.destacados-peru-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.destacados-peru-card {
  background: rgba(32, 32, 32);
  border-radius: px;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: stretch;
}

.destacados-peru-img {
  display: block;
  width: 100%;
  height: 150px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.destacados-peru-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.destacados-peru-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destacados-peru-bajada {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 350;
  margin: 0;
  opacity: 0.95;

  /* CLAVE: empuja el botón hacia abajo */
  flex: 1;
}

.destacados-peru-btn {
  width: fit-content;
  font-family: "Staatliches", sans-serif;
  font-size: 16px;
  color: #fff;
  background: var(--rojo);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform .15s ease, filter .2s ease;

  /* queda abajo del todo */
  margin-top: 0;
  align-self: flex-start;
}

/* ================= TRAILERS Y VIDEOS (cards con play overlay) ================= */

.trailer-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.trailer-card .img-card-notas {
  display: block;
  border-radius: 6px;
}

.trailer-play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0.85;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
  pointer-events: none;
  /* no bloquea el click del link */
  z-index: 2;
}

.trailer-card:hover .trailer-play {
  transform: translate(-50%, -50%) scale(1.03);
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.55);
}

/* triángulo play */
.trailer-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.7);
}





/* Responsive */
@media (max-width: 1100px) {
  .destacados-peru-grid {
    grid-template-columns: 1fr;
  }

  .destacados-peru-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 650px) {
  .destacados-peru-card {
    grid-template-columns: 1fr;
  }

  .destacados-peru-img {
    height: 180px;
  }
}

/* ================= VIDEO TRAILER PAGE ================= */

/* contenedor del video grande */
.video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

/* video responsive 16:9 */
.video-responsive {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
}

.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fanart-card {
  cursor: default;
}

.fanart-card img {
  pointer-events: none;
}


/* =====================================================
   MOBILE ANDROID FIX – Landing index
   Target: Android 360–412px
   Pegar TODO este bloque al FINAL del style.css
   ===================================================== */

/* =========================
   Tablets chicos y mobile
   ========================= */
@media (max-width: 992px) {

  .header {
    height: auto;
    padding: 14px 18px;
  }

  .header-img {
    max-height: 54px;
  }

  .nav-btn-container {
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .nav-btn-container::-webkit-scrollbar {
    height: 6px;
  }

  .nav-btn-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
  }

  .nav-btn {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: 6px 0;
  }
}

/* ================= HAMBURGER ================= */

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--blanco);
  border-radius: 2px;
}

/* ================= MENU OVERLAY ================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.menu-overlay.open {
  transform: translateY(0);
}

/* bloquear scroll */
body.menu-open {
  overflow: hidden;
}

/* botón cerrar */
.menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* links */
.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-links li {
  margin: 18px 0;
}

.menu-links a {
  font-family: "Staatliches", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.2s ease;
}

.menu-links a:hover {
  color: var(--rojo);
}

/* =====================================================
   NOTA (nota-xira) – Responsive Mobile + Tablet
   Pegar al FINAL de utils.css
   ===================================================== */

/* Tablet + mobile: 1 columna */
@media (max-width: 992px) {

  /* La grilla 2 columnas pasa a 1 */
  .dos-columnas {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Nota: padding más cómodo */
  .nota-xira-section {
    padding: 16px !important;
  }

  /* Aside abajo, sin línea lateral */
  .aside-nota {
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 18px 0 0 0 !important;
  }

  /* Título / bajada */
  .info-nota-xira .titulo {
    font-size: 36px !important;
    line-height: 36px !important;
  }

  .info-nota-xira .bajada {
    font-size: 16px !important;
    line-height: 24px !important;
    margin-bottom: 28px !important;
  }

  .info-nota-xira .etiqueta {
    font-size: 16px !important;
  }

  /* Imagen principal */
  .imagen-nota {
    height: auto !important;
  }

  .imagen-nota img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Bloques “hora + subtítulo”: que bajen en 2 líneas */
  .nota-xira-section .flex-row.gap-10px {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .category-title {
    font-size: 30px !important;
  }

  .category-subtitle {
    font-size: 18px !important;
    line-height: 22px !important;
    opacity: 0.95;
  }

  /* Texto del artículo */
  .contenido-nota-xira {
    font-size: 16px !important;
    line-height: 26px !important;
    gap: 22px !important;
  }

  /* Cards del aside: más compactas */
  .contenidos-relacionados img {
    width: 84px !important;
    height: 84px !important;
  }
}

/* Mobile fino (<=480px) */
@media (max-width: 480px) {

  /* margen superior del main */
  main.contenedor.dos-columnas.mt-50px {
    margin-top: 20px !important;
  }

  /* título más chico */
  .info-nota-xira .titulo {
    font-size: 30px !important;
    line-height: 30px !important;
  }

  /* perfil editor más compacto */
  .info-nota-xira .perfil-editor {
    margin-bottom: 24px !important;
  }

  /* padding de la franja superior */
  .background-categoria-latinoamerica .padding-50px {
    padding: 18px !important;
  }
}

/* =====================================================
   CATEGORIAS (category-*.html) – Responsive Mobile + Tablet
   Pegar al FINAL de utils.css
   ===================================================== */

/* Tablet + Mobile */
@media (max-width: 992px) {

  /* Padding superior más compacto */
  .w-100.padding-50px,
  .padding-50px {
    padding: 18px !important;
  }

  /* Título de categoría */
  .nombre-categoria {
    font-size: 44px !important;
    line-height: 44px !important;
  }

  /* Sliders: que no “corten” y tengan buen margen */
  .categoria-section>.cards-slider {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Cards más grandes y “swipeables” */
  .cards-slider {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    padding-bottom: 10px !important;
  }

  .card-notas {
    flex: 0 0 84vw !important;
    width: 84vw !important;
    max-width: 84vw !important;
    scroll-snap-align: start;
  }

  /* Botón regresar de abajo: menos padding */
  .padding-100px {
    padding: 24px !important;
  }
}

/* Mobile fino */
@media (max-width: 480px) {
  .nombre-categoria {
    font-size: 38px !important;
    line-height: 38px !important;
  }

  .card-notas {
    flex: 0 0 88vw !important;
    width: 88vw !important;
    max-width: 88vw !important;
  }
}

@media (max-width: 480px) {

  /* Header compacto */
  .header {
    height: auto !important;
    padding: 12px 14px !important;
  }

  .header .contenedor {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .header-img {
    max-height: 46px !important;
  }

  .nav-btn-container {
    width: 100% !important;
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px !important;
    scroll-snap-type: x mandatory;
  }

  .nav-btn {
    display: inline-block !important;
    font-size: 13px !important;
    padding: 6px 0 !important;
    scroll-snap-align: start;
  }

  .section-destacado {
    height: auto !important;
    min-height: 390px !important;
    padding: 22px 14px;
    margin-bottom: 22px !important;
    align-items: flex-end !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .info-destacado {
    width: 100% !important;
  }

  .info-destacado .titulo {
    width: 100% !important;
    font-size: 32px !important;
    line-height: 32px !important;
  }

  .info-destacado .bajada {
    width: 100% !important;
    font-size: 15px !important;
    line-height: 21px !important;
  }

  /* Video a 1 columna */
  .video-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .video-info {
    padding-left: 0 !important;
    max-width: 100% !important;
  }

  .cards-slider,
  .podcast-list,
  .fanart-grid {
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .cards-slider {
    gap: 12px !important;
    padding-bottom: 10px !important;
    scroll-snap-type: x mandatory;
    overflow-x: auto !important;
  }

  .card-notas {
    flex: 0 0 84vw !important;
    width: 84vw !important;
    max-width: 84vw !important;
    scroll-snap-align: start;
  }

  /* Podcast cards (si aplica en tu HTML) */
  .podcast-item {
    width: 84vw !important;
    max-width: 84vw !important;
  }

  .podcast-play {
    width: 60px !important;
    height: 60px !important;
    top: 44% !important;
  }

  /* Fanart */
  .fanart-section {
    padding: 16px 12px !important;
    margin: 22px 0 12px 0 !important;
  }

  .fanart-card {
    height: 200px !important;
    max-width: 80vw !important;
  }
}

/* Android clásico 360px */
@media (max-width: 360px) {
  .info-destacado .titulo {
    font-size: 29px !important;
    line-height: 29px !important;
  }

  .card-notas,
  .podcast-item {
    width: 88vw !important;
    max-width: 88vw !important;
  }

  .fanart-card {
    max-width: 86vw !important;
    height: 190px !important;
  }
}

/* =====================================================
   TABLET FIX – 600px a 1024px (Android tablets / iPad)
   ===================================================== */

/* Tablet general (portrait + landscape) */
@media (min-width: 600px) and (max-width: 1024px) {
  .header {
    height: auto !important;
    padding: 14px 18px !important;
  }

  .header .contenedor {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
  }

  .header-img {
    max-height: 58px !important;
  }
}

.nav-desktop {
  display: flex;
  gap: 20px;
}

.nav-mobile {
  display: none;
}

/* Mobile / Tablet */
@media (max-width: 992px) {

  .nav-desktop {
    display: none !important;
  }

  .nav-mobile {
    display: flex !important;
  }

  .section-destacado {
    padding: 36px;
  }

  .destacado-link,
  .info-destacado,
  .info-destacado .titulo,
  .info-destacado .bajada {
    width: 100%;
  }

  .video-info {
    display: none !important;
  }
}

@media (max-width: 480px) {

  .info-destacado {
    width: 100% !important;
    max-width: 100% !important;
  }

  .info-destacado .titulo {
    width: 100% !important;
    font-size: 32px !important;
    line-height: 32px !important;
  }

  .info-destacado .bajada {
    width: 100% !important;
    font-size: 15px !important;
    line-height: 21px !important;
  }

  /* Mantener logo + hamburguesa en una sola línea */
  .header .contenedor {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  /* Asegura que el botón no baje y quede alineado */
  .hamburger {
    margin: 0 !important;
    align-self: center !important;
    flex: 0 0 auto !important;
  }

  /* Logo un poco más chico para que entre cómodo */
  .header-img {
    max-height: 46px !important;
  }

  /* Títulos de categorias */
  .categoria-section>.flex-row {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Sliders de categorias */
  .categoria-section>.cards-slider {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .category-subtitle[lang="ja"] {
    display: none !important;
  }
}