:root {
    --main-color: #27b67c;
    --gray-color: #6c6f70;
    --boton-hover: #5f6663;
    --gray-color-atenuado: #6c6f7085;
    --main-color-atenuado: #27b67d4b;
    --main-color-dark: #0d5c3c;
    --gap:20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, sans-serif;
    text-decoration: none;
    list-style-type: none;
}

header {
    width: 100%;
    /* position: fixed; */
    top: 0;
    left: 0;
}

/*HEADER SUPERIOR*/

.header__superior {
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
    background-color: var(--main-color);
}

.logo img{
    display: block;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
}

/*BARRA MENU*/

.container__menu {
    width: 100%;
    height: 70px;
}

.menu {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    background-color: var(--gray-color);
    display: flex;
}

nav {
    height: 100%;
}

nav>ul {
    height: 100%;
    display: flex;
}

nav ul li {
    height: 100%;
    list-style: none;
    position: relative;
}

nav>ul>li:first-child>a {
    background-image: url(../index_htm_files/imagenes/home.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 40px;
}

nav>ul>li:first-child:hover>a {
    background-image: url(../index_htm_files/imagenes/home.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav>ul>li>a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 300ms ease;
}

nav>ul>li>a:hover {
    transform: scale(1.1);
    background-color: var(--main-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/*SUBMENU*/

nav ul li ul {
    width: 200px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 90px;
    left: -5px;
    padding: 14px 0px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
}

nav ul li:hover ul {
    visibility: visible;
    opacity: 1;
    top: 70px;
}

nav ul li ul:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    position: absolute;
    top: -12px;
    left: 20px;
}

nav ul li ul li a {
    display: block;
    color: var(--main-color);
    padding: 6px;
    padding-left: 14px;
    margin-top: 10px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 300ms ease;
}

nav ul li ul li a:hover {
    background-color: var(--main-color);
    color: #fff;
    transform: scale(1.1);
    padding-left: 20px;
    font-size: 14px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

main{
    margin-top: 0;
}

/* FOOTER */
footer{
    max-width: 1200px;
    /* margin: 0 auto; */
    background-color: var(--gray-color);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer img{
    max-width: 250px;
    height: auto;
}

footer .contacto{
    text-align: right;
}
footer p{
    color: white;
    font-size: 20px;
    font-weight: bold;
}

footer p span{
    text-decoration: underline;
    color: white
}

/*ELEMENTOS RESPONSIVOS*/

.icon__menu {
    font-size: 26px;
    color: white;
    cursor: pointer;
    width: 26px;
    height: 100%;
    display: none;
    align-items: center;
}

#label__check {
    width: 26px;
    height: 100%;
    display: none;
}

#check__menu {
    display: none;
}


@media screen and (max-width: 730px) {
    .header__superior {
        padding: 10px;
    }

    .logo img {
        max-width: 500px;
    }
    label{
        margin-left: 20px;
    }
    nav>ul {
        flex-direction: column;
        background-color: var(--gray-color);
        position: relative;
        left: 0;
        top: 65px;
        min-width: 100%;
        height: 0px;
        transition: all 300ms ease;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
    }

    nav>ul>li>a:hover {
        transform: scale(1);
    }

    nav ul li ul {
        left: 150px;
    }

    nav ul li:hover ul {
        top: 52px;
    }

    nav>ul>li:first-child a {
        background-position: 20px;
    }

    #selected {
        transform: scale(1);
    }

    #label__check {
        display: block;
    }

    .icon__menu {
        display: flex;
    }

    #check__menu:checked~nav>ul {
        height: 350px;
        visibility: visible;
        opacity: 1;
    }
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .contacto {
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .contacto {
        margin-top: 10px;
        text-align: center;
    }

    .header__superior .logo img{
    width: 100%;
    }
    footer .logo_footer img{
        width: 90%;
    }

    footer .contacto p{
        font-size: 4vw;
    }
}