* {
  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;
}

/* Escondemos el botón hamburguesa por defecto */
.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 {
  background-color: #ffffff;
  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;
}



.success-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.success-section h2 {
  text-align: center;
  margin-bottom: 5px;
  font-size: 2em;
  color: #2c3e50;
}

.success-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.case-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 350px;
  margin: 20px auto;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  height: 160px
}


.case-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 8px;
  color: #2b614c;

}

.case-desc {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

#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;
}



.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;

  }
}