* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;


}

/* Preloader - pantalla completa */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ✅ Centrado horizontal */
  text-align: center;
}

.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}


.logo {
  width: 100px;
  margin-bottom: 20px;
}



.spinner {
  border: 6px solid #ccc;
  border-top: 6px solid #1c9b5b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */
header {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;

}

.logo {
  width: 300px;
  height: auto;
  margin-top: 50px;
}

/* Nav principal */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  position: relative;
}

nav ul li {
  position: relative;
  /* Necesario para posicionar bien el dropdown */
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 10px;
  display: block;

}

nav ul li a:hover {
  color: #2caf7d;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  color: #000000;
  padding: 10px 15px;
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #ffffff;
}

/* Mostrar menú al hacer hover en la opción padre */
li.dropdown:hover .dropdown-menu {
  display: block;
}

#whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: grab;
  z-index: 10000;
  user-select: none;
}

#whatsapp-bubble img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

#scrollToTop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #2caf7d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}

#scrollToTop:hover {
  background-color: #1e7c59;
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
  stroke: white;
}



.asesor-section {
  padding: 40px;
  max-width: 700px;
  margin: auto;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2f4f4f;
  /* tono oscuro para textos */
  background-color: #f9faf9;
  /* fondo muy suave para el contenedor */
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(56, 111, 99, 0.15);
}

h2 {
  color: #386f63;
  /* verde principal */
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 2em;
}

.botones-contacto {
  margin-bottom: 25px;
}

.contact-button {
  display: inline-block;
  margin: 10px;
  padding: 14px 28px;
  background-color: #386f63;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(56, 111, 99, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-button:hover {
  background-color: #2b544b;
  box-shadow: 0 6px 12px rgba(43, 84, 75, 0.6);
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  background-color: white;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(56, 111, 99, 0.1);
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 12px 15px;
  font-size: 1em;
  border: 1.8px solid #a6c6ba;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  color: #2f4f4f;
  background-color: #f4f7f6;
  resize: vertical;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  border-color: #386f63;
  outline: none;
  background-color: #e9f1ee;
  box-shadow: 0 0 8px rgba(56, 111, 99, 0.3);
}

.enviar-button {
  padding: 14px;
  background-color: #386f63;
  color: white;
  border: none;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(56, 111, 99, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.enviar-button:hover {
  background-color: #2b544b;
  box-shadow: 0 8px 16px rgba(43, 84, 75, 0.6);
}

.footer-section p {
  font-size: 1.1em;
  margin-top: 15px;
  color: #ffffff;
  font-weight: 500;
}


.main-footer {
  background-color: #386f63;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 60px;
}

.footer-section {
  flex: 1 1 300px;
  margin: 20px;
}

.footer-section h3 {
  color: #6dd3bd;
  margin-bottom: 2px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.2);
}


.footer-bottom {
  text-align: center;
  padding-top: 0px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #ccc;
}

@media (max-width: 768px) {

  .hamburger {
    display: block;
    font-size: 30px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    margin-left: auto;
  }


  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu.show {
    display: flex;
  }

  /* Dropdown en móviles */
  .dropdown-menu {
    position: static;
    display: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  li.dropdown>a::after {
    content: " ▼";
    font-size: 12px;
  }



  footer {
    font-size: 0.9em;
    padding: 15px;
    gap: 10px;

  }

  
}