.flex-container {
  display: flex;
  flex-flow: row nowrap;
  background-color: white;
  padding-bottom: 5px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  margin-top: 10px;
  justify-content: center;
  z-index: 99999999;

}

.flex-container div>a {

  color: #8C8B8B;
  margin: 20px;
  margin-bottom: 5px;
  text-align: center;
  font-size: 20px;
  position: relative;

}

.flex-container div>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #9F47FC;
  transition: width 0.3s ease, left 0.3s ease;
}

.flex-container div>a:hover::after,
.flex-container div>a.categoriaActiva::after {
  width: 100%;
  left: 0;
}

.flex-container div>a.categoriaActiva {
  color: #9F47FC;
  font-weight: bold;
}

.items {
  width: 200px;
}

#globalV2 {
  display: none;
  position: absolute;
  height: auto;
  border: 1px solid #ddd;
  background: white;
  z-index: 9999;
  top: 257px;
  left: 5%;
  padding-left: 5%;
  padding-bottom: 1%;
  border: 1px solid #c5c5c5;
  box-shadow: 0px 0px 7px 1px rgba(0, 0, 0, 0.35);
}

/* Estilo para Subcategorías Principales (Gris oscuro, negrita, tamaño grande) */
#globalV2 ul li a.pixelSubCategorias {
  cursor: pointer;
  color: #555555;
  font-weight: bold;
  font-size: 1.5rem;
  /* <-- Tamaño aumentado (antes 1.3rem) */
  text-decoration: none;
  list-style: none;
  background-color: white;
}

/* Estilo para los Items/Productos (Gris claro, normal, tamaño mediano) */
#globalV2 ul.subCategoria ul.productos li a.pixelProducto {
  cursor: pointer;
  color: #888888;
  font-weight: normal;
  font-size: 1.4rem;
  /* <-- Tamaño aumentado (antes 1.2rem) */
  text-decoration: none;
  list-style: none;
  background-color: white;
  display: block;
  line-height: 0.2;
  padding: 0;

}

/* Fondos blancos para limpiar las listas */
#globalV2 ul.subCategoria {
  padding-top: 15px;
  background-color: white;
}

#globalV2 ul {
  background-color: white;
}


/* TOP */



#top ul {
  padding-top: 8px;
}

#top ul li {
  display: inline;
  line-height: 30px;
  margin: 0px 5px;
  color: white;
}

.menuBarraSuperior ul li a i {
  font-size: 1.3rem;
  margin: 0 1px;
  text-decoration: none;
}

.menuBarraSuperior ul li a {
  font-size: 1.3rem;
  margin: 0 1px;
  text-decoration: none;
}

#top .row {
  position: relative;
}

#top .menuBarraSuperiorAcciones {
  position: absolute;
  top: 0;
  right: 15px;
}

/* HEADER */
#icon {
  position: absolute;
  top: 50%;
  right: 12px;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 99999999999;
}

#icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  color: #344488;
  text-decoration: none;
}

#icon i {
  font-size: 16px;
  color: #344488;
  line-height: 1;
}

input.input {
  min-width: 100px;
  padding-right: 50px;
}

/* En pantallas táctiles asegurar la lupa visible y con área de toque mínima */
@media (pointer: coarse) {
  #icon {
    display: flex !important;
  }

  #icon a {
    min-width: 44px;
    min-height: 44px;
  }

  #icon i {
    font-size: 18px;
  }

  input.input {
    padding-right: 60px;
  }
}

header #buscador input:focus {
  border: 1px solid #344488;
  box-shadow: 0px 0px 7px 1px rgba(0, 67, 211, 0.63);
}

header {
  padding-top: 20px;
  background-color: white;
}

header #buscador {
  margin: 20px 0;
}

header #buscador input {
  padding: 19px;
  border-radius: 20px;
  border: 1px solid silver;
}

.derecha {
  float: right;
}

#ultimaColumna {
  padding-top: 15px;
  display: none;
}

#miCuenta,
#carritoCompras {
  color: #303030;
}

.enlacesDesactivados {
  pointer-events: none;
  cursor: not-allowed !important;
  opacity: 0.5;
  color: silver;
}

#wp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#wp #icono-whatsapp {
  cursor: pointer !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#wp:hover #icono-whatsapp {
  filter: drop-shadow(0 8px 22px rgba(37, 211, 102, 0.75)) drop-shadow(0 2px 6px rgba(37, 211, 102, 0.45));
  transform: scale(1.12) translateY(-4px);
  color: #1ebe57 !important;
}

#wp:active #icono-whatsapp {
  transform: scale(0.95) translateY(0);
}

#wp img#icono-whatsapp {
  width: 60px;
  /* Tamaño del ícono */
  height: auto;
}


#buscador {
  position: relative;
}

#resultadosBuscador {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  z-index: 999999999;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.itemSugerencia {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #f9f9f9;
  text-decoration: none !important;
  transition: background 0.2s;
}

.itemSugerencia:hover {
  background: #f5f5f5;
}

.itemSugerencia:last-child {
  border-bottom: none;
}

.imgSugerencia {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.infoSugerencia {
  flex: 1;
}

.tituloSugerencia {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0px;
}

.descripcionSugerencia {
  display: block;
  color: #666;
  margin-top: 2px;
  line-height: 1.2;
}

.verMasSugerencia {
  display: block;
  text-align: center;
  padding: 10px;
  background: #fafafa;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
}

/* ============================================================================== */
/* ============================= MEDIA QUERIES ================================== */
/* ============================================================================== */

/* === ESCRITORIO GRANDE (min-width: 1200px) === */
@media (min-width: 1200px) {
  header #logotipo a img {
    padding: 5px;
    height: 150px;
  }
}

/* === ESCRITORIO MEDIANO / TABLET HORIZONTAL (max-width: 1199px) === */
@media (max-width: 1199px) and (min-width: 992px) {
  header #logotipo img {
    padding: 10px 60px;
    padding-left: 0px;
  }

  .img-responsive {
    width: 160px;
    padding-top: 0px;
    margin-top: 0px;
  }
}

/* === TABLET VERTICAL (max-width: 991px) === */
@media (max-width: 991px) and (min-width: 768px) {
  header #logotipo img {
    padding: 30px 0px;
  }

  #globalV2 {
    top: 182px !important;
  }
}

/* ============================================================================== */
/* =============== DISPOSITIVOS MÓVILES TÁCTILES (max-width: 767px) ============= */
/* ============================================================================== */
@media (max-width: 767px) {
  #top {
    display: none;
  }

  #top ul {
    text-align: center;
  }

  header {
    padding-bottom: 0px;
  }

  header #logotipo {
    order: -1;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    /* padding: 5px 0 5px 5px; */
    /* Padding izquierdo para separarse del borde */
    width: 30%;
    /* Ancho reducido drásticamente */
    text-align: left !important;
    /* Forzar alineación a la izquierda */
  }

  header #logotipo {
    width: 25%;

  }

  header #logotipo img {
    height: 50px;
    /* Reducido para encajar horizontalmente */
    padding: 0;
    margin: 0px;
  }

  header #cabezote {
    display: flex;
    flex-direction: row;
    /* Misma línea */
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  header #buscador {
    margin: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    /* Removido el margen izquierdo extra */
    flex: 1;
    /* Estirarse hasta ocupar todo el espacio restante a la derecha */
  }

  header #buscador input {
    border-radius: 6px !important;
    /* Menos curva en las esquinas para móviles */
  }

  header #ultimaColumna {
    display: none;
  }

  /* ── Menú de Categorías: Carrusel Horizontal Nativo ── */
  .flex-container {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    /* ocultar scrollbar IE/Edge */
    scrollbar-width: none;
    /* ocultar scrollbar Firefox */
    padding-left: 10px;
    padding-right: 10px;
    /* Gradiente visual que indica que hay más ítems → */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  /* Ocultar scrollbar Chrome/Safari */
  .flex-container::-webkit-scrollbar {
    display: none;
  }

  /* Ajuste de fuente y área táctil mínima (44px Apple HIG / 48px Google Material) */
  .flex-container div>a {
    font-size: 16px;
    margin: 8px 10px;
    padding: 8px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Evitar que los ítems se compriman */
  .flex-container div {
    flex: 0 0 auto;
  }

  /* Optimización Nativa del Menú Desplegable (Subcategorías) */
  #globalV2 {
    top: 122px !important;
    /* Ajuste preciso bajo el header móvil */
    left: 5% !important;
    /* Forzar centrado */
    width: 90% !important;
    /* Forzar ancho amplio en celular */
    padding-left: 20px !important;
    max-height: 75vh;
    /* Evitar que se desborde de la pantalla */
    overflow-y: auto;
    /* Scroll interno si hay muchas opciones */
  }

  #slide {
    top: -17px !important;
  }
}

/* ============================================================
   MODAL UBICACIÓN PREMIUM
   ============================================================ */
#modalUbicacionMaipu .ubicacion-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

#modalUbicacionMaipu .ubicacion-modal-header {
  position: relative;
  padding: 26px 24px 22px;
  border: none;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #344488 0%, #5a4bb0 55%, #9F47FC 100%);
}

#modalUbicacionMaipu .ubicacion-modal-header .close {
  position: absolute;
  top: 12px;
  right: 16px;
  margin: 0;
  color: #ffffff;
  opacity: 0.85;
  font-size: 26px;
  line-height: 1;
  text-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#modalUbicacionMaipu .ubicacion-modal-header .close:hover,
#modalUbicacionMaipu .ubicacion-modal-header .close:focus {
  opacity: 1;
  transform: scale(1.08);
  outline: none;
}

#modalUbicacionMaipu .ubicacion-header-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

#modalUbicacionMaipu .ubicacion-header-icon i {
  font-size: 24px;
  color: #ffffff;
}

#modalUbicacionMaipu .ubicacion-modal-header .modal-title {
  margin: 0;
  font-family: 'Poppins', 'Open Sans', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#modalUbicacionMaipu .ubicacion-header-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

#modalUbicacionMaipu .ubicacion-modal-body {
  padding: 20px 22px 22px;
  background: #ffffff;
}

#modalUbicacionMaipu .ubicacion-address-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #f8f9ff;
  border: 1px solid #e6e8f5;
}

#modalUbicacionMaipu .ubicacion-address-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #344488;
  color: #ffffff;
}

#modalUbicacionMaipu .ubicacion-address-icon i {
  font-size: 18px;
}

#modalUbicacionMaipu .ubicacion-address-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: left;
}

#modalUbicacionMaipu .ubicacion-address-text strong {
  font-size: 16px;
  font-weight: 700;
  color: #1f2450;
}

#modalUbicacionMaipu .ubicacion-address-text span {
  font-size: 13px;
  color: #6b7280;
}

#modalUbicacionMaipu .ubicacion-map-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e6e8f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

#modalUbicacionMaipu .ubicacion-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#modalUbicacionMaipu .ubicacion-btn-como-llegar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #344488 0%, #9F47FC 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(52, 68, 136, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#modalUbicacionMaipu .ubicacion-btn-como-llegar:hover,
#modalUbicacionMaipu .ubicacion-btn-como-llegar:focus {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(52, 68, 136, 0.36);
}

@media (max-width: 767px) {
  #modalUbicacionMaipu .ubicacion-modal-header {
    padding: 22px 18px 18px;
  }

  #modalUbicacionMaipu .ubicacion-modal-body {
    padding: 16px;
  }

  #modalUbicacionMaipu .ubicacion-map-wrap {
    height: 220px;
  }
}