.ludev-mm {
    position: fixed;
    inset: 0;
    z-index: 2147483000 !important;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.ludev-mm.is-visible {
    display: block;
}

.ludev-mm.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ludev-mm[hidden] {
    display: none !important;
}

/* Fondo opaco #ebebeb. */
.ludev-mm__blur {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #ebebeb;
}

.ludev-mm__panel {
    position: relative;
    z-index: 1;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--ludev-mm-text, #00395C);
    background: transparent;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1.5rem, env(safe-area-inset-bottom))
        max(1.25rem, env(safe-area-inset-left));
}

/* Logo izq + X magenta sin cuadrado */
.ludev-mm__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    margin-bottom: 1.5rem;
}

.ludev-mm__logo {
    display: inline-flex;
    align-items: center;
    max-width: min(58vw, 220px);
    text-decoration: none;
    color: inherit;
}

.ludev-mm__logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.ludev-mm__logo span {
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.ludev-mm__close {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #D2214D !important;
    cursor: pointer;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease;
}

.ludev-mm__close::before,
.ludev-mm__close::after,
.ludev-mm__close span,
.ludev-mm__close span::before,
.ludev-mm__close span::after {
    content: none !important;
    display: none !important;
}

.ludev-mm__close-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    pointer-events: none;
    stroke: #D2214D !important;
    color: #D2214D !important;
}

.ludev-mm__close:hover,
.ludev-mm__close:focus-visible {
    opacity: 0.75;
    outline: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.ludev-mm__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.75rem;
    min-height: 0;
}

/* Enlaces grandes, izquierda (Torry Harris) */
.ludev-mm__nav {
    flex: 0 0 auto;
}

.ludev-mm__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.ludev-mm__list li {
    margin: 0;
}

.ludev-mm__link {
    display: inline-block;
    padding: 0.45rem 0;
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #00395C !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ludev-mm__link:hover,
.ludev-mm__link:focus-visible {
    color: #00395C !important;
    opacity: 0.72;
    outline: none;
}

.ludev-mm__link.is-current {
    color: #D2214D !important;
}

.ludev-mm__empty {
    opacity: 0.65;
    font-size: 0.95rem;
}

.ludev-mm__footer {
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 0.5rem;
    border-top: 0;
    margin-top: auto;
}

.ludev-mm__contact {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ludev-mm__contact li {
    margin: 0 0 0.55rem;
}

.ludev-mm__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #00395C !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.ludev-mm__contact a:hover {
    color: #00395C !important;
    opacity: 0.75;
}

.ludev-mm__icon {
    display: inline-flex;
    color: #00395C !important;
}

.ludev-mm__icon svg {
    fill: #00395C !important;
}

.ludev-mm__address {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    color: #00395C;
    white-space: pre-line;
}

.ludev-mm__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ludev-mm__social a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #00395C !important;
    background-color: #00395C !important;
    color: #fff !important;
    display: grid !important;
    place-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
    box-shadow: none !important;
}

.ludev-mm__social a:hover {
    opacity: 0.85;
}

.ludev-mm__social a svg {
    fill: #fff !important;
    color: #fff !important;
}

body.ludev-mm-open {
    overflow: hidden;
}

/* La cabecera sticky de Elementor no puede pintar encima del menú. */
body.ludev-mm-open .elementor-location-header,
body.ludev-mm-open [data-elementor-type="header"],
body.ludev-mm-open .elementor-sticky,
body.ludev-mm-open .elementor-sticky--active {
    z-index: 1 !important;
}

/*
 * Botón MENÚ solo en móvil (≤1024px).
 * No tocamos anchos de columnas Elementor (rompían el alineado a la derecha).
 */
@media (max-width: 1024px) {
    body.ludev-mm-ready .elementor-widget-nav-menu,
    body.ludev-mm-ready .elementor-widget-nav-menu > .elementor-widget-container,
    body.ludev-mm-ready .elementor-nav-menu--toggle {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        text-align: right !important;
        margin-left: auto !important;
    }

    .elementor-menu-toggle.ludev-mm-toggle--custom {
        box-sizing: border-box !important;
        width: auto !important;
        height: 28px !important;
        min-width: 0 !important;
        min-height: 28px !important;
        max-width: 92px !important;
        max-height: 28px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        border: 1.5px solid #BE2848 !important;
        border-radius: 999px !important;
        -webkit-border-radius: 999px !important;
        background: #ebebeb !important;
        background-color: #ebebeb !important;
        background-image: none !important;
        box-shadow: none !important;
        color: #BE2848 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        float: none !important;
    }

    .elementor-menu-toggle.ludev-mm-toggle--custom > :not(.ludev-mm-toggle-label) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        font-size: 0 !important;
    }

    .elementor-menu-toggle.ludev-mm-toggle--custom .ludev-mm-toggle-label {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #BE2848 !important;
        font: inherit !important;
        letter-spacing: inherit !important;
        line-height: inherit !important;
        text-transform: uppercase !important;
        pointer-events: none;
    }
}

/* Escritorio: nunca mostrar la pastilla MENÚ */
@media (min-width: 1025px) {
    .elementor-menu-toggle.ludev-mm-toggle--custom .ludev-mm-toggle-label {
        display: none !important;
    }
}
