/* =========================================================
   LU-ARK OVERLAY MENU
   CSS limpio y mantenible
   ========================================================= */

/* =========================================================
   RESET DEL CONTENEDOR ELEMENTOR
   El widget puede colocarse en cualquier sección sin ocupar espacio
   ========================================================= */

.elementor-widget-luark_overlay_menu,
.elementor-widget-luark_overlay_menu > .elementor-widget-container {
    position: static !important;

    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}

/* =========================================================
   RAÍZ DEL WIDGET
   ========================================================= */

.luark-overlay-widget {
    --luark-menu-accent: #7bc63d;
    --luark-menu-text: #ffffff;
    --luark-menu-muted: rgba(255, 255, 255, 0.62);
    --luark-menu-panel: #111617;
    --luark-menu-border: rgba(255, 255, 255, 0.08);
    --luark-menu-item-hover: rgba(255, 255, 255, 0.07);
    --luark-menu-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    --luark-backdrop-opacity: 0.28;
    --luark-backdrop-blur: 8px;
    --luark-transition-duration: 260ms;

    position: fixed;
    top: 0;
    left: 0;

    width: 0;
    height: 0;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 99998;
    overflow: visible;

    font-family: inherit;
}

/* =========================================================
   BOTÓN / LOGO PLEGADO
   ========================================================= */

.luark-overlay-launcher {
    position: fixed;
    top: 24px;
    left: 42px;
    z-index: 100002;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    padding: 0;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 24, 0.98),
            rgba(7, 10, 11, 0.98)
        );

    border: 1px solid rgba(123, 198, 61, 0.38);
    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(123, 198, 61, 0.08),
        0 0 18px rgba(123, 198, 61, 0.22),
        0 10px 26px rgba(0, 0, 0, 0.26);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.luark-overlay-launcher:hover {
    transform: translateY(-2px) scale(1.03);

    border-color: rgba(123, 198, 61, 0.70);

    box-shadow:
        0 0 0 1px rgba(123, 198, 61, 0.10),
        0 0 26px rgba(123, 198, 61, 0.34),
        0 14px 36px rgba(0, 0, 0, 0.32);
}

.luark-overlay-launcher:focus-visible {
    outline: 2px solid var(--luark-menu-accent);
    outline-offset: 4px;
}

.luark-overlay-launcher-image {
    display: block;

    width: 68px;
    height: auto;
    max-width: 100%;

    object-fit: contain;
}

.luark-overlay-launcher-fallback {
    display: block;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

/* El launcher permanece visible cuando el panel está abierto */
.luark-overlay-widget.is-open .luark-overlay-launcher {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* En el editor puede ocultarse para trabajar el panel desplegado */
.luark-overlay-widget.is-elementor-editor.is-open
    .luark-overlay-launcher {
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   FONDO OVERLAY
   ========================================================= */

.luark-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;

    background:
        rgba(
            5,
            8,
            9,
            var(--luark-backdrop-opacity, 0.28)
        );

    backdrop-filter:
        blur(var(--luark-backdrop-blur, 8px));

    -webkit-backdrop-filter:
        blur(var(--luark-backdrop-blur, 8px));

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.32s ease,
        visibility 0.32s ease;
}

.luark-overlay-widget:not([data-enable-backdrop="yes"])
    .luark-overlay-backdrop {
    display: none;
}

.luark-overlay-widget:not([data-enable-blur="yes"])
    .luark-overlay-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.luark-overlay-widget.is-open
    .luark-overlay-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   PANEL
   ========================================================= */

.luark-overlay-panel {
    position: fixed;
    top: 160px;
    left: 28px;
    bottom: 150px;
    z-index: 100001;

    display: flex;
    flex-direction: column;

    width: 320px;
    max-width: calc(100vw - 56px);
    min-height: 0;

    padding: 22px 20px 18px;

    color: var(--luark-menu-text);

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(123, 198, 61, 0.055),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            rgba(17, 22, 23, 0.985),
            rgba(8, 12, 13, 0.99)
        );

    border: 1px solid var(--luark-menu-border);
    border-radius: 24px;

    box-shadow: var(--luark-menu-shadow);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-18px);
    transform-origin: top left;

    transition:
        opacity 0.30s ease,
        visibility 0.30s ease,
        transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.luark-overlay-widget.is-open
    .luark-overlay-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}

.luark-overlay-panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(123, 198, 61, 0.34),
            transparent
        );

    pointer-events: none;
}

/* =========================================================
   CABECERA
   ========================================================= */

.luark-overlay-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    flex: 0 0 auto;

    padding: 0 0 16px;
}

.luark-overlay-expanded-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-height: 42px;
    margin-bottom: 4px;
}

.luark-overlay-expanded-logo a {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}

.luark-overlay-expanded-logo img {
    display: block;

    width: 150px;
    height: auto;
    max-width: 100%;

    object-fit: contain;
}

/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.luark-overlay-close {
    position: relative;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background 0.20s ease,
        transform 0.20s ease;
}

.luark-overlay-close:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(4deg);
}

.luark-overlay-close:focus-visible {
    outline: 2px solid var(--luark-menu-accent);
    outline-offset: 2px;
}

.luark-overlay-close span,
.luark-overlay-close span::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 19px;
    height: 1.5px;

    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
}

.luark-overlay-close span {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.luark-overlay-close span::before {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

/* =========================================================
   ZONA DINÁMICA
   ========================================================= */

.luark-overlay-dynamic {
    position: relative;

    flex: 1 1 auto;
    min-height: 0;

    padding: 2px 0 18px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(123, 198, 61, 0.35)
        transparent;
}

.luark-overlay-dynamic::-webkit-scrollbar {
    width: 5px;
}

.luark-overlay-dynamic::-webkit-scrollbar-track {
    background: transparent;
}

.luark-overlay-dynamic::-webkit-scrollbar-thumb {
    background: rgba(123, 198, 61, 0.28);
    border-radius: 999px;
}

.luark-overlay-view {
    width: 100%;
}

.luark-overlay-view[hidden] {
    display: none !important;
}

/* =========================================================
   TRANSICIONES ENTRE VISTAS
   ========================================================= */

.luark-overlay-view.is-entering {
    animation:
        luarkMenuViewIn
        var(--luark-transition-duration, 260ms)
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}

.luark-overlay-view.is-leaving {
    animation:
        luarkMenuViewOut
        var(--luark-transition-duration, 260ms)
        ease
        both;
}

@keyframes luarkMenuViewIn {
    from {
        opacity: 0;
        transform: translateX(14px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes luarkMenuViewOut {
    from {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateX(-10px);
        filter: blur(2px);
    }
}

.luark-overlay-widget[data-transition="fade"]
    .luark-overlay-view.is-entering {
    animation-name: luarkMenuFadeIn;
}

.luark-overlay-widget[data-transition="fade"]
    .luark-overlay-view.is-leaving {
    animation-name: luarkMenuFadeOut;
}

@keyframes luarkMenuFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes luarkMenuFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.luark-overlay-widget[data-transition="slide"]
    .luark-overlay-view.is-entering {
    animation-name: luarkMenuSlideIn;
}

.luark-overlay-widget[data-transition="slide"]
    .luark-overlay-view.is-leaving {
    animation-name: luarkMenuSlideOut;
}

@keyframes luarkMenuSlideIn {
    from {
        transform: translateX(18px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes luarkMenuSlideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-12px);
    }
}

/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

.luark-overlay-navigation {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.luark-overlay-nav-item {
    width: 100%;
}

.luark-overlay-nav-button,
.luark-overlay-nav-link {
    position: relative;

    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;

    gap: 10px;

    width: 100%;
    min-height: 46px;
    padding: 8px 12px;

    color: var(--luark-menu-text);
    background: transparent;

    border: 1px solid transparent;
    border-radius: 12px;

    font: inherit;
    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.luark-overlay-nav-link {
    grid-template-columns: 30px minmax(0, 1fr);
}

.luark-overlay-nav-button:hover,
.luark-overlay-nav-link:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.06);

    transform: translateX(2px);
}

.luark-overlay-nav-button.is-active,
.luark-overlay-nav-link.is-active {
    color: var(--luark-menu-accent);

    background: rgba(123, 198, 61, 0.08);
    border-color: rgba(123, 198, 61, 0.14);

    box-shadow:
        inset 0 0 0 1px rgba(123, 198, 61, 0.03);
}

.luark-overlay-nav-button:focus-visible,
.luark-overlay-nav-link:focus-visible {
    outline: 2px solid rgba(123, 198, 61, 0.55);
    outline-offset: 2px;
}

.luark-overlay-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    color: currentColor;
}

.luark-overlay-nav-icon i,
.luark-overlay-nav-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    transition:
        transform 0.20s ease,
        filter 0.20s ease;
}

.luark-overlay-nav-button:hover
    .luark-overlay-nav-icon svg,
.luark-overlay-nav-link:hover
    .luark-overlay-nav-icon svg {
    transform: scale(1.03);
    filter: none;
}

.luark-overlay-nav-title {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.luark-overlay-nav-arrow {
    justify-self: end;

    color: rgba(255, 255, 255, 0.34);

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.20s ease,
        color 0.20s ease;
}

.luark-overlay-nav-button:hover
    .luark-overlay-nav-arrow {
    color: var(--luark-menu-accent);
    transform: translateX(2px);
}

/* =========================================================
   SUBMENÚ
   ========================================================= */

.luark-overlay-view-submenu {
    min-height: 100%;
}

.luark-overlay-back {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 18px;
    padding: 8px 10px 8px 4px;

    color: rgba(255, 255, 255, 0.86);
    background: transparent;

    border: 0;
    border-radius: 10px;

    font: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.20s ease,
        background 0.20s ease,
        transform 0.20s ease;
}

.luark-overlay-back:hover {
    color: var(--luark-menu-accent);

    background: rgba(255, 255, 255, 0.04);

    transform: translateX(-2px);
}

.luark-overlay-back span:first-child {
    font-size: 20px;
    line-height: 1;
}

.luark-overlay-template {
    color: var(--luark-menu-text);
}

.luark-overlay-template > .elementor {
    width: 100%;
}

.luark-overlay-template .elementor-section,
.luark-overlay-template .e-con {
    max-width: 100%;
}

/* =========================================================
   PIE FIJO
   ========================================================= */

.luark-overlay-footer {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding-top: 14px;
    margin-top: 8px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================================================
   CTA
   ========================================================= */

.luark-overlay-cta {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center;

    gap: 10px;

    min-height: 44px;
    padding: 8px 12px;

    color: #ffffff;
    background: rgba(123, 198, 61, 0.08);

    border: 1px solid rgba(123, 198, 61, 0.14);
    border-radius: 12px;

    text-decoration: none;

    transition:
        background 0.20s ease,
        border-color 0.20s ease,
        transform 0.20s ease,
        box-shadow 0.20s ease;
}

.luark-overlay-cta:hover {
    color: #ffffff;

    background: rgba(123, 198, 61, 0.13);
    border-color: rgba(123, 198, 61, 0.24);

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.14);
}

.luark-overlay-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
}

.luark-overlay-cta-icon svg,
.luark-overlay-cta-icon i {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
}

.luark-overlay-cta-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.luark-overlay-cta-arrow {
    justify-self: end;

    color: rgba(255, 255, 255, 0.45);

    font-size: 16px;
    line-height: 1;

    transition:
        transform 0.20s ease,
        color 0.20s ease;
}

.luark-overlay-cta:hover
    .luark-overlay-cta-arrow {
    color: var(--luark-menu-accent);
    transform: translateX(2px);
}

/* =========================================================
   UBICACIÓN
   ========================================================= */

.luark-overlay-location {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 8px 4px;

    color: var(--luark-menu-muted);

    text-decoration: none;

    transition:
        color 0.20s ease,
        transform 0.20s ease;
}

.luark-overlay-location:hover {
    color: rgba(255, 255, 255, 0.90);
    transform: translateX(2px);
}

.luark-overlay-location-media {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;
}

.luark-overlay-location-media img {
    display: block;

    width: 22px;
    height: 22px;

    object-fit: contain;
}

.luark-overlay-location-media svg,
.luark-overlay-location-media i {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
}

.luark-overlay-location-text {
    min-width: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* =========================================================
   REDES SOCIALES
   ========================================================= */

.luark-overlay-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    padding: 2px 4px 0;
}

.luark-overlay-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid transparent;
    border-radius: 10px;

    text-decoration: none;

    transition:
        color 0.20s ease,
        background 0.20s ease,
        border-color 0.20s ease,
        transform 0.20s ease;
}

.luark-overlay-social:hover {
    color: var(--luark-menu-accent);

    background: rgba(123, 198, 61, 0.08);
    border-color: rgba(123, 198, 61, 0.14);

    transform: translateY(-2px);
}

.luark-overlay-social svg,
.luark-overlay-social i {
    width: 17px;
    height: 17px;

    fill: currentColor;
    stroke: currentColor;
}

/* =========================================================
   MODO ELEMENTOR
   ========================================================= */

.elementor-editor-active
    .luark-overlay-widget {
    pointer-events: auto;
}

.luark-overlay-widget.is-elementor-editor
    .luark-overlay-panel {
    z-index: 100000;
}

.elementor-editor-active
    .luark-overlay-panel,
.elementor-editor-active
    .luark-overlay-launcher {
    margin-top: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .luark-overlay-launcher {
        top: 20px;
        left: 20px;

        width: 64px;
        height: 64px;
    }

    .luark-overlay-panel {
        top: 104px;
        left: 20px;
        bottom: 20px;

        width: 350px;
        max-width: calc(100vw - 40px);

        padding: 25px 21px 21px;
    }

    .luark-overlay-header {
        padding-bottom: 20px;
    }

    .luark-overlay-nav-button,
    .luark-overlay-nav-link {
        min-height: 52px;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {
    .luark-overlay-launcher {
        top: 16px;
        left: 16px;

        width: 58px;
        height: 58px;
    }

    .luark-overlay-panel {
        top: 88px;
        left: 12px;
        right: 12px;
        bottom: 12px;

        width: auto !important;
        max-width: none;

        padding: 22px 18px 18px;

        border-radius: 22px;
    }

    .luark-overlay-expanded-logo img {
        width: 150px;
    }

    .luark-overlay-header {
        padding-bottom: 18px;
    }

    .luark-overlay-navigation {
        gap: 5px;
    }

    .luark-overlay-nav-button,
    .luark-overlay-nav-link {
        min-height: 50px;
        padding: 10px 12px;

        border-radius: 13px;
    }

    .luark-overlay-nav-title {
        font-size: 14px;
    }

    .luark-overlay-footer {
        gap: 9px;
        padding-top: 14px;
    }

    .luark-overlay-cta {
        min-height: 50px;
    }

    .luark-overlay-location-text {
        font-size: 12px;
    }
}

/* =========================================================
   PANTALLAS BAJAS
   ========================================================= */

@media (max-height: 700px) {
    .luark-overlay-panel {
        top: 92px;
        bottom: 12px;

        padding-top: 18px;
        padding-bottom: 16px;
    }

    .luark-overlay-header {
        padding-bottom: 14px;
    }

    .luark-overlay-nav-button,
    .luark-overlay-nav-link {
        min-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .luark-overlay-footer {
        padding-top: 10px;
    }

    .luark-overlay-cta {
        min-height: 46px;
    }

    .luark-overlay-location {
        padding-top: 4px;
        padding-bottom: 2px;
    }

    .luark-overlay-social {
        width: 31px;
        height: 31px;
    }
}

/* =========================================================
   BLOQUEO DE SCROLL
   ========================================================= */

html.luark-overlay-menu-open,
html.luark-overlay-menu-open body {
    overflow: hidden;
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .luark-overlay-widget *,
    .luark-overlay-widget *::before,
    .luark-overlay-widget *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}