/*Ajustes generales*/
body {
    background-color: white;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
}
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{

    background-color: #0c65e0;
}

   /*Estilos del hero*/

   .hero {
       display: flex;
       justify-content: center;
       align-items: center;
       height: 80vh;
       background-color: #f5f5f5;
       background-image: url(img/image.png);
       background-size: cover;
       background-position: center;
       background-repeat: no-repeat;
       color: white;
       text-align: center;
       grid-area: hero;
       width: 100%;
   }

   .hero h1 {
       font-size: 3rem;
       margin-bottom: 20px;
   }

    .hero p {
         font-size: 1.5rem;
         margin-bottom: 20px;
    }

    /*Estilos de la seccion proyectos*/

    .proyectos{
        grid-area: proyectos;

    }

    .proyectos-content{
        display: flex;
        flex-direction: row;
        
    }

    .proyecto{
        margin: 20px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        width: 25%
        
    }

    .proyecto img{
        width: 100%;
        border-radius: 10px;

    }

    .proyecto:hover{
        transform: scale(1.05);
    }


    .proyecto h2{
        font-size: 1.5rem;
        margin: 10px 0;
        color: #0049ac;
    }

    .proyecto p{
        font-size: 1rem;
        margin: 10px 0;
    }

    /*Estilos de la seccion resultados*/

    .resultados{
        grid-area: resultados;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 80vh;
        background-color: #f5f5f5;
        background-image: url("img/resultados.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        text-align: center;
        width: 100%;
        margin: 30px 0;
    }

    .resultados h2{
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .resultados h3{
        font-size: 2rem;
        margin-bottom: 0.2dvh;
        color: white;
    }

    .resultados p{
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .contadores{
        font-size: 4rem;
        font-weight: bold;
        color: #007bff;
        animation: fadeIn 1s ease-out; /* Animación CSS */
    }

    #contadores-contenedor{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 250px;
    }

    .cifra{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;

        text-align: center;
        align-items: center;
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }



    /*Estilos de la seccion donaciones*/

    .donaciones{
        grid-area: donaciones;
        display: flex;
        flex-direction:row;
        justify-content: center;
        align-items: center;
        height: 80vh;
        background-color: #f5f5f5;
        background-image: url(img/image.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        text-align: center;
        grid-area: donaciones;
        width: 100%;
        margin-bottom: 20px;
    }

    .donaciones h1{
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .donaciones p{
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .donaciones 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;
    }

    .donaciones a.btn:hover{
        transform: scale(1.2);
        background-color: #0c65e0;
    }


    /*Estilos del footer*/

    footer {
        height: 420px;
        background-color: #051d40;
        color: white;
        grid-area: footer;
    }
    .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;
 
         }
         
     }
 
