.menur{
    width: 100%;
    height:80px;
    background-color:white;
    position: fixed;
    top:0;
    left:0; 
    display: flex;
    align-items: center; 
    justify-content: space-between;
    box-sizing: border-box; 
    box-shadow:0px 10px 6px #00000014;
    z-index: 999;
}

.logo-area{
    width: calc(100% - 80px);
    height: 80px;
    background-color: white;
    display: block;
    float: left;
    max-width: 320px;
    min-width: 240px;
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
}
/******************************************************************************/
.menuinicio {
    width: 80px;
    height: 80px;
    background-color: white;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    float: right;
    cursor: pointer;
    position: relative; /* Necesario para centrar las líneas */
}

.menuinicio span { 
    display: block;
    width: 40px;
    height: 4px;
    background-color: black;
    position: absolute; /* Superpuestas para que al rotar no se desplacen */
    transition: transform 0.4s ease, opacity 0.4s ease;
    
    outline: none !important;
    user-select: none; 
    -webkit-tap-highlight-color: transparent;
}

/* Posición inicial de las 3 líneas */
.menuinicio span:nth-child(1) { transform: translateY(-12px); }
.menuinicio span:nth-child(2) { transform: translateY(0); }
.menuinicio span:nth-child(3) { transform: translateY(12px); }

/* Transformación a X (cuando el JS añade .active) */
.menuinicio.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.menuinicio.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menuinicio.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/******************************************************************************/
.menupc{
    width: calc(100% - 420px);
    height: 100%; 
    background-color: var(--bg-card);
    float: left;
    align-items: center;
    display: flex;
    justify-content:center;
    flex-grow: 1;
    gap: clamp(10px, 1.5vw, 20px);
    padding: 0px 20px 0px 0px;
}
.opciones-pc{
    font-family:Arial, Verdana, Calibri, sans-serif;
    font-size: clamp(14px, 1.2vw, 1.5rem);
    font-weight: 500;
    margin: 0;
    padding: 5px 0.8vw; 
    flex-shrink: 0;
    text-decoration: none;
    color: var(--color-brand-primary);
    white-space: nowrap;
    transition: color 0.3s ease;
}
.modal-mobile{
    background: #00000038;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    position: fixed;
    z-index: 100;
}
.menumobile {
    width: 100%;
    max-width:400px;
    height: calc( 100% - 80px );
    background-color: var(--bg-card);
    position: fixed;
    top: 80px;
    right: 0;
    z-index: 1000;

    /* Forzamos que siempre esté "ahí" pero fuera de la vista */
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    
    /* Estado inicial: 100% a la izquierda */ 
     
    overflow-y: auto; /* Por si las 6 opciones exceden la pantalla */
    overflow-x: hidden; 
} 

.opciones-mobile {
    color: var(--text-dark);
    width: calc(100% - 80px);
    height: 24px;
    line-height: 24px;
    text-align: left;
    font-size: 1.2rem;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    display: block;
    margin: 0 auto;    
    padding: 12px 0px;
    background-color: #ffffff1c;    
    font-weight: 400; 
}
 
 

.opciones-mobile:hover{ 
    font-weight: 300;    
}
.opciones-mobile-separador{
    width: calc(100% - 80px);
    height: 0px;
    border-top: 1px solid var(--border-soft);
    margin: 0 auto;
}
@media (min-width: 890px) {
    .menuinicio {display: none;}
    .modal-mobile {display: none;}
    .menupc{display: flex;}
} 
@media (max-height: 530px) {
    .opciones-mobile {padding: 9px 0;}
}


@media (max-width: 889px) {
    .menuinicio {
        display: flex; /* Ahora sí aparece para poder clicarlo */
        cursor: pointer;
    }

    /* El menú de opciones se oculta hasta que hagas clic */
    .modal-mobile {display: none;}
    
    .menupc{display: none;}

    /* Cuando JS activa el menú */
/*    .menumobile.active {
        display: flex !important;
    }*/
    .modal-mobile.active{
        display:block;
    }
}

/*----------------------------------------------------------------------------*/

/* 2. CSS ACTUALIZADO PARA CLIC */
 
.weblang {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
}

.lang-btn {
    background: var(--bg-card);
    color: var(--color-brand-primary);
    padding: 8px 12px;
    cursor: pointer;
    font-family:Arial, Verdana, Calibri, sans-serif;
    font-size: clamp(14px, 1.2vw, 1.5rem); 
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    min-width: 140px; 
    border-radius: 8px;
    padding: 10px 8px;
    z-index: 1000;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.lang-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ESTILO BASE PARA CADA IDIOMA (<a>) */
.lang {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px; 
    text-decoration: none;
    color: var(--text-dark);
    padding: 0 20px; /* Padding base igual para todos */
    box-sizing: border-box;
    transition: 0.2s;
}

/* IDIOMA ACTIVO (Debe ir unido .lang.active) */
.lang.active {
    background-color: var(--bg-main) !important;
    color: var(--color-brand-accent) !important;
    font-weight: 700;
    border-left: 4px solid var(--color-brand-accent);
    padding-left: 16px; /* Compensación por el borde de 4px */
    pointer-events: none;
}

/* HOVER SOLO PARA LOS NO ACTIVOS */
.lang:not(.active):hover {
    background-color: #f5f5f5;
    color: var(--color-brand-primary);
}
/*----------------------------------------------------------------------------*/
.menu-phone-rrss{
    width: 100%;
    height: auto;
    display: block; 
    margin-bottom: 15px;
}
.menu-rrss{
    display: flex; 
    justify-content: space-between;
    width: calc(100% - 80px);
    margin: auto;
    margin-top: 15px;
} 
.icon-rrss{
    width: 50px;
    height: 50px;
    background-color: var(--bg-main);
    display: block;
}

.boton-phone{
    width: calc(100% - 80px);
    height: 50px;
    background-color: var(--color-brand-primary);
    color: white;
    text-align: center;
    display: block;
    line-height: 50px;
    font-size: 1.3rem;
    font-family: "Roboto", sans-serif;
    margin: 0 auto;
    border-radius: 27px;
}
