/**
 * Estilos del Header (Menú gob.mx) - VERSIÓN VISIBLE
 */

.encabezado {
    background-color: #6a1b32;
    color: #ffffff;
    width: 100%;
    position: relative; /* Cambiado de fixed a relative */
    top: 0;
    left: 0;
    z-index: 10000; /* Z-index alto para estar sobre todo */
    
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    font-family: 'Arial', 'Helvetica', sans-serif;
    border-bottom: 3px solid #d4af37;
}

.contenedor {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
    
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
    border: 0;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.logo img:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.05);
}

.menu {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    
    gap: 30px;
    margin: -10px 0 0 -10px;
}

.menu > * {
    margin: 10px 0 0 10px;
}

.enlace {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.enlace:hover {
    color: #d4af37;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .contenedor {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }
    
    .menu {
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }
}