  #mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    cursor: pointer;
  }
  #mobile-full-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
  }
  #mobile-full-menu.open {
    display: flex !important;
    position: fixed;
    top: 60px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100% - 60px);
    background: #ffffffe3;
    z-index: 10000;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow-y: auto;
    text-align: center;
  }
  #mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    z-index: 9980;
    transition: opacity 0.3s ease-in-out;
  }
  body.menu-abierto #mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
.header-nav ul li a:hover {
    color: #0073aa;
}
#menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
}
.steps-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0px;
    background:gray;
}
.intro {
    flex: 1 1 23%;
    background: #ffffff!important;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.modal-title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
}
.bajada-simple {
    font-size: 1.2em;
    color: #666;
    line-height: 1.5;
    padding: 20px;
    margin: 0;
}
.step {
    flex: 1 1 23%;
    background: #f4f4f4;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step.reverse {
    background: #e9f9ff;
}
.step-number {
    background-color: #009FE3;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.step-content h3 {
    margin: 0;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}
.step-content p {
    font-size: 1em;
    line-height: 1.5;
    color: #444;
}
#wha-info-bar {
    width: 100%;
    background-color: #179617;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    color: white;
    font-size: 1em;
    font-weight: 500;
    padding: 10px 20px;
    box-sizing: border-box;
}
.info-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.guided-arrow {
    position: absolute;
    bottom: -60px; /* separada del paso */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: bounce 1.8s infinite;
    pointer-events: none;
}
.guided-arrow .arrow-icon {
    font-size: 36px;
    color: #0073AA;
    transform: rotate(90deg); /* dirección hacia abajo */
    margin-bottom: 6px;
    line-height: 1;
}
.guided-arrow .arrow-text {
    background-color: #009FE3;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.menu-item-link.active-modal-link {
    color: #009FE3 !important;
    transition: color 0.3s ease;
}
.focus-destacado {
    border: 6px solid #009FE3 !important;
    border-radius: 6px;
    animation: parpadeoBorde 1s ease-in-out 0s 3;
}
.cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    animation: pulse-cta 1.5s infinite;
    gap: 10px;
}
.cta-button {
    background-color: #009FE3;
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    animation: pulse-cta 1.5s infinite;
    width: 200px;
    text-align: center;
}
.cta-button:hover {
    background-color: #007ac1;
    animation: none;
}
.cta-container:hover .cta-icon {
    transform: scale(1.2);
    animation: none;
}
.steps-grid.steps-fabricacion {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0px;
}
#modal-fabricacion .intro.step .step-number {
    display: none;
}
#modal-fabricacion .intro.step {
    background-color: #fff;
    color: #555;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-direction: column;
}
#modal-fabricacion .intro.step h3 {
    font-size: 1.5rem;
    color: #333;
}
#modal-fabricacion .intro.step p {
    font-size: 1rem;
    line-height: 1.4;
    color: #888;
    max-width: 260px;
    margin-top: 10px;
}
#modal-fabricacion .step.reverse {
    background-color: #e9f8ff; /* mismo celeste que usaras en cómo comprar */
}
.material-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.material-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}
.material-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.modal-container {
    margin: 0 auto;
    box-sizing: content-box;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
}
.material-content-area {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  transition: all 0.3s ease;
}
.material-carousel {
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
}
.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  max-height:200px;
}
.box-card img {
  height: 100%;
  width: auto;
  max-height: 100%;
  object-fit: contain;
}
.box-card:hover img {
  transform: scale(1.2);
}
#modal-tipos-de-empaque .carousel-nav {
  background-color: #009FE3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
  position: relative!important;
}
.carousel-nav:hover {
  background-color: #005f8a;
}
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  gap: 0; /* quitamos el gap, lo manejamos internamente */
  max-height: 250px;
}
.box-label {
    position: static;
    margin-top: 8px;
    font-size: 1.2em;
    font-weight: 800;
    color: #111;
    text-align: center;
}
.carousel-inner {
  display: flex;
  flex: 1;
  transition: transform 0.3s ease;
  scroll-behavior: smooth;
  overflow-x: hidden; /* <--- en vez de auto */
  scrollbar-width: none;
  padding-inline: 10px; /* Espacio en extremos */
}
.carousel-inner::-webkit-scrollbar {
  display: none;
}
.material-selector-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #d7e9fb;
    padding: 0.5em 1em;
    font-weight: 600;
    color: #000000;
    border-radius: 20px;
}
.selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: center;
  margin: 0 auto; 
  flex: 1;
}
.close-modal:hover {
  color: #000;
}
.switch-label {
  margin-right: 0.5rem;
  font-weight: 500;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd; /* Gris claro cuando desactivado */
  transition: background-color 0.3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #555; /* Gris oscuro cuando desactivado */
  transition: transform 0.3s, background-color 0.3s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #fff; /* Fondo blanco cuando activado */
}
.switch input:checked + .slider:before {
  transform: translateX(26px); /* Mueve el punto a la derecha */
  background-color: #009fe3;  /* Celeste activado */
}
.box-card {
  flex: 0 0 25%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0; /* sin relleno lateral */
  margin: 0;  /* elimina espacio entre tarjetas */
  background-color: transparent;
  cursor: pointer;
}
#menu-modals-container {
  position: static !important;
  width: 100%;
  pointer-events: none;
}
.modal-wrapper {
  margin: 0 auto;
  background: #fff;
  max-width: 1400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #009fe3;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.close-modal:hover {
  background-color: #007ac1;
}
.menu-modal {
  position: static !important;
  display: none;
  width: 100%;
  padding: 0rem 1rem;
  background: transparent;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.menu-modal.open {
  display: block !important;
  position: relative !important;
  pointer-events: auto;
  min-height: 1px; 
  overflow: visible; 
  opacity: 1;
}
.menu-modal.open .modal-wrapper {
  display: block;
  width: 100%;
}
#modal-como-comprar .modal-wrapper {

  max-width: 1180px;

  margin-bottom: 24px;

  overflow: hidden;

  border: 1px solid rgba(9, 123, 9, 0.14);

  border-radius: 8px;

  background: #fbfaf5;

  box-shadow: 0 18px 46px rgba(36, 52, 34, 0.12);

}

#modal-como-comprar .modal-container {

  padding: clamp(18px, 3vw, 28px);

  background: linear-gradient(135deg, #fbfaf5 0%, #eef5e8 100%);

  border-radius: 0;

}

#modal-como-comprar .steps-grid {

  display: grid;

  grid-template-columns: minmax(220px, 0.85fr) repeat(3, minmax(0, 1fr));

  gap: 12px;

  align-items: stretch;

  background: transparent;

}

#modal-como-comprar .intro.step,
#modal-como-comprar .step {

  min-width: 0;

  padding: clamp(18px, 2vw, 24px);

  border: 1px solid rgba(9, 123, 9, 0.12);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.78) !important;

  color: #334238;

  box-shadow: 0 10px 24px rgba(36, 52, 34, 0.08);

}

#modal-como-comprar .intro.step {

  justify-content: center;

  text-align: left;

}

#modal-como-comprar .step.reverse {

  background: #f5fff1 !important;

}

#modal-como-comprar .modal-title {

  margin: 0;

  color: #17351f;

  font-family: inherit;

  font-size: clamp(1.65rem, 2.6vw, 2.4rem);

  font-weight: 600;

  line-height: 1.08;

}

#modal-como-comprar .bajada-simple {

  margin: 14px 0 0;

  padding: 0;

  color: #334238;

  font-size: 1rem;

  line-height: 1.55;

}

#modal-como-comprar .step-number {

  width: 34px;

  height: 34px;

  margin-bottom: 4px;

  background: #097b09;

  color: #fff;

  border: 2px solid rgba(255, 255, 255, 0.9);

  border-radius: 50%;

  box-shadow: 0 8px 18px rgba(9, 123, 9, 0.18);

  font-size: 0.98rem;

  font-weight: 700;

}

#modal-como-comprar .step-content h3 {

  margin: 6px 0 10px;

  color: #17351f;

  font-size: 1.05rem;

  font-weight: 700;

  line-height: 1.25;

}

#modal-como-comprar .step-content p {

  margin: 0;

  color: #334238;

  font-size: 0.95rem;

  line-height: 1.58;

}

#modal-como-comprar .close-modal {

  top: 12px;

  right: 12px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  width: 36px;

  min-width: 36px;

  max-width: 36px;

  height: 36px;

  min-height: 36px;

  max-height: 36px;

  aspect-ratio: 1 / 1;

  padding: 0;

  border-radius: 50%;

  background: #ff3800;

  color: #fff;

  font-size: 1.35rem;

  line-height: 1;

  text-align: center;

}

#modal-como-comprar .close-modal:hover {

  background: #d62f00;

  color: #fff;

}

#modal-industrias .modal-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: flex-start;
  position:relative;
}
#modal-industrias .modal-sidebar {
    flex: 0 0 320px;
    max-width: 100%;
    align-self: center;
    text-align: center;
}
#modal-industrias .modal-columns-wrapper {
  flex: 1 1 auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-inline: 20px;
}
#modal-industrias .modal-column {
  min-width: 170px;
  flex-shrink: 0;
}
#modal-industrias .modal-column h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #222;
}
#modal-industrias .modal-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#modal-industrias .modal-column ul li {
  margin-bottom: 0px;
}
#modal-industrias .modal-column ul li a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
#modal-industrias .modal-column ul li a:hover {
  color: #009fe3;
}
#modal-industrias .modal-footer {
  text-align: center;
  margin-top: 30px;
}
#modal-industrias .ver-todas-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #009fe3!important;
  font-weight: 600;
  text-decoration: underline;
  padding-top: 6px;
}
.ver-todas-btn:hover {
  color: #007ac1;
}
.modal-column h3 a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}
.modal-column h3 a:hover {
  color: #009fe3;
}
.modal-description{
color:#333;
}
/* Contenedor de columnas (carrousel en sí) */
#modal-industrias .modal-columns {
  display: flex;
  padding: 20px 0;
  min-width: 100%;
  background: transparent;
  border-radius: 12px;
}
#modal-industrias .flecha-desplazamiento {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.2s ease;
  color: #009FE3;
  line-height: 1;
}
#modal-industrias .flecha-izquierda {
   left: calc(320px + 12px); 
}
#modal-industrias .flecha-derecha {
  right: 0;
}
#modal-industrias .flecha-desplazamiento.oculta {
  opacity: 0;
  pointer-events: none;
}
.header-icons {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
}
#material-select{
    color: #009FE3;
    font-weight: 600;
}
#tipo-select {
    color: #009FE3;
    font-weight: 600;
}
body.menu-abierto {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
#mobile-full-menu .mobile-menu-items > li > a {
  display: block;
  cursor: pointer;
  font-size: 1.05rem;
  color: #333;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 16px;
}
@media (max-width: 768px) {
  #material-select,
  #tipo-select {
    display: block;
    width: calc(100% + 250px);
    margin: 10px auto;
  }
  .close-modal.close-empaque {
    position: absolute;
    right: -14px;
    z-index: 999;
    background: #009fe3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  #modal-tipos-de-empaque .carousel-wrapper {
    padding: 0;
    overflow: visible;
    position: relative;
  }
  #modal-tipos-de-empaque .box-card {
    flex: 0 0 100%;
  }
  #modal-tipos-de-empaque .image-wrapper {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #modal-tipos-de-empaque .box-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  #modal-tipos-de-empaque .carousel-nav {
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 20px;
    font-size: 20px;
    background-color: #009FE3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    opacity: 0.8;
    margin: 0px;
  }
  #modal-tipos-de-empaque .carousel-prev {
    left: 5px;
  }
  #modal-tipos-de-empaque .carousel-next {
    right: 5px;
  }
  .modal-wrapper {
    border-radius: 8px;
  }
  #modal-como-comprar {

    padding: 0 0.75rem;

  }

  #modal-como-comprar .modal-container {

    padding: 16px;

  }

  #modal-como-comprar .steps-grid {

    grid-template-columns: 1fr;

    gap: 10px;

  }

  #modal-como-comprar .intro.step,
  #modal-como-comprar .step {

    padding: 18px;

  }

  #modal-como-comprar .modal-title {

    font-size: 1.65rem;

  }

  .header-icons {
     display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  }
  .header-nav.desktop-menu {
    display: none;
  }
  #mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
  }
      .mobile-menu {
        display: none;
        flex-direction: column;
        background: #f4f4f4;
        padding: 0.5rem 1rem;
      }
      .mobile-menu.open {
        display: flex;
      }
      #mobile-full-menu .mobile-menu-items {
        list-style: none !important;
        margin: 0 !important;
        padding: 8px 0 !important;
      }
      #mobile-full-menu .mobile-menu-items > li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #eee;
      }
      #mobile-full-menu .mobile-menu-items > li:last-child {
        border-bottom: none;
      }

      #modal-industrias .modal-grid {
        display:block;
      }
      #modal-industrias .modal-columns {
        grid-template-columns: 1fr;
        padding: 10px;
      }
      #modal-industrias .modal-sidebar {
        text-align: center;
      }
      #modal-industrias .flecha-desplazamiento {
            font-size: 24px;
            padding: 4px 8px;
            transform: none;
            top: 210px;
      }
      #modal-industrias .flecha-izquierda {
       left: 0; 
        }
        #modal-industrias .modal-column {
          min-width: 150px;
        }
      .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
      }
      #tipo-select {
        margin: 10px auto !important;
        display: block;
        width: 80%;
      }
      #material-select {
        margin: 10px auto !important;
        display: block;
        width: 80%;
      }
}

.wha-has-submenu {
  position: relative;
}

#custom-header .wha-has-submenu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wha-submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.wha-submenu-toggle::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

.wha-submenu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(225deg);
}

.wha-submenu-toggle:is(:hover, [aria-expanded="true"]) {
  background: #0001;
}

.wha-submenu {
  margin: 0;
  padding: 4px;
  list-style: none;
}

.wha-submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}

.wha-submenu a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: #edf4ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#custom-header .wha-submenu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 150px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px #0002;
}

#mobile-full-menu .wha-submenu-toggle {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 8px;
  width: 44px;
  height: 44px;
  color: #eee;
}

#mobile-full-menu .wha-submenu-toggle:is(:hover, [aria-expanded="true"]),
#mobile-full-menu .wha-submenu a:is(:focus-visible, [aria-current="page"]) {
  background: #303030;
}

#mobile-full-menu .wha-submenu-toggle:focus-visible {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}

#mobile-full-menu .mobile-menu-items > .wha-has-submenu > a {
  padding-inline: 56px;
}

#mobile-full-menu .wha-submenu {
  margin: 0 12px 8px;
  border-inline-start: 2px solid #777;
}
