/*____________________________GENERAL______________________________*/

/*----------------------MODAL---------------------------------------*/
.modal{
	width: 100%;
	height:100vh;
	background: rgba(0,0,0.8);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;

	animation: modal 2s 1s forwards;
	visibility: hidden;
	opacity: 0;
}
.contenido{ 
	width: 50%;
	/*height: 40%;*/
	margin: auto;
	background: white;
	border-radius: 10px;
	color: blue;
	text-align: center;
}
#cerrar{
	display: none;
}
#cerrar + label{
	position: fixed;
	color: white;
	font-size: 25px;
	z-index: 50;
	background: darkred;
	height: 40px;
	width: 40px;
	line-height: 40px;
	border-radius: 50%;
	top: 25%;
	right: 25%;
	cursor: pointer;
	text-align: center;

	animation: modal 2s 1s forwards;
	visibility: hidden;
	opacity: 0;
}

/*CERRAR AL PRESIONAR icono X*/
#cerrar:checked + label,#cerrar:checked ~ .modal {
	display: none;
}

@keyframes modal {
	100%{
		visibility: visible;
		opacity: 1;
	}
}
/*------------------------------------------------------------------*/


body{
	margin: 0;
	background-image: url(../img/fondo2.jpg);
}
#contenedor{
	max-width: 900px;
}
nav ul{
	list-style: none;
	display: flex;
	flex-flow: row nowrap;
	font-weight: bold;
}
nav ul img{
	width: 25%;
	transition: filter 0.5s;
}
nav ul a:hover{
	filter: sepia(100%);
}
nav a{
	color: #0B0B61;
}
.activo{
	filter: drop-shadow(2px 2px 2px white);
}
.slider ul {
	display: flex;
	padding: 0;
	width: 400%;
	animation: cambio 20s infinite alternate linear;
}
.slider li {
	width: 100%;
	list-style: none;
}

.slider img {
	width: 100%;
}
a{
	text-decoration: none;
	color:blue;
}

.articulo1 h1{
	color: #FACC2E;
	text-shadow: 1px 1px blue;
	text-decoration: underline overline;
	font-size: 30px;
}
.articuloP h1{
	color: #FACC2E;
	text-shadow: 1px 1px blue;
	text-decoration: underline overline;
	font-size: 30px;
	list-style: none;
}
.caja h2{
		color:#FF8000;
		text-shadow:1px 1px black;
}
#s1{
	background-image: url("../img/foto1.png");
	min-height: 200px;
	padding:3%;
}
#s2{
	background-image: url("../img/foto2.png");
	min-height: 200px;
	padding:3%;
}
#s3{
	background-image: url("../img/foto3.png");
	min-height: 200px;
	padding:3%;
}
#s4{
	background-image: url("../img/foto4.png");
	min-height: 200px;
	padding:3%;
}
footer li{
	list-style:none;
	margin:2px
}
footer li img{
	height:18px;
	margin-right:10px
}
.boton{
	background-color: yellow;
	color:blue;
	font-weight: bold;
}
#rtm .tdp{
	background: #003399;
	color:#FF6600;
	text-align:center;
	font-weight:bold;
	text-shadow: 1px 1px #000000;
	letter-spacing: 2px;
}
#rtm th{
	background: #FFFF33;
	color:#FF9900;
	padding:4px;
}
#rtm td{
	color:black;
	background:#FFFFFF;
	margin:2px;
	padding:2px;
}
#soat th{
	background: #003399;
	color:#FF6600;
	text-align:center;
	font-weight:bold;
	text-shadow: 1px 1px #000000;
	letter-spacing: 2px;
}
#soat .tdp{
	height:20px;
	background:#ffff33;
	color:#ff9900;
	padding:4px;
}
#soat td{
	color:black;
	background:#ffffff;
	margin:2px;
	padding:2px;
}
form p{
	color:blue;
}
form legend{
	color: blue;
	font-weight: bold;
	text-align: center;
}
p .alert{
	color: red;
	text-decoration-color: red;
}
.submenu{
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	color: blue;
	font-weight: bold;
	padding-top: 8%;
}
.submenu a:hover{
	transform: translate(10px,0);
	filter: sepia(100%);
}
.submenu input:hover{
	transform: translate(10px,0);
	filter: sepia(100%);
}
.h2Tags {
	cursor: pointer;
}
/*____________________________PC___________________________________*/

@media screen and (min-width: 601px){
	main{
		max-width: 900px;
		margin: 0 auto;
	}
	header{
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		background-color: #FACC2E;
		border-radius: 0 0 15px 15px;
		height: 70px;
		position: fixed;
	}
	#logo{
		width: 30%;
	}
	#logo img{
		width: 70%;
		display: flex;
		margin: 0 auto;
		padding-top: 2%;
		filter: drop-shadow(1px 1px 1px black);
		transition: transform 1s;
	}
	#logo img:hover{
		transform: scale(1.5,1.5);
	}
	nav{
		width: 55%;
		margin-right: 10px;
	}
	nav ul{
		list-style: none;
		padding: 0;
	}
	nav li{
		width: 25%;
		text-align: center;
	}
	nav img{
		width: 100%;

	}
	.login{
		width: 15%;
		margin: 2%;
	}
	.login ul{
		list-style: none;
		text-align: right;
		padding: 0;
	}
	.login li{
		margin: 2%;
	}
	.login a{
		color: #0B0B61;
	}
	.slider {
	width: 100%;
	margin: auto;
	overflow: hidden;
	}
	.articuloP{
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	color: blue;
	font-weight: bold;
	padding-top: 8%;
	}
	.articulo1{
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	color: blue;
	font-weight: bold;
	border-top:2px dotted yellow;
	}
	.articulo1 a{
	text-align: center;
	color: blue;
	font-weight: bold;
	margin: 5%;
	border-top: 2px dotted yellow;
	border-bottom: 2px dotted yellow;
	}
	.articulo2{
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-around;
		margin-bottom: 5%;
	}
	.caja{
		width: 50%;
		text-align: center;
		margin :2%;
		color: blue;
		font-weight: bold;
	}
	.cajaIndex{
		width: 24%;
		margin-top: -60px;
		text-align: center;
	}
	.cajaIndex img{
		width: 60%;
		margin: 7%;
		transition: transform 1s;
	}
	.cajaIndex img:hover{
		transform: scale(1.5,1.5);
	}
	.cajaFoto{
	color: #FF8000;
	width: 50%;
	display:flex;
	flex-direction: row;
	max-height: 150px;
	}
	.cajaFoto img{
		width: 30%;
		margin: 5px 30px;
		border-radius: 50%;
	}
	.cajaFoto p{
		margin-top: 50px;
		margin-left: 20px;
		color: blue;
		font-size: 18px;
	}
	#rtm table{
	border: 2px solid #999999;
	margin-left:30%;
	margin-bottom: 5%;
	}
	#soat table{
	border:2px solid #999999;
	margin-left:20%;
	margin-bottom: 5%;
	}
	.divContacto img{
	width:20px;
	margin-right:5px;
	
	}
	.divContacto{
		text-align: left;
		color: blue;
		width: 50%;
		display:flex;
		flex-direction: column;
		margin:30px 5px;
		padding: 40px 10px;
		font-size: 18px;
		font-weight: bold;
	}
	.divContacto ul{
		list-style: none;
		text-decoration: none;
	}
	.divContacto a{
		text-decoration: none;
	}
	form{
	margin: 10px 17%;
	}
	fieldset{
	border:3px dashed yellow;
	}
	form input{
		margin: 3%;

	}
	form label{
		margin:3%;
	}
	footer{
	max-width:900px; 
	color:blue;
	background-image:url(../img/fondo-footer.png);
	border-radius:15px 15px 0 0;
	font-size:13px;
	display: flex;
	flex-direction: row;
	margin: 0 auto;
	}
	.pie{
	width:50%;
	}
}

/*____________________________MOVIL_______________________________*/

@media all and (max-width: 600px){
	body{
		animation: entrada 1s;
	}
	header{
		display: flex;
		flex-flow: column nowrap;
		justify-content: center;
		background-color: #FACC2E;
		border-radius: 15px 15px 0 0;
	}
	#logo img{
		width: 70%;
		display: flex;
		margin: 0 auto;
		filter: drop-shadow(1px 1px 1px black);
	}
	nav{
		width: 100%;
	}
	nav ul{
		list-style: none;
		padding: 0;
		margin: 0 auto;
		margin-top: 5%;
	}
	nav li{
		width: 25%;
		text-align: center;
	}
	nav img{
		width: 70%;
	}
	.login{
		width: 100%;
		margin: auto;
		margin-top: 10px;
		border-top:2px dotted blue;
	}
	.login ul{
		list-style: none;
		text-align: center;
		padding: 0;
	}
	.login li{
		display: inline;
		margin: 0 5%;
	}
	.login a{
		color: #0B0B61;
	}
	.slider {
	width: 100%;
	margin-top: -5%;
	overflow: hidden;
	}
	.articuloP{
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	color: blue;
	font-weight: bold;
	padding-top: 8%;
	}
	.articulo1{
	display: flex;
	flex-flow: column nowrap;
	text-align: center;
	color: blue;
	font-weight: bold;
	margin-top: 5%;
	border-bottom: 2px dotted yellow;
	}
	.articulo1 a{
	text-align: center;
	color: blue;
	font-weight: bold;
	margin: 5%;
	border-top: 2px dotted yellow;
	border-bottom: 2px dotted yellow;
	}
	.articulo2{
		display: flex;
		flex-flow: row wrap;
		justify-content:center;
	}
	.caja{
		width: 100%;
		text-align: center;
		margin :2%;
		color: blue;
	}
	.cajaIndex{
		width: 35%;
		text-align: center;
		margin: 2%;
	}
	.cajaIndex img{
		width: 100%;
	}
	.cajaFoto{
	color: #FF8000;
	width: 100%;
	display:flex;
	flex-direction: row;
	max-height: 150px;
	}
	.cajaFoto img{
		width: 30%;
		margin: 5px 30px;
		border-radius: 50%;
	}
	.cajaFoto p{
		margin-top: 50px;
		margin-left: 20px;
		color: blue;
		font-size: 18px;
	}
	#rtm table{
	border: 2px solid #999999;
	margin-bottom: 5%;
	}
	#soat table{
	border:2px solid #999999;
	margin-bottom: 5%;
	}
	.divContacto img{
	width:20px;
	margin-right:5px;
	}
	.divContacto{
		text-align: left;
		color: blue;
		width: 100%;
		display:flex;
		flex-direction: column;
		margin: 5%;
		font-size: 18px;
		font-weight: bold;
	}
	.divContacto ul{
		list-style: none;
		text-decoration: none;
		padding: 0;
	}
	.divContacto a{
		text-decoration: none;
	}
	form{
	margin:0 auto;
	}
	fieldset{
	border:3px dashed yellow;
	}
	form input{
		margin:1%;
	}
	form label{
		margin:1%;
	}
	footer{
	max-width:900px; 
	color:blue;
	background-image:url(../img/fondo-footer.png);
	border-radius:0 0 15px 15px;
	font-size:13px;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	}
	.pie{
	width:100%;
	}
}
/*____________________________ANIMACIONES____________________________*/
@keyframes entrada{
	0%{
		margin-top: 150%;
	}
	60%{
		margin-top: -5%;
	}
	100%{
		margin-top: 0%
	}
}
@keyframes cambio {
	0% {margin-left: 0;}
	20% {margin-left: 0;}
	
	25% {margin-left: -100%;}
	45% {margin-left: -100%;}
	
	50% {margin-left: -200%;}
	70% {margin-left: -200%;}
	
	75% {margin-left: -300%;}
	100% {margin-left: -300%;}
}