/*.megamenu{
	margin:0;
	padding:0;
	width: 100%;
	list-style: none;
	display: inline-block;
	position:relative;	
}*/

.megamenu {
    padding: 25px 100px 0 100px;
    width: 100%;
    max-width: 1100px;
    list-style: none;
    display: flex;
    justify-content: space-around;
    z-index: 999;
    position: relative;
}


/*.megamenu li{
	float: left;
	display:inline;
}*/

.megamenu li {
    flex-grow: 1;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
}

.megamenu>li>a {
    display: block;
    height: 75px;
    line-height: 65px;
    padding: 0 10px;
    color: #646464;
    background-color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 19px;
    font-weight: normal;
    margin: 0;
    text-align: center;
    transition: all 0.5s;
}

.megamenu>li:hover>a,
.megamenu>li.active>a {
    color: #00c400;
    border-bottom: solid 6px #00c400;
}


/* DROPDOWN CONFIGURATION
-----------------------------*/

.megamenu .dropdown,
.megamenu .dropdown li .dropdown {
    list-style: none;
    margin-top: 30px;
    padding: 0;
    display: none;
    position: absolute;
    z-index: 999;
    width: 250px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5);
}

.megamenu .dropdown {
    top: 59px;
}

.megamenu .dropdown li .dropdown {
    left: 260px;
    top: inherit;
    margin-top: -1px;
    border: solid 1px rgba(0, 0, 0, 0.2);
}

.megamenu .dropdown li {
    clear: both;
    width: 100%;
}

.megamenu .dropdown li:last-child {
    border-bottom: none;
}

.megamenu .dropdown li a {
    float: left;
    width: 100%;
    padding: 8px 17px;
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    display: block;
    border-bottom: solid 1px #e6e6e6;
    font-size: 17px;
    color: gray;
    background: none;
    letter-spacing: 0;
}

.megamenu .dropdown li:last-child a {
    border-bottom: none;
}

.megamenu .dropdown li:hover>a {
    color: white;
    background: #005b00;
}


/* MEGAPANEL CONFIGURATION
-----------------------------*/

.megamenu>li>.megapanel {
    position: absolute;
    display: none;
    background: #fff;
    width: 100%;
    top: 50px;
    left: 0;
    z-index: 99;
    padding: 20px 30px 20px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}

.megamenu .megapanel ul {
    margin: 0;
    padding: 0;
}

.megamenu .megapanel img {
    width: 100%;
    height: auto;
    display: block;
    border: solid 3px #d2d2d2;
    cursor: pointer;
    filter: grayscale(1);
    -webkit-filter: grayscale(1);
}

.megamenu .megapanel img:hover {
    border: solid 3px #49C9AF;
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
}

.megamenu .megapanel img.principal {
    border: solid 6px #d2d2d2;
}

.megamenu .megapanel h2 {
    color: #49C9AF;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 30px;
    font-weight: normal;
}

.megamenu .megapanel h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    margin: 6px 0;
}

.megamenu .megapanel p {
    font-size: 13px;
    margin: 6px 0;
    color: #666;
}

.megamenu .megapanel .verdetalles {
    width: 100%;
    height: 40px;
    line-height: 40px;
    display: block;
    background: #49C9AF;
    color: #FFFFFF;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.megamenu .megapanel .verdetalles:hover {
    background: #666;
}

.megamenu .megapanel #cajavideo {
    border: 4px solid #E2E2E2;
    height: 0;
    padding-top: 30px;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.megamenu .megapanel #cajavideo iframe,
.megamenu .megapanel #cajavideo object,
.megamenu .megapanel #cajavideo embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.megamenu .megapanel .cnoticias {
    border-bottom: 1px solid #E2E2E2;
    padding: 4px;
}

.megamenu .megapanel .cnoticias h4 {
    font-family: 'Open Sans', sans-serif;
    margin: 6px 0;
    color: #000;
    font-weight: normal;
    font-size: 20px;
}

.megamenu .megapanel .cnoticias a {
    color: #E6E6E6;
    font-size: 20px;
}

.megamenu .megapanel .otrasnoticias {
    border-bottom: 1px solid #E2E2E2;
    padding: 6px 0;
    color: #000000;
}


/* FORM CONFIGURATION
-----------------------------*/

.megamenu form.contact input,
.megamenu form.contact textarea {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #444;
    outline: none;
}

.megamenu form.contact input[type="text"] {
    width: 100%;
    margin-bottom: 6px;
    padding: 5px;
    border: solid 1px #dedede;
}

.megamenu form.contact textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 6px;
    padding: 5px;
    border: solid 1px #dedede;
}

.megamenu form.contact input[type="text"] {
    height: 40px;
}

.megamenu form.contact input[type="text"]:focus,
.megamenu form.contact textarea:focus {
    border: solid 1px #49C9AF;
}

.megamenu form.contact input[type="button"] {
    width: 160px;
    height: 40px;
    font-size: 13px;
    border: none;
    color: #fff;
    cursor: pointer;
    background: #49C9AF;
    font-family: 'Open Sans', sans-serif;
}

.megamenu form.contact input[type="button"]:hover {
    background: #666;
}


/* GRID SYSTEM
-----------------------------*/

.megapanel .row {
    width: 100%;
    margin-top: 15px;
}

.megamenu>li:nth-child(3) .megapanel .row [class*="col"] {
    background: #009ee2;
}

.megapanel .row:first-child {
    margin-top: 0;
}

.megapanel .row:before,
.megapanel .row:after {
    display: table;
    content: "";
    line-height: 0;
}

.megapanel .row:after {
    clear: both;
}

.megapanel .row .col1,
.megapanel .row .col2,
.megapanel .row .col3,
.megapanel .row .col4,
.megapanel .row .col5,
.megapanel .row .col6 {
    display: block;
    width: 100%;
    min-height: 20px;
    float: left;
    margin-left: 2.127659574468085%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.megapanel .row [class*="col"]:first-child {
    margin-left: 0;
}

.megapanel .row .col1 {
    width: 14.893617021276595%;
}

.megapanel .row .col2 {
    width: 31.914893617021278%;
}

.megapanel .row .col3 {
    width: 48.93617021276595%;
}

.megapanel .row .col4 {
    width: 65.95744680851064%;
}

.megapanel .row .col5 {
    width: 82.97872340425532%;
}

.megapanel .row .col6 {
    width: 100%;
}


/* COLLAPSIBLE MENU
-------------------------*/

.megamenu>li.showhide {
    display: none;
    width: 100%;
    height: 25px;
    cursor: pointer;
    color: white;
    background: #00c400;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 30px;
}

.megamenu>li.showhide span.title {
    margin: 10px 0 0 25px;
    float: left;
}

.megamenu>li.showhide span.icon1:after {
    position: absolute;
    content: "";
    right: 70px;
    top: 51px;
    height: 3px;
    width: 25px;
    font-size: 50px;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    z-index: 1;
}

.megamenu>li.showhide span.icon2:after {
    position: absolute;
    content: "";
    right: 70px;
    top: 63px;
    height: 3px;
    width: 25px;
    font-size: 50px;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    z-index: 1;
}


/* RESPONSIVE LAYOUT
-----------------------------*/

@media (max-width: 1280px) {
    .megamenu {
        padding: 25px 50px 0 50px;
    }
}

@media (max-width: 1024px) {
    .megamenu {
        position: absolute;
        flex-direction: column;
        width: 50%;
        top: 15px;
        left: 25%;
    }
    .megamenu>li {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .megamenu>li:hover,
    .megamenu>li.active {
        border-top: none;
    }
    .megamenu>li>a {
        height: 45px;
        line-height: 45px;
        text-align: left;
        border-right: none;
        color: gray;
        border-bottom: solid 1px #7c7c7c;
        padding: 0 24px;
    }
    .megamenu>li:hover>a,
    .megamenu>li.active>a {
        border-bottom: 1px solid #005b00;
        background: #005b00;
        color: white;
    }
    .megamenu>li.showhide {
        margin-top: 10px;
        height: 50px;
    }
    .megamenu a {
        width: 100%;
        box-sizing: border-box;
    }
    .megamenu .dropdown,
    .megamenu .dropdown li .dropdown {
        width: 100%;
        display: none;
        left: 0;
        border-left: none;
        position: static;
        border: none;
        box-sizing: border-box;
        margin-top: 0;
    }
    .dropdown {
        position: absolute;
    }
    .megamenu .dropdown li {
        background: #fff !important;
        border: none;
    }
    .megamenu .dropdown>li>a {
        padding-left: 40px !important;
        color: gray;
        background-color: white;
    }
    .megamenu .dropdown li:last-child a {
        border-bottom: solid 1px gray;
    }
    .megamenu>li>.megapanel {
        position: static;
        margin-top: 50px;
    }
    .megapanel .row [class*="col"] {
        float: none;
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        box-sizing: border-box;
    }
    .megapanel .row:first-child [class*="col"]:first-child {
        margin-top: 0;
    }
    .megapanel .row {
        margin-top: 0;
    }
    .black {
        background: #222222;
    }
    .megamenu>li>ul.dropdown>li>a {
        padding-left: 40px !important;
    }
    .megamenu>li>ul.dropdown>li>ul.dropdown>li>a {
        padding-left: 60px !important;
    }
    .megamenu>li>ul.dropdown>li>ul.dropdown>li>ul.dropdown>li>a {
        padding-left: 80px !important;
    }
}

@media only screen and (max-width: 800px) {
    /* ---- ----- ----- Home ----- ----- ----- */
    .megamenu {
        position: relative;
        flex-direction: column;
        width: 100%;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
    }
    .megamenu>li.showhide span.icon1:after {
        right: 30px;
        top: 25px;
    }
    .megamenu>li.showhide span.icon2:after {
        right: 30px;
        top: 37px;
    }
}

@media only screen and (max-width: 600px) {
    /* ---- ----- ----- Home ----- ----- ----- */
}

@media only screen and (max-width: 533px) {
    /* ---- ----- ----- Home ----- ----- ----- */
}

@media only screen and (max-width: 480px) {
    /* ---- ----- ----- Home ----- ----- ----- */
}

@media only screen and (max-width: 360px) {
    /* ---- ----- ----- Home ----- ----- ----- */
}