/* ============================================
   COLORES DE HEADER POR PÁGINA
   ============================================ */
body.page-id-6954 #wrapper .fusion-tb-header .fusion-fullwidth {background-color: #f4e1d2!important;}

/* ============================================
   ESTILOS ESPECÍFICOS PÁGINA 6954
   ============================================ */

 #h_menu {
     display: flex;
     flex-direction: column;
     max-width: 210px;
     width: 100%;
     max-height: 160px;
     height: 100%;
     padding-top: 30px;
     margin-left: 90px;
     position: absolute;
     top: -350px;
 }

 #h_menu .i_menu {
     font-family: 'Poppins';
     margin-bottom: 10px;
     font-size: 14px;
 }

 #h_menu .i_menu.active {
     font-weight: bold;
 }

 #h_menu_select {
     display: none;
     position: absolute;
     top: -123px;
     left: 15px;
     max-width: 440px;
     padding: 10px 15px;
     font-family: 'Poppins', sans-serif;
     font-size: 16px;
     color: #413b47;
     border: 1px solid #413b47;
     border-radius: 25px;
     background: #e9e5e2;
     cursor: pointer;
     z-index: 100;
     font-weight: 600;
 }

 .references {
     font-family: Poppins;
     font-size: 14px;
     color: #6f6767;
 }

 .references a {
     text-decoration: underline;
     color: #6f6767;
 }

 .references p {
     margin-bottom: 10px !important;
 }

body.page-id-6954 #h_menu_select {background-color: #f4e1d2;}
body.page-id-6954 .references {padding-bottom: 130px;}

@media (max-width: 650px) {
    body.page-id-6954 .references {padding-bottom: 65px!important;}
}

@media (max-height: 919px) {
    body.page-id-6954 #h_menu { display: none !important; }
    body.page-id-6954 #h_menu_select { display: block !important; }
}

@media (min-height: 920px) {
    body.page-id-6954 #h_menu { display: flex !important; }
    body.page-id-6954 #h_menu_select { display: none !important; }
}


/* ============================================
   RESEARCH SELECT
   ============================================ */
#research_select {
    border: thin solid #413b47;
    border-radius: 25px;
    background-color: #e9c3a4;
    font-family: 'Poppins', sans-serif;
    padding: 7px 17px;
    text-transform: uppercase;
    font-size: 14px;
    color: #413b47;
    height: 38px;
    max-width: 250px;
    margin: 0 auto;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
.parent-pageid-6876 #content .our_h2 {
    font-size: calc(0.82em + 0.6vw + 0.4vh);
}

@media (min-width: 649px) {
    .parent-pageid-6876 #content .our_text > .fusion-column-wrapper {
        height: 60vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 15px;
        position: relative;
        max-width: 100%;
        scroll-behavior: smooth;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO - PARENT 6876
   ============================================ */
.parent-pageid-6876 #content .our_text > .fusion-column-wrapper::-webkit-scrollbar { width: 8px; }
.parent-pageid-6876 #content .our_text > .fusion-column-wrapper::-webkit-scrollbar-track {
    background: #e9e5e2 !important;
    border-radius: 4px;
}
.parent-pageid-6876 #content .our_text > .fusion-column-wrapper::-webkit-scrollbar-thumb {
    background: #6f6767 !important;
    border-radius: 4px;
}
.parent-pageid-6876 #content .our_text > .fusion-column-wrapper::-webkit-scrollbar-thumb:hover {
    background: #413b47 !important;
}

/* Firefox */
.parent-pageid-6876 #content .our_text > .fusion-column-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #6f6767 #e9e5e2;
}

/* Ocultar scrollbar del contenedor principal */
@media (min-width: 649px) {
    .parent-pageid-6876 #content .fusion-builder-row-2::-webkit-scrollbar { display: none; }
    .parent-pageid-6876 #content .fusion-builder-row-2 { scrollbar-width: none; height: 100vh!important;}
}

/* ============================================
   MENÚ OUR_MENU
   ============================================ */
.our_menu { width: 210px; padding-left: 90px; margin-top: -260px; flex-direction: column;}
.our_menu .i_menu {margin-bottom: 10px; font-family: Poppins; font-size: 14px; display: block;}
.our_menu .i_menu.active {font-weight: bold;}

.our_menu_select {
    display: none;
    position: absolute;
    top: -123px;
    left: 45%;
    max-width: 232px;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #413b47;
    border: 1px solid #413b47;
    border-radius: 25px;
    background: rgb(255 255 255 / 0);
    cursor: pointer;
    z-index: 100;
    font-weight: 600;
}

@media (max-height: 769px) {
    #h_menu.our_menu { display: none !important; }
    #h_menu_select.our_menu_select { display: block !important; }
}

@media (max-width: 650px) {
    #h_menu.our_menu { display: none !important; }
    #h_menu_select.our_menu_select {
        display: block !important;
        position: relative!important;
        top: -40px;
        left: 0;
        max-width: 80%!important;
        margin: 0 auto;
    }
}

@media (min-height: 770px) and (min-width: 651px) {
    #h_menu.our_menu { display: flex !important; }
    #h_menu_select.our_menu_select { display: none !important; }
}

/* ============================================
   ESTILOS BASE FULLPAGE - PÁGINA 6954
   ============================================ */

/* Bloquear scroll en desktop */
body.page-id-6954 {
    overflow: hidden !important;
    height: 100% !important;
}


/* Contenedor principal */
body.page-id-6954 .fusion-builder-row-2 {
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Cada sección ocupa toda la pantalla y se posiciona absolutamente */
body.page-id-6954 .highlight {
  /*  min-height: 100vh !important;*/
  /*    height: 100vh !important;*/
    padding-top: 111px;
    width: 100% !important;
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    position: absolute !important;
    top: 0 !important;
    left: 27px !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

@media (max-height: 730px) {
  body.page-id-6954 .highlight .fusion-imageframe img {
    width: 60%;
    margin: 0 auto;
    display: block;
  }

}

/* Solo la sección con .is-active es visible */
body.page-id-6954 .highlight.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

/* Texto con scroll real */
body.page-id-6954 .inner_text {
    height: 60vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 15px !important;
    position: relative;
    max-width: 100%;
    scroll-behavior: smooth;
}

/* Forzar scroll con padding extra al último párrafo */
body.page-id-6954 .inner_text p:last-child {
    padding-bottom: 120px !important;
}

/* ============================================
   SCROLLBAR PERSONALIZADO - PÁGINA 6954
   ============================================ */

/* WebKit (Chrome, Safari, Edge) */
body.page-id-6954 .inner_text::-webkit-scrollbar {
    width: 8px;
}

body.page-id-6954 .inner_text::-webkit-scrollbar-track {
    background: #e9e5e2 !important;
    border-radius: 4px;
}

body.page-id-6954 .inner_text::-webkit-scrollbar-thumb {
    background: #6f6767 !important;
    border-radius: 4px;
}

body.page-id-6954 .inner_text::-webkit-scrollbar-thumb:hover {
    background: #413b47 !important;
}

/* Firefox */
body.page-id-6954 .inner_text {
    scrollbar-width: thin;
    scrollbar-color: #6f6767 #e9e5e2;
}

/* Ocultar scrollbar SOLO del contenedor principal */
body.page-id-6954 .fusion-builder-row-2::-webkit-scrollbar {
    display: none;
}

body.page-id-6954 .fusion-builder-row-2 {
    scrollbar-width: none;
}

/* ============================================
   📱 MODO MÓVIL - PÁGINA 6954
   ============================================ */
@media (max-width: 649px) {
    /* Desbloquear scroll natural */
    body.page-id-6954,
    body.page-id-6954 html {
        overflow: auto !important;
        height: auto !important;
        scroll-behavior: auto;
    }

    body.page-id-6954 #main {
        padding-top: 90px;
    }

    body.page-id-6954 .column_text {
        padding-bottom: 50px;
    }

    /* Contenedor principal vuelve a su flujo normal */
    body.page-id-6954 .fusion-builder-row-2 {
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        padding: 0 15px;
    }

    /* Secciones apiladas, ocultas por defecto */
    body.page-id-6954 .highlight {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: none !important;
        opacity: 0 !important;
        visibility: visible !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 20px 0 !important;
        transition: opacity 0.5s ease !important;
    }

    /* Solo la activa se muestra */
    body.page-id-6954 .highlight.is-active {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        opacity: 1 !important;
    }

    /* Texto sin scroll, altura automática */
    body.page-id-6954 .inner_text {
        height: auto !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        padding-right: 0 !important;
        max-height: none !important;
    }

    body.page-id-6954 .inner_text p:last-child {
        padding-bottom: 30px !important;
    }

    /* Imágenes responsivas */
    body.page-id-6954 .highlight .highlight_img img {
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Select fijo y visible en móvil */
    body.page-id-6954 #h_menu {
        display: none !important;
    }

    body.page-id-6954 #h_menu_select {
        display: block !important;
        position: absolute !important;
        top: -85px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        width: 90% !important;
        max-width: 320px;
        background: #f4e1d2 !important;
        color: #413b47 !important;
        border: 1px solid #413b47 !important;
    }
}

/* ============================================
   TRANSICIÓN DE PÁGINA COMPLETA + LOADER
   ============================================ */
body {
    transition: opacity .5s ease;
}

body.is-fading {
    opacity: 0 !important;
}

body.is-loading {
    opacity: 0;
}

#page-fade-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
}

#page-fade-overlay.is-visible {
    opacity: 1;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 10px;
    width: 0;
    background: #6f6767;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

body.is-fading #page-loader,
body.is-loading #page-loader {
    opacity: 1;
    animation: pageLoaderFill 1.4s ease forwards;
}

body.is-loaded #page-loader {
    width: 100%;
    opacity: 0;
    transition: width .15s ease, opacity .4s ease .1s;
}

@keyframes pageLoaderFill {
    0%   { width: 0%;  }
    30%  { width: 45%; }
    60%  { width: 72%; }
    85%  { width: 88%; }
    100% { width: 100%;}
}
