/* =====================================================
   Greenaura — Custom Mega Menu Styles
   Clase CSS necesaria en el item del menú: "mega"
   ===================================================== */

/* Tamaño y posición del panel */
#reactheme-header .menu-area .navbar ul > li.mega > ul.gn-mega-panel {
    width: 100%;
    max-width: calc(100vw - 40px);
    padding: 0;
    border-radius: 0 0 12px 12px;
    left: 0;
    overflow: visible !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* li wrapper no corta el contenido */
#reactheme-header .menu-area .navbar ul > li.mega > ul.gn-mega-panel > li.gn-mega-li {
    overflow: visible !important;
}

/* El li wrapper dentro del panel */
.gn-mega-panel > li.gn-mega-li {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block;
}

/* -------------------------------------------------------
   Layout interior: columnas de categoría
   ------------------------------------------------------- */
.gn-mega-inner {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 28px 24px;
    gap: 0;
}
.menu-area .navbar ul li:hover ul.gn-mega-group-links{
    position: unset;
}
/* -------------------------------------------------------
   Cada columna de categoría
   ------------------------------------------------------- */
.gn-mega-group {
    flex: 1;
    min-width: 0;
    padding: 0 24px 0 0;
    margin-right: 24px;
    border-right: 1px solid #eef0ee;
}

.gn-mega-group:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
}

/* Cabecera de categoría: icono + título */
.gn-mega-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary, #2d6a2d);
}

.gn-mega-group-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--color-primary, #2d6a2d);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.gn-mega-group-header a {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--color-primary, #2d6a2d) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}

.gn-mega-group-header a:before {
    display: none !important;
}

/* Lista de enlaces bajo la cabecera */
.gn-mega-group-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gn-mega-group-links li {
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
}

.gn-mega-group-links li a {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #555 !important;
    padding: 7px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}

.gn-mega-group-links li:last-child a {
    border-bottom: none !important;
}

.gn-mega-group-links li a::before {
    content: '▪';
    color: var(--color-primary, #2d6a2d);
    font-size: 10px;
    flex-shrink: 0;
    display: inline-block !important;
}

.gn-mega-group-links li a:hover {
    color: var(--color-primary, #2d6a2d) !important;
    padding-left: 5px !important;
}

/* -------------------------------------------------------
   Barra lateral derecha
   ------------------------------------------------------- */
.gn-mega-sidebar {
    width: 210px;
    min-width: 210px;
    flex-shrink: 0;
    background: #f5f7f4;
    padding: 24px 18px;
}

.gn-mega-sidebar h5 {
    font-size: 15px;
    font-weight: 700;
    color: #1c2539;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary, #2d6a2d);
}

.gn-mega-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gn-mega-sidebar ul li {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
}

.gn-mega-sidebar ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    border-bottom: 1px solid #e5e9e5 !important;
    transition: color 0.25s, padding-left 0.2s !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.gn-mega-sidebar ul li:last-child a {
    border-bottom: none !important;
}

.gn-mega-sidebar ul li a:hover {
    color: var(--color-primary, #2d6a2d) !important;
    padding-left: 4px !important;
}

.gn-mega-sidebar ul li a i {
    color: var(--color-primary, #2d6a2d);
    font-size: 13px;
    flex-shrink: 0;
}

.gn-mega-sidebar ul li a:before {
    display: none !important;
}

/* -------------------------------------------------------
   HEADER — Layout general y visibilidad
   ------------------------------------------------------- */

/* Fondo y apilamiento */
#reactheme-header {
    background: #fff;
    position: relative;
    z-index: 999;
    width: 100%;
}

/* Borde inferior sutil */
#reactheme-header .header-inner {
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Row principal: siempre flex horizontal */
#reactheme-header .menu-area .menu_one .row-table {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    min-height: 80px;
    gap: 24px;
}

#reactheme-header .menu-area .menu_one .col-cell {
    display: flex !important;
    align-items: center !important;
    flex: none;
}

/* -------------------------------------------------------
   LOGO — siempre visible a la izquierda
   ------------------------------------------------------- */
#reactheme-header .header-logo {
    flex-shrink: 0;
}

#reactheme-header .header-logo a {
    display: inline-flex !important;
    align-items: center;
}

#reactheme-header .header-logo img {
    max-height: 55px;
    width: auto;
    display: block !important;
}

/* Fallback logo de texto */
#reactheme-header .header-logo .site-title a {
    font-size: 22px;
    font-weight: 700;
    color: #1c2539 !important;
    text-decoration: none;
}

/* -------------------------------------------------------
   MENÚ — desktop centrado
   ------------------------------------------------------- */
#reactheme-header .menu-responsive {
    flex: 1;
    justify-content: center;
}

/* -------------------------------------------------------
   BOTÓN CTA HEADER
   ------------------------------------------------------- */
.gn-header-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.25s, transform 0.2s;
    margin-right: 16px;
}

.gn-header-cta-btn:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    color: #fff !important;
}

/* -------------------------------------------------------
   HAMBURGUESA — oculta en desktop
   ------------------------------------------------------- */
#reactheme-header .mobilehum {
    display: none;
}

/* -------------------------------------------------------
   MOBILE / TABLET ≤ 1024px
   ------------------------------------------------------- */
@media only screen and (max-width: 1024px) {

    /* Header visible con fondo blanco */
    #reactheme-header {
        background: #fff !important;
        display: block !important;
    }

    #reactheme-header .menu-area .menu_one .row-table {
        min-height: 64px;
        gap: 12px;
    }

    /* Logo visible */
    #reactheme-header .header-logo {
        display: flex !important;
    }

    #reactheme-header .header-logo img {
        max-height: 42px !important;
        display: block !important;
    }

    /* Ocultar nav de escritorio */
    #reactheme-header .menu-responsive .nav.navbar {
        display: none !important;
    }

    /* Ocultar botón CTA en móvil */
    .gn-header-cta-btn {
        display: none !important;
    }

    /* Mostrar hamburguesa */
    #reactheme-header .mobilehum {
        display: flex !important;
        align-items: center;
    }

    /* Color hamburguesa: verde del tema */
    #reactheme-header .mobilehum .menu-button rect {
        fill: #2d6a2d !important;
    }

    /* Quitar top offset del menu-area en móvil */
    #reactheme-header .menu-area {
        top: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 480px) {
    #reactheme-header .menu-area .menu_one .row-table {
        min-height: 56px;
    }

    #reactheme-header .header-logo img {
        max-height: 36px !important;
    }
}

/* -------------------------------------------------------
   STICKY: asegurar que el menú y el logo no se solapan
   ------------------------------------------------------- */
#reactheme-header .menu-sticky.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Corrige el top:-8px del menu-area en sticky para que no tape el logo */
#reactheme-header .menu-sticky.sticky .menu-area {
    top: 0 !important;
}

/* Logo siempre visible */
#reactheme-header .menu-sticky.sticky .header-logo .site-title a,
#reactheme-header .menu-sticky.sticky .header-logo a {
    color: #1c2539 !important;
}

/* Z-index del panel en sticky */
#reactheme-header .menu-sticky.sticky .menu-area .navbar ul > li.mega > ul.gn-mega-panel {
    z-index: 99999;
}

/* -------------------------------------------------------
   Móvil / tablet: ocultamos el panel mega y dejamos
   que el off-canvas del tema muestre los items
   ------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
    .gn-mega-panel {
        display: none !important;
    }
}

/* -------------------------------------------------------
   OFF-CANVAS — backdrop y panel
   ------------------------------------------------------- */
body.logged-in .menu-wrap-off{
    padding: 63px 20px 50px 20px
}
/* Backdrop oscuro detrás del panel */
body.off-open .body-close {
    z-index: 999 !important;
    opacity: 0.45 !important;
    cursor: pointer;
    right: auto !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
}

/* El panel off-canvas: siempre encima del backdrop */
.menu-wrap-off {
    z-index: 99999 !important;
}

/* -------------------------------------------------------
   BOTÓN X — esquina superior derecha, tamaño fijo
   ------------------------------------------------------- */
.menu-wrap-off .inner-offcan .nav-link-container.nav-inactive-menu-link-container {
    position: absolute !important;
    right: 20px !important;
    left: auto !important; 
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.06) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.menu-wrap-off .inner-offcan .nav-link-container.nav-inactive-menu-link-container a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #1c2539 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* -------------------------------------------------------
   DESCRIPCIONES — ocultar en móvil dentro del off-canvas
   ------------------------------------------------------- */
.menu-wrap-off span.description,
.sidenav span.description,
#mobile_menu span.description,
.mobile-menu-container span.description {
    display: none !important;
}

/* -------------------------------------------------------
   BOTÓN CTA MÓVIL — dentro del off-canvas, al fondo
   ------------------------------------------------------- */

/* Oculto en desktop */
.gn-mobile-cta {
    display: none;
}

/* Visible solo en móvil/tablet */
@media only screen and (max-width: 1024px) {
    .gn-mobile-cta {
        display: block;
        padding: 20px 20px 24px;
        margin-top: auto;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .gn-mobile-cta__btn {
        display: block;
        width: 100%;
        text-align: center;
        background: var(--color-primary);
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 14px 20px;
        border-radius: 6px;
        text-decoration: none !important;
        transition: background 0.25s;
        box-sizing: border-box;
    }

    .gn-mobile-cta__btn:hover {
        background: var(--color-primary);
        color: #fff !important;
    }
}

