/*  -------- 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: white;
    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: white;
    overflow-y: hidden;
}

.fx_f_loaderSPAFeedback {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background-color: rgba(255, 255, 255);
    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;
}

.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);
}

.fx_f_menuText:hover {
    filter: brightness(1.5);
    scale: 1.2;
}


nav {
    width: 100%;
}

.fx_f_pageMainMenu-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.fx_f_pageMainMenu-li {
    position: relative;
    margin-right: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.fx_f_pageMainMenu-li:hover > a, 
.fx_f_submenu-li:hover > a {
    filter: brightness(1.5);
}


.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: white;
    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: block;
    transition: color 0.3s ease;
    cursor: pointer;
}


.fx_f_pageMainMenu-li:hover ul {
    display: block;
}

.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: 70px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    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;
    position: absolute;
    background-color: white;
    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: 99;
    min-width: 200px;
}

/* 🟢 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;
}

.fx_f_submenu-li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 🔹 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 {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .fx_f_pageMainMenu-li ul {
        background-color: #ffffff4a;
    }

    .fx_f_submenu-li:hover {
        background-color: transparent;
    }
    
}









/* ////////////////-- 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;
    }
  }