

.banner-carousel .carousel {
  background: #f5f5f5;
  padding: 16px 0;
/*  border-radius: 16px;*/
  border-radius: 15%;
}

.banner-carousel .carousel-indicators .indicator.active {
  background-color: #00AFAA;
}

.banner-carousel .carousel-btn {
  background-color: #00AFAA;
  color: #fff;
}

@media (max-width: 768px) {
  .banner-carousel .slide img {
   /*  height: 24vh;*/
   height: 15%;
  }
}





/* base  */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url("../img/fondo.png");
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Header centrado  */
header { background-color: #fff; padding: 8px 0; }

/* S Bootstrap header */
header .container {
  max-width: none !important;
  width: 94% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Centrar  logo  menú */
header .navbar {
  display: flex;
  align-items: center;
  justify-content: center; 
}

/* crecer ancho */
header .navbar .navbar-collapse { flex-grow: 0 !important; }

/* Logo */
header .logo { height: 30px; width: auto; }

/* Menu */
.navbar-nav { margin-left: 0 !important; display: flex; gap: 20px; }

/* Enlaces menu */
.navbar-nav .nav-link {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px !important;
  transition: background 0.3s, color 0.3s;
}
.navbar-nav .nav-link:hover {
  background-color: #00AFAA;
  color: #fff !important;
  border-radius: 5px;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  color: #fff !important;
  background-color: #00AFAA;
  border-radius: 5px;
}

/* Ajuste header  */
@media (min-width: 768px) { header .container { width: 92% !important; } }
@media (min-width: 1200px) { header .container { width: 88% !important; } }

/* linea de colores */
.linea-colores {

  width: 100%;
  height: 10px;
  background-color: #4B4F54; 
}



/* carousel   */

.event-carousel { width: 100%; margin: 0; padding: 0; position: relative; overflow: hidden; }
.carousel { max-width: 100vw; position: relative; margin: 0 auto; overflow: hidden; }
.slides { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; box-sizing: border-box; position: relative; }
.slide img { width: 100%; height: 70vh; object-fit: cover; display: block; }
.slide-caption {
  position: absolute; bottom: 20px; left: 20px;
  background-color: rgba(0, 0, 0, 0.5); color: #fff;
  padding: 10px 12px; border-radius: 6px;
}


/* Carrusel 2 */

.banner-carousel .carousel {
  width: 92%;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 0;
  background: #f5f5f5;
  border-radius: 16px;  
  overflow: hidden;    
}

.banner-carousel .slide {
  min-width: 100%;
}

.banner-carousel .slide img {
  width: 100%;
  height: auto;          
  max-height: 320px;     
  object-fit: cover;     
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}









/* Carrusel  cammbbio escritorio */


@media (min-width: 768px) {
  .banner-carousel .carousel {
    max-width: 100%;
    padding: 0;          
    background: none;
  }


  .banner-carousel .slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-carousel .slide img {
    width: 100%;
    height: 40vh;        
    object-fit: cover;  
    object-position: 50% 40%;
  }


  .banner-carousel .carousel-btn.prev {
    left: 30%;
  }
  .banner-carousel .carousel-btn.next {
    right: 30%;
  }
}















/* Botones e indicadores */
.carousel-btn, .indicator { background-color: rgba(0, 0, 0, 0.5); color: #fff; border: none; cursor: pointer; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  padding: 10px 14px; font-size: 24px; z-index: 10; line-height: 1;
}
.carousel-btn.prev { left: 10px; } .carousel-btn.next { right: 10px; }
.carousel-indicators {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.indicator { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.5); }
.indicator.active { background-color: #fff; }

/* Iconos colaboraciones*/
.icon-links { padding: 30px 0; text-align: center; }
.icon-links h2 { color: #000000; }
.icon-links .container {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 20px;
}
.icon-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #333; transition: color 0.3s ease; }
.icon-item:hover { color: #007bff; }
.icon-item img { width: 60%; height: auto; margin-bottom: 2%; transition: transform 0.3s cubic-bezier(.4,2,.6,1); }
.icon-item:hover img { transform: scale(1.12); z-index: 2; }
.icon-item p { font-size: 16px; font-weight: bold; }
@media (max-width: 768px) { .icon-item img { width: 60%; margin-bottom: 3%; } }

/*  Noticias*/

.news { max-width: 1200px; margin: 26px auto; padding: 0 12px; }
.news h2 { color: #000000; margin-bottom: 12px; font-size: 22px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-item {
  background: #fff; padding: 12px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; gap: 8px;
}
.news-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.news-item h3 { font-size: 18px; color: #222; position: relative; display: inline-block; cursor: pointer; }
.news-item h3::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: #9A3CBB; transition: width 0.3s ease; }
.news-item h3:hover::after { width: 100%; }
.news-item time { font-size: 13px; color: #777; }
.read-more { margin-top: auto; text-decoration: none; color: #9A3CBB; font-weight: bold; }


/* Banner con logo */
.image-banner { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }
.image-banner > img[draggable="false"] { width: 100%; height: auto; display: block; }
.image-banner .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.image-banner .content .logo { max-width: 90%; height: auto; filter: brightness(0) invert(1); }

/* Pop-up Flotante */
.popup-flotante {
  position: fixed; top: 25%; left: 20px; z-index: 1050; max-width:  25%;
  pointer-events: auto;
}
.popup-container {
  position: relative; background: #fff; border-radius: 15px; overflow: hidden;
}
.popup-container img { width: 100%; height: auto; display: block; }
.popup-close {
  position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 16px; font-weight: bold;
  cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.popup-close:hover { background: #fff; transform: scale(1.1); color: #e74c3c; }
.popup-flotante.hidden { display: none; }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 768px) { .popup-flotante { max-width: 250px; left: 10px; top: 30%; } }
@media (max-width: 480px) { .popup-flotante { max-width: 200px; left: 5px; top: 35%; } .popup-close { width: 24px; height: 24px; font-size: 14px; } }







/* boton X modal */
.btn-close-over {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-close-over:hover {
  background: rgba(0,0,0,0.9);
  color: #ff4d4d;
  transform: scale(1.15);
}



/* Footer  */
footer {
  background-color: #4B4F54;
  color: #fff;
  padding: 20px;
  text-align: center;
}
footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
footer span {
  cursor: pointer; position: relative; color: #fff; transition: color 0.3s ease;
}
footer span::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
  background-color: #fff; transition: width 0.3s ease;
}
footer span:hover { color: #8BDC65; }
footer span:hover::after { width: 100%; }



/* Ajustes Responsivos */
@media (max-width: 768px) {
  .slide img { height: auto; }
  .icon-links .container { justify-content: center; }
}


/* Responsive movil */
@media (max-width: 480px) {
  footer .footer-icons img {
    width: 16%;
    max-width: 64px;
  }
}






/* Chatbottamaño de burbuja */
#chatbot-messages .msg-bubble { 
  max-width: 75%; 
  padding: 3% 5%;
  border-radius: 12px; 
}

/* Header del chatbot */
.chatbot-header {
  background-color: #d60057;
  color: #fff;
}

/* para el avatar bot */
.msg-bot {
  align-items: flex-start;
  gap: 2%;
}

/*tamaño*/
.msg-bot img {
  width: 16%;
  min-width: 12%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: contain;
}

/* Mensajes del bot */
.msg-bot .msg-bubble {
  background: #fff;
  border-color: #eee;
  color: #333;
}

/* Mensajes del usuario */
.msg-user .msg-bubble {
  background: #52565A;
  border-color: #52565A;
  color: #fff;
}

/* Boton flotante abrir chat */
#chatbot-toggle {
  background-color: #d60057 !important;
  color: #fff !important;
  border: none;
}

/* Botn enviar mensaje */
#chatbot-form .btn.btn-primary,
#chatbot-form button[type="submit"] {
  background-color: #d60057 !important;
  border-color: #d60057 !important;
}
#chatbot-form .btn.btn-primary:hover,
#chatbot-form button[type="submit"]:hover {
  filter: brightness(1.1);
}

/* Chatbot lateral */
#chatbotOffcanvas {
  width: 360px;       
  max-width: 90%;     
}


@keyframes slideUpPopup {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Clase reusable */
.chat-animate { animation: slideUpPopup 0.8s ease-out; }

/*  JS */
#chatbotOffcanvas .offcanvas-body.chat-animate { animation: slideUpPopup 0.8s ease-out; }

/* avatar del bot dentro del chat */
@keyframes pulseInPlace { 0%{transform:scale(1)} 50%{transform:scale(1.06)} 100%{transform:scale(1)} }
.msg-bot img.avatar-animate { animation: pulseInPlace .6s ease-out; }



@media (max-width: 768px) {
  #chatbotOffcanvas {
    width: 50% !important;   /* mitad pantalla chat */
    max-width: 50% !important;
  }
}





@keyframes slideUpPopup {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* clase activa animación */
.popup-animate {
  animation: slideUpPopup 0.8s ease-out;
}




/* Animación modal  chatbot */
#chatbotOffcanvas.chat-animate {
  animation: slideUpPopup 0.8s ease-out;
}



/* dropdown menu */
@media (min-width: 768px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; 
  }
}




/* Responsive móvil */
@media (max-width: 480px) {
  footer .footer-icons img {
    width: 16%;
    max-width: 64px;
  }
}

.video_semanal {
  width: 120%;       
  height: auto;   
  max-width: 800px;
  display: block;
  margin: 0 auto;
}

/*
@media (min-width: 992px) { 
  .video_semanal {
    width: 60%;
    height: auto;
  }
}
*/



@media (max-width: 768px) {
  .video_semanal {
    width: 90%;    
    height: auto;
  }
}

