* {
  box-sizing: border-box;
}

img:not(.site-logo) {
  width: 100%;
  border-radius: 5px;
}

.site-logo {
  width: min(72vw, 280px);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 0;
}

video {
  display: block;
  max-width: 100%;
  border-radius: 5px;
}

@media screen and (max-width: 599px) {
  img:not(.site-logo) {
    height: 250px;
    object-fit: cover;
  }

  .site-logo {
    width: min(78vw, 280px);
    height: auto;
    object-fit: contain;
  }
}

@media screen and (min-width: 600px) {
  .site-logo {
    width: min(40vw, 555px);
  }
}

body {
  background: black;
  color: white;
  margin: 0;
  padding: 0;
}

main {
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}

h1 {
  font-family: "Poppins", sans-serif;
}

h2 {
  color: #ed666f;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 35px;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin: 0.5rem 0;
}

@media screen and (min-width: 600px) {
  .grid-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-gap: 1rem;
  }
}

@media screen and (min-width: 1025px) {
  .grid-wrapper {
    grid-template-columns: 2fr 2fr 0.8fr 1fr;
  }
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
  .grid-wrapper {
    grid-template-columns: 2fr 2fr;
  }
}

article:not(.no-bottom-border) {
  padding-bottom: 8px;
  border-bottom: 1px solid #4d4d4d;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

article p {
  font-family: "Karla", sans-serif;
  font-size: 0.95rem;
  color: #c8c8c8;
}

/* El 4º artículo se queda en la segunda columna */
article:nth-child(4) {
  grid-area: 1/2/4/3;
}

@media screen and (min-width: 1025px) {
  /* El último artículo (7º) se va a la 4ª columna */
  article:nth-child(7) {
    grid-area: 1/4/4/-1;
    border-left: 1px solid #4d4d4d;
    padding-left: 1rem;
  }

  /* Los artículos 3 y 7 no tendrán borde inferior */
  article:nth-child(4n+3) {
    border-bottom: 0;
  }

  /* El 4º artículo con borde derecho */
  article:nth-child(4) {
    border-right: 1px solid #4d4d4d;
    padding-right: 1rem;
  }
}

@media screen and (min-width: 600px) and (max-width: 1024px) {
  /* En tablet el 7º ocupa la columna 2, filas 4–7 */
  article:nth-child(7) {
    grid-area: 4/2/8/3;
  }
}

@media screen and (min-width: 600px) {
  /* Cada 4º artículo en tablet/desktop → borde izquierdo */
  article:nth-child(4n) {
    border-left: 1px solid #4d4d4d;
    border-bottom: 0;
    padding-left: 1rem;
  }
}

.footer-note {
  text-align: center;
  font-family: "Karla", sans-serif;
  font-size: 0.9rem;
  padding: 1rem;
  color: white;
  border-radius: 5px;
}

.footer-note a {
  color: inherit;
  font-weight: 600;
}

/* Modal */
.modal {
  display: none;  /* Oculto por defecto */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  border-radius: 8px;
}

/* Estilo del botón de cierre */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Asegurarnos de que la imagen sea clickeable */
.clickable-image {
  cursor: pointer;
}

.media-video {
  width: 100%;
  max-width: 370px;
  height: auto;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.media-video--compact {
  max-width: 190px;
}

@media screen and (max-width: 599px) {
  .media-video,
  .media-video--compact {
    max-width: 100%;
  }
}

.player {
  background: #f3f3f3;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: auto;            /* Por defecto, que se ajuste */
}

.controls {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.player button {
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.player button svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.player button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.time {
  font-size: 12px;
  color: #333;
  min-width: 38px;
  text-align: right;
}

.progress-container {
  flex: 1;
  background: #ddd;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  min-width: 60px;
}

.progress {
  background: black;
  height: 100%;
  width: 0%;
  border-radius: 3px;
}

/* 💻 Escritorio: ancho máximo */
@media (min-width: 768px) {
  .player {
    max-width: 190px;
  }
}

  .countdown-wrapper {
    text-align: center;
    padding: 1rem;
  }

  .countdown-logo {
    width: 100%;
    max-width: 280px;
    margin-bottom: 1rem;
  }

  #countdown {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.4px;
  }


.playlist{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    height:100px;
    overflow-y:scroll;
    overflow-x:hidden;
    padding-right:8px;
    width:100%;
    flex-shrink:0;
    scrollbar-width: thin;
    scrollbar-color: #666 #1a1a1a;
}

    /* Safari y Chrome */
    .playlist::-webkit-scrollbar {
        width: 8px;
    }

    .playlist::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }

    .playlist::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 4px;
    }

    .playlist::-webkit-scrollbar-thumb:hover {
        background: #888;
    }

    .playlist button {
        background: #222;
        border: none;
        color: white;
        padding: 8px 10px 8px;
        cursor: pointer;
        text-align: left;
        border-radius: 8px;
        transition: background 0.3s, border-color 0.3s;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
    }

    .playlist button::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #ed666f, #ff9a9f);
        width: var(--progress, 0%);
        transition: width 0.1s linear;
        border-radius: 2px;
    }

    .playlist button.active {
        background: #2a2a2a;
        border: 1px solid #ed666f;
    }

    .playlist button:hover {
        background: #444;
    }

    .playlist-thumb {
        flex-shrink: 0;
        opacity: 0.5;
        transition: opacity 0.2s;
        user-select: none;
        width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .playlist-thumb img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        display: block;
    }

    .playlist button.active .playlist-thumb {
        opacity: 1;
    }

    .playlist-title {
        font-size: 16px;
        font-family: "Karla", sans-serif;
        color: #c8c8c8;
        line-height: 1.3;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.2s, font-weight 0.2s;
    }

    .playlist button.active .playlist-title {
        color: #ff9a9f;
        font-weight: 700;
    }

    .playlist button:hover .playlist-title {
        color: #ffffff;
    }

    article[data-video-player] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

  .pill {
    display: inline-flex;
    align-items: center;
    background: green;
    border: 1px solid rgba(165,180,252,.28);
    border-radius: 99px;
  }
 
  .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: green;
    flex-shrink: 0;
    animation: pulse 2.4s ease-in-out infinite;
  }




 /* Skeleton */
.sk-block { border-radius: 8px; background: rgb(245, 2, 2); animation: shimmer 1.4s ease-in-out infinite; }
.sk-img { height: 180px; margin-bottom: 12px; }
.sk-line { height: 14px; margin-bottom: 8px; border-radius: 4px; }
.sk-short { width: 40%; }
.sk-med { width: 70%; }
.skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.year-placeholder {
  min-height: 600px;  /* aproximado al alto de cada sección */
}