body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Negro con 50% de opacidad */
    z-index: 1;
  }
  
  /* Asegúrate de que el texto esté sobre la capa oscura */
  .text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    max-width: 600px;
    z-index: 2; /* MÁS alto que la overlay */
  }

.banner-container {
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  
}
  
  .slides {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
  }
  
  .slide.active {
    opacity: 1;
    z-index: 1;
  }
img.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Negro con 50% de opacidad */
    z-index: 1;
  }
  
  /* Asegúrate de que el texto esté sobre la capa oscura */
 .textobanner {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  z-index: 5;
  padding-right: 20px;
  box-sizing: border-box;
}

.textobanner h1 {
  font-size: 3rem;
  margin: 0;
  color: #FFCD00;
  font-family: Montserrat, sans-serif;
}

.textobanner h2 {
  font-size: 2rem;
  color: white;
  margin: 10px 0 0;
  font-family: Montserrat, sans-serif;
}

.textobanner h3 {
  font-size: 1.2rem;
  color: white;
  margin: 10px 0 0;
  font-family: Montserrat, sans-serif;
}

   .textobanner h3 p {
    font-size: 1.5rem !important;
    color: white !important;
    margin: 10px 0 0 !important;
  }
  a.slide-btn {      color: #454545 !important;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.7) !important;
}
  
  .slide-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #FFCD00;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 28px;
    transition: background-color 0.3s ease;
  }
  
  .slide-btn:hover {
    background-color: #454545 ;
        color: white !important;
  }
  
  .carousel-controls .arrow, .toggle {
    position: absolute ;
    top: 50% ;
    transform: translateY(-50%) ;
    background-color: rgba(0,0,0,0.5) ;
    border: none ;
    font-size: 2rem ;
    padding: 10px;
    cursor: pointer;
    z-index: 10 ;
    min-width: auto !important; /* Sobrescribe el min-width heredado */
  width: auto !important;  
  }
  .carousel-controls .arrow{
border-radius: 50%;
background-color: #FFF !important ;
display: flex;
 font-size: 1rem !important;
  align-items: center;
  color: #004884 !important;
  justify-content: center;
  width: 35px !important;
  height: 35px !important;
  min-width: 0px !important;
  font-family: monospace;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1;
}
  
  .carousel-controls #prev {
    left: 20px;
  }
  
  .carousel-controls #next {
    right: 20px;
  }
  
 .carousel-controls .toggle {
   background-color: #454545 !important;
   opacity: 80%;
   top: auto !important;
   bottom: 20px !important;
   left: 20px !important;
   right: auto !important;
   border: 1px solid #fff !important;
   transform: none !important;
   color: white; /* color del texto */
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

  .carousel-controls #toggle:hover {
    background-color: #FFCD00 !important;
    color: #454545 !important;
    border: 1px solid #fff;
  }
  .carousel-controls #toggle:hover {
    background-color: #FFCD00 !important;
    color: #454545 !important;
    border: 1px solid #fff !important;;
  }
  

 
 .carousel-controls .icon {
    width: 20px;
    height: 20px;
    fill: #FFCD00; /* color del ícono */
  }
  .carousel-controls .toggle:hover .icon {
    fill: #454545 ; /* ícono en hover */
  }
  
  @media (max-width: 991px) {
    .banner-container {
      height: 60vh;
      min-height: 300px;
      max-width: 93vw;
    }
  }

/* Celulares */
@media (max-width: 767px) {
  .banner-container {
    aspect-ratio: 4 / 3;
    max-width: 93vw;
  }
  .contenedor_slider{
    max-width: 90vw !important;
    margin: 0 !important;
  }
  .banner-container{
    height: 480px;
  }
  .banner-container .textobanner{
    padding: 0 40px;
  }
  
  section.radio,
  section.video-audiovisual{
    max-width: 90vw !important;
  }
  .video-audiovisual .fondoaudiovisual .audiovisual-item iframe{
    max-width: 100% !important;
  }
}
  
  /* Efecto parallax solo en escritorio */
  @media (pointer: fine) {
    .slide {
      /* background-attachment: fixed; */
    }
  }
 
/* MEDIA QUERIES RESPONSIVAS */
@media (max-width: 991px) {
  .textobanner {
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 90%;
  }

  .textobanner h1 {
    font-size: 2.2rem;
  }

  .textobanner h2 {
    font-size: 1.6rem;
  }

  .textobanner h3 {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .textobanner {
    top: 55%;
    left: 5%;
    transform: translateY(-55%);
    max-width: 90%;
  }

  .textobanner h1 {
    font-size: 1.8rem;
  }

  .textobanner h2 {
    font-size: 1.3rem;
  }

  .textobanner h3 {
    font-size: 0.95rem;
  }

  .slide-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .carousel-controls .toggle {
    font-size: 16px;
    padding: 8px 16px;
    bottom: 16px;
    left: 16px;
  }
}

/* Celulares */
@media (max-width: 767px) {
  .carousel-controls .toggle {
    font-size: 14px;
    padding: 6px 12px;
    bottom: 12px;
    left: 12px;
  }
}