* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F2F2F2;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/*NAVBAR*/
/* NAVBAR*/

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #0476D9;
    color: white;
    position: relative;
    z-index: 1000;
}

.navbar-logo img {
    height: 80px;
    border-radius: 50%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: -75px;
}

.navbar-menu li {
    margin: 0 10px;
}

.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #ddd;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-menu a:hover {
    color: #5CBF41;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute; /* Cambiar a 'fixed' para que ocupe toda la pantalla */
        top: 0;
        right: 0;
        background-color: #0476D9;
        border-radius: 0;
        flex-direction: column;
        width: 100vw; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding-top: 70px; 
        border-top: 1px solid #444;
    }

    .navbar-menu.active {
        display: flex;
        
    }

    .navbar-toggle {
        display: flex;
        
    }
    .navbar-menu li {
        margin: 10px 0; 
        text-align: center; 
    }
}


/* SECCIONES */

.section-colored {
    background-color: #aaffaa;
    padding: 50px 0;
   
}

.section-colored .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-colored .section-title {
    font-size: 3em;
    color: #0460D9;
    margin-bottom: -20px;
}

.section-colored .text h2 {
    color: #3d6d2f;

}

.section-colored .text ul li {
    color: #3d6d2f;
    font-size: 20px;
    list-style: none;
    text-align: left;
    list-style-type: disc;
}

.section-colored .image {
    margin-top: 5px;
}

.section-colored .image img {
    max-width: 100%;
    border-radius: 30%;
}




.section-title {
    font-size: 50px;
    margin-bottom: 100px;
    color: #000000;
    transition: color 1.0s ease;
  }

.section {
  
  padding: 50px 20px;
  transition: background-color 1.0s ease; /* Transición suave del color de fondo */}


  /* Animaciones */
.section:hover {
    background-color:  #aaffaa; /* Cambio de color al pasar el cursor */
  }
  .section:hover .section-title {
    color: #0460D9; /* Cambio de color de título al pasar el cursor */
  }

  .section:hover .text {
    color: #3d6d2f; /* Cambio de color de título al pasar el cursor */
  }

  .section:hover .text ul {
    color: #3d6d2f; /* Cambio de color de título al pasar el cursor */
  }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.text {
  flex: 1;
  text-align: left;
  transition: color 1.0s ease;
  font-size: 20px;
}

.image {
  flex: 0 0 300px; 
  margin-left: 40px; 
  position: relative;
  margin-right: 50px;
}

.image img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: filter 1.0s ease;
  border-radius: 30%;
  
}


.section:hover .image img {
    filter: none; /* Remueve el filtro al pasar el cursor */
  }


  /* Filtro de blanco y negro cuando el cursor no está sobre la sección */
  .section:not(:hover) .image img {
    filter: grayscale(100%); 
  }

.text ul {
    list-style-type:disc; 
    padding-left: 20px; 
    margin-top: 0;
    margin-bottom: 20px;
    transition: color 1.0s ease;
   
  }
  
  .text li {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: justify;
    margin-right: 30px;
  }
 /* */
 @media (max-width: 768px) {
    .content {
        flex-direction: column-reverse; /* Imagen debajo del texto */
        align-items: center;
    }

    .content .image {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .content .image img {
        max-width: 100%;
        height: auto;
        border-radius: 30%;
    }

    .text {
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    section h2 {
        padding-top: 20px;
        padding-left: 0;
        text-align: center;
    }

    section ul {
        padding-left: 0;
        text-align: center;
    }
}
  
/* Boton flotante*/

/* Botón flotante */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #5CBF41;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn:hover {
    background-color: #4CA934;
    
}

.navbar.scrolled + .floating-btn {
    opacity: 1;
}


/* Estilos responsive */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
}
 


/* Footer */

.footer {
    background-color: #0476D9;
    color: #F2F2F2;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .footer-logo img {
    max-width: 100px;
    border-radius: 50px;
}

.footer-social ul {
    list-style: none;
    display: flex;
}

.footer-social li {
    margin: 0 10px;
}


.footer-social a[href*="facebook.com"] i {
    color: #10327a;
    
}

.footer-social a[href*="wa.me"] i {
    color: #25D366; 
}

.footer-social a {
    color: #EA4335;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    justify-content: center;
    margin-left: 55px;
}

.footer-contact p {
    margin: 5px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar-links.active {
        display: block;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo, .footer-social, .footer-contact {
        margin-bottom: 20px;
        text-align: center;
        
    }
}
