/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Encabezado */
header {
    background-color: #33bd37;
    color: white;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    height: 125px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    flex-grow: 1;
}

/* Menú de navegación para desktop */
nav {
    display: block;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Botón hamburguesa - Oculto por defecto */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 10px;
}

/* Sección Nosotros */
#nosotros {
    background-color: #f5f5f5;
    padding: 50px 20px;
    text-align: center;
}

.contenedor-nosotros {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#nosotros h2 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 20px;
}

#nosotros p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

#nosotros strong {
    color: #33bd37;
}

/* Botón de WhatsApp flotante */
.float-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.float-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* Pie de página */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Media Queries - Solo para móviles/tablets */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 0.5em 1em;
    }

    .logo img {
        height: 80px;
    }

    header h1 {
        font-size: 1.3em;
        text-align: left;
        margin-left: 10px;
    }

    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: block;
        order: 3;
    }

    /* Ocultar menú normal */
    nav {
        display: none;
        width: 100%;
        order: 4;
    }

    /* Mostrar menú cuando tiene clase active */
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.5em 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }

    /* Ajustes de contenido */
    .contenedor-nosotros {
        padding: 15px;
    }

    #nosotros h2 {
        font-size: 24px;
    }

    #nosotros p {
        font-size: 16px;
    }

    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1em;
    }

    .logo img {
        height: 60px;
    }
}