@font-face {
      font-family: 'Maiandra GD V2';
      src: local('Maiandra GD V2'), url('Maiandra GD V2/Maiandra GD V2.woff2') format('woff2'),
          url('Maiandra GD V2/Maiandra GD V2.woff') format('woff');
      font-weight: normal;
      font-style: normal;
    }

    body {
      font-family: 'Maiandra GD V2';
    }

.main-nav .external {
  font-size: 22px;
  color: #ffffff;
  padding: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover suave */
.main-nav .external:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

/* Íconos */
.main-nav .external i {
  pointer-events: none; /* evita conflictos con JS */
}

    .video-container {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%; /* Proporción de aspecto 16:9 (315/560) */
      cursor: pointer;
      overflow: hidden;
    }

    .video-container iframe, .video-container img {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .video-overlay {
      position: absolute;
      top: 12px;
      left: 0;
      width: 92%;
      height: 92%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @media (max-width: 768px) {
  #tabs ul li a {
    font-size: 13px; /* Ajusta según sea necesario */
    text-align: center; /* Alinea el texto al centro */
    display: block; /* Asegura que el enlace tome todo el ancho del contenedor */
    width: 100%; /* Ocupa el 100% del ancho disponible */
  }

      .video-overlay {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    .video-thumbnail {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

.section-noctoverso {
  padding: 0 !important;
  margin: 0 !important;
}

.playlist-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  margin: 0;
  padding: 0;
}

/* Overlay controla TODO el espacio */
.playlist-bg .overlay-dark {
  background: rgba(0,0,0,0.65);
  padding: 140px 0;
}

/* Título */
.playlist-bg .section-heading {
  margin-top: -40px;   /* AJUSTA AQUÍ */
}


.playlist-bg .section-heading::before,
.playlist-bg .section-heading::after {
  display: none; /* mata las líneas del template */
}

.playlist-bg .section-heading h2 {
  margin: 0;
  padding: 12px 28px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

/* Video */
.playlist-bg .video-frame {
  position: relative;
  max-width: 1280px;
  margin: 60px auto 0;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
margin-bottom: 25px;
}

.playlist-bg iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


#synopsisModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#synopsisModal .synopsis-box {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(0,0,0,0.85);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-align: center;
}

/* X */
.close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .main-nav .external {
    font-size: 20px;
    padding: 6px 4px;
  }

 /* LI que contiene enlaces externos */
  .main-nav li a.external {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Contenedor LI de los iconos */
  .main-nav li:has(a.external) {
    float: none !important;
    display: flex;
    justify-content: center;
  }
}

.gallery-box {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-box img {
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-controls {
  margin-top: 15px;
  display: flex;
  gap: 20px;
}

.gallery-controls button {
  font-size: 26px;
  padding: 6px 18px;
  cursor: pointer;
}

.modal {
  display: none;        /* oculto al inicio */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);

  justify-content: center;
  align-items: center;

  padding: 20px;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

