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

body, html {
  background-color: #c5c2c2;
  font-size: 20px;
  font-family: 'Podkova', serif;
}


.menu-bar {
	position: fixed;
	font-size: 0.8rem;
	font-family: 'Open Sans', sans-serif;
	height: 2.5em;
	background-color: #f5f5f5;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	z-index: 99;
}

.menu-bar .menu-btn {
	display: none;
}

.menu-bar .menu-icon {
	cursor: pointer;
	height: 1.25em;
	/* Firefox bug */
	position: absolute;
	right: 0;
	top: 25%;
}

.menu-bar .menu-icon svg {
	height: 100%;
	margin-right: 0.7em;
	transition: transform .5s ease;
}

.menu-bar .menu-icon svg path {
	fill: #1c1c1c;
}

.menu-bar .menu-btn:checked ~ label svg {
	transform: rotate(180deg);
}

#whatsapp-badge {
	padding-left: 1em;
	font-size: 0.8em;
}

.menu-bar ul {
	position: fixed;
	top: 2.5em;
	width: 100%;
	left: 100%;
	transition: transform .5s ease;
	list-style: none;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.menu-bar li a {
	display: block;
	text-decoration: none;
	text-align: center;
	color: #9ab1a5;
	padding: 0.4em;
	font-size: 0.8em;
	transition: background-color .2s ease;
}

.menu-bar li a:hover {
	color: #8c040b;
}


.menu-bar li .active {
	color: #294635;
}

.menu-bar .menu-btn:checked ~ ul.menu {
	transform: translateX(-100%);
}

#whatsapp-badge {
	color: #8c040b;
}

#whatsapp-badge .llama {
	/*display: none;*/
	display: inline-block;
	height: 1.2em;
	margin-left: 1em;
}

#whatsapp-badge a{
	text-decoration: none;
	color: inherit;
}

#whatsapp-badge .numero:before {
	content: ": ";
}

ul.menu {
	background-color: inherit;
}

#logo {
	display: flex;
	justify-content: center;
	padding-top: 3rem;
	padding-bottom: 1.5rem;
	background-color: #fff;
}

#logo > div {
	width: 60%;
}

#logo img {
	display: block;
	width: 100%;
	height: auto;
}


#titular {
	position: relative;
	font-size: 1rem;
}

#titular img {
	display: block;
	width: 100%;
	height: auto;
}

#titular .textos {
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
}

#titular .textos h1,
#titular .textos p {
	text-align: center;
	color: #fff;
}

#titular .textos h1 {
	font-size: 0.85rem;
	font-weight: 300;
	margin-bottom: 0.6em;
	margin-top: 3em;
	padding: 0.2em 0.5em;
}

#titular .textos p {
	display: none;
	font-family: 'Open Sans', sans-serif;
}

#titular .sombra h1 {
	text-shadow: 2px 2px 2px #6d6d6d;
}

.ondas {
	position: absolute;
	bottom: 0;
}

.ondas img {
	display: block;
	width: 100%;
}



.bloque {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	overflow: hidden;
	padding-bottom: 2em;
}

.triangulo {
	width: 2em;
	height: 2em;
	background-color: white;
	position: absolute;
	transform: translateY(-1.5em) rotate(45deg);
}

.bloque .bloque-foto, .bloque .bloque-texto {
	flex-basis: 100%;
	padding: 2em 1em 1em 1em;
}

.marco-foto {
	overflow: hidden;
	border-radius: 50%;
	width: 40%;
	margin: 0 auto;
}

.bloque-foto img {
	width: 100%;
	display: block;
}

.bloque-texto h1 {
	font-weight: 100;
	font-size: 1.6rem;
	color: #969696;
	margin-bottom: 1em;
}

.bloque-texto h2 {
	font-size: 1.1rem;
	font-weight: 200;
	color: #8c040b;
	margin-bottom: 0.8em;
}

.bloque-texto h3 {
	font-size: 1rem;
	font-weight: 200;
	color: #8c040b;
	margin-bottom: 0.4em;
}

.bloque-texto h4 {
	font-family: 'Open Sans', sans-serif;
	font-style: italic;
	font-weight: 100;
	font-size: 0.75rem;
	color: #969696;
	margin-bottom: 0.4em;
}


.contenedor-cartel {
	padding: 1rem 3rem;
}

.contenedor-cartel img {
	width: 100%;
}

.modal-button {
	padding: 0.6em;
	color: #8c040b;
	background-color: #f9f9f9;
	border: none;
	margin-bottom: 1.7em;
	margin-top: 0.6em;
	cursor: pointer;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 10em; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal .fecha {
	color: #8c040b;
	font-style: italic;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2em;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 3em;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


.bloque-texto .flecha {
	margin: 0.5em 0;
	width: 10%;
}

.bloque-texto p {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.65em;
}

.bloque-texto ul {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.65em;
}

.bloque-texto li {
	margin-top: 0.5em;
}


.bloque-texto p.cursiva {
	font-style: italic;
	color: #8c040b;
	margin-bottom: 0.7em;
}

.bloque-texto p.parrafo {
	margin-bottom: 0.7em;
}



.bloque-texto img {
	margin: 1em auto;
	display: block;
	width: 100%;
}

.blanco, .gris .triangulo {
	background-color: #fff;
}

.gris, .blanco .triangulo {
	background-color: #e8e8e8;
}

.bloque.blanco.rectangulo .marco {
	width: 100%;
	padding: 1em 0.25em 1em 0.25em;
}

.bloque.blanco.rectangulo img {
	width: 100%;
	display: block;
}

.bloque.gris.rectangulo img {
	width: 100%;
	display: block;
}

.bloque.blanco.rectangulo .texto-rectangulo{
	padding: 2em 1em 1em 1em;
}

.bloque.blanco.rectangulo h2 {
	font-size: 1.1rem;
	font-weight: 200;
	color: #8c040b;
	margin-bottom: 0.8em;
}

.bloque.blanco.rectangulo p {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.8em;
	font-style: italic;

}



#descripcion-consulta {
	position: relative;
}


#descripcion-consulta .textos {
	position: absolute;
	top: 45%;
	width: 100%;
	text-align: center;
	color: #fff;
	text-shadow: 2px 2px  4px black;

}

#descripcion-consulta h3 {
	font-size: 0.85em;
}

.galeria {
	position: relative;
}

.galeria img {
	display: block;
	width: 100%;
	animation-name: fader;
	animation-duration: 12s;
	animation-iteration-count: infinite;
}

.galeria .p1 {
	animation-delay: -2s;
	position: relative;
	top: 0;
	left: 0;
}

.galeria .p2 {
	animation-delay: -10s;
	position: absolute;
	top: 0;
	left: 0;
}

.galeria .p3 {
	animation-delay: -6s;
	position: absolute;
	top: 0;
	left: 0;
}

@keyframes fader {
	0% {
		opacity: 0;
	}
	16.7% {
		opacity: 1;
	}
	33.3% {
		opacity: 1;
	}
	50.0% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}


p.noticias-detalles {
	margin-top: 0.6em;
	font-size: 0.6em;
	color: #969696;
}

#contacto {
	display: flex;
	flex-wrap: wrap;
	background-color: #f5f5f5;
	text-align: center;
	padding: 1.2em 0 0 0;

}

#contacto div {
	flex-basis: 100%;
}

#conectar .social {
	margin-top: 1em;
	margin-bottom: 1.5em;
}

#conectar .social a {
	text-align: center;
	margin-right: 0.6em;
	margin-left: 0.6em;
	color: #8c040b;
	font-size: 1em;
}

#conectar p {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.6em;
	color: #58533e;
	margin-bottom: 0.8em;

}

#conectar p.destacado {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.45em;
	color: #8c040b;
	margin-bottom: 0;
}

#conectar a.consulta {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.45em;
	color: #8c040b;
	margin-top: 2em;
	margin-bottom: 3em;
}

#conectar span a {
	color: #8c040b; 
}

#conectar p.colegiada {
	font-family: 'Open Sans', sans-serif;
	font-size: 0.45em;
	color: #58533e;
	margin-top: 2em;
	margin-bottom: 3em;
}

#lugar {
	overflow: hidden;
	margin-top: 1em;
    padding-bottom: 50%;
    position: relative;
    border: 1px solid #c9c9c9;
}

#lugar iframe {
	left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

#contacto .legal, #contacto .design {
	flex-basis: 100%;
}

#contacto .legal {
	margin-top: 1em;
}

.legal a, .design a{
	font-family: 'Open Sans', sans-serif;
	font-size: 0.45em;
	color: #9A9C9C;
	text-decoration: none;
}


@media (min-width: 425px) {

	#logo > div {
		width: 40%;
	}

	#titular .textos h1 {
		font-size: 1rem;
	}

	.contenedor-cartel {
		padding: 1rem 4rem;
	}

}


@media (min-width: 550px) {

	.contenedor-cartel {
		padding: 1rem 7rem;
	}

	#descripcion-consulta h3 {
	font-size: 1.1em;
	}

}


@media (min-width: 768px) {

	body {
		width: 768px;
		margin: 0 auto;
	}

	.menu-bar {
		width: 768px;
		height: 4em;
	}
	
	.menu-bar .menu-icon {
		display: none;
	}

	.menu-bar ul {
		position: static;
		transform: none;
		transition: none;
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	.menu-bar .menu-btn:checked ~ ul.menu {
		transform: none;
	}

	#whatsapp-badge {
		position: absolute; /*fixed;*/
		top: 4rem;
		right: 3rem;
		font-size: 0.8em;
		width: 6.5em;
		height: 6.5em;
		background-color: #F2F2F2;
		color: #8c040b;
		border-radius: 50%;
		display: flex;
		flex-wrap: wrap;
		align-content: center;
		justify-content: center;
		padding: 0.5em 0 0 0;
		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	}

	#whatsapp-badge span,
	#whatsapp-badge .llama {
		display: block;
		padding: 0.1em;
		height: 1.8em;
		margin-left: 0;
	}

	#whatsapp-badge .numero:before {
		content: "";
	}

	#logo {
		padding-top: 6rem;
		padding-bottom: 2rem;
	}

	#logo > div {
		width: 30%;
	}

	#titular .textos h1 {
		font-size: 1.6rem;
	}

	#titular .textos p {
		display: block;
		font-size: 0.8rem;
		margin-bottom: 0.8em;
		padding: 0 2em;
	}

	.marco-foto {
		width: 70%;
	}

	.bloque .bloque-foto {
		flex-basis: 40%;
	}

	.bloque .bloque-texto {
		flex-basis: 60%;
	}

	.bloque-texto img {
		width: 90%;
		margin-top: 1.5em;
	}

	.blanco .bloque-foto {
		order: 2;
	}

	.blanco .bloque-texto {
		order: 1;
		padding-left: 6em;
	}

	.gris .bloque-texto {
		padding-right: 6em;
	}

	.bloque.blanco.rectangulo .marco {
		padding: 4em 3em 1em 3em;
	}

	.contenedor-cartel {
		padding: 1rem 9rem;
	}

	#contacto {
		padding: 1em;
	}

	#contacto div {
		flex-basis: 50%;
	}

	#lugar {
		padding-bottom: 30%;
	}

	.enlace a {
		font-size: 1.08em;
	}

}



@media (min-width: 1024px) {

	body {
		width: 1024px;
	}

	.menu-bar {
		width: 1024px;
	}

	#whatsapp-badge {
		font-size: 1rem;
		width: 7em;
		height: 7em;
		padding: 0.5em 0 0 0;
	}

	#titular .textos h1 {
		font-size: 1.9rem;
	}

	#titular .textos p {
		font-size: 0.9rem;
		margin-bottom: 0.8em;
		padding: 0 2em;
	}

	.bloque-texto h2 {
		font-size: 1.3rem;
	}

	.bloque-texto p {
		font-size: 0.7em;
	}

	.bloque-texto ul {
		font-size: 0.7em;
	}

	.bloque.blanco.rectangulo h2 {
		font-size: 1.3rem;
	}

	.bloque.blanco.rectangulo p {
		font-size: 0.9em;
	}

	.contenedor-cartel {
		padding: 1rem 15rem;
	}


	#descripcion-consulta h3 {
	font-size: 1.5em;
	}

	p.noticias-detalles {
		font-size: 0.6em;
	}

	#mapa img {
		width: 70%;
	}

	.enlace a {
		font-size: 1.44rem;
	}


	
}