/* =========================================
   EL TEJEDOR - MENÚ HAMBURGUESA + ICONOS SVG
   ========================================= */

.site-header {
    position: relative;
    z-index: 1000;
}

/* Enlaces del menú con iconos SVG reales */
.site-header .menu-nav .menu-enlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}


.site-header .menu-nav .menu-enlace[aria-current="page"] {
    color: #13adc9;
    font-weight: 700;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 9px 8px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.activo span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.activo span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.activo span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Color del texto que acompaña al logotipo solamente en Quién soy */
.pagina-quien-soy .site-header .logo span {
    color: #000000;
}

.pagina-quien-soy .nosotros-icono h3 {
    color: #000000;
}

@media (max-width: 768px) {
    /* Sobrescribe el flex-direction: column de estilos.css */
    .site-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap;
        text-align: left !important;
        gap: 10px;
        padding-left: 18px;
        padding-right: 14px;
    }

    .site-header .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Siempre a la derecha */
    .menu-toggle {
        display: flex;
        flex: 0 0 auto;
        margin-left: auto;
        order: 2;
    }

    .site-header .menu-nav {
        display: none !important;
        width: 100%;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        padding: 12px 0 4px;
        order: 10;
    }

    .site-header .menu-nav.abierto {
        display: flex !important;
    }

    /* En móvil: apartados representados por iconos, no emojis */
    .site-header .menu-nav .menu-enlace {
        position: relative;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, .35);
        color: #2c3e50;
        text-decoration: none;
        box-sizing: border-box;
        transition: background .2s ease, transform .2s ease;
    }

    .site-header .menu-nav .menu-enlace:hover,
    .site-header .menu-nav .menu-enlace:focus-visible {
        background: rgba(207, 4, 4, 0.7);
        transform: translateY(-2px);
        outline: 2px solid rgba(44, 62, 80, .18);
        outline-offset: 2px;
    }

    .site-header .menu-nav .menu-icon {
        width: 25px;
        height: 25px;
    }

    /* El texto queda accesible para lectores de pantalla,
       pero visualmente se muestran solo los iconos. */
    .site-header .menu-nav .menu-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .site-header .buscador {
        order: 5;
        width: 100%;
    }
}
