
/* =========================================
   ENCABEZADO ANDRES CHAVEZ
   Estilos independientes
========================================= */

.andres-header {
    width: 100%;
    min-height: 86px;
    padding: 0 7%;
    background: #263b5b;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    position: relative;
    z-index: 1000;
}

.andres-header-logo {
    display: block;
    width: 200px;
    flex-shrink: 0;
}

.andres-header-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.andres-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.andres-menu a {
    position: relative;
    padding: 32px 0 27px;

    color: #ffffff;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.andres-menu a:hover {
    color: #e8a4c9;
}

.andres-menu a.andres-activo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    background: #e15b9b;
}

.andres-header-redes {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.andres-header-redes a {
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.andres-header-redes a:hover {
    color: #e15b9b;
}

/* Botón hamburguesa: oculto en escritorio */

.andres-menu-toggle {
    display: none;
}

/* Ajustes para pantallas medianas */

@media (max-width: 1100px) {
    .andres-header {
        padding: 0 3%;
        gap: 18px;
    }

    .andres-header-logo {
        width: 165px;
    }

    .andres-menu {
        gap: 16px;
    }

    .andres-menu a {
        font-size: 11px;
    }

    .andres-header-redes {
        gap: 14px;
    }
}

/* Menú desplegable para celulares y tabletas */

@media (max-width: 800px) {
    .andres-header {
        min-height: 75px;
        padding: 12px 20px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .andres-header-logo {
        width: 160px;
    }

    .andres-menu-toggle {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 8px;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;

        border: none;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }

    .andres-menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    .andres-menu {
        display: none;
        order: 3;
        flex: 0 0 100%;
        width: 100%;

        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .andres-menu.andres-menu-abierto {
        display: flex;
    }

    .andres-menu a {
        padding: 13px 5px;
        text-align: center;
        white-space: normal;
        font-size: 14px;
    }

    .andres-menu a.andres-activo::after {
        bottom: 5px;
        left: 35%;
        right: 35%;
    }

    .andres-header-redes {
        order: 4;
        flex: 0 0 100%;
        justify-content: center;
        padding: 8px 0;
    }
}
