/* RESET */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Montserrat', Arial, sans-serif; }

/* HEADER sticky */
    #menu-container {
        z-index: 153;
        float: right;
        position: fixed;
        top: 60px;
        left: 0px;
        right: 0px;
        right: 0px;
        /* position: absolute; */
        width: 100%;
        height: 85px;
        margin: -6px 0px 0px 0px;
        background: rgba(255,255,255,1);
        background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
        background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(210,210,210,1)));
        background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
        background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
        background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=0 );
        }

    .header {
        display: flex;
        align-items: center;
        max-width: 1100px;
        padding: 0px;
        border-bottom: 1px solid #e0e0e0;
        transition: top 0.3s ease;
        }
    .logo {
        display: inline-block;
        float: left;
        width: auto;
        max-height: 70px;
        margin: 0px 0px 0px 20px;
        }

/* NAV */
    .nav {
        display: inline-block;
        position: relative;
        float: none;
        left: 190px;
        width: auto;
        height: auto;
        margin: 0px 0px 0px 0px;
        }
    .menu {
        list-style:none;
        display:flex;
        gap:0px;
        width: auto;
        height: auto;
        margin: 0px;
    }
    .menu a {
        text-decoration:none;
        font-family: 'regular';
        font-size: 1em;
        line-height: 1.2em;
        color: #000;
        margin: 34px 12px 0px 12px;
        display:block;
        float: none;
        transition: color 0.2s ease;
    }
    .menu a:hover { color:#3856b5; }

/* SUBMENUS DESKTOP */
    .has-submenu {
        position:relative;
        }

    .submenu {
        background-color: #FFF;
        display:block;
        position:absolute;
        padding: 0px;
        top:100%;
        left: 0;
        /*margin-left: -50%; /* mitad del ancho del submenú */
        width: auto;
        min-width: auto;
        /*box-shadow:0 8px 20px rgba(0,0,0,.15);*/
        opacity:0;
        transform:translateY(30px);
        pointer-events:none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        /*border-radius:4px;*/
        width: auto;
        height: auto;
    }
    .submenu li {
        display:block;
        width: auto;
        height: auto;
        margin: 20px 0px 20px 0px;
        border: none;
    }
    .submenu li a {
        text-decoration: none;
        font-family: 'regular';
        font-size: 1em;
        line-height: 1.2em;
        color: #000;
        margin: 0px 10px;
        border: none;
        }

    .has-submenu:hover>.submenu {
        opacity:1;
        transform:translateY(0);
        pointer-events:auto;
    }

/* MENU TOGGLE MOBILE */
    #menu-toggle {
        display: none;
        float: right;
        width: auto;
        margin: 35px 20px 0px 0px;
        margin-left:auto;
        cursor:pointer;
        transition: transform 0.3s ease;
    }

/* MOBILE */

/*--- PANTALLA 640  (probar hasta 481)...*/
        @media only screen and (max-width: 640px) {

        /* HEADER sticky */
            #menu-container {
                z-index: 153;
                float: right;
                position: fixed;
                top: 70px;
                left: 0px;
                right: 0px;
                right: 0px;
                width: 100%;
                height: 90px;
                margin: 0px 0px 0px 0px;
                background: rgba(255,255,255,1);
                background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
                background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(210,210,210,1)));
                background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
                background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
                background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
                background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(210,210,210,1) 100%);
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=0 );
                }

            .header {
                max-width: auto;
                padding: 0px;
                border-bottom: none;
                transition: top 0.3s ease;
                }
            .logo {
                display: inline-block;
                float: none;
                width: auto;
                max-height: 60px;
                margin: 18px 0px 0px 20px;
                }

            #menu-toggle{
                display:inline-block;
                float: none;
                width: auto;
                margin: 18px 20px 0px 0px;
                margin-left:auto;
                cursor:pointer;
                transition: transform 0.3s ease;
                }
        
            .nav {
                position: fixed;
                top:0;
                right: 20px;
                left:-100%;
                width:85%;
                height:100vh;
                background:#fff;
                transition:left 0.35s ease;
                padding-top:90px;
                z-index:9998;
                overflow-y:auto;
                -webkit-overflow-scrolling: touch;
                box-shadow:4px 0 20px rgba(0,0,0,.2);
                }
            .nav.open { left:0; }
            .menu { flex-direction:column; gap:0; }
            .menu li {
                /*border-bottom:1px solid #CCC;*/
                display: inline-block;
                margin: 0px 0px 0px 0px;
                }
            .menu a { padding:0px 0px; font-size:1em; }

        /* Submenus mobile */
            
            .submenu {
                z-index: 9999;
                position: relative;
                top:0;
                padding-top: 0;
                margin-top: 0px;
                background:#EEE;
                box-shadow:none;
                max-height:100%;
                overflow:hidden;
                transition:max-height 0.35s ease, padding 0.35s ease;
                }
            .submenu li {
                width: 100%;
                height: 100%;
                display: inline-block;
                margin: 10px 0px;
                padding-bottom: 10px;
                }

            .submenu.is-active { display: block; }

            .has-submenu.open>.submenu{
                max-height:1000px;
                display: block;
                padding: 0px;
                }

            
            
        
        /* Flechas */
            .has-submenu > a::after{
                content:'▸';
                float:right;
                transition: transform 0.3s ease;
                }
            .has-submenu.open > a::after{
                transform: rotate(90deg);
                }
            }*

    /* OVERLAY */
        #menu-overlay {
            position: fixed;
            top:0; left:0;
            width:100%; height:100%;
            background: rgba(0,0,0,0.4);
            opacity:0;
            visibility:hidden;
            transition: opacity 0.35s ease, visibility 0.35s ease;
            z-index:998;
        }
        #menu-overlay.active { opacity:1; visibility:visible; }
