/*  -------- Diseños de css del header --------  */
.fx_f_headerTopMain {
    display: flex;
    justify-content: center;
    position: fixed;
    align-items: center;
    top: 0;
    width: 100%;
    height: 70px;
    border-bottom: 1px solid var(--primary-color);
    background-color: var(--third-color);
    z-index: 1000;
}

.fx_f_menuTopMain {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    width: 100%;
    gap: 10px;
}

.fx_f_bodyMainShotGlb {
    justify-content: center;
    margin-top: 70px;
    width: 100%;
    background-color: var(--third-color);
    overflow-y: hidden;
}

.fx_f_loaderSPAFeedback {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background-color: var(--third-color);
    z-index: 100; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx_f_TotalPageSPA {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.fx_f_menuMain-A {
    display: flex;
    justify-content: center;
}

.fx_f_menuMain-B {
    width: calc(100% - 350px);
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* Nav sin restricciones de overflow */
.fx_f_menuMain-B nav {
    width: 100%;
    position: relative;
    overflow: visible;
}

/* UL del menú sin overflow para permitir submenús */
.fx_f_menuMain-B .fx_f_pageMainMenu-ul {
    position: relative;
}

.fx_f_menuLogin {
    display: flex;
}

.fx_f_menuMain-C a {
    text-decoration: none;
    color: var(--primary-color);
}

.fx_f_menuMain-C span {
    color: var(--primary-color);
}

.fx_f_menuText {
    color: var(--primary-color);
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}



.fx_f_pageMainMenu-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* No permite wrap de los items */
}

.fx_f_pageMainMenu-li {
    position: relative;
    margin-right: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

/* Hover unificado para todos los items de menú y submenú */
.fx_f_pageMainMenu-li:hover > a, 
.fx_f_submenu-li:hover > a {
    background-color: color-mix(in srgb, var(--third-color), var(--primary-color) 15%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fx_f_submenu-li a span {
    padding-bottom: 0px;
}

.fx_f_pageMainMenu-li ul {
    /* display: none; */
    position: absolute;
    top: 100%;
    left: 0;
    white-space: nowrap; 
    background-color: var(--third-color);
    border: 1px solid #ccc;
    /* border-radius: 1em; */
    list-style: none;
    padding: 0px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.fx_f_pageMainMenu-li a  {
    gap: 10px;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.tecPageMainMenu-liTwo {
    margin: 0;
}

.tecPageMainMenu-liTwo a {
    padding: 8px 15px;
    color: #333;
    white-space: nowrap;
}

.tecPageMainMenu-liTwo:hover a {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.fx_f_pageMainMenu-li.active > a,
.tecPageMainMenu-liTwo.active > a {
    color: var(--primary-color);
    background-color: var(--second-color); 
}

.fx_f_pageMainMenu-li.active:hover > a,
.tecPageMainMenu-liTwo.active:hover > a {
   filter: brightness(1.2);
}

.fx_f_pageMainMenu-li span {
    color: var(--primary-color);
    /* padding-bottom: 14px; */
}

.tecMenuMain-C,
.fx_f_menuMain-D {
    display: flex;
    justify-content: space-between;
    width: 80px;
    text-align: right;
}

.tecMenuMain-C button,
.fx_f_menuMain-D button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tecMenuMain-C button:hover,
.fx_f_menuMain-D button:hover {
    color: var(--color-primary);
}

.fx_f_menuMain-A img {
    width: 200px;
    cursor: pointer;
}

.fx_f_menuMain-D {
    display: none;
}

.fx_f_menuOcultoMain {
    display: none;
    position: absolute !important;
    top: 50px;
    width: 100%;
    background-color: color-mix(in srgb, var(--third-color), transparent 10%);
    background-size: cover;
    backdrop-filter: blur(5px);
    z-index: 2000;
}

.fx_f_menuOcultoMain ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fx_f_menuOcultoMain li {
    margin: 10px 0;
}

.fx_f_menuOcultoMain li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    font-size: 18px;
}

.fx_f_menuOcultoMain li:hover a {
    background-color: var(--color-primary);
}

/* Estilo para el botón de hamburguesa */
.fx_f_menuMain-D button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary-color);
}

.fx_f_contentSPA {
    width: 100%;
    height: calc(100% - 70px);
}

.pageSpaContent {
    width: 100%;
}









/* 🟢 Ocultar submenús por defecto */
.fx_f_submenu {
    display: none !important; /* Fuerza ocultar por defecto */
    position: absolute;
    background-color: var(--third-color);
    border: 1px solid #ccc;
    border-radius: 1em;
    list-style: none;
    padding: 10px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    min-width: 200px;
}

/* Mostrar submenú cuando se hace hover (escritorio) */
.fx_f_pageMainMenu-li:hover > .fx_f_submenu,
.fx_f_submenu-li:hover > .fx_f_submenu {
    display: block !important;
}

/* 🟢 Submenús de primer nivel */
.fx_f_pageMainMenu-li > .fx_f_submenu {
    top: 100%;
    left: 0;
}

/* 🟢 Asegurar que los submenús anidados (nietos, bisnietos) estén alineados con su padre */
.fx_f_submenu-li > .fx_f_submenu {
    position: absolute;
    top: 0;
    left: 100%;
}

/* 🟢 Evitar que el menú hijo/nieto se desborde fuera de la pantalla */
.fx_f_submenu-li:hover > .fx_f_submenu {
    display: block;
}

/* 🟢 Estilos para los elementos del submenú */
.fx_f_submenu-li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border-radius: 1em;
}

.fx_f_submenu-li:last-child {
    border-bottom: none;
}

/* 🔹 Ajuste de submenús anidados (nietos, bisnietos) */
.fx_f_submenu .fx_f_submenu {
    position: absolute;
    top: 0; /* Se alinea al padre */
    left: 100%; /* Se alinea a la derecha */
}

/* 🟢 Asegurar que si el submenú hijo/nieto está fuera de la pantalla, se invierta la posición */
.fx_f_submenu .fx_f_submenu.fx_f_ajustado {
    left: auto;
    right: 100%; /* Se mueve a la izquierda */
}




.fx_f_expand_icon {
    position: relative;
    z-index: 100px;
}






@media screen and (max-width: 768px) {

    .fx_f_headerTopMain {
        width: 100%;
    }

    .fx_f_menuMain-B {
        display: none;
    }

    .fx_f_menuMain-D {
        display: flex;
        justify-content: center;
        width: 50px;
        text-align: right;
    }
     
    .fx_f_menuTopMain {
        max-width: 100%;
    }

    .fx_f_submenu {
        position: static !important;
        display: none; /* Se ocultan por defecto, se mostrarán con slideDown() */
        padding-left: 20px; /* Indentación para diferenciar niveles */
        border: none;
        box-shadow: none;
        background-color: transparent;
      }
      
      /* Opcional: quitar bordes de los items de submenú en móvil */
      .fx_f_submenu li {
        border: none;
        
      }
      
      /* Ajustar el icono de expansión para que quede alineado a la derecha */
      .fx_f_expand_icon {
        float: right;
        margin-left: 5px;
        font-size: 20px;
        line-height: 1;
      }

      .fx_f_menuOcultoMain {
        top: 59px;
        left: 25px;
        width: calc(100% - 55px);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .fx_f_pageMainMenu-li ul {
        background-color: color-mix(in srgb, var(--third-color), transparent 50%);
    }
    
}









/* ////////////////-- Cargador de contenido --//////////////// */

/* From Uiverse.io by satyamchaudharydev */ 
.loaderSpa {
    display: block;
    --height-of-loader: 4px;
    --loader-color: #808080;
    width: 100%;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0,0,0,0.2);
    position: absolute;
    top: 68px;
    z-index: 999;
  }
  
  .loaderSpa::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
    ;
  }
  
  @keyframes moving {
    50% {
      width: 100%;
    }
  
    100% {
      width: 0;
      right: 0;
      left: unset;
    }
  }


/* ================================================================= */
/* ============== LAYOUTS DE NAVEGACIÓN (5 OPCIONES) ============== */
/* ================================================================= */

/* ----------------------------------------------------------------- */
/* LAYOUT 1: DEFAULT (Diseño actual - horizontal clásico) */
/* Ya está definido en los estilos base de .fx_f_headerTopMain */
/* ----------------------------------------------------------------- */

/* Auto-hide para layout default */
.fx_f_headerTopMain.fx_f_layout-default.hidden {
    top: -100px !important;
    opacity: 0;
    transition: top 0.3s ease, opacity 0.3s ease;
}

.fx_f_headerTopMain.fx_f_layout-default {
    transition: top 0.3s ease, opacity 0.3s ease;
}

/* ----------------------------------------------------------------- */
/* LAYOUT 2: CENTERED (Logo arriba centrado, menú abajo centrado) */
/* ----------------------------------------------------------------- */
.fx_f_layout-centered {
    height: auto;
    min-height: 70px;
}

.fx_f_layout-centered .fx_f_menuTopMain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

/* Logo arriba centrado - ocupa toda la fila */
.fx_f_layout-centered .fx_f_menuMain-A {
    order: 1;
    flex-basis: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.fx_f_layout-centered .fx_f_menuMain-A img {
    width: 180px;
}

/* Fila inferior centrada: menú + login + idioma (en la misma línea) */
.fx_f_layout-centered .fx_f_menuMain-B {
    order: 2;
    width: auto;
    justify-content: center;
}

.fx_f_layout-centered .fx_f_menuMain-C {
    order: 2;
    width: auto;
    display: flex;
    gap: 10px;
}

.fx_f_layout-centered .fx_f_menuMain-D {
    order: 2;
    width: auto;
}

.fx_f_layout-centered .fx_f_pageMainMenu-ul {
    justify-content: center;
    gap: 10px;
}

/* Ajustar el contenido principal */
body:has(.fx_f_layout-centered) .fx_f_bodyMainShotGlb {
    margin-top: 100px; /* Más espacio por el menú de 2 filas */
}

/* Auto-hide para layout centered */
.fx_f_headerTopMain.fx_f_layout-centered {
    transition: top 0.3s ease, opacity 0.3s ease;
}

.fx_f_headerTopMain.fx_f_layout-centered.hidden {
    top: -120px !important;
    opacity: 0;
}

/* ----------------------------------------------------------------- */
/* LAYOUT 3: MINIMAL (Diseño minimalista sin bordes) */
/* ----------------------------------------------------------------- */
.fx_f_layout-minimal {
    border-bottom: none;
    background-color: color-mix(in srgb, var(--third-color), transparent 10%);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.fx_f_layout-minimal .fx_f_menuTopMain {
    padding: 10px 20px;
}

.fx_f_layout-minimal .fx_f_pageMainMenu-li {
    margin-right: 40px;
    font-weight: 500;
}

.fx_f_layout-minimal .fx_f_pageMainMenu-li a {
    padding: 15px 10px;
    position: relative;
}

.fx_f_layout-minimal .fx_f_pageMainMenu-li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.fx_f_layout-minimal .fx_f_pageMainMenu-li:hover a::after {
    width: 80%;
}

.fx_f_layout-minimal .fx_f_submenu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Quitar margin-top y padding-top del tema cuando se usa minimal */
body:has(.fx_f_layout-minimal) {
    padding-top: 0 !important;
}

body:has(.fx_f_layout-minimal) .fx_f_bodyMainShotGlb {
    margin-top: 0;
}

/* Auto-hide para layout minimal */
.fx_f_headerTopMain.fx_f_layout-minimal {
    transition: top 0.3s ease, opacity 0.3s ease;
}

.fx_f_headerTopMain.fx_f_layout-minimal.hidden {
    top: -100px !important;
    opacity: 0;
}

/* ----------------------------------------------------------------- */
/* LAYOUT 4: SIDEBAR (Menú lateral vertical colapsable) */
/* ----------------------------------------------------------------- */

/* Botón de toggle del sidebar (fuera del menú, parte superior) */
.fx_f_sidebarToggle {
    position: fixed;
    top: 10px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fx_f_sidebarToggle:hover {
    background-color: var(--primary-color);
    filter: brightness(1.2);
    transform: scale(1.05);
}

.fx_f_sidebarToggle span {
    font-size: 24px;
}

/* Posición del botón: al lado del sidebar cerrado */
.fx_f_sidebarToggle-left {
    left: 10px;
    transition: left 0.3s ease;
}

.fx_f_sidebarToggle-right {
    right: 10px;
    transition: right 0.3s ease;
}

/* Sidebar base */
.fx_f_layout-sidebar {
    position: fixed;
    top: 0;
    width: 280px; /* Ancho fijo del sidebar, no 100% */
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    border-bottom: none;
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

/* Quitar el width: 100% cuando es sidebar */
.fx_f_headerTopMain.fx_f_layout-sidebar {
    width: 280px; /* Solo el ancho necesario */
    justify-content: flex-start; /* Quitar el center heredado */
}

/* Posición izquierda (por defecto) */
.fx_f_layout-sidebar[data-position="left"] {
    left: 0;
    border-right: 1px solid var(--primary-color);
}

/* Posición derecha */
.fx_f_layout-sidebar[data-position="right"] {
    right: 0;
    left: auto; /* Importante: desactivar left */
    border-left: 1px solid var(--primary-color);
}

/* Estado colapsado (cerrado por defecto) */
.fx_f_layout-sidebar.collapsed {
    transform: translateX(-100%);
}

.fx_f_layout-sidebar[data-position="right"].collapsed {
    transform: translateX(100%);
}

/* Cuando está abierto, mover el botón al lado derecho del sidebar */
body:has(.fx_f_layout-sidebar[data-position="left"]:not(.collapsed)) .fx_f_sidebarToggle-left {
    left: 290px;
    z-index: 10000;
}

body:has(.fx_f_layout-sidebar[data-position="right"]:not(.collapsed)) .fx_f_sidebarToggle-right {
    right: 290px;
}

/* Contenido interno del sidebar */
.fx_f_layout-sidebar .fx_f_menuTopMain {
    flex-direction: column;
    max-width: none;
    width: 100%; /* Ocupa el 100% del sidebar (280px) */
    height: 100%;
    padding: 20px 0;
    gap: 0;
}

.fx_f_layout-sidebar .fx_f_menuMain-A {
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.fx_f_layout-sidebar .fx_f_menuMain-A img {
    width: 200px;
}

.fx_f_layout-sidebar .fx_f_menuMain-B {
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.fx_f_layout-sidebar .fx_f_pageMainMenu-ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
}

.fx_f_layout-sidebar .fx_f_pageMainMenu-li {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
}

.fx_f_layout-sidebar .fx_f_pageMainMenu-li a {
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fx_f_layout-sidebar .fx_f_pageMainMenu-li:hover a {
    padding-left: 25px;
}

.fx_f_layout-sidebar .fx_f_submenu {
    position: static !important;
    margin-left: 20px;
    margin-top: 5px;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.fx_f_layout-sidebar .fx_f_submenu-li {
    border-bottom: none;
}

.fx_f_layout-sidebar .fx_f_menuMain-C {
    width: 100%;
    padding: 10px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.fx_f_layout-sidebar .fx_f_menuMain-D {
    display: none;
}

/* Ajustar el contenido cuando el sidebar está visible */
body:has(.fx_f_layout-sidebar[data-position="left"]:not(.collapsed)) .fx_f_bodyMainShotGlb {
    margin-left: 280px;
    margin-top: 0;
    transition: margin-left 0.3s ease;
}

body:has(.fx_f_layout-sidebar[data-position="right"]:not(.collapsed)) .fx_f_bodyMainShotGlb {
    margin-right: 280px;
    margin-top: 0;
    transition: margin-right 0.3s ease;
}

/* Cuando está colapsado, sin margen adicional */
body:has(.fx_f_layout-sidebar.collapsed) .fx_f_bodyMainShotGlb {
    margin-left: 0;
    margin-right: 0;
}

/* Quitar margin-top y padding-top del tema cuando se usa sidebar */
body:has(.fx_f_layout-sidebar) {
    padding-top: 0 !important;
}

body:has(.fx_f_layout-sidebar) .fx_f_bodyMainShotGlb {
    margin-top: 0;
}

/* Auto-hide para layout sidebar (opcional, lo oculta completamente) */
.fx_f_headerTopMain.fx_f_layout-sidebar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fx_f_headerTopMain.fx_f_layout-sidebar[data-position="left"].hidden:not(.collapsed) {
    transform: translateX(-100%) !important;
    opacity: 0;
}

.fx_f_headerTopMain.fx_f_layout-sidebar[data-position="right"].hidden:not(.collapsed) {
    transform: translateX(100%) !important;
    opacity: 0;
}

/* ----------------------------------------------------------------- */
/* LAYOUT 5: FLOATING (Menú flotante con glassmorphism) */
/* ----------------------------------------------------------------- */
.fx_f_headerTopMain.fx_f_layout-floating {
    position: fixed;
    top: 40px !important;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    justify-content: center;
    transition: top 0.3s ease, opacity 0.3s ease;
}

/* Clase para ocultar el menú flotante al hacer scroll hacia abajo */
.fx_f_headerTopMain.fx_f_layout-floating.hidden {
    top: -100px !important;
    opacity: 0;
}

.fx_f_layout-floating .fx_f_menuTopMain {
    padding: 0 30px;
    max-width: 1140px;
    width: calc(100% - 60px);
    height: 60px;
    margin: 0 auto;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: color-mix(in srgb, var(--third-color), transparent 20%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

.fx_f_layout-floating .fx_f_menuMain-A img {
    width: 200px;
}

.fx_f_layout-floating .fx_f_pageMainMenu-li a {
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.fx_f_layout-floating .fx_f_pageMainMenu-li:hover a {
    transform: translateY(-2px);
}

.fx_f_layout-floating .fx_f_submenu {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: color-mix(in srgb, var(--third-color), transparent 5%);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Ajustar el contenido cuando el menú flotante está activo */
body:has(.fx_f_layout-floating) {
    padding-top: 0 !important;
}

body:has(.fx_f_layout-floating) .fx_f_bodyMainShotGlb {
    margin-top: 120px; /* 40px (top) + 60px (altura menú) + 20px (aire) */
}

body:has(.fx_f_layout-floating) .fx_f_loaderSPAFeedback {
    top: 120px;
    height: calc(100vh - 120px);
}

/* ----------------------------------------------------------------- */
/* RESPONSIVE PARA TODOS LOS LAYOUTS */
/* ----------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    
    /* Centered Layout - En móvil: logo arriba, resto en línea horizontal */
    .fx_f_layout-centered {
        height: auto;
        min-height: 90px;
    }
    
    .fx_f_layout-centered .fx_f_menuTopMain {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-around;
        padding: 10px;
        gap: 5px;
        row-gap: 10px;
    }
    
    /* Logo arriba - ocupa toda la fila */
    .fx_f_layout-centered .fx_f_menuMain-A {
        order: 1;
        flex-basis: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .fx_f_layout-centered .fx_f_menuMain-A img {
        width: 150px;
    }
    
    /* Segunda fila: todos en la misma línea horizontal */
    .fx_f_layout-centered .fx_f_menuMain-B {
        display: none;
    }
    
    /* Hamburguesa, Login e Idioma en línea horizontal */
    .fx_f_layout-centered .fx_f_menuMain-D,
    .fx_f_layout-centered .fx_f_menuMain-C {
        order: 2;
        flex: 0 0 auto;
        width: auto;
        display: inline-flex;
        align-items: center;
    }
    
    /* Menú desplegable móvil más abajo */
    .fx_f_layout-centered .fx_f_menuOcultoMain {
        top: 90px !important;
    }
    
    body:has(.fx_f_layout-centered) .fx_f_bodyMainShotGlb {
        margin-top: 100px;
    }
    
    /* Minimal Layout - En móvil comportamiento normal */
    .fx_f_layout-minimal {
        background: var(--third-color);
        border-bottom: 1px solid var(--primary-color);
    }
    
    /* Ajustar posición del menú hamburguesa en minimal móvil */
    .fx_f_layout-minimal .fx_f_menuOcultoMain {
        top: 60px !important;
        left: 0 !important;
    }
    
    /* Sidebar Layout - Mantiene el mismo comportamiento en móvil/tablet */
    /* El botón toggle y el sidebar funcionan igual que en escritorio */
    
    /* Ocultar el menú hamburguesa en sidebar */
    .fx_f_layout-sidebar .fx_f_menuMain-D {
        display: none !important;
    }
    
    /* Ocultar el menú oculto (hamburguesa) en sidebar */
    .fx_f_layout-sidebar .fx_f_menuOcultoMain {
        display: none !important;
    }
    
    /* Asegurar que el menú principal esté visible en sidebar móvil */
    .fx_f_layout-sidebar .fx_f_menuMain-B {
        display: flex !important;
        width: 100%;
        flex: 1;
        overflow-y: auto;
    }
    
    /* Login/Idioma en sidebar móvil */
    .fx_f_layout-sidebar .fx_f_menuMain-C {
        width: 100% !important;
        padding: 10px 20px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        justify-content: center !important;
    }
    
    .fx_f_layout-sidebar .fx_f_menuMain-A {
        width: 100% !important;
        padding: 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 15px !important;
    }
    
    .fx_f_layout-sidebar .fx_f_menuMain-A img {
        width: 200px; /* Logo más pequeño en móvil */
    }
    
    .fx_f_layout-sidebar .fx_f_pageMainMenu-li {
        font-size: 14px; /* Texto más pequeño en móvil */
    }
    
    .fx_f_layout-sidebar .fx_f_pageMainMenu-li a {
        padding: 12px 15px; /* Padding más pequeño */
    }
    
    /* El menú de navegación vertical */
    .fx_f_layout-sidebar .fx_f_pageMainMenu-ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 10px !important;
    }
    
    .fx_f_layout-sidebar .fx_f_pageMainMenu-li {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
    }
    
    /* Ajustar ancho del sidebar en móvil para que quepa mejor */
    .fx_f_layout-sidebar {
        width: 250px; /* Más angosto en móvil */
    }
    
    .fx_f_layout-sidebar .fx_f_menuTopMain {
        width: 250px;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    /* Ajustar posición del botón cuando está abierto en móvil */
    body:has(.fx_f_layout-sidebar[data-position="left"]:not(.collapsed)) .fx_f_sidebarToggle-left {
        left: 260px;
        z-index: 10000;
    }
    
    body:has(.fx_f_layout-sidebar[data-position="right"]:not(.collapsed)) .fx_f_sidebarToggle-right {
        right: 260px;
    }
    
    /* Ajustar contenido cuando sidebar está abierto en móvil */
    body:has(.fx_f_layout-sidebar[data-position="left"]:not(.collapsed)) .fx_f_bodyMainShotGlb {
        margin-left: 250px;
    }
    
    body:has(.fx_f_layout-sidebar[data-position="right"]:not(.collapsed)) .fx_f_bodyMainShotGlb {
        margin-right: 250px;
    }
    
    /* Submenús en móvil para sidebar */
    .fx_f_layout-sidebar .fx_f_submenu {
        position: static !important;
        margin-left: 20px;
        margin-top: 5px;
        padding-left: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
    
    .fx_f_layout-sidebar .fx_f_submenu-li {
        border: none !important;
        padding: 8px 15px !important;
    }
    
    /* Iconos de expansión en submenús móvil */
    .fx_f_layout-sidebar .fx_f_expand_icon {
        float: right;
        margin: 5px 0px;
        font-size: 20px;
        line-height: 1;
    }
    
    /* Asegurar que el botón toggle sea visible y funcional */
    .fx_f_sidebarToggle {
        display: flex !important;
    }
    
    /* Floating Layout - En móvil/tablet con aire a los lados */
    .fx_f_headerTopMain.fx_f_layout-floating {
        top: 20px !important;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .fx_f_headerTopMain.fx_f_layout-floating.hidden {
        top: -100px !important;
    }
    
    .fx_f_layout-floating .fx_f_menuTopMain {
        padding: 0 15px;
        max-width: 1140px;
        width: calc(100% - 40px);
        height: 60px;
        margin: 0 auto;
        border-radius: 30px;
    }
    
    .fx_f_layout-floating .fx_f_menuMain-A img {
        width: 150px;
    }
    
    body:has(.fx_f_layout-floating) .fx_f_bodyMainShotGlb {
        margin-top: 100px; /* 20px (top) + 60px (altura) + 20px (aire) */
    }
}