/*Ajustes generales*/
body {
  background-color: white;
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  display: grid;
  grid-template-areas: "navbar"
      "formulario"
      "miel"
      "footer";
}

body, ul, li, a {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

.menu-btn {
  display: none; /* Ocultar el botón por defecto */
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20001;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.sidebar {
  display: none; /* Ocultar la barra lateral por defecto */
}
/*Estilos de la barra de navegación*/
.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 1px;
  background-color: white; /*Cambia según el diseño */
  position: fixed;
  width: 100%;
  height: 50px;
  z-index: 20000;
}

.navbar2{
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1px;
  background-color: white; /*Cambia según el diseño */
  position: fixed;
  width: 100%;
  height: 50px;
  z-index: 20000;
}
.Logo2{
  margin-left: 20px;
  margin-right: 50px;
}

.logo-img2{
  width: 150px;
}

.donar-btn2 {
  flex-grow: 1;  /* Hace que el botón ocupe espacio disponible */
  display: flex;
  justify-content: center; /* Alinea el botón a la izquierda */
  margin-left: 20px; /* Reduce el margen para mejor ajuste */
}

.donar-btn2 a.btn {
  background-color: #0049ac;
  color: white;
  font-weight: bold;
  padding: 10px 5vw; /* Hace que el botón se adapte al ancho de la pantalla */
  border-radius: 20px;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.donar-btn2 a.btn:hover{

  background-color: #0c65e0;
}

/* 1*/
.Logo{
  margin-left: 20px;
}
.nav-links {
  margin-left: 30px;
  display: flex;
  gap: 40px;
}
.nav-links li a {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  padding: 10px 20px;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #0049ac;
  border-bottom: 4px solid #0049ac;
}

.logo-img{
  width: 150px;
}
.donar-btn a.btn {
  background-color: #0049ac;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  margin-left: 40px;
}

.donar-btn a.btn:hover{
  transform: scale(0.2);
  background-color: #0c65e0;
}

/*Seccion header*/
  header {
    margin-top: 75px;
    text-align: center;
    background-color: #051d40;
    padding: 20px 15px;
    color: #fff;
  }
  
  main {
    padding: 20px 15px;
  }
  
  h1, h2 {
    color: white;
  }
  
  p, label {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  a {
    color: #051d40;
    text-decoration: none;
  }
  
  /* Contact Info Section */
  .contact-info {
    color: black;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .contact-info h2 {
    color: #0049ac;
    margin-bottom: 20px;
  }
  
  .info-box p {
    margin: 10px 0;
  }
  
/* Seccion Registro de Voluntarios */
  .volunteer-signup {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .volunteer-signup h2 {
    color: #0049ac;
    margin-bottom: 20px;
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  input, textarea, button {
    font-size: 1rem;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    background-color: #004aac;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #003b8a;
  }
  
  
/*seccion FOOTER*/
footer {
    height: 420px;
    background-color: #051d40;
    color: white;
    
}
.footer-contenedor{
    padding: 30px 40px;
}

.footer-cuadricula{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    align-content: center;
}

.footer-cuadricula div{
    /*border: 3px solid red;*/
    align-items: center;
    align-content: center;
    color: white;
    text-align: center;
}
.footer-cuadricula-item3 a{
    color: white;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 0.8px;
}

.enlaces-footer{
    text-decoration: none;
    color: white;
}

.footer-cuadricula-item4{
    text-align: center;
    color: white;
}
.footer-cuadricula-item4{
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px; /* Espacio entre los íconos */
    padding-left: 80px;
}

.social-icons .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.social-icons .icon:hover {
    transform: translateY(-10px); /* Hace que "salte" hacia arriba */
    background-color: #004aac; /* Cambia el color de fondo a rojo */
    color: #fff; /* Cambia el color del ícono a blanco */
}
hr {
    border: 1px solid white;
    margin: 20px 10px;
}
footer p{
    margin-left: 10px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .menu-btn{
   display: block;
  }

   .sidebar {
       display: block; 
   }

   .navbar{
       display: none;
   }

  .navbar2{
   display: flex;
  }

  .sidebar {
   display: block;
   position: fixed;
   top: 0;
   left: 0;
   width: 250px;
   height: 100%;
   background-color: white;
   z-index: 20000;
   padding: 20px;
   box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
   transform: translateX(-100%);
   transition: transform 0.3s ease;
}

.menu-btn.active{
   color: #333;
}
.sidebar.active {
   transform: translateX(0);
}

.sidebar .close-btn {
   position: absolute;
   top: 10px;
   right: 10px;
   font-size: 24px;
   cursor: pointer;
}

.sidebar ul {
   margin-top: 50px;
   list-style: none;
   padding: 0;
}

.sidebar ul li {
   margin: 20px 0;
}

.sidebar ul li a {
   color: #333;
   text-decoration: none;
   font-size: 18px;
   font-weight: 500;
}
}

@media (max-width: 768px) {
   .navbar {
       display: none;
   }

   .menu-btn {
       display: block; /* Mostrar el botón en pantallas pequeñas */
   }

   .navbar2{
       display: flex;

   }

   .sidebar {
       display: block;
       position: fixed;
       top: 0;
       left: 0;
       width: 250px;
       height: 100%;
       background-color: white;
       z-index: 20000;
       padding: 20px;
       box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
       transform: translateX(-100%);
       transition: transform 0.3s ease;
   }

   .menu-btn.active{
       color: #333;
   }
   .sidebar.active {
       transform: translateX(0);
   }

   .sidebar .close-btn {
       position: absolute;
       top: 10px;
       right: 10px;
       font-size: 24px;
       cursor: pointer;
   }

   .sidebar ul {
       margin-top: 50px;
       list-style: none;
       padding: 0;
   }

   .sidebar ul li {
       margin: 20px 0;
   }

   .sidebar ul li a {
       color: #333;
       text-decoration: none;
       font-size: 18px;
       font-weight: 500;
   }

   .contenedor-texto{
       margin-bottom: 50px
   }
   /*Estilos de la seccion impacto*/

   .impacto{
       height: 1000px;
   }
   .contenedor-impacto{
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       margin-top: 60px;
       margin-bottom: 200px;
   }

  .resultados{
      height: 900px;
  }

  #contadores-contenedor{
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }

  .proyectos-content{
      flex-direction: column;
      flex-wrap: wrap;
  }

  .proyecto{
      width: 80%;
  }

   /*Estilos del footer*/

   footer{
       height: 750px;
   }
   .footer-cuadricula{
       display: flex;
       flex-direction: column;
       
   }

   .social-icons{
       display: flex;
       justify-content: center;
       align-items: center;
       margin-top: 20px;
       text-align: center;
       padding-left: 0px;

   }
   
}