* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f3f3;
    font-family: font-family: 'Open Sans', sans-serif;
}

a {
    text-decoration: none;
}

.content {
    width: 90%;
    max-width: 800px;
    margin: auto;
}

/* ----------- */
/* header */
/* ----------- */

main{
    margin-top: 50px;
    padding: 40px 0;
     width: 100%;
    background: white;
    color: darkblue;
}

main .logo {
    text-align: center;
    margin-bottom: 40px;
}

main .logo p {
    color: #9B9B9B;
}

main form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}


main .barra-busqueda {
    width: 70%;
    height: 40px;
    line-height: 40px;
    background: #fff;
    padding: 0 20px;
    border-radius: 100px;
    border: none;
    text-align: center;
    font-size: 16px;
}

main .categorias {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

main .categorias a {
    color: #9B9B9B;
    margin: 10px 20px;
    font-size: 18px;
    font-weight: 700;
}

main .categorias a.activo {
    color: #000;
}

/* ----------- */
/* grid */
/* ----------- */


.grid {
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s linear 1s;
    
}

.grid.imagenes-cargadas {
    opacity: 1;
}

.grid .item {
    position: absolute;
    display: block;
    padding: 0;
    margin: 10px;
    width: calc(33.333333% - 20px);
}

.grid .item-contenido {
    position: relative;
}

.grid .item img {
    width: 100%;
    cursor: pointer;
    vertical-align: top;
}

/* ----------- */
/* overlay */
/* ----------- */

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.9);
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay.activo {
    display: flex;
}

.overlay img {
    max-width: 100%;
    max-height: 400px;
}

.overlay .descripcion {
    display: block;
    background: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 5px;
    border-radius: 10px;
    max-height: 50%;
}

.contenedor-img {
    position: relative;
}

.overlay #btn-cerrar-popup {
    background: none;
    font-size: 20px;
    color: #fff;
    border: none;
    cursor: pointer;
    position: absolute;
    right: -20px;
    top: -20px;
}

/* ----------- */
/* footer */
/* ----------- */

footer .redes-sociales {
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

footer .redes-sociales a {
    display: block;
    width: 60px;
    height: 60px;
    background: #000;
    color: #fff;
    margin: 20px;
    text-align: center;
    border-radius: 100px;
    transition: .3s ease all;
}

footer .redes-sociales .facebook {background: #1da1f2;}
footer .redes-sociales .instagram {background: #c13584;}

footer .redes-sociales a i {
    font-size: 20px;
    line-height: 60px;
}

footer .contenedor-icono:hover a {
    animation: icono .5s ease;
}

@keyframes icono {
    from{
      transform: translate3d(0,0,0,0);
    } 
    to {
       transform: translate3d(0,1,0, 360deg);
    }
} 