/* assets/css/views/header_menu.css */

.elementor-element-ba6a7ce {
    z-index: 12;
    background-color: #fff;
    width: 100% !important;
    position: fixed;
    ;
    margin-bottom: 420px !important;
    box-shadow: 0 3px 13px 0px #0000003b !important;
}

.elementor-location-header {
    margin-bottom: 100px !important;
}

.rodanol-header-menu-container {
    width: 100%;
    position: relative;
    font-family: inherit;
    box-sizing: border-box;
}

.rodanol-header-menu-container * {
    box-sizing: border-box;
}

/* Checkbox oculto */
.rodanol-menu-checkbox {
    display: none;
}

/* Icono hamburguesa */
.rodanol-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.rodanol-menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Top Bar */
.rodanol-menu-bar {
    display: flex;
    background-color: #fff !important;
    align-items: center;
    padding: 0;
    position: initial;
    z-index: 1000;
    max-width: 1507px;
    margin: auto;
}

.elementor-element-d64e741 {
    padding: 0;
}

.rodanol-menu-logo img {
    width: 200px;
}

/* Main Nav */
.rodanol-main-nav {
    margin-left: 71px;
}

.rodanol-menu-search {
    margin-left: auto;
}

.rodanol-search-form {
    background-color: #d83832;
    overflow: hidden;
    border-radius: 50px;
    padding: 4px;
    align-content: center;
    display: flex;
}

.rodanol-search-field {
    margin: 0 !important;
    overflow: hidden;
    min-width: 260px;
    padding: 6px 10px !important;
    border-radius: 50px !important;
}

.rodanol-search-submit svg {
    width: 25px;
    height: 25px;
}

.rodanol-search-submit {
    background-color: initial;
    padding: 0;
    padding-left: 5px;
    padding-right: 15px;
}

.rodanol-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.rodanol-menu-item {
    padding: 40px 0;
}

/* Links principales */
.rodanol-menu-link {
    text-decoration: none;
    color: #5e5e5e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    cursor: pointer;
    font-family: "Open Sans", Sans-serif;
}

.rodanol-menu-link:hover {
    color: #e63946;
}

/* Dropdown Arrow Main */
.dropdown-arrow::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #333;
    vertical-align: middle;
}

.rodanol-menu-link:hover .dropdown-arrow::after {
    border-top-color: #e63946;
}

/* Main Nav Relative for Mega Menu Full Width Context */
.rodanol-header-menu-container {
    /* To allow mega menu to span full width of this container */
    position: relative;

}

/* -----------------------------------------------------------
   MEGA MENU STRUCTURE
   ----------------------------------------------------------- */
.rodanol-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    /* Full Width del contenedor padre (.rodanol-header-menu-container) */
    background-color: #fff;
    opacity: 1;
    visibility: hidden;
    transform: translateY(0px);
    transition: all 0.2s ease;
    z-index: 900;
    justify-content: center;
    display: flex;
    /* padding-bottom:190px; */
    box-shadow: 2px 3px 3px rgb(0 0 0 / 22%) !important;
    max-height: 640px !important;
}

.rodanol-mega-menu>div {
    width: 100%;
    position: relative;
    max-width: 989px;
    margin-bottom: 50px;
}

.rodanol-col-header a {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: "Open Sans", Sans-serif;
    color: #5e5e5e !important;
}

/* Columna 2 - Absoluta */
/* Como rodanol-mega-menu ahora es 100%, la columna 2 debe posicionarse correctamente.
   El padre (.rodanol-mega-menu) tiene position absolute, asi que es el containing block.
   Col 1 tiene 45%. Col 2 debe ser left: 45%.
*/



/* Mostrar Mega Menu en hover del padre (Desktop) */
@media (min-width: 992px) {
    .rodanol-menu-item:hover .rodanol-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Columna 1 */
.rodanol-mega-col-1 {
    width: 45%;
    background-color: #fff;
    padding: 20px;
    padding-top: 5px;
    padding-right: 0;
    /* position: static; por defecto, para que hijos absolutos busquen al padre .rodanol-mega-menu */
}

/* Headers dentro del menu */
.rodanol-col-header a,
.rodanol-col-header a span {
    font-size: 16px;
    font-weight: 700;

    color: #5e5e5e;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: "Open Sans", Sans-serif !important;
    justify-content: space-between;
    margin-bottom: 11px;
}

.rodanol-divider {
    display: none;
}

.rodanol-col-header a>span:first-of-type {
    font-size: 24px;
    font-weight: 450;
}

.rodanol-col-header a:hover {
    color: #e63946;
}

.rodanol-redirect-icon {
    color: #999;
    display: flex;
    align-items: center;
}

.rodanol-col-header a:hover .rodanol-redirect-icon {
    color: #e63946;
}

.rodanol-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0 15px 0;
}

/* Lista Columna 1 */
.rodanol-col-1-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rodanol-child-item {
    position: static;
    border-top: 0.1px solid !important;
    border-color: #e1e1e1 !important;
    /* IMPORTANTE: Para que el col-2 se posicione relativo al contenedor padre (rodanol-mega-menu que tiene position relative no, rodanol-mega-menu tiene absolute, asi que sus hijos ven el padding box. Espera. */
}

/* Re-think: .rodanol-mega-menu needs to be the reference for .rodanol-mega-col-2 */
/* .rodanol-mega-menu no tiene position: relative explicito, tiene absolute. Eso crea un containing block. */

.rodanol-child-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 480;
    border-radius: 4px;
    transition: background 0.2s;
}

.rodanol-child-item:hover>a {
    color: #d83832;
}

/* Flecha de hijos con hijos */
.rodanol-child-arrow {
    font-size: 18px;
    line-height: 1;
    color: #bbb;
}

/* Columna 2 - Inicialmente oculta, absoluta a la derecha */
.rodanol-mega-col-2 {
    display: none;
    position: absolute;
    top: 0;
    right: 0px;
    width: 55%;
    /* El resto del espacio (100% - 45%) */
    height: 100%;
    padding: 20px;
    padding-top: 7px;
    padding-left: 50px;
    background-color: #fff;
    overflow-y: auto;
}

/* Mostrar Columna 2 al hacer hover en el Item de Columna 1 */
.rodanol-child-item:hover .rodanol-mega-col-2 {
    display: block;
}

/* Lista Columna 2 */
.rodanol-col-2-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.rodanol-grandchild-item a {
    display: block;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 450;
}

.rodanol-grandchild-item {
    border-top: 0.1px solid !important;
    border-color: #e1e1e1 !important;
}

.rodanol-grandchild-item:last-of-type {
    border-top: none !important;
    border-bottom: 0.1px solid !important;
    border-color: #e1e1e1 !important;
}

.rodanol-grandchild-item:first-of-type {
    border-top: 0.1px solid !important;
    border-color: #e1e1e1 !important;
}

.rodanol-grandchild-item a:hover {
    color: #e63946;
}


/* -----------------------------------------------------------
   RESPONSIVE / MOBILE
   ----------------------------------------------------------- */
@media (max-width: 991px) {
    .rodanol-menu-icon {
        display: flex;
        order: 2;
    }

    .rodanol-menu-bar {
        justify-content: space-between;
        padding: 5px 15px;
    }

    .rodanol-menu-search {
        display: none;
    }

    /* Reset nav para mobile */
    .rodanol-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: #fff;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        display: block;
        z-index: 300;
        /* Ensure it is block to allow height transition */
    }

    .rodanol-menu-checkbox:checked~.rodanol-menu-bar .rodanol-main-nav {
        max-height: 80vh;
    }

    .rodanol-menu-list {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .rodanol-menu-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .rodanol-menu-link {
        padding: 15px 0;
        font-size: 15px;
    }

    /* Transformar el Mega Menu en Accordion simple */
    .rodanol-mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Oculto por defecto */
        flex-direction: column;
        padding: 0 0 0 15px;
        /* Identado */
        background: transparent;
    }

    /* Mostrar SOLO con clase .open (controlado por JS) */
    .rodanol-menu-item.open>.rodanol-mega-menu {
        display: block;
    }

    /* Disable default hover effect in mobile */
    .rodanol-menu-item:hover .rodanol-mega-menu {
        display: none;
    }

    .rodanol-menu-item.open:hover>.rodanol-mega-menu {
        display: block;
    }

    /* Resetear las columnas */
    .rodanol-mega-col-1,
    .rodanol-mega-col-2 {
        width: 100%;
        border: none;
        padding: 0;
        background: transparent;
    }

    .rodanol-mega-col-2 {
        position: static;
        display: none;
        /* Oculto por defecto */
        height: auto;
        padding-left: 15px;
        margin-top: 10px;
    }

    /* Mostrar nietos con clase .open en el hijo */
    .rodanol-child-item.open>.rodanol-mega-col-2 {
        display: block;
    }

    /* Disable child hover effect */
    .rodanol-child-item:hover .rodanol-mega-col-2 {
        display: none;
    }

    .rodanol-child-item.open:hover>.rodanol-mega-col-2 {
        display: block;
    }

    .rodanol-child-item {
        padding: 5px 0;
    }

    .rodanol-header-menu-container {
        /* Asegurar que no se rompa el layout */
    }

    .rodanol-col-header {
        display: none;
        /* Ocultar titulos de secciones en mobile */
    }

    .rodanol-divider {
        display: none;
    }
}