/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Evita que haya un pequeño espacio extra debajo del hero */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 100%;
}

/* ---- HEADER STICKY ---- */
header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    background-color: white;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Agrega una sombra sutil */
}

/* ---- LOGO ---- */
.logo img {
    height: 60px;
    margin-left: 40px;
    object-fit: cover;
}

/* ---- NAV ---- */
nav {
    flex: 1; /* Ocupa el espacio disponible */
    display: flex;
    justify-content: center;
}

/* ---- ESTILOS DEL MENÚ Y DROPDOWN ---- */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav li {
    position: relative;
}

/* Estilos para enlaces del menú */
nav a {
    text-decoration: none;
    color: black;
    font-weight: 600;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

/* Cambiar color del texto cuando esté activo o en hover */
nav a.active, 
nav a:hover {
    color: green;
}
/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: green;
    font-size: 2rem;
    cursor: pointer;
}

/* === BOTÓN CERRAR EN MENÚ === */
.close-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 10%;
    cursor: pointer;
}
section {
    scroll-margin-top: 80px; /* Ajusta según la altura del header */
}

/* Footer */
footer {
    background-color: #1e1e1e;
    color: #fff;
    padding: 40px 0;
    font-size: 1rem;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Columna 1: Información */
.footer-info {
    width: 30%;
}

.footer-logo {
    width: 20%;
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Columna 2: Enlaces */
.footer-links {
    width: 30%;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #39a900;
}

/* Columna 3: Contacto */
.footer-contact {
    width: 30%;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact i {
    color: #39a900;
}

/* Redes Sociales */
.footer-socials {
    margin-top: 10px;
}

.footer-socials a {
    color: #39a900;
    margin-right: 12px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #fff;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.footer-bottom strong{
    color: green;
}


@media (max-width: 900px){
    .logo img {
        margin-left: 20px;
    }
}
/* Medidas para ser responsive */
@media (max-width: 790px) {
    .hamburger {
        display: block;
    }
    
      nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        height: 40%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        transform: translateX(100%);
        padding-bottom: 20%;
        border-top-left-radius: 10px;  /* Esquina superior izquierda */
        border-bottom-left-radius: 10px;
        background:#39a900;
        
    }
    nav ul{
        margin-top: 50%;
        margin-left: -40px;
        
    }
    nav a {
        color: white;
        box-shadow: 0 5px white;
        margin-top: 10px; /* Línea blanca suave */
    }

    nav a.active, 
    nav a:hover {
        color: white;
    }
    
     .show {
        transform: translateX(0);
    }
    
      nav ul {
        flex-direction: column;
    }
    
      .close-menu{
        display: block;
    }
      .close-menu i{
        color: white;
        font-size: 30px;
    } 
}

@media (max-width: 500px) {
    .hamburger{
        margin-right: -20px;
    }
    .logo img {
        margin-left: -20px;
    }
}