/* ==========================================================================
   ALADDÍN · VIDEOTECA DE REELS
   Cargar DESPUÉS de aladdin-ajustes-v5.css
   ========================================================================== */

.reel-oculto {
  display: none !important;
}

.aladdin-reels {
  width: min(1080px, calc(100% - 32px));
  margin: 44px auto 42px;
  padding: clamp(24px, 4vw, 38px);
  box-sizing: border-box;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 0%, rgba(225,182,57,.15), transparent 28%),
    linear-gradient(145deg, #172258, #0c123f);
  box-shadow: 0 18px 45px rgba(20,30,80,.12);
  font-family: 'BAHNSCHRIFT', sans-serif;
}

.aladdin-reels__cabecera {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.aladdin-reels__cabecera span {
  color: #e1b639;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 900;
}

.aladdin-reels__cabecera h2 {
  margin: 6px 0 8px;
  color: #ffe895;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.aladdin-reels__cabecera p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.aladdin-reels__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.reel-card {
  min-width: 0;
  text-align: center;
}

.reel-card__boton {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255,232,149,.22);
  border-radius: 16px;
  overflow: hidden;
  background: #070b25;
  aspect-ratio: 9 / 16;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.reel-card__boton:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0,0,0,.34);
}

.reel-card__boton img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card__numero {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7,11,37,.78);
  color: #ffe895;
  border: 1px solid rgba(255,232,149,.35);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  backdrop-filter: blur(5px);
}

.reel-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255,232,149,.94);
  color: #101528;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.reel-card h3 {
  margin: 11px 4px 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.reel-modal {
  position: fixed;
  z-index: 1000001;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.reel-modal.is-open {
  display: flex;
}

.reel-modal__fondo {
  position: absolute;
  inset: 0;
  background: rgba(2,5,20,.92);
  backdrop-filter: blur(7px);
}

.reel-modal__contenido {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 36px));
  max-height: 94vh;
  text-align: center;
}

.reel-modal__contenido video {
  display: block;
  width: 100%;
  max-height: 84vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

.reel-modal__contenido h3 {
  margin: 10px 44px 0;
  color: #ffe895;
  font-family: 'BAHNSCHRIFT', sans-serif;
  font-size: 17px;
}

.reel-modal__cerrar {
  position: absolute;
  z-index: 2;
  right: -12px;
  top: -12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffe895;
  color: #101528;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

body.reel-modal-abierto {
  overflow: hidden;
}

@media (max-width: 900px) {
  .aladdin-reels__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .aladdin-reels {
    width: calc(100% - 20px);
    margin: 28px auto;
    padding: 22px 14px;
    border-radius: 15px;
  }

  .aladdin-reels__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .reel-card h3 {
    font-size: 13px;
  }

  .reel-card__play {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .reel-modal {
    padding: 12px;
  }

  .reel-modal__contenido {
    width: min(390px, calc(100vw - 24px));
  }

  .reel-modal__cerrar {
    right: 4px;
    top: 4px;
  }
}
