/**
 * =====================================================================================
 * FILE: /css/site_promotions.css
 * MODULE: Site Promotions
 * TYPE: Stylesheet
 *
 * PROPÓSITO:
 * Estilos originales del carrusel de promociones (versión estable funcional).
 *
 * REGLAS:
 * - NO cambiar nombres de variables
 * - NO alterar layout base
 * - NO introducir variables nuevas
 *
 * VERSION: 2.0.0 (rollback estable)
 * =====================================================================================
 */

/* =================================================
   VARIABLES ORIGINALES (NO CAMBIAR)
================================================== */
.promo-scope {
  --sombra-boton: 0 2px 8px rgba(0,0,0,0.15);
  --radio-borde: 15px;
}

/* =================================================
   ESTRUCTURA PRINCIPAL
================================================== */
.promo-scope .SuggestedEvents.container {
  padding: 1rem 0 !important;
}

.promo-scope .promocion-carousel {
  width: 100%;
  margin: 0 auto;
}

/* =================================================
   FIX CARRUSEL (SIN SALTO / SIN ANIMACIÓN)
================================================== */
.promo-scope #eventCarousel .carousel-inner {
  position: relative;
  width: 100%;
}

.promo-scope #eventCarousel .carousel-item {
  position: absolute;
  inset: 0;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

.promo-scope #eventCarousel .carousel-item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.promo-scope #eventCarousel.carousel.carousel-fade .carousel-item {
  opacity: 0 !important;
}

.promo-scope #eventCarousel.carousel.carousel-fade .carousel-item.active {
  opacity: 1 !important;
}

/* =================================================
   TARJETA PROMOCIÓN
================================================== */
.promo-scope .promocion-container {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.promo-scope .promocion-imagen-wrap {
  position: relative;
  width: 100%;
}

.promo-scope .promocion-imagen-container {
  width: 100%;
  overflow: hidden;
  display: block;
}

.promo-scope .promocion-imagen {
  display: block;
  width: 100%;
}

/* TEXTO */
.promo-scope .promocion-texto {
  padding: 1.5rem;
  background: #fff;
}

.promo-scope .promocion-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: .2rem;
  line-height: 1.5;
}

.promo-scope .promocion-date {
  font-weight: bold;
  color: var(--color-primario);
  font-size: 1.1rem;
  margin-bottom: .2rem;
  line-height: 1.5;
}

.promo-scope .promocion-tickets {
  color: #333;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* BOTÓN */
.promo-scope .promocion-btn {
  background: var(--color-primario);
  color: #fff;
  border: 2px solid var(--color-primario);
  padding: .5rem .7rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  max-width: 190px;
  width: 100%;
  box-shadow: var(--sombra-boton);
  display: inline-block;
}

.promo-scope .promocion-btn:hover {
  background: var(--color-secundario);
  color: #fff;
  border-color: var(--color-secundario);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.promo-scope .promocion-view-tickets-btn {
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

/* =================================================
   CONTROLES (FLECHAS)
================================================== */
.promo-scope #eventCarousel .promo-control-inside {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  opacity: 1;
  z-index: 30;
}

.promo-scope #eventCarousel .carousel-control-prev.promo-control-inside {
  left: 12px;
}

.promo-scope #eventCarousel .carousel-control-next.promo-control-inside {
  right: 12px;
}

.promo-scope #eventCarousel .carousel-control-prev-icon,
.promo-scope #eventCarousel .carousel-control-next-icon {
  width: 56px;
  height: 56px;
  display: block;
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.38);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.10),
    0 8px 24px rgba(0,0,0,0.55);
  transition:
    transform .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
}

.promo-scope #eventCarousel .promo-control-inside:hover .carousel-control-prev-icon,
.promo-scope #eventCarousel .promo-control-inside:hover .carousel-control-next-icon {
  background-color: rgba(0,0,0,0.58);
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.16),
    0 10px 28px rgba(0,0,0,0.65);
}

/* =================================================
   RESPONSIVE DESKTOP
================================================== */
@media (min-width:768px) {

  .promo-scope .SuggestedEvents.container {
    padding: 1.5rem 0 1rem 0 !important;
  }

  .promo-scope .promocion-container {
    flex-direction: row;
  }

  .promo-scope .promocion-imagen-wrap {
    flex: 0 0 75%;
    aspect-ratio: 720 / 500;
  }

  .promo-scope .promocion-imagen-container {
    width: 100%;
    height: 100%;
  }

  .promo-scope .promocion-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--radio-borde) - 1px);
  }

  .promo-scope .promocion-texto {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem .5rem;
    text-align: left;
  }
}

@media (min-width:992px) {
  .promo-scope .promocion-imagen-wrap {
    aspect-ratio: 1140 / 650;
  }
}

/* =================================================
   RESPONSIVE MOBILE
================================================== */
@media (max-width:767.98px) {

  .promo-scope .promocion-view-tickets-btn {
    font-size: .9rem;
    line-height: 1.2;
  }

  .promo-scope .SuggestedEvents.container {
    padding: 1rem 0 .5rem !important;
  }

  .promo-scope .promocion-imagen-wrap {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .promo-scope .promocion-imagen {
    width: 100%;
    border-radius: calc(var(--radio-borde) - 1px);
  }

  .promo-scope .promocion-texto {
    text-align: center;
    padding: .5rem 1rem 0;
  }

  .promo-scope .promocion-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    height: calc(1.25em * 2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .promo-scope .promocion-date {
    font-size: 1rem;
  }

  .promo-scope .promocion-btn {
    max-width: 160px;
    margin: 0 auto;
  }
}