* {
    box-sizing: border-box;
  }

  img {
    width: 100%;
    border-radius: 5px;
  }
  .logo {
    width: 50%;
    height: auto;
    display: block;
  }
  @media screen and (max-width: 599px) {
    img {
      height: 250px;
      object-fit: cover;
    }
    .logo-sm {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  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 {
    padding-bottom: 1rem;
    border-bottom: 1px solid #4d4d4d;
  }
  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,4 y 7 no tendrán borde inferior */
    article:nth-child(4n+3),
    article:nth-child(6) {
      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(6) {
        border-bottom: 0;
      }

    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;
    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;
  }





  .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%;
  }

  button {
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
  }

  .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;
  }

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

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

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