:root {
    --color-dorado: #C59146;
    --color-dorado-hover: #E4B25F;
    --color-azul: #032A59;
    --color-blanco: #FFFFFF;
    --color-gris: #F8F8F8;
}

/* CABECERA */

.head {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--color-azul);
    background: var(--color-blanco);
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

.head-linea-superior {
    width: 100%;
    height: 5px;
    background: var(--color-dorado);
}

.head-contenedor-medio {
    width: 100%;
    min-height: 100px;
    box-sizing: border-box;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--color-blanco);
}

/* LOGO */

.head-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.head-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-azul);
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

.head-logo a span:first-child {
    color: var(--color-dorado);
}

.head-logo a span:last-child {
    color: var(--color-azul);
}

.head-logo a:hover span {
    color: var(--color-dorado-hover);
}

/* REDES SOCIALES */

.head-redes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.head-redes a {
    color: var(--color-azul);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.head-redes a:hover {
    color: var(--color-dorado);
}

/* MENU DESKTOP */

.head-menu {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 30px;
    background: var(--color-azul);
    text-align: center;
}

.head-menu a {
    display: inline-block;
    padding: 8px 4px;
    color: var(--color-blanco);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.head-menu a:hover {
    color: var(--color-dorado-hover);
}

/* BOTON HAMBURGUESA */

.head-hamburguesa {
    display: none;
    width: 46px;
    height: 42px;
    padding: 8px;
    border: 2px solid var(--color-dorado);
    border-radius: 4px;
    background: var(--color-azul);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.head-hamburguesa span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-blanco);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.head-hamburguesa[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.head-hamburguesa[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.head-hamburguesa[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* TABLET */

@media (max-width: 900px) {
    .head-contenedor-medio {
        padding: 18px 24px;
    }

    .head-logo a {
        font-size: 22px;
    }

    .head-redes {
        gap: 16px;
    }

    .head-hamburguesa {
        display: flex;
        flex-shrink: 0;
    }

    .head-menu {
        display: none; /* Oculto por defecto en mobile/tablet */
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 8px 16px 16px;
    }

    /* Clase para mostrar el menú desde JavaScript al hacer clic */
    .head-menu.is-open {
        display: flex;
    }

    .head-menu a {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        text-align: center;
    }
}

/* CELULAR */

@media (max-width: 600px) {
    .head-contenedor-medio {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 18px 16px;
    }

    .head-logo {
        justify-content: center;
    }

    .head-logo a {
        justify-content: center;
        gap: 4px;
        font-size: 20px;
    }

    .head-redes {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        gap: 24px;
    }

    .head-hamburguesa {
        grid-column: 2;
        grid-row: 1;
    }
}