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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
  text-align: center;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  border-bottom: 1px solid #eee;
  position: relative;
}

.logo {
  font-size: 18px;
  font-weight: bold;
}

/* Botón Hamburguesa */
.menu-toggle {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  color: #333;
}

.menu {
  display: flex;
  gap: 20px;
  font-size: 14px;
  align-items: center;
  transition: all 0.3s ease;
}

.menu a {
  text-decoration: none;
  color: black;
  font-weight: 300;
  position: relative;
  border-bottom: 2px solid gray;
  transition: all 0.3s ease;
}

.menu a:hover,
.menu a:focus {
  color: #555;
  border-bottom: 2px solid black;
}

.contenido {
  margin-top: 50px;
  padding: 0 10%;
}

.contenido h1 {
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 15px;
}

.contenido h2 {
  font-weight: 300;
  font-size: 20px;
  margin-bottom: 40px;
}

.imagen img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}


.container.py-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 5%;
  background-color: #fff;
}

.galeria-item {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-item:hover {
  transform: scale(1.02);
}

footer p {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;

}

/* Pagina contacto */

/* Imagen de contacto */


.Hero {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.Hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Contenedor formulario */
.formulario-contacto {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.formulario-contacto h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #333;
}

/* Campos del formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 0, 95rem;
  margin-bottom: 5px;
  color: #555;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus textarea:focus {
  border-color: #14141a;
}

/* Botón enviar */
button {
  align-self: flex-end;
  background: #555;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #14141a;
}

/* MEDIA QUERIES */

/* version para móviles */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 70px;
    right: 5%;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  /* Menú desplegado */
  .menu.menu-activo {
    display: flex;
  }

  .contenido h1 {
    font-size: 22px;
  }

  .contenido h2 {
    font-size: 16px;
  }

  .galeria {
    padding: 20px 5%;
    gap: 15px;
  }

}

.modal-text h4 {
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-text p {
  font-size: 15px;
  line-height: 1.4;
}

/* Tablets */
@media (max-width: 992px) {
  .contenido {
    padding: 0 5%;
  }

  .contenido h1 {
    font-size: 24px;
  }

  .contenido h2 {
    font-size: 18px;
  }
}