@import url(https://fonts.googleapis.com/css?family=Open Sans);

/*-------Estilos para ordenador portátil -----------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

a {
  text-decoration: none;
}

:root {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-weight: 300;
  background-color: #F2F4F4;
}

main, footer {
  padding: 20px;
}

header img {
	width: 100%;
	display: flex;
	margin: 0 auto;
}

.img-nav{
  position: fixed;
  top: 4px;
  left: 20px;
  width: 60px; 
  height: 60px; 
  z-index: 20;
  background-color: transparent;
  border-radius: 50%; 
   box-shadow: inset 0 0 3px 2px rgba(0, 0, 0, 0.6); 
}

.img-nav:hover{
  cursor: pointer;
}

h1 {
	font-size: 2em;
	font-weight: 300;
}

h2 {
	font-size: 1.6em;
	font-weight: 300;
}

.cursiva {
	font-style: italic;
}

.monumento {
  font-weight: bold;
}

main {
  flex: 1;
  width: 85%;
  justify-content: center;
  padding-bottom: 1.5em;
  background-color: #F2F4F4;
  margin: 0 auto;
}

#contenedor {
  display: flex;
  flex-direction: column;
	margin: 0 auto;
	width: 95%;
}

#contenedor > section {
  margin-bottom: 20px;
}

#contenedor > div {
  margin-bottom: 20px;
}

#contenedor p {
  margin-top: 15px;
}

.titulo-principal {
  font-size: 3em;
  text-align: center;
  color: #4A235A; 
}

.sub-titulo {
  font-size: 2en;
  font-weight: 300;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #8E44AD;
}

.foto {
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 7);
	float: left;
	margin-right: 1em;
	margin-bottom: .2em;
  width: 500px;
	cursor: pointer;

}

.foto-destacados {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 5);
  float: left;
  margin-right: 1em;
  margin-bottom: 0em;
  width: 200px;
  cursor: pointer;
}


/*Estilos para ampliar o reducir la imagen (MODAL)*/
.modal {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 90;
}

.modal img {
  max-width: 1200px;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  margin-bottom: 30px;
}

/*Para el mensaje*/
.modal::after {
  content: "Clic para salir de la ampliación";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal:hover::after {
  opacity: 1;
}
/*---------------Fin ajustes modal-------------------*/


.texto {
	line-height: 1.4;
    color: #401350;
}

.texto-destacados {
  text-align: justify;
  width: 800px;
  line-height: 1.4;
  color: #4A235A; 
}

.texto a {
  color: inherit; 
  font-weight: bold; 
  transition: color 0.3s ease; 
}

.texto a:hover {
	color: #9F8AD0;
 
}

ul.texto {
  margin-left: 20px; 
}

ul.texto li {
  margin-bottom: 5px; 
}

ul.texto li {
  white-space: nowrap; 
}

.fecha {
	margin-top: 50px;
	color: #4A235A; 
}

#botones_retornos {
	width: 85%;	
	display: flex;
	justify-content: space-between;
	margin: 50px auto 10px;
}

#botones_retornos a {
  display: flex;
  flex: 1;
}

footer {
  background-color: #764BA2;
  display: flex;
  justify-content: center; 
  align-items: center; 
  color: #FFF;
  font-size: .8em;
  padding: 3%;
}

/*-------Fin estilos para ordenador portátil -----------*/



/*Pantallas grandes (PC de sobremesa)*/
@media screen and (width>1380px){

  .foto {
  	width: 90%;
    float: none;
    margin-top: .3em;
    width: 100%;
    cursor: none;
  }

  #contenedor {
  	margin: 0 auto;
  	width: 70%;
  }

}


/*Pantalla de dispositivos móviles*/
@media screen and (max-width: 768px) {

  main, footer {
    padding: 5px;
  }

  header img {
  	max-width: 600px;
  	margin: 0 auto;
  }

  main {
  	width: 100%;
  }

  #contenedor {
  	margin: 0 auto;
  	width: 95%;
  }

  .titulo-principal {
    margin-top: 30px;
    margin-bottom: -50px;
    font-size: 2em;
  }

  ul.texto li {
    white-space: normal; 
  }

  .texto {
  	width: 100%;
  	margin: 0 auto;
  	max-width: 350px; word-wrap: break-word;
  }

  .texto-destacados {
    width: 95%;
    margin: 0 auto;
    max-width: 300px; word-wrap: break-word;
  }

  .texto-enlaces {
  	width: 95%;
  }

  .foto {
  	float: none;
  	margin-top: .3em;
  	width: 100%;
  	cursor: none;
  }

  .foto-destacados {
    float: none;
    margin-top: .3em;
    width: 100%;
    cursor: none;
  }

  #botones_retornos {
    padding-left: 0px;
    margin: 40px auto;
  }

  #botones_retornos a {
    justify-content: center;
  }

  .img_flechas {
  	height: 30px;
  	margin-left: 0px;
  }

  footer {
    font-size: .7em;
    padding: 25px;
  }

}


/*Estilos para dispositivos móviles en posición apaisado*/
@media screen and (max-height: 550px) {

  header img {
	 max-width: 100%;
  }

  #contenedor {
  	margin: 0 auto;
  	width: 80%;
  	display: flex;
  	justify-content: center;
  }

  .titulo-principal {
    font-size: 2em;
    padding-top: 0%;
    margin-top: 0%;
    margin-bottom: -30px; 
  }

 .sub-titulo {
  font-size: 1.5en;
  text-align: center;
  font-weight: 300;
  margin-top: 10px;
  margin-bottom: 10px;
}

.texto {
  margin: 0 auto;
  max-width: 600px; word-wrap: break-word;
}

.texto-destacados {
  width: 95%;
  margin: 0 auto;
  max-width: 500px; word-wrap: break-word;
}

.foto {
	max-width: 80%;
	margin:0 auto;
  	margin-right: 0px;
  	margin-bottom: 0px;
  	margin-left: 4em;
  	float: none;
}
 
.foto-destacados {
  float: none;
  margin-top: .3em;
  width: 100%;
  cursor: none;
}

  footer {
    font-size: 16px;
  }

}


/* Estilos para dispositivos iPad Pro de 10.5 pulgadas y similares */
@media only screen and (min-width: 805px) and (max-width: 1120px) {

  #contenedor {
    width: 95%;
  }

  .texto-destacados {
    width: 90%;
  }
  
    .foto {
    float: none;
    margin-top: .3em;
    width: 88%;
    cursor: none;
  }

}


/*----------------- FIN Breakpoints -------------------*/

