/*IMPORTACION DE FUENTES MONTSERRAT Y RIGHTEOUS*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Righteous&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat",sans-serif;
    text-decoration: none;
    list-style: none;
}

/*CONFIGURACION INICIAL DE ELEMENTOS GENERALES*/
a {
    color: white;
}

img {
    width: 70%;
    display: block;
    margin: auto;
}

#chk, #boton-menu, .men{
    display: none;
}

/*=============================================*/

/*CONTENEDOR PRINCIPAL*/
main {
    display: grid;
    min-height: 90vh;
    grid-template-columns: 220px auto;
    grid-template-areas: "n c";
}
/*=============================================*/

/*BARRA DE NAVEGACION*/
nav {
    grid-area: n;
    background: #ca2f13;
}

nav .logo {
    background: #d16e47;
    padding: 20px;
}

nav .logo img {
    display: block;
    margin: auto;
    width: 70%;
}

nav .menu {
    background: #ca2f13;
}

nav .menu li{
    vertical-align: auto;
    padding: 20px;
    font-size: 1.5rem;
}

nav .menu li:hover {
    background: #9a1d05;
    transition: background 0.8s;
    cursor: pointer;
    color: #fee547;
}
/*================================================================*/

/*CONTENIDO*/
.contenedor {
    grid-area: c;
    background: #f0f0ee;
}

.contenedor header {
    background: #ff8f00;
}

.contenedor header .titulo {
    font-family: "Righteous", sans-serif;
    color: white;
    font-size: 1.5rem;
    padding: 5px;
    text-align: center;
}

.contenedor .contenedor-tarjetas {
    display: grid;
    justify-content: center;
    margin: 40px;
    gap: 90px;
    grid-template-columns: repeat(auto-fit, minmax(100px,200px));
}

.contenedor .contenedor-tarjetas .tarjeta {
    display: flex;
    flex-direction: column;
    background: #dcdcdc;
}

.contenedor .contenedor-tarjetas .tarjeta .titulo {
    color: gray;
    text-align: center;
    padding: 10px;
    background: #f0f0ee;
}

.contenedor .contenedor-tarjetas .tarjeta .imagen {
    width: 100%;
}

.contenedor .contenedor-tarjetas .tarjeta .imagen:hover {
    box-shadow: 0px 0px 10px black;
    transition: box-shadow 0.5s;
}
/*===================================================*/

/*PIE DE PAGINA*/
footer {
    background: #ff8f00;
    min-height: 10vh;
    text-align: center;
    color: white;
    padding: 15px;
}


/*DISEÑO PARA PANTALLAS MOVILES*/
@media (max-width: 570px) {
    /*MENU PEQUEÑO CON ANIMACION*/
    ul {
        clear:both;
        overflow: hidden;
        height:0;
        transition: height 0.4s ease-in-out 0s, background-color 2s ease 0s;
    }  

    #menu:target ul {
        background: #ca2f13 none repeat scroll 0 0;
        border-radius: 20px;
        height:20em;
        width: 100%;
        list-style: none;
        position: relative;
        z-index: 3;
        transition: height 0.4s ease-in-out 0s, background-color 0.9s ease 0s;
    }

    .men .cerrar {
        display:none;
    }

    #menu:target .abrir {
        display:none;
    }

    #menu:target .cerrar {
        display:block;
    }

    .men {
        background-color: transparent; 
        border-color: transparent;
        display: block;
        float: left; 
        cursor: pointer;
    }

    #icono {
        display: flex;
        width: 30px;
        height: 30px;
        margin: 10px;
        flex-direction: column;
        justify-content: space-between;
    }

    .barrita {
        background-color: white;
        z-index: 3;
        display: block;
        height: 3px;
        border-radius: 10px;
        transform: rotate(0);
    }

    .barrita1 {
        background-color: white;
        z-index: 3;
        display: block;
        height: 3px;
        border-radius: 10px;
        transform: rotate(45deg) translate(5px,10px);
    }

    .barrita2 {
        background-color: white;
        z-index: 3;
        display: block;
        height: 3px;
        border-radius: 10px;
        transform: rotate(-45deg) translate(8px,-14px);
    }
    /*===================================================*/

    main {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        grid-template-areas: "n"
                             "c";
    }

    nav .logo {
        display: none;
    }
}