
/*************** Desbordamiento ***********/
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

/***********   tipo de letra  ***********/
body {
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}


/* Estilo del navbar */
#navbar {
  background-color: #517B39;
  padding: 10px 10px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

h3, h4 {
  color: #517B39;
}

/* Estilo del logo */
.navbar-brand img.logo {
  height: 80px; /* Tamaño del logo inicial */
  transition: height 0.3s ease-in-out;
}

/* Estilo de los enlaces del menú */
.navbar-nav .nav-link {
  font-size: 1.1rem;
  color: #359be9;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  background-color: #87BE41; /* Verde claro */
  color: #ffffff;
  border-radius: 5px;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
  background-color: #91C4EA; /* Azul claro */
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
  color: #517B39; /* Verde oscuro */
}

.navbar .dropdown-item:hover {
  background-color: #87BE41; /* Verde claro */
  color: #ffffff;
}

/* Efecto de scroll para el navbar */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95); /* Hacer el navbar semi-transparente */
  padding: 10px 0; /* Reducir padding */
}

/* Reducir el tamaño del logo al hacer scroll */
.navbar.scrolled .navbar-brand img.logo {
  height: 50px; /* Logo reducido */
}

/* Sticky top */
.sticky-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

/* Shrink Navbar on Scroll */
.navbar.shrink {
  padding: 0.4rem 1rem;
  background-color: #517B39; /* Color del Navbar */
  transition: padding 0.3s ease-in-out;
}

/* Add a smooth transition */
.navbar-collapse {
  justify-content: center;
}

/* Shadow on Navbar */
.shadow-sm {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para el carrusel */

  /* Ajustar imágenes del carousel */
  .carousel-inner img {
  object-fit: cover; /* Rellenar sin distorsión */
  height: 100vh; /* Imagen cubre toda la pantalla */
  width: 100%;
}

  .carousel-section {
    position: relative; /* Necesario para que la CTA se posicione encima */
    height: 80vh; /* Que ocupe toda la altura de la pantalla */
    overflow: hidden;
    z-index: 1;
  }
  
 /* Estilos para el CTA sobre el carrusel */

  .cta-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  }
  

  .cta-section .container {
    max-width: 100%;
  }
  
  .cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .cta-section p {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  
  .cta-section a {
    font-size: 1.25rem;
    padding: 10px 20px;
    border-radius: 5px;
  }

  /**** boton info *****/
  .info {
    background-color: #517B39;
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .info:hover {
    background-color: #87BE41;
  }
  
  
  /* Botón de donación */
.btn-warning {
  background-color: #91C4EA;
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-warning:hover {
  background-color: #FAE605;
}

/* Iconos de servicios destacados */

.services-section {
  position: relative;
  z-index: 2;
  margin-top: -100px;
  padding-top: 50px;
}

/* Animación de aparición suave */
.card-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Cuando el card esté visible */
.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-card {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s ease-in-out;
}

.services-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
  
.card:hover .service-icon {
    transform: scale(1.2);
}
  
  .bg-primary {
    background-color: #87BE41 !important;
  }
  
  .bg-success {
    background-color: #72b1e0 !important;
  }
  
  .bg-info {
    background-color: #517B39 !important;
  }
  
  .text-white {
    color: #fff;
  }

  .bi{
    font-size: 1.5em;
  }
  
  .shadow-lg {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  } 
  
  .card-body {
    padding: 30px;
  }
  
  .card-title {
    font-size: 1.6rem;
    overflow: hidden;
    font-weight: bold;
  }
  
  .card-text {
    font-size: 1rem;
  }  
  
  @media (max-width: 576px) {
    .services-card {
      padding: 20px;
      margin-bottom: 20px;
    }
    .card-title {
      font-size: 1.25rem;
    }
  }

/******************* about ********************/
  
#about {
background-color: #f8f9fa; /* Fondo suave */
padding: 5rem 0;
}

#about h2 {
  color: #87BE41 !important;
  font-size: 2.5rem;
  font-weight: bold;
}

#about p {
  font-size: 1.25rem;
  color: #6c757d;

}

#about .lead {
  font-size: 1.25rem;
  color: #333;
}

#about .img-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px; /* Bordes redondeados */
}

#about img {
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

#about img:hover {
  transform: scale(1.05); /* Efecto hover para agrandar la imagen ligeramente */
}

#about .btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  background-color: #FAE605;
  color: #517B39;
  border: none;
}

#about .btn:hover {
  background-color: #91C4EA;
  color: #fff;
}

.shadow-lg {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/*********** end about ***********/

/* Estilo para la sección separadora */

.separator {
  background: linear-gradient(to right, rgba(135, 190, 65, 0.7), rgba(145, 196, 234, 0.7));
  padding: 100px 0;
  /*background-color: #f0f0f0; /* Color de fondo neutro */
  /*padding: 50px 0;*/
}

.separator p {
  font-size: 1.8rem;
  font-style: italic;
  color: #333; /* Color de texto para buen contraste */
}

.separator p:hover{
  color: black;
}

.separator blockquote {
  border-left: none;
}

.separator blockquote p {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

/***** sección de valores *********/

.valores-section {
  padding: 50px 0;
}

.valor-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.title {
  color: #91C4EA !important;
  font-size: 2.5rem;
  font-weight: bold;
}

.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.valor-icon {
  color: #517B39; 
}

.valor-icon i {
  transition: transform 0.3s ease;
}

.valor-card:hover .valor-icon i {
  transform: scale(1.2);
  color: #87BE41;
}

.valor-title {
  font-size: 1.5rem;
  color: #517B39;
}

.valor-text {
  color: #666;
  font-size: 1rem;
}

.valor-card:hover .valor-title {
  color: #87BE41; 
}

/* Ajustes de espaciado entre columnas */
.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reduce el margen entre las tarjetas */
.col-md-4, .col-sm-6 {
  padding-left: 10px;
  padding-right: 10px;
}

/* Ajustes responsive para que en pantallas más pequeñas las tarjetas ocupen más espacio */
@media (max-width: 1200px) {
  .col-md-4 {
    max-width: 30%;
  }
}

@media (max-width: 768px) {
  .col-sm-6 {
    max-width: 50%;
  }
  .title {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

@media (max-width: 576px) {
  .col-sm-6 {
    max-width: 100%;
  }
}

/********** end valores *********/

/******* Metodologia ***********/

.metodologia-section {
  background: linear-gradient(to right, rgba(135, 190, 65, 0.7), rgba(145, 196, 234, 0.7));
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
}

.metodologia-text h2 {
  color: #517B39;
  font-weight: bold;
}

.metodologia-text p {
  font-size: 1.1rem;
  color: #333;
}

.metodologia-text a {
  background-color: #FAE605;
  color: #517B39;
  border: none;
}

.metodologia-text a:hover {
  background-color: #91C4EA;
  color: #fff;
}

.video-container video {
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .metodologia-section {
    padding: 50px 0;
  }

  .metodologia-text {
    text-align: center;
  }
}

/******* END Metodologia ***********/

/******* Resultados ***********/

.resultados-section {
  background-image: url('/images/Instalaciones/paisaje.jpg'); /* Fondo con textura o imagen */
  background-size: cover;
  background-attachment: fixed;
  background-color: rgba(0, 0, 0, 0.6); /* Color de fondo semi-transparente */
  padding: 80px 0;
  color: #f8f9fa; /* Texto claro para contraste */
}

.resultados-section h2 {
  color: #FAE605; /* Color destacado del logo */
  font-weight: bold;
}

.resultados-section p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.resultados-section .btn-light {
  background-color: #87BE41;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.resultados-section .btn-light:hover {
  background-color: #517B39;
  color: #fff;
}


/******* End Resultados ***********/


/******* Filosofia ************/

.filosofia-section {
  background: linear-gradient(to right, rgba(135, 190, 65, 0.6), rgba(81, 123, 57, 0.6));
  padding: 60px 0;
  color: #fff;
}

.filosofia-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #517B39;
}

.filosofia-quote {
  font-size: 1.5rem;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  display: inline-block;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
}

.filosofia-quote footer {
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FAE605; 
}


/******* End Filosofia ************/
  

/******* Historias de apoyo ************/

.support-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Actividades/otras_causas.jpg') center/cover no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 60px 0;
}

.support-card {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease-in-out;
}

.support-card p {
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
}

.support-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.donate-btn {
  background-color: #FAE605;
  border: none;
  color: #000;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.donate-btn:hover {
  background-color: #E4D205;
}



/*********** End Historias de apoyo ****************/



/************* Contacto *************/
.contact-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

iframe {
  width: 100%;
  height: 100%;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.form-control {
  padding: 15px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-primary {
  background-color: #87BE41;
  border: none;
}

.btn-primary:hover {
  background-color: #72b1e0;
}



/*********** Botón de Donar Fijo y Wpp*****/
/*
.donation-btn {
  position: fixed;
  top: 50%;
  right: 0; 
  transform: translateY(-50%); 
  background-color: #FAE605;
  color: #517B39;
  padding: 10px;
  border-radius: 50px 0 0 50px; 
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
  width: 50px; 
  height: 50px; 
  z-index: 1000; 
}

.donation-btn:hover {
  width: auto; 
  padding-right: 40px; 
}

.donation-btn img {
  width: 40px;
  height: 38px;
  transition: transform 0.3s ease-in-out;
}
.donation-btn:hover img {
  transform: translateX(-5px);
}

.donation-btn .donation-text {
  display: inline-block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  margin-left: 2px; 
}

.donation-btn:hover .donation-text {
  opacity: 1;
  visibility: visible;
}
*/


.donation-btn {
  position: fixed;
  right: 20px;
  top: 50%;
  padding: 15px 30px;
  background-color: #FAE605;
  color: #517B39;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}


.donation-btn:hover {
  background-color: #91C4EA;
  transform: translateY(-5px);
}


/* Botón de WhatsApp */

.fixed-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 1000;
  width: 65px;
  height: 65px;
  background-color: #29A71A;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Ajustes para el ícono de WhatsApp */
.whatsapp-icon {
  width: 55px;
  height: 55px;
}

.fixed-whatsapp:hover {
  transform: scale(1.1); 
}

@media (max-width: 768px) {
  .whatsapp-btn, .donation-btn {
    right: 10px;
    padding: 8px;
  }
  .whatsapp-btn {
    bottom: 50px;
  }

  .donation-btn {
    bottom: 100px;
    height: 40px;
  }
}

/********** END boton donar ***********/

/******** Footer **************/

.footer-section {
  background-color: #0A2239;
  color: #fff;
  padding: 50px 0;
}

.footer-section .social-icon {
  font-size: 1.3em;
  margin: 0 15px;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section .social-icon:hover {
  color: transparent;
  transform: scale(1.2) rotate(10deg);
}

.footer-section .social-icon:hover .bi-facebook {
  color: #3b5998;
}

.footer-section .social-icon:hover .bi-instagram {
  color: #E1306C;
}
.social-icon:hover .bi-whatsapp {
  color: #25D366;
}

.footer-section h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-section p, .footer-section a {
  color: #fff;
  font-size: 1rem;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icon {
  font-size: 1.5rem;
  color: #FAE605;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer-section .text-md-right,
  .footer-section .text-md-left {
    text-align: center;
    margin-top: 10px;
  }
}

/************ End Footer *************/


/******** Animaciones *******/
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/*******************   Style page external   ***************************/

/* Estilos para la sección del encabezado */
.hero-section {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-encabezado {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

/*.hero-image {
  background-image: url('../images/servicio.jpg');
  background-position: center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.6);
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  position:relative;
  display: flex;
  align-items: center;
  justify-content: center;
}*/

/* Estilos para el texto sobre la imagen */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.5rem; 
  margin: 0;
}

@media (max-width: 768px) {
  .hero-text h1 {
      font-size: 2rem;
  }
  .hero-text p {
      font-size: 1rem;
  }
}
