html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #ffffff;
  background-color: #151457;
}

.logo {
  height: 70px;
}

.anchor-offset {
  display: block;
  height: 120px;
  margin-top: -80px;
  visibility: hidden;
}

header {
  background-image: url('imagenes/casas1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: #151457;
  color: white;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #109c25;
  height: 80px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

nav {
  display: flex;
  gap: 1rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    flex-direction: column;
    background-color: rgba(21, 20, 87, 0.95);
    border: 1px solid #109c25;
    border-radius: 8px;
    padding: 1rem;
    position: absolute;
    top: 100%;
    right: 1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    text-align: right;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  nav.active {
    opacity: 1;
    max-height: 500px;
  }

  section {
    background-blend-mode: screen;
  }
}

main section {
  position: relative;
  height: 100vh;
  padding: 5rem 2rem 2rem;
  color: white;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  background-color: #151457;
}

#inicio {
  background-image:
    linear-gradient(135deg, rgba(16,156,37,0.65), rgba(16,156,37,0.65)),
    url('imagenes/casas1.jpg');
}

.titulo-principal {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.subtitulo {
  font-size: 1.1rem;
  font-weight: 400;
}

#servicios {
  background-image:
    linear-gradient(135deg, rgba(16,10,107,0.65), rgba(16,156,37,0.65)),
    url('imagenes/gente_limpiando.png');
}

#nosotros {
  background-image:
    linear-gradient(135deg, rgba(16,156,37,0.65), rgba(16,156,37,0.65)),
    url('imagenes/gente_abrazada.png');
}

#contacto {
  background-image:
    linear-gradient(135deg, rgba(16,10,107,0.65), rgba(16,156,37,0.65)),
    url('imagenes/casas_colores.jpg');
  padding-bottom: 10rem;
}

.servicios ul {
  list-style: none;
  padding: 0;
}

.servicios li {
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 5px solid #109c25;
  color: white;
}

form {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #ffffff;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background-color: #109c25;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background-color: #151457;
  color: white;
  text-align: center;
  padding: 1rem;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-button img {
  width: 60px;
  height: 60px;
}
