
body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background-color: #f4f4f4;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img {
  height: 50px;
}

.nav-menu {
  position: relative;
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px;
  display: block;
  transition: background-color 0.2s ease;
}

.menu li a:hover,
.submenu li a:hover {
  background-color: #f0f0f0;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  z-index: 999;
}

.menu li:hover > .submenu {
  display: block;
  opacity: 1;
  z-index: 1000;
}

.submenu li a {
  padding: 10px 20px;
  color: #444;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.submenu .submenu {
  left: 100%;
  top: 0;
}

.submenu .submenu.adjust-left {
  left: auto;
  right: 100%;
}

.placeholder-content {
  padding: 100px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    display: none;
    background-color: white;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu.show {
    display: flex;
    opacity: 1;
  }

  .hamburger {
    display: block;
    color: #333;
  }

  .menu li:hover > .submenu {
    position: relative;
    top: auto;
    left: auto;
    box-shadow: none;
  }

  .submenu {
    position: relative;
    display: none;
    opacity: 1;
    box-shadow: none;
    padding-left: 15px;
  }

  .menu li.open > .submenu {
    display: block;
  }

  .submenu .submenu {
    left: auto;
    right: auto;
  }

  /* 🔧 Alineación izquierda en mobile */
  .submenu {
    left: auto !important;
    right: 0;
  }

  .submenu .submenu {
    left: auto !important;
    right: 15px;
  }


  .menu li a,
  .submenu li a {
  white-space: normal !important;
  word-wrap: break-word;
  max-width: 100%;
  }

  .submenu {
  width: 100%;
  max-width: 260px;
  }


}

.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
}
.footer-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-menu > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
}
.footer-menu .menu-title {
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}
.footer-menu .submenu-title {
  font-weight: 500;
  margin-top: 10px;
  padding-left: 15px;
  display: inline-block;
}
.footer-menu ul ul ul li {
  padding-left: 30px;
  margin-bottom: 4px;
}
.footer-menu ul ul li {
  padding-left: 15px;
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .footer-menu > ul {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-menu .menu-title,
.footer-menu .submenu-title,
.footer-menu ul ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-menu ul ul li a:hover,
.footer-menu .menu-title:hover,
.footer-menu .submenu-title:hover {
  text-decoration: underline;
}

.footer {
  background-color: #000;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  padding: 40px 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 800;
}

.footer-section h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.productos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.productos-grid > div {
  min-width: 180px;
  flex: 1;
}

.otros ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contacto p {
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .productos-grid {
    flex-direction: column;
  }

  .otros ul {
    flex-direction: column;
    gap: 10px;
  }
}

.hero {
  position: relative;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-overlay {
  
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 90%;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #1ebd5d;
}

.whatsapp-icon {
  height: 20px;
  width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 20vh;
    padding: 30px 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}


.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.float-btn img,
.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.float-btn.whatsapp {
  background-color: #25d366;
}

.float-btn.whatsapp img {
  filter: none;
}

.float-btn.email {
  background-color: #0072c6;
}

.float-btn.email img {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .nav-menu { position: relative; z-index: 1100; } /* ensure stacking context */
  .menu { z-index: 1200; }                         /* menu above page content */
}


/* Never let dropdowns exceed the viewport */
.submenu {
  max-width: calc(100vw - 24px);
  overflow-wrap: anywhere;
}

/* Second-level+ default (to the right) is already set as left:100%. */
/* When space runs out, flip to the left side of its parent */
.submenu .submenu.adjust-left {
  left: auto;
  right: 100%;
}


/* ===== Sección: Sobre Nosotros ===== */
.about {
  width: min(1200px, 90%);
  margin: clamp(24px, 5vw, 48px) auto;
}

.about h2{
  font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.15;
  letter-spacing: .2px;
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

.about-grid{
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(12px, 2vw, 24px);
  align-items: stretch;             /* ambas columnas igualan altura de fila */
}

.about-text{
  font-size: clamp(13px, 1.15vw, 14.5px);
  line-height: 1.55;
  white-space: pre-line;
}

/* --- Columna de imagen: el <img> no influye en la altura de fila --- */
.about-media{
  margin: 0;                         /* quita margen de <figure> */
  padding: 0;
  position: relative;                /* contenedor para el hijo absoluto */
  overflow: hidden;
  min-height: 0;
}

/* La imagen se ajusta EXACTO a la altura del texto */
.about-media img{
  position: absolute;                /* no participa en el sizing de la fila */
  inset: 0;                          /* top/right/bottom/left: 0 */
  height: 100%;                      /* iguala la altura del <figure> (la de la fila) */
  width: auto;                       /* mantiene proporción */
  max-width: 100%;
  object-fit: contain;               /* no recorta */
  display: block;
}

/* Responsive: apila y deja que la imagen fluya normalmente */
@media (max-width: 900px){
  .about{
    width: 100%;
    padding-inline: 16px;
  }
  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-media{
    order: 2;
    position: relative;
  }
  .about-media img{
    position: static;                /* vuelve a flujo normal */
    width: 100%;
    height: auto;                    /* alto según su proporción */
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px){
  .about h2{ font-size: 22px; }
  .about-text{ font-size: 14px; }
}
/* ⬆️ Asegura que los dropdowns siempre queden arriba */
.main-header { z-index: 4000; }                 /* ya tenía 1000 */
.nav-menu { position: relative; z-index: 4100; }
.menu { z-index: 4200; }
.submenu { z-index: 4300; }
.menu li:hover > .submenu { z-index: 4300; }     /* también en hover */

/* === Fix robusto desktop: 3er nivel abre hacia la IZQUIERDA y sin huecos === */
@media (min-width: 769px){
  /* asegurar superposición por encima del contenido */
  .main-header { z-index: 4000; }
  .nav-menu    { position: relative; z-index: 4100; }
  .menu        { z-index: 4200; }
  .submenu     { z-index: 4300; overflow: visible; }

  /* forzar TODOS los submenús de 3er nivel a abrir a la izquierda */
  .submenu .submenu{
    left: auto !important;
    right: 100% !important;  /* ← abre hacia la izquierda */
    top: 0;
    margin-right: -10px;     /* solape para evitar hueco de hover */
  }

  /* puente anti “hueco” entre 2º y 3º nivel */
  .submenu > li{ position: relative; }
  .submenu > li::before{
    content:"";
    position:absolute;
    top:0; bottom:0;
    left:-10px;              /* 10px de buffer hacia la izquierda */
    width:10px;              /* mantiene el :hover aunque el mouse cruce el borde */
  }
}
 /* CONTACTO */

 .contact-info{
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
  text-align: center;
}
.contact-info h2{ font-weight: 800; margin-bottom: 8px; }
.contact-info p{ margin: 4px 0; font-size: 1rem; }

/* ===== Contacto (layout robusto con GRID) ===== */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr;     /* mobile: apilado */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Desktop: 50/50 exacto */
@media (min-width: 900px){
  .contact-layout{
    grid-template-columns: 1fr 1fr;  /* 50% + 50% */
    align-items: start;
  }
}

/* Columna de la imagen: tamaño contenido */
.image-side{
  min-height: 280px;               /* base */
}

.image-side img{
  width: 100%;
  height: auto;                    /* evita ocupar “toda la columna” en alto */    
  object-fit: cover;               /* recorte agradable si la imagen es muy alta */
  border-radius: 12px;
  display: block;
}

