/* ======== Paleta de Colores Institucional ======== */
:root {
  --verde-salud: #4CAF50;
  --verde-suave: #A5D6A7;
  --rojo-vital: #C62828;
  --gris-texto: #2C2C2C;
  --blanco-puro: #FFFFFF;
}

/* ======== Reset ======== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--blanco-puro);
  color: var(--gris-texto);
}

/* ======== Navbar ======== */
.navbar {
  background-color: var(--blanco-puro);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: var(--verde-salud) !important;
}

.nav-link {
  color: var(--gris-texto) !important;
}

.nav-link:hover {
  color: var(--verde-salud) !important;
}


#nosotros {
  scroll-margin-top: 90px;
  padding-top: 100px; /* subido a 100px para despegar más del banner */
  position: relative;
  z-index: 1;
}

/* banner.css o style.css */
.banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.banner,
.banner-slide {
  position: relative;
  z-index: 0;
}

#carouselBanner,
.carousel,
.carousel-inner,
.carousel-item,
.banner-slide {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Estilo del fondo de cada slide */
.banner-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /* para posicionar el caption dentro */
}

/* El texto dentro del slide */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  margin-left: 5%;
  max-width: 600px;
  text-align: left;
  color: #fff;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.carousel-caption h1 {
  font-size: 2.8rem;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #ddd;
}

.carousel-caption .btn {
  margin-top: 15px;
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 25px;
  background-color: #fff;
  color: #2e7d32;
  transition: background-color 0.3s ease;
}

.carousel-caption .btn:hover {
  background-color: #e0e0e0;
  color: #1b5e20;
}

/* RESPONSIVE para móviles */
@media (max-width: 768px) {
  .banner,
  .carousel,
  .carousel-inner,
  .carousel-item,
  .banner-slide {
    height: 70vh;
  }

  .carousel-caption {
    padding: 20px;
    margin-left: 3%;
    top: 35%;
    transform: translateY(-35%);
    position: absolute;
  }

  .carousel-caption h1 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-caption .btn {
    font-size: 0.9rem;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2e7d32;
}

.info-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  height: 100%;
}

.mission-box {
  background-color: #2e7d32;
  color: #fff;
}

.vision-box {
  background-color: #c62828;
  color: #fff;
}

.info-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3), 0 15px 35px rgba(0, 0, 0, 0.25);
}


/* ======== Tarjetas de Servicio ======== */
.service-card {
  border: 1px solid transparent;
  background-color: var(--blanco-puro);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.service-card i {
  font-size: 2rem;
  color: var(--verde-salud);
  margin-bottom: 10px;
}

.service-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card:hover {
  border-color: var(--rojo-vital);
  box-shadow: 0 0 15px rgba(198, 40, 40, 0.2);
}

.service-card:hover i,
.service-card:hover h5 {
  color: var(--rojo-vital);
}

/* ======== Call to Action ======== */
.call-to-action {
  background-color: var(--verde-suave);
  color: var(--gris-texto);
  text-align: center;
  padding: 40px 20px;
}

.call-to-action .btn {
  background-color: var(--verde-salud);
  color: var(--blanco-puro);
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.call-to-action .btn:hover {
  background-color: #388E3C;
}

/* ======== Footer ======== */
footer {
  background-color: var(--verde-salud);
  color: var(--blanco-puro);
  text-align: center;
  padding: 20px;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  .banner {
    padding: 40px 15px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .service-card {
    margin-bottom: 20px;
  }
}

/* Carrusel logos actualizado */
.slider {
  overflow: hidden;
  position: relative;
  height: 100px;
  margin-top: 30px;
  white-space: nowrap;
}

.slide-track {
  display: flex;
  width: calc(270px * 12); /* aumentamos el tamaño base para considerar el gap */
  animation: scroll 30s linear infinite;
  gap: 20px; /* separación entre slides */
}

.slide {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.slide img {
  height: 80px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive actualizado */
@media (max-width: 576px) {
  .slide {
    width: 180px;
  }

  .slide-track {
    width: calc(200px * 12);
    gap: 15px;
  }

  .slide img {
    height: 60px;
  }
}



.footer-logo {
  max-height: 200px;
  width: auto;
}

.footer-section {
  min-height: 100%;
}

@media (max-width: 767px) {
  .footer-logo {
    max-height: 120px;
    margin-bottom: 1rem;
  }
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #25D366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  display: block;
}

.info-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.mission-box {
  background-color: #2e7d32;
  color: #fff;
}

.vision-box {
  background-color: #c62828;
  color: #fff;
}

.info-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 15px 30px rgba(0, 0, 0, 0.3);
}

.info-box h4,
.info-box p {
  transition: transform 0.3s ease;
}

.info-box:hover h4,
.info-box:hover p {
  transform: translateY(-5px);
}

.icon img {
  transition: transform 0.3s ease;
}

.info-box:hover .icon img {
  transform: scale(1.2); /* Solo agranda el ícono */
}


/* Responsive */
@media (max-width: 768px) {
  .info-box {
    min-height: auto;
  }
}
/* Verde (Misión) */
.mission-box:hover {
  box-shadow: 0 0 20px 5px rgba(46, 125, 50, 0.5), 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Rojo (Visión) */
.vision-box:hover {
  box-shadow: 0 0 20px 5px rgba(198, 40, 40, 0.5), 0 15px 35px rgba(0, 0, 0, 0.25);
}

.noticia-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.noticia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.noticia-body {
  background-color: #f9f9f9;
}

.noticia-titulo {
  color: #2e7d32;
  font-weight: bold;
}

.noticia-texto {
  font-size: 15px;
  color: #555;
}

.btn-noticia {
  background-color: #c62828;
  color: #fff;
  border-radius: 8px;
  padding: 6px 16px;
  transition: background-color 0.3s ease;
}

.btn-noticia:hover {
  background-color: #a91f1f;
}
.noticia-card img {
  height: 200px; /* o el tamaño que mejor se vea */
  width: 100%;
  object-fit: cover;
}

.game-float {
  position: fixed;
  bottom: 90px; /* encima del botón de WhatsApp */
  right: 20px;
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}
.game-float img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}


.navbar-nav .nav-link {
  color: #2e7d32 !important;      /* Verde institucional */
  font-weight: 600 !important;    /* Más grueso */
  font-size: 1rem;                /* Opcional: para ajustar tamaño */
  text-transform: none;           /* Si no quieres mayúsculas */
}

.navbar-nav .nav-link:hover {
  color: #1b5e20 !important;      /* Verde más oscuro al pasar el mouse */
}


.navbar .nav-link.boton-cursos {
  color: #fff !important;              /* texto blanco */
  background-color: #dc3545;           /* rojo base */
  border-radius: 5px;
  padding: 6px 15px;
  margin-left: 10px;
  transition: all 0.3s ease-in-out;    /* animación suave */
}

.navbar .nav-link.boton-cursos:hover {
  background-color: #bb2d3b;           /* rojo más oscuro */
  color: #fff !important;              /* mantiene blanco */
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.7),
              0 0 20px rgba(220, 53, 69, 0.5); /* efecto glow */
  transform: scale(1.05);              /* ligero zoom */
}
