/* Variables globales */
:root {
    --verde-oscuro: #0f7b60;

    --state-cerrar: scale(0);
    --state-abrir: scale(1);
    --state-menu: translate(100%);
    --box-shadow: 0 0 0 100vmax rgba(0,0,0,0);
    --clipy: polygon(0 0, 0 0, 0 100%, 0 100%);
}

/* estilos globales */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Montserrat", sans-serif;
}
html,body{
    height: 100%;
}
body {
    position: relative;
    display: flex;
    flex-direction: column;
}
/* CABEZA */
.cabeza {
    background-color: var(--verde-oscuro);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.contenedor {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}
.cabeza__nav {
    display: grid;
    grid-template-columns: repeat(2,max-content);
    justify-content: space-between;
    padding: 10px 0;
    align-items: center;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 1em;
}
.icono__cabeza {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}
.tiulo__logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: default;
}

/* --- Menu hamburguesa --- */
.menu__hamburguesa,
.menu__cerrar {
    display: grid;
    cursor: pointer;
    grid-column: -1/-2;
    grid-row: 1/2;
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s;
}
.menu__hamburguesa {
    transform: var(--state-abrir);
}
.menu__cerrar {
    transform: var(--state-cerrar);
}
.nav__input {
    display: none;
}

.nav__menu {
    display: grid;
    gap: 1em;
    position: fixed;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    background-color: var(--verde-oscuro);
    align-content: center;
    justify-content: center;
    text-align: center;
    transform: var(--state-menu);
    transition: transform 0.5s;
    box-shadow: var(--box-shadow);
}
.cabeza__nav:target {
    --state-cerrar: scale(1);
    --state-abrir: scale(0);
    --state-menu: translate(0);
    --box-shadow: 0 0 0 100vmax rgba(0,0,0,.5);
}

.nav__links {
    position: relative;
}
.nav__link {
    color: #ffffff;
    transition: color 0.5s;
}
.nav__link::after{
    content: "";
    display: block;
    background-color: #ffffff;
    top: 3px;
    height: 3px;
    transform: translateX(50%);
    width: 50%;
    clip-path: var(--clipy);
    transition: clip-path .3s;
}
.nav__link:hover{
    --clipy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.submenu__link {
    display: block;
    padding: 10px 30px;
    text-align: center;
    color: #ffffff;
    background-color: var(--verde-oscuro);
    transition: 0.5s;
}
.submenu__link:hover {
    background-color: #0c5c49;
}
.span {
    cursor: default;
}
/* FONDO */
.fondo{
    position: relative;
    margin-top: 60px;
    flex: 1;
}
.fondo::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:url(/imagenes/fondo.png);
    background-position: center;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}
/* SECCION */
.seccion {
    text-align: center;
    align-items: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 2em;
}
.seccion__titulo {
    font-size: 45px;
    font-weight: 800;
    color: #160054;
}
.seccion__parrafo {
    font-size: 25px;
    font-weight: 600;
    color: #000000;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 15px;
    color: #160054;
    font-weight: 600;
    transition: transform 0.2s ease-in-out;
    border: solid 3px #0f7b60;
    cursor: pointer;
    background-color: #ffffff;
}
.btn:hover {
    transform: scale(1.05);
}

/* CUERPO */
.cuerpo {
    display: grid;
    grid-template-rows: repeat(5,max-content);
}
.cuerpo__caja {
    clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);
    background-color: #0f7b60;
    padding: 5px;
    margin: 10px;
}
.caja__div {
    display: grid;
    grid-template-columns: 1fr 4.7fr 1fr;
    clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);
    background-color: #ffffff;
    padding: 40px 0;
    align-items: center;
}
.caja__marca {
    text-align: center;
    align-items: center;
    margin-left: 10px;
}
.marca__img{
    width: 70px;
    height: 70px;
    border-radius: 12px;
}
.marca__titulo{
    color: #000000;
    font-size: 15px;
    font-weight: 700;
}
.caja__parrafo {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.div__iconos {
    display: grid;
    grid-template-columns: repeat(2,max-content);
    gap: 5px;
    cursor: pointer;
    justify-content: center;
}
.icono__cuerpo {
    transition: .5s;
    width: 30px;
}
.icono__cuerpo:hover {
    transform: scale(1.20);
}

/* PIE */
.pie {
    background-color: var(--verde-oscuro);
    margin-top: auto;
}
.pie__div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.div__titulo {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}
.contactos__pie>li{
    list-style: circle;
    font-weight: 400;
    font-size: 15px;
    color: #ffffff;
}

/*  */
@media (min-width:768px){
    .menu__hamburguesa,
    .menu__cerrar {
        display: none;
    }
    .nav__menu {
        display: flex;
        gap: 2em;
        position: static;
        transform: none;
        box-shadow: none;
        background-color: transparent;
    }
    .nav__submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
    }
    .nav__links:hover .nav__submenu {
        display: block;
    }
    .nav__link::after{
        width: 100%;
        transform: unset;
    }
}

@media (min-width:1550px){
    .caja__marca{
        display: flex;
        gap: 3px;
    }
    .marca__titulo{
        font-size: 20px;
    }
    .div__iconos{
        display: flex;
    }
    .icono__cuerpo{
        width: 40px;
    } 
    .pie__div{
        flex-direction: row;
        justify-content: space-between;
    }
}
@media (max-width:768px) {
    .nav__submenu {
        max-height: 0;
        overflow: hidden;
        position: unset;
        transition: max-height 0.2s;
    }
    .nav__input:checked ~ .nav__submenu {
        max-height: 500px;
    }
}