/* ###############################   BODY DE LA WEB    #########################*/

body {
  margin: 0 auto;
  padding: 0;

  font-size: 16px;
  line-height: 1.5;
  font-family: Arial, sans-serif;
}




/* ###############################   ENCABEZADO DE LA WEB    #########################*/

/* Estilo para el header */
header {
  display: flex;
  align-items: center;
  
  position: sticky;
  top: 0;
  
  background-color: #333;
  color: #fff;
}

/* Estilo para el logo */
.logo {
  padding: 10px;
  display: inline-block;
  
  font-size: 24px;
  font-weight: bold;
}

.logo a{
  color: #fff;
  text-decoration: none;
}
/* Estilo para el menú */
nav {
  display: inline-block;
}

/* Estilo para los enlaces del menú */
nav a {
  padding: 10px 20px;
  display: inline-block;
  
  color: #fff;
  border-radius: 10px;
  transition: .5s ease;
  text-decoration: none;
}

nav a:hover{
  background-color: #fff;
  color: #333;

  border-radius: 10px;
  transition: .5s ease;
}
/* Estilo para el div contenedor del botón y el desplegable */
.desplegable {
  width: 65%;
  position: relative;
  
  display: flex;
  justify-content: right;
}

/* Estilo para el botón de usuario */
.boton {
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  
  cursor: pointer;

  background-image: url(../img/usuario.png);
  background-repeat: no-repeat;
  background-size: contain;
}

/* Estilo para el contenido del desplegable */
.desplegable-content {
  display: none;
  position: absolute;

  background-color: #f9f9f9ff;

  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Estilo para los enlaces del desplegable */
.desplegable-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Estilo para los enlaces del desplegable cuando se hace hover sobre ellos */
.desplegable-content a:hover {
  background-color: #f3f3f3ff;
}

/* Estilo para mostrar el contenido del desplegable cuando se hace hover sobre el botón */
.boton-contenedor:hover .desplegable-content {
  display: block;
  right: 20px;
}

/* Estilo de los botones para indicar en que página estamos*/

.index{
  background-color: #fff;
  color: #333;

  border-radius: 10px;
}

.ubicacion{
  background-color: #fff;
  color: #333;

  border-radius: 10px;
}

.contacto{
  background-color: #fff;
  color: #333;

  border-radius: 10px;
}

.galeria{
  background-color: #fff;
  color: #333;

  border-radius: 10px;
}



/* ###############################   CONTENIDO DE LA WEB    #########################*/

h1 {
  margin: 0;
  font-size: 36px;
}
.main {
  padding: 20px;
}

.seccion {
  margin-bottom: 30px;
}

h2 {
  font-size: 24px;
}


/* ###############################   PIE DE LA WEB    #########################*/

footer {
  padding: 10px;
  width: 100%;
  
  position: fixed;
  bottom: 0;
  
  background-color: #333;
  color: #fff;
  text-align: center;
}

/* Estilo del botón para volver al Top de la página*/
footer div a{
  margin-top: -25px;
  display: inline-block;
  padding: 16px;
  
  background-color: #333;

  position: absolute;
  right: 5%;

  border-radius: 5px;
  cursor: pointer;

  background-image: url(../img/parriba.png);
  background-repeat: no-repeat;
  background-size: contain;
}




/* ###############################   CONTENIDO DE LA GALERÍA    #########################*/
.contenedor-galeria{
  padding: 20px;
  text-align: center;
}

.gallery {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.item {
  margin: 15px;
  position: relative;
}

/*Asignamos un tamaño a las imágenes, y una transición*/
.item img {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  transition: 0.3s ease;
}

/*Agrandamos la imagen al pasar el cursor sobre ella*/
.item:hover img {
  transform: scale(1.2);
}

/* ###############################   CONTENIDO DE UBICACIÓN    #########################*/

.contenedor-ubicacion{
  padding: 20px;

  text-align: center;
}

.contenedor-mapa{
  margin-top: 30px;
  display: flex;

  justify-content: center;
}

.contenedor-mapa iframe{
  display: block;
  border: 3px solid #333;
  border-radius: 5px;

  width: 600px;
  height: 450px;
}


/* ###############################   CONTENIDO DE CONTACTO    #########################*/
.contenedor-formulario{
  padding: 20px;
}

.contenedor-formulario h1{
  text-align: center;
}

.formulario{
  margin-top: 30px;
  display: flex;

  justify-content: center;
}

form {
  width: 50%;
  padding: 20px;
  margin: 0 auto;

  border: 3px solid #333;
  border-radius: 5px;
}

label, input, textarea {
  display: block;
  margin-bottom: 10px;
}

label {
  font-weight: bold;
}

input[type="text"], textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

/* ###############################   CONTENIDO DE ERROR    #########################*/

.proximamente{
  display: flex;
  margin: 200px;

  justify-content: center;
}