:root {
    --negro: #161616;
    --blanco: #FFFFFF;
    --rojo: #F03033;
}

body {
    background-color: #161616;
    color: var(--blanco);
    margin: 0;

    /* Sticky footer layout */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* ocupa todo el ancho de la pantalla */
    z-index: -2;
    pointer-events: none;
    /* opcional */
}

.background-image img {
    width: 100%;
    /* escala con el ancho del viewport */
    height: auto;
    /* mantiene proporción */
    display: block;
}

.background-texture {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.20;
}

/* .background-categoria-latinoamerica {
    background-image: url("../img/textura-fondo.svg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} */

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;
}

/* ======================================== 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;
}


.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);

    .nota-xira-section {
        background-image: url("../img/fondos_categorías/fondo-xira.png");
        /* tu imagen */
        background-repeat: no-repeat;
        background-size: cover;
        /* hace que la imagen cubra todo */
        background-position: center;
        /* centra la imagen */
        padding: 40px;
        /* espacio interior */

        /* opcional, esquinas redondeadas */
    }

    font-size: 15px;
    background-color: var(--rojo);
    width: fit-content;
    padding: 5px;

    font-family: "Staatliches",
        sans-serif;
    margin-bottom: 20px;
}

.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 =================================== */

.regresar-btn {
    font-family: "Roboto", sans-serif;
    padding: 100px 0 0 0;
}

.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;
}

.titulo-aside-nota {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: "Staatliches", sans-serif;
    font-size: 30px;
    font-weight: 400;
}

.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;
}

.contenidos-relacionados:last-child {
    border-bottom: none;
    padding-bottom: 0px;
}

.contenidos-relacionados:hover {
    transform: scale(0.97);
}

.contenidos-relacionados img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    filter: grayscale(100%);
    object-fit: cover;
}

.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;
}


/* 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;
  }
}
