html {
  scroll-behavior: smooth;
}


body {
  padding-top: 70px; /* Ajuste para el navbar */
}

.navbar-lightgray {
  background-color: #f2f2f2; /* gris claro */
}


.navbar {
  height: 90px;
  padding: 0;
}



/*
 * Estilos para el panel offcanvas del menú de hamburguesa
 */
.offcanvas {
  /* Color de fondo del panel, puedes cambiarlo a tu gusto */
  background-color: #f8f9fa; /* Un gris muy claro, similar a Bootstrap */
  
  /* Borde sutil para darle una apariencia más definida */
  border-left: 1px solid rgba(0, 0, 0, 0.1);

  /* Sombra para darle profundidad */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

/*
 * Estilos para el encabezado del panel
 */
.offcanvas-header {
  border-bottom: 1px solid #e9ecef; /* Línea separadora */
  padding: 1.5rem 1rem; /* Más espacio para que se vea más limpio */
}

/*
 * Estilos para el cuerpo del panel (donde están los enlaces)
 */
.offcanvas-body {
  padding: 1.5rem 1rem;
}

/*
 * Estilos para los enlaces de navegación
 */
.offcanvas-body .nav-link {
  color: #343a40; /* Color del texto de los enlaces */
  font-weight: 500; /* Un poco más de grosor en la fuente */
  padding: 0.75rem 0; /* Más espacio entre cada enlace */
  transition: color 0.2s ease-in-out; /* Transición suave al pasar el mouse */
}

/* Efecto al pasar el mouse sobre los enlaces */
.offcanvas-body .nav-link:hover {
  color: #0d6efd; /* Cambia a azul (o el color que prefieras) */
}

/*
 * Opcional: Estilo para la lista sin los puntos
 */
.offcanvas-body .navbar-nav {
  list-style-type: none;
  padding-left: 0;
}
.navbar-brand,
.logo-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
}


.navbar-brand img {
  max-height: 100%;
  height: auto;
}

.navbar-nav {
  align-items: center;
}

/* Espaciado entre los links del navbar */
.navbar-nav .nav-link {
  margin: 0 15px;
  font-weight: 500;
  font-size: 1.1rem; /* Opcional: agranda un poco el texto */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #ffc107; /* Amarillo Bootstrap */
}

/* SCROLL -90 PARA QUE NO TAPE LOS TITULOS */
#conocenos {
  scroll-margin-top: 90px; /* un poco más que el alto del navbar */
}
#noticias {
  scroll-margin-top: 90px; /* un poco más que el alto del navbar */
}
#campañas {
  scroll-margin-top: 90px; /* un poco más que el alto del navbar */
}
#donaciones {
  scroll-margin-top: 90px; /* un poco más que el alto del navbar */
}
#contacto {
  scroll-margin-top: 90px; /* un poco más que el alto del navbar */
}


/*carrusel*/
.carousel-background {
  position: relative;
}

.carousel-noticias{
  position: relative;
  width: 90%;
  overflow: hidden;
  margin: 0 auto;
  max-height: 450px;
}

.carousel-content,
.instagram-icon {
  pointer-events: none; /* Hace que no interfiera con clics */
}

.carousel-content * {
  pointer-events: auto; /* Excepto el contenido interno, como botones si necesitás que sí respondan */
}

.instagram-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  pointer-events: auto; /* Permitimos clics en el ícono */
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: white;
  padding: 20px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  flex-direction: column;
}

/* Aumentamos tamaño del texto */
.banner-text {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  margin: 20px 0;
}

/* Logo central del banner 1 */
.banner-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
}


/* Logos de sponsors */
.sponsor-logo {
  height: 100%;
  max-width: 400px;
  object-fit: contain;
}

.carousel-inner-noticias{
  width: 90% !important;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
@media (max-width: 768px) {
.carousel-noticias-celu{
  min-height: 400px;
  max-height: 450px;
  position: relative;
  width: 80%;
  overflow: hidden;
  margin: 0 auto;
}
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/*que se propone*/
/* Fondo gris personalizado */
.seccion-fondo-gris {
  background-color: #f2f2f2;
}

/* Imagen circular con sombra */
.about-img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.9);
}

/* Columna de texto alineada y justificada */
.texto-columna {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: justify;
  padding-left: 2rem;
}

/* Contenedor del título y párrafo con ancho limitado */
.contenido-texto {
  max-width: 100%;
  width: 100%;
}

/* Título */
#incluirnos h2 {
  font-weight: 700;
  color: #0e378f;
  font-size: 2rem;
}

/* Párrafo */
#incluirnos p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Botón */
#incluirnos .btn-primary {
  background-color: #0e378f;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  width: auto;
  align-self: flex-start; /* evita que se estire al 100% */
}

#incluirnos .btn-primary:hover {
  background-color: #062261;
  transform: translateY(-2px);
}


/* Fondo general de la sección */
.seccion-fondo-gris {
  background-color: #f2f2f2; /* gris claro */
}

#lineas-trabajo .card.linea-trabajo {
  background-color: #4ec3a5;
  color: #fff;
  border: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#lineas-trabajo .card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

#lineas-trabajo .btn-vermas {
  border-radius: 20px;
  background-color: #0e2f6c;
  border: none;
  margin-top: auto;
}

#lineas-trabajo .btn-vermas:hover {
  background-color: #0a2554;
}

#lineas-trabajo .card p {
  font-size: 0.95rem;
}

#lineas-trabajo .collapse {
  transition: all 0.3s ease;
}

.titulo-lineas-trabajo {
  text-align: left;
  font-size: 3.2rem;
  color: #083358;
}

.seccion-fondo-gris {
  background-color: #f2f2f2;
}




/*conocenos*/
.conocenos-section {
  background-color: #f2f2f2; /* gris claro */
  color: #333;
}

.conocenos-section h2 {
  color: #0e378f;
}

.equipo-miembro {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-equipo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titulo-conocenos {
  text-align: left;
  font-size: 3.2rem;
  color: #083358;
}

.text-justificado {
  text-align: justify;
}
.equipo-miembro {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background-color: #ddd;
  position: relative;
}

.img-equipo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(228, 232, 242, 0.8); /* azul oscuro semitransparente */
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.overlay-content {
  text-align: center;
}

.equipo-miembro:hover .overlay {
  opacity: 1;
}

.nombre {
  font-weight: bold;
  margin-bottom: 5px;
}


/*banner con frase*/
.frase-banner {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.frase-contenido {
  background-color: #0e378f;
  padding: 60px 30px;
  min-height: 100vh;
}

.frase-contenido h2 {
  font-size: 2rem;
  color: white;
}

.frase-contenido .text-bold {
  font-weight: 700;
}

.banner-imagen {
  background-image: url('/img/frase-banner.jpg'); /* Cambia esta ruta por tu imagen */
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  filter: brightness(0.7); /* oscurece un poco para contraste */
}

@media (max-width: 767.98px) {
  .frase-contenido, .banner-imagen {
    min-height: 50vh;
  }

  .carousel-inner-noticias{
  width: 80% !important;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
}

/* Noticias */
.titulo-noticias {
  text-align: left;
  font-size: 3.2rem;
  color: #083358;
}
#noticias .card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#noticias .card-body h5 {
  font-size: 1.05rem;
}

#noticias .card-body p {
  font-size: 0.95rem;
}

/* Indicadores (puntos) */
.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #002f6c;
}

/* Flechas */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60% 60%;
  background-color: #002f6c;
  padding: 10px;
  border-radius: 50%;
}


/* Campañas */
.campania-img-wrapper {
  background-color: #f2f2f2;
  border-radius: 60px;
  height: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 70%;
}

@media (max-width: 992px) {
  .campania-img-wrapper{
   width: 100% !important;
  }
}

.campania-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 60px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.campania-text {
  position: relative;
  color: white;
  font-weight: bold;
  font-size: 2.0rem;
  text-align: center;
  z-index: 1;
  padding: 0 10px;
}

/* Fondo de toda la sección de campañas */
.bg-campanias {
  background-color: #f2f2f2;
}

.titulo-campañas {
  text-align: left;
  font-size: 3.2rem;
  color: #083358;
}


/*formulario*/
/* Sección dividida contacto */
.seccion-contacto {
  min-height: 100vh;
}

.contacto-formulario {
  background-color: #f8f9fa; /* color claro para el lado del formulario */
}

.contacto-imagen {
  background-image: url('/img/contacto.jpg'); /* Cambia por tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}

h3 {
  font-weight: 700;
  color: #0e378f;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Footer */
.footer a.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a.footer-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.footer .social-icon {
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .social-icon i {
  font-size: 1.3rem;
  vertical-align: middle;
}

.footer .social-icon:hover {
  color: #0d6efd;
}


.footer img {
  max-height: 150px;
}


/*ESTILO DE COMO LO HACEN POSIBLE*/
/* Estilo para los botones personalizados */
.custom-tab {
  background-color: #dce6f1;
  border: none;
  color: #1d3557;
  padding: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
}

.custom-tab:hover {
  background-color: #bfd2e5;
  color: #0a2342;
}

.custom-tab.active {
  background-color: #0a2342;
  color: #ffffff;
}

.tab-pane p:last-of-type::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ccc;
  margin-top: 1.5rem;
}

.campania-img-wrapper {
  position: relative;
}

.campania-img-wrapper img {
  width: 100%;
  display: block;
}

.campania-img-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Nivel de oscuridad */
  z-index: 1;
}

/* Estilos para la imagen completa */
.img-banner-full {
  width: 100%;
  height: auto;
  display: block;
}

/*DISEÑO PARA donar*/
.seccion-banner {
  color: #003366; /* Tono azul profundo para texto */
}

.seccion-banner h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #003366;
}

.seccion-banner p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #000000;
  text-align: justify;
}

.botones-banner .btn {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  white-space: nowrap;
}

.btn-donar {
  background-color: #FFD700; /* Amarillo dorado */
  color: #003366;
  border: none;
}

.btn-necesito {
  background-color: #FFF;
  color: #003366;
  border: 2px solid #FFD700;
}

.btn-donar,
.btn-necesito {
  transition: all 0.3s ease;
}

/* Al pasar el cursor, fondo blanco y borde amarillo */
.btn-donar:hover,
.btn-necesito:hover {
  background-color: #FFF;
  color: #003366;
  border: 2px solid #FFD700;
}

.icono-banner {
  width: 48px;
  height: auto;
  margin-bottom: 0.75rem;
}

/*contacto*/
.bg-lightgray {
  background-color: #f2f2f2;
}

#contacto h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #003366; /* Azul institucional */
}

#contacto p {
  font-size: 1.05rem;
  color: #555;
}

#contacto label {
  font-weight: 600;
  color: #003366;
}

#contacto .form-control {
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#contacto .form-control:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25); /* efecto dorado */
}

#contacto .btn-primary {
  background-color: #FFD700;
  color: #003366;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

#contacto .btn-primary:hover {
  background-color: #fff;
  border: 2px solid #FFD700;
  color: #003366;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #99ccff; /* o cualquier tono claro que combine con el fondo */
}

/*wpp*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  font-size: 28px; /* tamaño del ícono */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none; /* si es un <a> */
}


.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
}

.campania-link {
  display: block;              /* hace clickeable todo el bloque */
  text-decoration: none;       /* sin subrayado */
  color: inherit;              /* mantiene el color del texto */
}