:root{
	--blanco:#ffffff;
	--oscuro:#212121;
	--primario:#FFC107;
	--secundario:#97B20B;
	--gris:#757575;
	--grisclaro:#DFE9F3;
}
/* Globales */
html{
	font-size: 62.5%;
	box-sizing: border-box; /*Truco para box model */
	scroll-snap-type: y mandatory;
}
*, *:before, *:after{
	margin:0;
	padding: 0;
	box-sizing: border-box;
}
body{
	font-size: 16px; /*1rem = 10px */
	font-family: 'Krub', sans-serif;
}

.sombra{
	-webkit-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.5);
	box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.5);
	background-color: var(--blanco);
	padding: 2rem;
	border-radius: 1rem;
}

/* Tipografia */
h1{
	font-size: 3.8rem;	
}
h2{
	font-size: 2.8rem;
}
h3{
	font-size: 1.8rem;
}

h4{
	font-size: 1.8rem;
}
h1,h2,h3,h4{
	text-align: center;
}

/* Titulos */
.titulo span{
	font-size: 2rem;
}

#logos{	
	width: 100%;
}

#logos{	
	width: 100%;
	height: 160px;
	background: #F9F9F9;
}

#brigadas{
	background-image: url(../img/nuevologo.jpg);
	background-repeat: no-repeat;
	width: 150px;
	position: relative;
	right: -30px;
	height: 150px;
	top: 5px;
	display: block;
}

#brigadas a{
	position: absolute;
	width: 150px;
	height: 150px;
}

@media (max-width: 820px){
	#brigadas{
		background-size: contain;
		width: 70%;
		height: 200px;
		display: block;
		margin-top: -45;
	}
}

@media (max-width: 770px){
	#brigadas{
		background-size: contain;
		width: 70%;
		height: 200px;
		margin: 0 auto;
		display: block;
	}
}

@media (max-width: 500px){
	#brigadas{
		background-size: contain;
		width: 30%;
		height: 76%;
		left: 10px;
		display: block;
	}
}

.btn-abrir-popupa{
	visibility: hidden;
}

@media (max-width: 500px){
	.btn-abrir-popupa{
	position: absolute;
	width: 45px;
	margin-bottom: 20px;
	height: 40px;
	line-height: 40px;
	border: none;
	color: white;
	background: #249EAC;
	border-radius: 3px;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	cursor: pointer;
	left: 86%;
	margin-top: -80px;
	visibility: visible;
	}
}


@media (max-width: 500px){
	.lineas{
	visibility: visible;
    border-top: 5px solid #0077C0;
    margin-bottom: 20px;
	}
}

@media (max-width: 500px){
	.linea{
	visibility: visible;
    border-top: 5px solid #0077C0;
    margin-bottom: 20px;
	}
}

@media (max-width: 500px){
	.btn-abrir-popupa:hover {
		background: rgba(94,125,227, .9);
	}
}

@media (max-width: 500px){
	.popupa {
	background: #3EA2A4;
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
	border-radius: 3px;
	font-family: 'Montserrat', sans-serif;
	padding: 20px;
	text-align: center;
	width: 100%;
	transition: .2s ease all;
	transform: scale(0.7);
	opacity: 0;
	}
}

.popupa .btn-cerrar-popupa{
	visibility: hidden;
}

@media (max-width: 500px){
	.popupa .btn-cerrar-popupa {
	font-size: 25px;
	line-height: 16px;
	display: block;
	text-align: right;
	transition: .3s ease all;
	color: #0077C0;
	visibility: visible;
	width: 30px;
	}
}

@media (max-width: 500px){
	.overlaya {
	background: rgba(0,0,0,.3);
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	align-items: center;
	justify-content: center;
	display: flex;
	visibility: hidden;
	}
}


@media (max-width: 500px){
	.overlaya.active {
	visibility: visible;
	}
}


@media (max-width: 500px){
	.popupa .btn-cerrar-popupa:hover {
	color:black;
	}
}

.popupa h4, .popupa h3 {
	visibility: hidden;
}

@media (max-width: 500px){
	.popupa h3 {
	font-size: 36px;
	font-weight: 600;
	margin-top: -10px;
	opacity: 0;
	visibility: visible;
	}
}


@media (max-width: 500px){
	.popupa h4 {
	font-size: 26px;
	font-weight: 300;
	margin-bottom: 40px;
	opacity: 0;
	visibility: visible;
	}
}

/*navegacion*/

.nav-bg{
	width: 47%;
	height: 0;
	left: 650px;
	margin-top: -110px;
	position: relative;
}

@media (max-width: 480px){
	.nav-bg{
		flex-direction: row;
		justify-content: space-between;
		visibility: hidden;
	}
}

.navegacion-principal{
	display: flex;
	flex-direction: column;
	margin-top: -30px;
}

@media (max-width: 1920px){
	.navegacion-principal{
		flex-direction: row;
		justify-content: space-around;
	}
}


@media (max-width: 480px){
	.navegacion-principal {
		flex-direction: column;
		justify-content: space-between;
		visibility: hidden;
	}
}

@font-face{
	font-family: forte;
	src:url(../forte.ttf);
}

.navegacion-principal a{
	display: block;
	text-align: center;
	color: #000080;
	text-decoration: none;
	font-size: 38px;
	font-weight: bold;
	padding: 1rem;
}

.navegacion-principal a:hover{
	
	color: #159EF0;
}

@media (max-width: 480px){
	.navegacion-principal a:hover{
		background-color: #3EA2A4;
		width: 200px;
		flex-direction: column;
		margin: 0 auto;
		visibility: hidden;
	}
}

.navemenu a{
	visibility: hidden;
}


@media (max-width: 500px){
	.navemenu a{
	width: 200px;
	padding: 20px;
	align-items: center;
	justify-content: center;
	line-height: 100px;
	text-decoration: none;
	font-size: 30px;
	color:#FFF;
	visibility: visible;
	}
}

.navemenu a:hover{
	visibility: hidden;
}

@media (max-width: 480px){
	.navemenu a:hover{
	text-decoration: none;
	color:black;
	visibility: visible;
	}
}

.paypal{
	position: absolute;
	left: 84%;
	top:-1px;
}

@media (max-width: 500px){
	.paypal{
		position: absolute;
		left:-15px;
		top:-1px;
	}
}

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

.galeria{
    font-family: 'Krub';
    position: relative;
    top:30px;
}

@media (max-width: 500px){
	.galeria{
	font-family: 'Krub';
	position: relative;
	top: -50px;
	}
}

.galeria h1{
    text-align: center;
    margin:20px 0 15px 0;
    font-weight: 300;
    font-size: 40px;
}

.contenedor-imagenes{
    display:flex;
    position: relative;
    width: 85%;
    margin: auto;
    justify-content: space-around;
    flex-wrap: wrap;
    border-radius:3px;
}

.contenedor-imagenes .imagen{
    width: 32%;
    position: relative;
    height:300px;
    margin-bottom:5px;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, .75)
}

.imagen img{
    width: 100%;
    height:100%;
}

.overlay{
	position: absolute;
	bottom: 0;
	left: 0;
	background: rgba(0, 118, 192, 0.781);
	width: 100%;
	height: 0;
	transition: .5s ease;
	overflow: hidden;
}

.overlay h2{
	color:white;
	font-size: 30px;
	font-weight: 300;
	position: absolute;
	top:50%;
	left: 50%;
	text-align: center;
	transform: translate(-50%, -50%);
}

.imagen:hover .overlay{
	height: 100%;
	cursor: pointer;
}

@media screen and (max-width:1000px){
    .contenedor-imagenes{
        width: 95%;
    }
}

@media screen and (max-width:700px){
    .contenedor-imagenes{
        width: 90%;
    }
    .contenedor-imagenes .imagen{
        width: 48%;
    }
}

@media (max-width:500px){
    h1{
        font-size:22px;
    }
    .contenedor-imagenes{
        width: 98%;
    }
    .contenedor-imagenes .imagen{
        width: 80%;
    }
}

.popupa.active {	transform: scale(1); opacity: 1; }
.popupa.active h3 { animation: entradaTitulo .8s ease .5s forwards; }
.popupa.active h4 { animation: entradaSubtitulo .8s ease .5s forwards; }

@keyframes entradaTitulo {
	from {
		opacity: 0;
		transform: translateY(-25px);
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes entradaSubtitulo {
	from {
		opacity: 0;
		transform: translateY(25px);
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes entradaInputs {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Desarrollador Footer*/

.footer{
	color: black;
	height: 40px;
	position: relative;
	text-align: center;
}

.footer p{
	position: absolute;
	margin-top: 20px;
	left: 50%;
	transform: translate(-50%, -50%);
}

@media (max-width: 500px){
	.footer{
	color: black;
	height: 40px;
	margin-top: 30px;
	}
}
