* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: #1A1A1A;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 👈 clave */
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 20px 20px; /* más arriba */
}

/* LOGO */

.logo {
  margin-top: 10px; /* controla el espacio exacto */
  margin-left: 29px;
}

.logo img {
  width: 400px; 
  height: auto;
}

/* TEXTO */

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  max-width: 600px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out forwards;
  animation-delay: 0.2s;
}

p {
  font-size: 1.1rem;
  color: #777;
  max-width: 500px;
}

/* ANIMACIÓN */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BOTÓN */

.btn {
  margin-top: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: white;
  background: #FF9E8C;
  transition: 0.25s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* WHATSAPP */

.whatsapp {
  margin-top: 20px;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* OVERLAY (MODAL) */

.overlay {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);

  z-index: 100;
}

.oculto {
  display: none;
}

/* FORMULARIO */

.formulario {
  width: 90%;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;

  background: white;

  border-radius: 18px;
  padding: 40px 24px 24px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* INPUTS */

input, textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #eee;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #7ED1B2;
}

textarea {
  min-height: 90px;
  resize: none;
}

/* BOTÓN FORM */

.formulario .btn {
  margin-top: 10px;
  padding: 12px;
  font-size: 0.95rem;
}

.cerrar {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaa;
  transition: 0.2s;
  line-height: 1; /* 🔥 importante */
}

.cerrar:hover {
  color: #FF9E8C;
}

.overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay:not(.oculto) {
  opacity: 1;
}

/* NAVBAR */

.navbar {
  width: 100%;
  padding: 20px 30px; 
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* MENÚ */

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: #777;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.25s ease;
  position: relative;
}

/* efecto elegante hover */



.nav-menu a:hover {
  color: #FF9E8C;
}



/* BOTÓN MÓVIL */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #777;
  cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  /* NAVBAR */
  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    font-size: 1.6rem;
    z-index: 101;
  }

  /* MENÚ DESPLEGABLE */
  .nav-menu {
    position: absolute;
    top: 60px;
    right: 16px;

    flex-direction: column;
    gap: 16px;

    background: #ffffff;
    padding: 20px;
    border-radius: 14px;

    width: 200px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);

    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 1rem;
    color: #333;
  }

.hero {
  min-height: calc(100vh - 70px);
  justify-content: flex-start; /* mejor que center */
  padding: 10px 20px 20px;
  gap: 14px;
}



  /* LOGO */
  .logo {
    margin-top: 0;
  }

  .logo img {
    width: 100%;
    max-width: 240px;
  }

  /* TEXTO */
  h1 {
    font-size: 1.5rem;
    max-width: 90%;
  }

  p {
    font-size: 1.05rem;
    max-width: 90%;
  }

  /* BOTÓN */
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* WHATSAPP */
  .whatsapp {
    margin-top: 20px;
  }

}

.hero {
  padding: 60px 20px 60px;
}

.formulario .btn {
  border: none;
  outline: none;
  box-shadow: 0 4px 12px rgba(255, 158, 140, 0.3);
}

.nav-menu a.active {
  color: #7ED1B2; /* 🔥 tu verde */
}




