/************ CARRUSEL FULL-SCREEN RESPONSIVE ************/
:root{
  --hero-min: clamp(340px, 82vh, 940px);
  --header-h: 64px; /* ajusta a la altura real de tu navbar fixed-top */
}

/* Empuje si el header es fixed-top */
main{ padding-top: var(--header-h); }

/* Contenedor principal del carrusel */
.carousel-hero{ margin-bottom: 0; }

/* Altura del hero; pisamos alturas viejas si las hubiera */
.carousel-hero .carousel-inner,
.carousel-hero .carousel-item{
  position: relative;
  min-height: var(--hero-min) !important;
  height: auto !important;
}

/* Imagen de fondo del hero */
.carousel-hero .hero-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Overlay (contraste); se oculta con .no-overlay en un slide */
.carousel-hero .overlay{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
  z-index: 1;
}
.carousel-hero .carousel-item.no-overlay .overlay{ display: none !important; }

/* Captions */
.carousel-hero .carousel-caption{
  position: absolute; z-index: 2;
  bottom: auto; top: 12%; left: 8%; right: 8%;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.carousel-hero .carousel-caption.text-end{ text-align: right; }

/* Indicadores y flechas */
.carousel-hero .carousel-indicators [data-bs-target]{
  width: 10px; height: 10px; border-radius: 50%;
}
.carousel-hero .carousel-indicators .active{
  width: 26px; border-radius: 8px;
}

/* Flechas: ocultas en móvil, visibles desde 577px */
.carousel-hero .carousel-control-prev,
.carousel-hero .carousel-control-next{ display: none; }
@media (min-width: 577px){
  .carousel-hero .carousel-control-prev,
  .carousel-hero .carousel-control-next{
    display: flex; width: 5.5%; opacity: .95;
  }
  .carousel-hero .carousel-control-prev-icon,
  .carousel-hero .carousel-control-next-icon{
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  }
}

/* Mobile: altura real con barra del navegador */
@media (max-width: 576px){
  .carousel-hero .carousel-inner,
  .carousel-hero .carousel-item{
    min-height: calc(100svh - var(--header-h)) !important;
  }
  .carousel-hero .carousel-indicators{ bottom: 12px; }
  /* Slide 1 (audiencia): mueve un poco el foco para respetar el texto */
  .slide-audiencia .hero-img{ object-position: 25% center !important; }
}

/* Desktop: sube altura y ajusta foco del slide 1 */
@media (min-width: 992px){
  .carousel-hero .carousel-inner,
  .carousel-hero .carousel-item{ min-height: 88vh !important; }
  .slide-audiencia .hero-img{ object-position: 62% center !important; }
}
@media (min-width: 1400px){
  .carousel-hero .carousel-inner,
  .carousel-hero .carousel-item{ min-height: 900px !important; }
}

/* Reduce motion (accesibilidad) */
@media (prefers-reduced-motion: reduce){
  .carousel, .carousel *{
    animation: none !important;
    transition: none !important;
  }
}


/* Menos altura: así no obliga tanto a recortar */
:root{
  --hero-min: clamp(380px, 68vh, 820px); /* antes 82vh */
}

/* Este slide NO recorta: muestra la imagen completa */
.carousel-hero .carousel-item.slide-audiencia .hero-img{
  object-fit: contain !important;       /* muestra todo */
  object-position: center center !important;
  background-color: #0f427f;            /* color de fondo detrás de las franjas */
}

/* Si no quieres oscurecer el QR / logo en este slide */
.carousel-hero .carousel-item.slide-audiencia.no-overlay .overlay{
  display: none !important;
}



/* ====== SLIDE 2 igual que SLIDE 1 ====== */

/* Mismo tratamiento visual que slide-audiencia */
.carousel-hero .carousel-item.slide-festival .hero-img{
  object-fit: contain !important;          /* no recorta, muestra todo */
  object-position: center center !important;
  background-color: #0f427f;               /* color de fondo de las bandas */
}

/* Sin oscurecer (igual que .no-overlay del slide 1) */
.carousel-hero .carousel-item.slide-festival.no-overlay .overlay{
  display: none !important;
}

/* Mismos focos por breakpoint */
@media (max-width: 576px){
  .slide-festival .hero-img{ object-position: 25% center !important; }
}
@media (min-width: 992px){
  .slide-festival .hero-img{ object-position: 62% center !important; }
}




/* ===== Reemplazar flechas del carrusel por el logo blanco ===== */
.carousel-hero .carousel-control-prev-icon,
.carousel-hero .carousel-control-next-icon{
  /* quitamos el SVG de flecha por defecto */
  background-color: #fff;
  background-image: url("/portal/assets/img/logos/lg.png") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 60px;           /* ajusta al tamaño que quieras */
  height:60px;
  border-radius: 90%;    /* opcional: “pill” */
  box-shadow: 0 2px 10px rgba(0,0,0,.35);  /* legibilidad sobre fondos */
  filter: none !important;   /* anula el filter anterior */
  transform: none !important;/* anula el scale anterior */
}

/* área clicable ya la tienes en .carousel-control-*, por si quieres verla un poco */
@media (min-width: 577px){
  .carousel-hero .carousel-control-prev,
  .carousel-hero .carousel-control-next{
    display: flex;
    align-items: center; justify-content: center;
    width: 6.5%;          /* sube si quieres un área mayor */
  }
}

/* hover sutil */
.carousel-hero .carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-hero .carousel-control-next:hover .carousel-control-next-icon{
  transform: scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
