:root {
  --primary-color: #005588;
  --secondary-color: #0077bb;
  --accent-color: #f0f0f0;
  --green-hover: #4caf50; /* <<< Agregado para el hover */
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a1a;
  --card-bg: #f9f9f9;
  --border-color: #ddd;
  --transition-speed: 0.3s;
  --neo-latin-font: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--neo-latin-font);
}

body {
  line-height: 1.6;
  color: var(--text-color);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0.5rem 0;
  background-color: var(--accent-color);

  overflow: hidden;
  max-width: 200px;
  width: auto;
  height: auto;
  margin-right: 1rem;
  margin-bottom: 1%;
}

.logo img {
  width: 100%;
  height: auto;
  border-radius: contain;
  object-fit: block;
}

.menu-toggle {
  z-index: 1000;
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 24px;
  cursor: pointer;
}

.menu {
  display: flex;
  list-style: none;
  flex-grow: 1;
  justify-content: center;
}

.menu li {
  position: relative;
  margin-left: 1.5rem;
}

.menu a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-speed);
  padding: 0.5rem 0;
  display: block;
}

.menu a:hover {
  color: var(--green-hover);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--accent-color);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
}

.dropdown-content a {
  color: var(--primary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--green-hover);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.language-selector {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background-color: var(--text-color) !important;
  color: white !important;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.lang-btn:hover,
.lang-btn.active {
  background-color: var(--green-hover);
  color: var(--accent-color);
}

.hero-section {
  min-height: 100vh; /* 通用设置 */
}

@supports (-webkit-touch-callout: none) {
  /* 仅针对 iOS Safari */
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

@media (max-width: 798px) {
  .hero-section {
    min-height: calc(100vh - 89px); /* 调整高度以适应导航栏 */
  }

  .menu-toggle {
    display: block;
    margin: 0;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--green-hover);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-speed);
    z-index: 1000;
    padding-top: 60px;
  }

  nav.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw; /* ✅ Forzamos que no exceda el viewport */
    height: 100vh;
    background-color: var(--accent-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* ✅ Evita que se desborde horizontalmente */
  }

  .menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding: 1rem;
  }

  .menu li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
  }
}

/* ===================== ESTILOS DESKTOP PARA DROPDOWNS ===================== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--accent-color);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: var(--primary-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.language-selector {
  margin-top: 1rem;
  justify-content: flex-start;
  width: 100%;
  padding: 0 1rem;
}

@media (max-width: 838px) {
  header {
    padding: 0.5rem; /* 减小padding以适应小屏幕 */
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-speed);
    z-index: 1000;
    padding-top: 60px;
  }

  nav.active {
    right: 0;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding: 1rem;
  }

  .menu li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
    opacity: 0;
  }

  .dropdown.active .dropdown-content {
    display: block;
    max-height: 500px;
    opacity: 1;
  }
}
html,
body {
  max-width: 100%;
  overflow-x: hidden; /* ✅ Previene scroll horizontal en cualquier momento */
}
.lang-btn {
  background: none;
  border: 1px solid var(--light-text);
  color: var(--light-text);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.lang-btn:hover,
.lang-btn.active {
  background-color: var(--light-text);
  color: var(--primary-color);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-speed);
}

.whatsapp-btn a:hover {
  transform: scale(1.1);
}

/* Section Styles */

h5 {
  font-weight: bold !important;
  color: var(--primary-color) !important;
  font-size: 1.2rem !important; /* opcional */
  display: inline !important;
}

h6 {
  font-weight: bold;
  font-size: 1.3rem; /* opcional */
  color: var(--primary-color);
}

 .about-text strong {
  color: var(--green-hover);
  font-weight: bold;
}
.about-text h3 {
  font-size: 1.8rem ;
  margin-bottom: 15px;
  color: var(--primary-color);
}


.about-text p {
  font-size: 1.2rem; /* o 1.5rem si querés más grande aún */
  line-height: 2; /* mejora la legibilidad */
  color:var(--text-color);
}


.about-item {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.about-item.reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img {
  width: 100%;
  max-height: 250px; /* Ajustá este valor según cómo quieras que se vean */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Fin fotos intercaladas Styles */

.section {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

.hero-image,
.about-image {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 2rem;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh; /* Ajusta la altura del hero a la altura total de la ventana */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video se ajuste al contenedor */
  z-index: -1; /* Coloca el video detrás del contenido */
}

.hero-content {
  position: relative;
  z-index: 1; /* Asegura que el contenido esté por encima del video */
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px; /* Añade un padding para evitar que el contenido se pegue a los bordes */
}

.hero-overlay {
  background: rgba(242, 238, 238, 0.5); /* Fondo translúcido oscuro */
  padding: 20px;
  border-radius: 10px; /* Opcional: redondea las esquinas del fondo */
  width: 80%; /* Ancho inicial */
  margin: auto;
  max-width: 600px; /* Ancho máximo para evitar que sea demasiado grande en pantallas grandes */
  min-height: 150px; /* 👈 Esto lo vuelve más rectangular */
  transition: width 0.5s ease; /* Transición suave al cambiar el tamaño */
}
.hero-logo {
  width: 100%;
  max-width: 500px; /* Cambiá este valor para hacerlo más grande o más chico */
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  .hero-overlay {
    width: 90%; /* Ajusta el ancho para pantallas más pequeñas */
    padding: 15px; /* Ajusta el padding para pantallas más pequeñas */
  }
}

/* Media queries para pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero-overlay {
    width: 95%; /* Ajusta el ancho para pantallas muy pequeñas */
    padding: 10px; /* Ajusta el padding para pantallas muy pequeñas */
  }
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* About Section */
/* .about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-content h2 {
  text-align: left;
  margin-top: 0;
  font-size: 2.5rem; 
}

.about-content p {
  font-size: 1.2rem; 
  line-height: 1.8; 
  margin-bottom: 20px; 
}

.about-content h3 {
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--green-hover); 
}

.about-content ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin-bottom: 20px;
}

.about-content ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
} */

/* Estructura general */
.pilares-home-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

.pilares-home-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.pilares-home-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.pilares-home-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Botón con estética moderna */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: #007b5e;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: #005f48;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Imagen centrada y responsive */
.pilares-home-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.pilares-home-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .pilares-home-contenido {
    flex-direction: column;
    text-align: center;
  }

  .pilares-home-content {
    text-align: center;
  }

  .cta-button {
    margin-top: 20px;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en escritorio */
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px; /* Usamos el más redondeado */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1); /* Usamos el más notorio */
  text-align: center;
  transition: transform var(--transition-speed);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-12px); /* Tomamos el desplazamiento mayor */
}

.service-icon {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.8rem; /* Tomamos el tamaño más grande */
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Responsive para móviles y tabletas */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 columna en mobile */
  }
}


/* Products Section */
.product-category {
  margin-top: 40px;
}

.product-category h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    1fr
  ); /* Puedes ajustar el número de columnas si es necesario */
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--card-bg);
  padding: 30px; /* Aumenta el padding */
  border-radius: 12px; /* Aumenta el radio de la esquina */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1); /* Aumenta la sombra */
  text-align: center;
  position: relative;
  transition: transform var(--transition-speed);
  overflow: hidden;
  height: 400px; /* Ajusta la altura de las tarjetas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-12px); /* Aumenta el efecto de elevación */
}

.product-card:hover .product-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-card h4 {
  font-size: 1.8rem; /* Aumenta el tamaño del título del producto */
  margin-bottom: 20px;
  color: var(--primary-color);
}

.product-card h5 {
  font-size: 1.5rem; /* Aumenta el tamaño del subtítulo del producto */
  margin-bottom: 20px;
  color: var(--primary-color);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 85, 136, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px; /* Aumenta el padding */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.product-overlay h4 {
  margin-bottom: 20px;
  color: white;
  font-size: 1.8rem; /* Aumenta el tamaño del título en el overlay */
}

.product-overlay p {
  text-align: center;
  font-size: 1.1rem; /* Aumenta el tamaño del texto en el overlay */
}

/* Ajusta el tamaño de las imágenes de fondo */
.product-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Map Container */
.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.contact-info-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform var(--transition-speed);
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 40px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.dropdown-card {
  position: relative;
}

.nested-products {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
  position: relative;
  z-index: 5;
}

.nested-products.active {
  display: grid;
}

.nested-products .product-card {
  padding: 10px;
}

.nested-products .product-card h5 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.nested-products .product-overlay {
  padding: 10px;
}

.nested-products .product-overlay h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.nested-products .product-overlay p {
  font-size: 0.8rem;
}

.expand-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 14px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 10;
}

.expand-btn:hover {
  background-color: var(--secondary-color);
}

.expand-btn.active {
  background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  align-items: center;
}

.footer-logo-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.footer-logo-right img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--light-text);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 150px; /* Ajusta el tamaño de la imagen del logo */
  margin-bottom: 15px;
}

/* Logo alineado a la derecha y con formato redondo */
.footer-logo-right {
  justify-content: flex-end;
}

.footer-logo-right img {
  border-radius: 50%; /* Hace que la imagen sea redonda */
  border: 2px solid var(--light-text); /* Agrega un borde blanco */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Agrega una sombra ligera */
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after,
.footer-social h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-logo,
  .footer-links,
  .footer-logo-right {
    justify-content: center;
  }

  .footer-logo-right {
    order: 3;
  }
}

/* Enhanced Responsive Styles */
@media (max-width: 838px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 0;
  }

  .menu-toggle {
    margin: 0;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--accent-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-speed);
    z-index: 1000;
    padding-top: 60px;
  }

  nav.active {
    right: 0;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding: 1rem;
  }

  .menu li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
    opacity: 0;
  }

  .dropdown.active .dropdown-content {
    display: block;
    max-height: 500px;
    opacity: 1;
  }

  .dropdown > a::after {
    content: "+";
    margin-left: 5px;
  }

  .dropdown.active > a::after {
    content: "-";
  }

  .language-selector {
    margin-top: 1rem;
    justify-content: flex-start;
    width: 100%;
    padding: 0 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-container {
    flex-direction: column;
  }

  .about-image,
  .about-content {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-container {
    flex-direction: column;
  }

  .process-image,
  .process-steps {
    width: 100%;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 300px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-card {
    padding: 40px;
    font-size: 1.1rem;
  }

  .service-card h3 {
    font-size: 1.8rem;
  }

  .service-icon {
    font-size: 48px;
  }

  .service-image {
    height: 240px;
  }
}

@media (max-width: 768px) {
  nav ul.menu {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .dropdown-content {
    position: static;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}
.menu-toggle i {
  color: var(--primary-color); /* o el color que quieras que tenga el ícono */
  font-size: 1.5rem;
  z-index: 1001; /* asegurate que esté arriba del nav */
  position: relative;
}

@media (min-width: 839px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
  }

  .menu {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    list-style: none;
  }

  .menu li {
    margin: 0 1rem;
  }

  .language-selector.desktop-lang {
    display: flex;
    gap: 0.5rem;
  }

  .language-selector {
    margin-top: 0;
    justify-content: flex-end;
    padding: 0;
    width: auto;
  }
}

/* Modern Carousel Style */
.carousel-section {
  width: 100%;
  overflow: hidden;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #f0f2f5, #d9e2ec);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.carousel-side img {
  width: 100px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: blur(1px);
}

.carousel-side img:hover {
  transform: scale(1.08);
  opacity: 0.9;
  filter: blur(0);
}

.carousel-main {
  position: relative;
  width: 720px;
  height: 440px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.left {
  left: 15px;
}

.carousel-btn.right {
  right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-main {
    width: 100%;
    height: 280px;
  }

  .carousel-side {
    display: none;
  }

  .carousel-section {
    padding: 20px 10px;
  }
}



/*Pilares*/
#pilares-home.sectiona {
    padding: 60px 20px;
    background-color: #fff;
  }
  
  
  .pilares-home-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .pilares-home-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .pilares-home-header p {
    color: var(--text-color);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: bold;
  }
  
  .pilares-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .pilar-item {
    text-align: center;
  }
  
  .pilar-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
  }
  
  .pilar-item p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
  }
  
  /* Responsive grid */
  @media (min-width: 768px) {
    .pilares-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .pilares-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }







