:root {
    --verde-oscuro: #1d5c2d;
    --verde-claro: #4a7c44;
    --amarillo: #e9b33a;
    --crema: #f9f8f4;
    --blanco: #ffffff;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--crema);
}

/* --- Header Responsivo --- */
header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--verde-oscuro);
}

/* --- Menú de Navegación --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--verde-oscuro);
    cursor: pointer;
}

nav {
    display: flex;
    align-items: center;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-button {
    background: none;
    border: none;
    padding: 15px 12px;
    color: var(--verde-oscuro);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanco);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.menu-item:hover .dropdown {
    max-height: 600px;
}

.dropdown a {
    color: var(--verde-oscuro);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}

/* --- Adaptación para Móvil y Tablet --- */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        /* Se oculta el menú normal */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--blanco);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    .menu-list {
        flex-direction: column;
        width: 100%;
    }

    .dropdown {
        position: static;
        background: var(--crema);
        max-height: none;
        display: none;
    }

    .menu-item.open .dropdown {
        display: block;
    }
}

/* --- Adaptación para TV (Pantallas Gigantes) --- */
@media (min-width: 1920px) {
    .nav-container {
        padding: 25px 50px;
    }

    .menu-button {
        font-size: 1.2rem;
        padding: 20px 25px;
    }

    h1 {
        font-size: 5rem !important;
    }
}

/* --- Footer --- */
footer {
    background-color: var(--verde-oscuro);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social a {
    color: var(--amarillo);
}

.social svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    /* Asegurar grosor consistente en iconos de línea */
}

.soaltech-footer {
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
}

.developer-link {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}

.developer-link:hover {
    color: var(--amarillo);
}