/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* NAV */
.navbar {
  background-color: #4cb5a6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.navbar img {
  height: 50px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.call-button {
  background-color: #6fd1bd;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

/* HERO */
.hero {
  display: flex;
  background-color: #2fa59a;
  color: white;
  padding: 40px;
  gap: 20px;
}
.hero-img {
  max-width: 400px;
  border-radius: 10px;
}
.hero-text {
  flex: 1;
}

/* SERVICES */
.services {
  padding: 40px;
  background-color: white;
  text-align: center;
}
.services h2 {
  color: #237a70;
  margin-bottom: 10px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.service-item h3 {
  color: #2fa59a;
  margin-top: 10px;
}
.service-item p {
  font-size: 14px;
}

/* INFO BOX */
.info-box {
  background-color: #93d6ca;
  padding: 30px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}
.info-columns {
  display: flex;
  justify-content: space-between;
}
.info-columns div {
  max-width: 45%;
}
.info-columns h4 {
  color: #145650;
}

/* FOOTER */
footer {
  background-color: #2a6d66;
  color: white;
  text-align: center;
  padding: 20px;
}
.social-icons img {
  height: 24px;
  margin: 0 10px;
  vertical-align: middle;
}


/* ================== MOBILE MENU ================== */
.nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ================== CONTACTO ================== */
.contact-section {
  background-color: #daf2ee;
  padding: 40px 20px;
  text-align: center;
}
.contact-section h2 {
  color: #145650;
  margin-bottom: 20px;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.contact-form button {
  background-color: #4cb5a6;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #379383;
}

/* ================== WHATSAPP BOTÓN ================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.whatsapp-float img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover img {
  transform: scale(1.1);
}

/* Google Maps */
.map-container {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Botón llamada flotante */
.call-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
}
.call-float img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}
.call-float:hover img {
  transform: scale(1.1);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  background-color: #4cb5a6;
  color: white;
  padding: 15px;
  width: 100%;
  text-align: center;
  z-index: 1000;
  display: none;
}
.cookie-banner button {
  background-color: white;
  color: #4cb5a6;
  border: none;
  margin-left: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-switch {
  margin-left: 20px;
  font-weight: bold;
}
.lang-switch a {
  color: white;
  text-decoration: none;
  padding: 0 5px;
}
.lang-switch a:hover {
  text-decoration: underline;
}


/* Responsive styles */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: #4cb5a6;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .info-columns {
    flex-direction: column;
    gap: 20px;
  }

  .info-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .call-button {
    margin-top: 10px;
  }
}

/* ================== ANIMACIONES ================== */
.service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links li a {
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #eeeeee;
}
