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

body {
	color: #f2f2f2;
	font-family: 'Open Sans', sans-serif;
}

.bg {
  /* The image used */
  background-image: url("./img/polygonal-mosaic2.jpg");
  /* Full height */
  height: 100%;
  /* Center and scale the image nicely */
  background-position: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

a {
	text-decoration: none;
}

.contenedor {
	width: 95%;
	max-width: 1024px;
	margin: auto;
}

/* ------------------------- */
/* HEADER */
/* ------------------------- */

header {
	padding: 15px 0;
	color: #f2f2f2;
}

header .logo {
	text-align: center;
	margin-bottom: 15px;
}

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

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

header .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;
}

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

header .categorias a {
	color: #f2f2f2;
	margin: 10px 20px;
	font-size: 18px;
	font-weight: 700;
}

header .categorias a.activo {
	background-color: rgb(54, 47, 47);
}

/* ------------------------- */
/* Grid */
/* ------------------------- */

.grid {
	color: rgb(54, 47, 47);
	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(25% - 20px);
}

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

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

p.descripcion {
	color: #f2f2f2;
}

/* ------------------------- */
/* 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%;
}

.overlay .descripcion {
	display: block;
	color: rgb(54, 47, 47);
	background: #fff;
	padding: 20px;
	text-align: center;
	margin-top: 5px;
	border-radius: 10px;
	max-width: 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 .twitter {background: #1da1f2;}
footer .redes-sociales .facebook {background: #3b5998;}
footer .redes-sociales .instagram {background: #c13584;}
footer .redes-sociales .site {background: #193e91;}
footer .redes-sociales .whatsapp {background: #35bc48;}


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

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

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

footer .creado-por {
	margin-bottom: 40px;
	text-align: center;
	font-size: 14px;
	color: #c13584;
}

footer .creado-por a {color: #000;}
footer .creado-por a:hover {text-decoration: underline;}

/* ------------------------- */
/* Mediaqueries */
/* ------------------------- */
@media screen and (max-width: 700px) {
	.grid .item {
		width: calc(50% - 20px);
	}

	header .barra-busqueda {
		width: 100%;
	}
}

.footer {
	margin-top: 25px;
	color: #fff;
	background-color: rgb(54, 47, 47) !important;
	width: 100%;
	z-index: 1000;
}
.footer a {
	color: #fff;
	vertical-align: super;
}
.footer span {
	margin: 10px;
	vertical-align: middle;
}

.contenedor {
	margin-top: 170px;
}

.categorias a {
	background-color: #1d4891;
	padding: 5px 10px;
	border-radius: 15px;
}

.fixed-nav-bar {
	position: fixed;
	text-align: center;
	top: 0;
	left: 0;
	z-index: 99999;
	width: 100%;
	height: 60px;
	color: #fff;
	background-color: #1d4891;
	-webkit-box-shadow: 0 8px 6px -6px #999;
	-moz-box-shadow: 0 8px 6px -6px #999;
	box-shadow: 0 8px 6px -6px #999;
}

.grid .item .description {
		border-radius: 10px;
  	display: grid;
    position: absolute;
    bottom: 0;
    left: 0;
		margin: 2px;
    padding: 10px;
    font-size: 17px;
    line-height: 18px;
    width: 97%;
		height: 93%;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 0;
    color: #FFF;
    transition: 0.8s ease;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, transparent, rgba(44, 47, 47, 3.39));
}

.grid .item-data .description .description-heading {
	margin-top: 110px;
  font-size: 0.9em;
  font-weight: bold;
}

.grid .item-data .description .description-body {
  font-size: 1em;
  margin-top: 10px;
  font-weight: bold;
}

.grid .item-data .description {
	opacity: 0; 
}

.grid .item-data a:hover .description {
	opacity: 1; 
} 

.grid .item-data:hover .image {
	transform: scale(1.3);
	opacity: 0.7; 
}

/*
@keyframes tada {
	from {
		{transform: 'scale3d(1, 1, 1)', offset: 0};
		{transform: 'scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg)', offset: 0.1}, 
		{transform: 'scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg)', offset: 0.2}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)', offset: 0.3}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)', offset: 0.4}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)', offset: 0.5}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)', offset: 0.6}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)', offset: 0.7}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)', offset: 0.8}, 
		{transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)', offset: 0.9}, 
		{transform: 'scale3d(1, 1, 1)', offset: 1}];

	}
	to {
		transform: rotate3d(0,1,0, 360deg);
	}
}
*/
 
@media screen and (max-width: 560px) {
	h1 {
		font-size: 20px;
        padding-top: 4px;
	} 
}

@media screen and (max-width: 380px) {
	#title {
		visibility: hidden;
	}
	h1 {
		font-size: 16px;
  	padding-top: 15px;
	} 
	header .categorias a {
			margin: 10px 7px;
	}
}