img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
* {
  -webkit-tap-highlight-color: transparent;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* =====================================================
   HEADER PREMIUM GLOBAL (REUTILIZABLE)
===================================================== */

.header-premium {
  position: relative;
  background: var(--color-primario);
  padding: 28px 20px 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.header-premium h1,
.header-premium h2 {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-premium .btn-back {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fcf5e3;
  padding-bottom: 110px;
}
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}
/* HEADER */

.header {
  background: white;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header {
  transition: 0.3s ease;
}

.header.small {
  padding: 6px 12px;
}

.header.small .logo {
  font-size: 16px;
}
.logo {
  font-size: 22px;
  font-weight: bold;
  color: #1a7b88;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f3f6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 18px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 16px;
  margin-left: 8px;
}

.categorias {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  background: white;
  position: sticky;
  top: 60px; /* debajo del header */
  z-index: 500;
}

.categorias::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f1f1f1;
  white-space: nowrap;
  cursor: pointer;
  font-size: 16px;
  transition: 0.25s;
}

.chip.activo {
  background: var(--color-secundario);
  color: white;
  transform: scale(1.05);
}

/* PRODUCTOS GRID */
.productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
}

/* Tablet */
@media (min-width: 768px) {
  .productos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .productos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CARD */
.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  animation: aparecerProducto 0.25s ease;
  position: relative;
}

@keyframes aparecerProducto {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  padding: 8px;
}

.card-body {
  padding: 8px;
}
.card-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.2;
}
.precio {
  font-weight: bold;
  color: #444;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.agregar {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: var(--color-primario);
  color: white;
  font-weight: bold;
}
.agregar:hover {
  transform: scale(1.04);
}

/* CARRITO FLOTANTE */
.carrito-flotante {
  position: fixed;
  bottom: 95px;
  right: 18px;

  background: var(--color-primario);
  color: white;

  padding: 12px 18px;
  border-radius: 30px;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;

  cursor: pointer;
  transition: 0.2s ease;
}

.carrito-flotante:hover {
  transform: scale(1.05);
}
.agregar:active {
  transform: scale(0.95);
}

/****Carrito Lateral Mas Suave***/
.carrito-vacio {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: #666;
}

.carrito-vacio-icono {
  font-size: 70px;
  margin-bottom: 15px;
}

.carrito-vacio h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.carrito-vacio p {
  font-size: 14px;
  margin-bottom: 20px;
}

.btn-seguir-comprando {
  padding: 12px 22px;
  border: none;
  border-radius: 20px;
  background: var(--color-primario);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
#carritoPanel {
  position: fixed;
  top: 0;
  right: 0;

  width: 100%;
  max-width: 420px;

  height: 100dvh;
  background: white;

  display: flex;
  flex-direction: column;

  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1000;
}

#carritoPanel.activo {
  transform: translateX(0);
}
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

.carrito-items {
  flex: 1;
  overflow: auto;
  padding: 25px 15px 15px;
  display: flex;
  flex-direction: column;
}
#carritoCantidad {
  font-weight: 500;
  opacity: 0.8;
  font-size: 16px;
}
.carrito-header-pro {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carrito-header-pro h1 {
  font-size: 18px;
  font-weight: 600;
}

.carrito-header-pro .btn-back {
  position: absolute;
  left: 15px;
}
.item-carrito {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px;
  margin: 10px 0;

  background: white;
  border-radius: 14px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes fadeItem {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.btn-eliminar {
  width: 32px;
  height: 32px;

  border-radius: 10px;
  border: none;

  background: #f1f1f1;
  color: #888;
}
.btn-eliminar:hover {
  background: #ffebee;
  color: var(--color-secundario);
}
.miniatura {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.info {
  flex: 1;
}

.btn-pagar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--color-primario);
  color: white;
  font-weight: bold;
  font-size: 16px;
}

/* ANIMACIÓN */
@keyframes saltar {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.animar {
  animation: saltar 0.4s ease;
}
.bottom-app {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 80px;

  background: #fff;

  display: flex;
  justify-content: space-around;
  align-items: center;

  border-top-left-radius: 25px;
  border-top-right-radius: 25px;

  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);

  z-index: 999;
}

/* items */

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  font-size: 13px;
  color: #777;

  gap: 4px;

  cursor: pointer;
}

.nav-item span {
  font-size: 11px;
}

.nav-item.activo {
  color: #1a7b88;
}

/* BOTON CENTRAL */

.fab-cart {
  position: absolute;
  top: -28px;

  width: 65px;
  height: 65px;

  background: var(--color-primario);
  color: white;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  cursor: pointer;
}

/* contador */

.fab-cart span {
  position: absolute;
  top: -6px;
  right: -6px;

  background: white;
  color: #1a7b88;

  font-size: 12px;
  font-weight: bold;

  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primario);
  color: white;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
}

.fly-img {
  position: fixed;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  z-index: 2000;
  pointer-events: none;
  transition: all 0.7s ease;
}
.controles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.controles span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.controles button {
  width: 30px;
  height: 30px;

  border: none;
  border-radius: 8px;

  background: var(--color-primario);
  color: white;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
}
/******SLIDER**********/
/* SLIDER */
.slider {
  width: 100%;
  height: 130px; /* más bajo */
  overflow: hidden;
  border-radius: 0px;
  margin: 0px 0;
  position: relative;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/***/
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primario);
  padding: 15px;
  color: white;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar h1 {
  font-size: 18px;
  margin: 0;
}

.search-box {
  margin-top: 12px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 8px;
  font-size: 16px;
}
.banner {
  margin: 15px;
  background: var(--color-primario);
  border-radius: 16px;
  padding: 15px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.banner img {
  width: 130px;
  border-radius: 12px;
}

.banner-text h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

/***NUEVOS ESTILO***/
.btn-agregar {
  width: 100%;
  background: var(--color-secundario);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.control-cantidad {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.control-cantidad button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-secundario);
  color: white;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

.control-cantidad span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
}
/***Animación suave en el botón Agregar*/
.btn-agregar,
.control-cantidad {
  animation: aparecer 0.25s ease;
}

@keyframes aparecer {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/****Animación del contador del carrito*/
.latido {
  animation: latido 0.25s ease;
}

/**SKELETON CARGA*/
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease infinite;
  border-radius: 10px;
}

@keyframes skeleton {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.card-skeleton {
  height: 180px;
  margin-bottom: 12px;
}
/**toast producto*/
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 2000;

  pointer-events: none; /* 🔥 SOLUCIÓN */
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lazy-img {
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.4s ease;
}

.lazy-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.card-skeleton {
  height: 220px;
  border-radius: 16px;
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
/***ORDENAR PRODUCTOS***/
.filtros-contenedor {
  width: 100%;
  padding: 2px 15px;
}

/* CHIPS */
.categorias {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.chip {
  padding: 8px 14px;
  border-radius: 20px;
  background: #eee;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.chip.activo {
  background: #ff5722;
  color: #fff;
}

/* SELECT MODERNO */
.barra-filtros {
  display: flex;
  gap: 12px;
  padding: 10px 15px;
  margin-bottom: 15px;
}

.filtro {
  position: relative;
  flex: 1;
}

.filtro select {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border-radius: 25px;
  border: none;
  background: #f5f5f5;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  appearance: none;
  cursor: pointer;
  transition: 0.2s;
}

.filtro select:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 2px rgba(255, 90, 60, 0.2);
}

.filtro::after {
  content: "▾";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
}

/**favoritos*/
.card-img-container {
  position: relative;
}

.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.btn-fav.activo {
  background: var(--color-secundario);
  color: white;
}

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

.sin-resultados {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  min-height: 100%; /* 🔥 ESTA LÍNEA ES LA CLAVE */
}

.sin-resultados h2 {
  font-size: 24px;
  font-weight: 600;
}

.sin-resultados p {
  margin-top: 8px;
  color: #999;
}

.icono-vacio {
  font-size: 70px;
  margin-bottom: 15px;
  animation: latido 1.6s infinite;
}
@keyframes latido {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
#listaProductos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}
#listaProductos:has(.sin-resultados) {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Tablet */
@media (min-width: 768px) {
  #listaProductos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Laptop */
@media (min-width: 1200px) {
  #listaProductos {
    grid-template-columns: repeat(6, 1fr);
  }
}
/* FOOTER CARRITO */
.carrito-footer {
  position: sticky;
  bottom: 0;

  background: white;

  padding: 16px;

  border-top: 1px solid #eee;

  display: flex;
  flex-direction: column;
  gap: 10px; /* 🔥 mejor separación */

  z-index: 5;
}

/* TOTAL GRANDE */
.total-box {
  font-size: 24px;
  font-weight: 700;

  color: var(--color-secundario);

  text-align: center;

  margin-bottom: 15px;
}

/* BOTÓN VACIAR */
.btn-vaciar {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;

  border: none;
  border-radius: 12px;

  background: #f2f2f2;

  font-weight: 600;
  font-size: 15px;

  cursor: pointer;

  display: block; /* 🔥 importante */
  position: relative; /* 🔥 evita problemas de capa */
  z-index: 2;
}

.btn-vaciar:hover {
  background: #e0e0e0;
}

/* BOTÓN CHECKOUT */
.btn-checkout {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--color-secundario);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-checkout:hover {
  background: var(--color-secundario);
}
.btn-vaciar,
.btn-checkout {
  width: 100%;
  display: block;
}

/***CHECKOUT*/
/* ============================= */
/* CHECKOUT ESTILO RAPPI */
/* ============================= */

.checkout {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
  z-index: 9999;
  right: -100%;
  left: auto;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}

.checkout.activo {
  right: 0;
}

/* ================= HEADER RAPPI ================= */

.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}
.bloque {
  background: white;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.bloque h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.tipo-entrega {
  display: flex;
  gap: 10px;
}

.tipo-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 40px;
  background: #f2f2f2;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.tipo-btn.activo {
  background: var(--color-primario);
  color: #fff;
  box-shadow: 0 6px 15px rgba(255, 0, 79, 0.35);
}
.metodos-pago {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= MÉTODO PAGO ANIMADO ================= */

.metodo {
  padding: 16px;
  border-radius: 16px;
  background: #f5f5f5;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transform: scale(1);
}

.metodo:hover {
  transform: scale(1.02);
}

.metodo.activo {
  background: #ffffff;
  border: 2px solid var(--color-secundario);
  box-shadow: 0 8px 20px rgba(255, 0, 79, 0.2);
  animation: popMetodo 0.25s ease;
}

@keyframes popMetodo {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.checkout-footer {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.btn-confirmar {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: var(--color-secundario);
  box-shadow: 0 10px 25px rgba(255, 60, 50, 0.4);
  cursor: pointer;
  transition: 0.2s;
}

.btn-confirmar:active {
  transform: scale(0.96);
}

@keyframes bounceBtn {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-confirmar:hover {
  transform: translateY(-2px);
}

.checkout input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.checkout input:focus {
  border-color: var(--color-secundario);
}

.pantalla-exito {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.pantalla-exito.activo {
  opacity: 1;
  pointer-events: auto;
}

.exito-card {
  text-align: center;
  padding: 40px;
  max-width: 350px;
}

.check-animado {
  width: 120px;
  height: 120px;
  margin: auto;
  position: relative;
}

.check-circulo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #27c46b;
  animation: pop 0.4s ease;
}

.check-paloma {
  position: absolute;
  top: 35px;
  left: 40px;
  width: 30px;
  height: 60px;
  border-right: 6px solid white;
  border-bottom: 6px solid white;
  transform: rotate(45deg);
  animation: check 0.5s ease 0.3s forwards;
  opacity: 0;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes check {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.exito-texto {
  margin-top: 10px;
  color: #666;
}

.exito-info {
  margin-top: 20px;
  font-size: 14px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-ver-pedidos {
  margin-top: 25px;
  background: #ff6a00;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}
.contador-redireccion {
  margin-top: 14px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

#contadorRedireccion {
  font-weight: 700;
  color: var(--color-secundario);
  font-size: 16px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popImg {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.oculto {
  display: none !important;
}
/***CATEGORIAS ESTILO RAPPI*/

.categorias-rappi {
  background: transparent;
}

.categorias-grandes {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.categorias-grandes::-webkit-scrollbar,
.categorias-pequenas::-webkit-scrollbar {
  display: none;
}

.categoria.grande {
  min-width: auto;
  height: 42px;
  padding: 0 14px;
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border: 1px solid transparent;
}

.categoria.grande img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.categoria.grande span {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.categoria.grande.activa {
  background: var(--color-primario);
  color: #fff;
  border-color: var(--color-secundario);
}

.categorias-pequenas {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 6px;
}

.categoria.pequena {
  min-width: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.categoria.pequena img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.categoria.pequena span {
  font-size: 13px;
  white-space: nowrap;
}

.categoria.pequena.activa {
  background: var(--color-secundario);
  color: #fff;
}
/* ================================
   SPLASH SCREEN
================================ */

#splash {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(255, 255, 255, 0.95),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #eef8f8 0%,
      var(--color-primario) 45%,
      var(--color-primario) 100%
    );

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

#splash.ocultar {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  width: 240px;
  height: 240px;

  display: block;

  padding: 0;

  object-fit: contain;
  object-position: center;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;

  filter: drop-shadow(0 12px 18px rgba(0, 65, 73, 0.2));

  animation: logoAnim 0.7s ease;
}

#empresaNombreSplash {
  max-width: 300px;

  margin: 16px 0 0;

  color: #ffffff;

  font-size: 25px;
  font-weight: 900;

  line-height: 1.1;
  letter-spacing: 0.6px;

  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 65, 73, 0.28);
}
@media (max-width: 480px) {
  .splash-logo {
    width: 190px;
    height: 105px;

    padding: 3px;
    border-radius: 21px;
  }

  #empresaNombreSplash {
    margin-top: 14px;
    font-size: 22px;
  }
}
@keyframes logoAnim {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeSplash {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/******CHECKOUT .CSS*/
.bloque {
  background: white;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 15px;
}

.tipo-entrega {
  display: flex;
  gap: 10px;
}

.tipo-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #eee;
  cursor: pointer;
  font-weight: bold;
}

.metodos-pago {
  display: flex;
  gap: 10px;
}

.metodo {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: #eee;
  text-align: center;
  cursor: pointer;
}

.metodo.activo {
  background: var(--color-secundario);
  color: white;
}

.checkout-footer {
  background: white;
  padding: 20px;
  border-top: 1px solid #eee;
}

.btn-confirmar {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--color-secundario);
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.modal-exito {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.exito-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  animation: pop 0.4s ease;
}
/* ================= ENVÍO GRATIS ================= */

.envio-gratis {
  margin-top: 8px;
  font-size: 16px;
  color: #00a86b;
  font-weight: 600;
  animation: fadeInGratis 0.4s ease;
}
.envio-gratis-box {
  margin-top: 15px;
}

.envio-barra {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
}

.envio-progreso {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff3b3b, #ff7a7a);
  transition: width 0.5s ease;
}

.envio-mensaje {
  font-size: 16px;
  margin-top: 8px;
  font-weight: 600;
  color: #ff3b3b;
}

.envio-mensaje.exito {
  color: #16a34a;
}

@keyframes fadeInGratis {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.propinas {
  display: flex;
  gap: 10px;
}

.propinas button {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 12px;
  background: #f3f3f3;
  cursor: pointer;
  transition: 0.2s;
}

.propinas button.activo {
  background: var(--color-secundario);
  color: white;
}
.barra-envio {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 20px;
  margin-top: 8px;
  overflow: hidden;
}

#barraProgresoEnvio {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2d55, #ff8a00);
  transition: 0.4s ease;
}
.desglose-body {
  background: white;
  border-radius: 20px;
  padding: 18px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.desglose-body .linea {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 16px;
}
.resumen-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.resumen-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resumen-nombre {
  font-weight: 600;
  font-size: 16px;
}

.resumen-detalle {
  font-size: 16px;
  color: #777;
}

.resumen-precio {
  font-weight: 700;
  font-size: 16px;
}

.resumen-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #eee;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
}
/* CONTENEDOR CUPÓN */
.bloque input#inputCupon {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  transition: 0.2s;
  margin-bottom: 10px;
}

.bloque input#inputCupon:focus {
  border-color: #ff3b3b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}

/* BOTÓN CUPÓN */
.bloque button {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: var(--color-secundario);
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.bloque button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 59, 59, 0.3);
}

.bloque button:active {
  transform: scale(0.98);
}
#notasPedido {
  width: 100%;
  min-height: 90px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  resize: none;
  transition: 0.2s;
}

#notasPedido:focus {
  border-color: #ff3b3b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.15);
}
.desglose-body .linea {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.desglose-body .linea span:last-child {
  font-size: 18px;
  font-weight: 700;
}

.desglose-body {
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
/* ===== PANEL CUENTA APP STYLE ===== */
/* PANEL CUENTA ESTILO APP */
.panel-cuenta {
  position: fixed;
  top: 0;

  width: 100%;
  max-width: 420px;
  background: #f8f8f8;
  z-index: 9999;
  right: -100%;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: right 0.3s ease;

  display: flex; /* 🔥 */
  flex-direction: column; /* 🔥 */
}
.panel-cuenta.activo {
  right: 0;
}

/* Overlay oscuro */
.overlay-cuenta {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}

.overlay-cuenta.activo {
  display: block;
}

/* ===== HEADER PRO ===== */
.cuenta-header-pro {
  background: var(--color-primario);
  height: 170px; /* 🔥 altura fija */
  padding: 20px;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  text-align: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 5;
  overflow: hidden; /* 🔥 clave */
}

.cuenta-header-pro .btn-back {
  position: absolute;
  left: 20px;
  top: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  color: white;
  font-size: 18px;
}
.cuenta-header-pro h2,
.cuenta-header-pro p {
  transition: all 0.3s ease;
}

/* 🔥 Estado compacto */

/* 🔥 Estado compacto sin cambiar altura */
.cuenta-header-pro.compacto .cuenta-avatar {
  transform: scale(0.6) translateY(-10px);
}

.cuenta-header-pro.compacto h2 {
  transform: translateY(-15px) scale(0.85);
}

.cuenta-header-pro.compacto p {
  opacity: 0;
  transform: translateY(-10px);
}
.cuenta-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-primario);
  color: white;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.cuenta-avatar,
.cuenta-header-pro h2,
.cuenta-header-pro p {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
/* ===== BODY ===== */
.cuenta-body-pro {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  overscroll-behavior: contain;
}

/* ===== CARD ===== */
.cuenta-card-pro {
  background: white;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.cuenta-card-pro h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

/* ===== INPUTS ===== */
.cuenta-card-pro input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #eee;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ===== BOTÓN PRINCIPAL ===== */
.btn-principal-pro {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: var(--color-secundario);
  color: white;
  font-weight: 600;
}

/* ===== MENU ===== */
.menu-pro {
  padding: 0;
}

.menu-item-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

.menu-item-pro:last-child {
  border-bottom: none;
}

.menu-item-pro:hover {
  background: #fafafa;
}

/* ===== BOTÓN CERRAR ===== */
.btn-cerrar-pro {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: var(--color-secundario);
  color: white;
  font-weight: 600;
}
/******MODAL DIRECCION****/
.modal-direccion {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: white;

  border-radius: 25px 25px 0 0;

  overflow: hidden; /* 🔥 ESTA ES LA CLAVE */

  z-index: 10000;
  bottom: -100%;
  transition: bottom 0.35s ease;

  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  padding-top: env(safe-area-inset-top);
}

.modal-direccion.activo {
  bottom: 0;
}

.modal-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  font-weight: bold;
}

.mapa-box {
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-body input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.btn-ubicacion {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #fff3e0;
  margin-bottom: 15px;
  font-weight: bold;
}

.btn-guardar-dir {
  width: 100%;
  padding: 14px;
  background: var(--color-secundario);
  color: white;
  border: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 16px;
}
/* Campo buscar dirección */
/* Evita que el autocomplete rompa el layout */
.pac-container {
  position: fixed !important;
  z-index: 999999 !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
  font-family: "Segoe UI", sans-serif;
  width: auto !important;
}
.pac-container:after {
  display: none !important;
}
/* Buscador estilo Rappi */
.input-buscar-mapa {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #eee;
  background: #fff;
  font-size: 16px;
  margin: 10px 0;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
}

.input-buscar-mapa:focus {
  border-color: var(--color-secundario);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.direccion-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.direccion-card.predeterminada {
  border: 2px solid var(--color-secundario);
}
.direccion-card-checkout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.dir-icon {
  font-size: 20px;
  color: var(--color-secundario);
}

.dir-info {
  flex: 1;
}

.dir-alias {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}

.dir-text {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}

.btn-cambiar-dir {
  background: var(--color-secundario);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.dir-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dir-tiempo {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
.badge-star {
  background: #fff3e0;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 16px;
}

.mini-mapa {
  height: 120px;
  border-radius: 16px;
  margin: 10px 0;
}

.dir-actions {
  display: flex;
  gap: 10px;
}

.dir-actions button {
  flex: 1;
  border: none;
  padding: 8px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.dir-actions button:nth-child(1) {
  background: var(--color-secundario);
  color: white;
}

.dir-actions button:nth-child(2) {
  background: #eee;
}

.dir-actions button:nth-child(3) {
  background: #ffebee;
  color: var(--color-secundario);
}

/****DISEÑO VISTA DIRECIONES**/
.direcciones-vista {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
  z-index: 9999;
  right: -100%;
  left: auto;
  transition: right 0.4s ease;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
}

.direcciones-vista.activo {
  right: 0;
}
.direcciones-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.icono-direccion {
  font-size: 70px;
  margin-bottom: 15px;
}

.direcciones-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.btn-agregar-dir {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 15px;
  background: var(--color-secundario);
  color: white;
  font-weight: bold;
  margin-top: 20px;
}
/* ================= PEDIDOS ================= */

.pedidos-vista {
  position: fixed;
  inset: 0;
  background: #fcf5e3;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 🔥 */
}

.pedidos-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f7f8fa;
}

.pedidos-tabs {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: white;
}

.tab-pedido {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #eee;
  font-weight: 600;
  cursor: pointer;
}

.tab-pedido.activo {
  background: var(--color-secundario);
  color: white;
}

/* CARD PEDIDO */

/* CARD */
.pedido-card-pro {
  background: white;
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 170px; /* 🔥 más alto */
}

.pedido-card-pro:hover {
  transform: translateY(-3px);
}

/* IZQUIERDA */
.pedido-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pedido-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pedido-info-top {
  flex: 1;
  min-width: 0; /* 🔥 clave */
}

.pedido-info-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.pedido-codigo {
  display: inline-block;
  background: #f4f4f4;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
}
.pedido-fecha {
  font-size: 14px;
  color: #777;
  margin-top: 6px;
}

.pedido-total {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* BOTONES */
.pedido-botones {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.pedido-botones button {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.btn-track {
  background: var(--color-secundario);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 80, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-track:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 80, 0, 0.35);
}

.btn-track:active {
  transform: scale(0.95);
}

.btn-detalle {
  background: transparent;
  border: 1.5px solid var(--color-secundario);
  color: var(--color-secundario);
  padding: 9px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-detalle:hover {
  background: #fff3e0;
}

/* IMAGEN */
.pedido-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedido-img-pro {
  width: 95px;
  height: auto;
  object-fit: contain;
  transition: 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.pedido-card-pro:hover .pedido-img-pro {
  transform: scale(1.05);
}

.tracking-vista {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.tracking-vista.activo {
  transform: translateX(0);
}

.tracking-body {
  flex: 1; /* 🔥 ocupa el espacio disponible */
  overflow-y: auto; /* 🔥 activa scroll */
  -webkit-overflow-scrolling: touch;
  padding: 30px;
}
.tracking-body::-webkit-scrollbar {
  width: 6px;
}

.tracking-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.tracking-line {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detalle-pedido {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fcf5e3;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.detalle-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.detalle-pedido.activo {
  transform: translateX(0);
}
.detalle-card {
  background: white;
  margin: 25px;
  padding: 28px;
  border-radius: 26px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.detalle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detalle-fecha {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.badge-estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
}

.badge-estado .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 🔴 PENDIENTE */
.badge-estado.pendiente {
  background: #ffe4e4;
  color: #d32f2f;
}
.badge-estado.pendiente .dot {
  background: #d32f2f;
}

/* 🟣 PREPARANDO */
.badge-estado.preparando {
  background: #f3e5f5;
  color: #8e24aa;
}
.badge-estado.preparando .dot {
  background: #8e24aa;
}

/* 🟡 EN CAMINO */
.badge-estado.en_camino {
  background: #fff4e0;
  color: #fb8c00;
}
.badge-estado.en_camino .dot {
  background: #fb8c00;
}

/* 🟢 ENTREGADO */
.badge-estado.entregado {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-estado.entregado .dot {
  background: #2e7d32;
}

/* ⚫ CANCELADO */
.badge-estado.cancelado {
  background: #eeeeee;
  color: #616161;
}
.badge-estado.cancelado .dot {
  background: #616161;
}
.badge-estado {
  transition: all 0.25s ease;
}
.detalle-divider {
  height: 1px;
  background: #eee;
  margin: 18px 0;
}

.detalle-meta {
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}

.meta-item {
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-block;
}

.detalle-productos {
  margin: 15px 0;
}

.detalle-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.detalle-item:last-child {
  border-bottom: none;
}

.detalle-left {
  display: flex;
  flex-direction: column;
}

.detalle-nombre {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.detalle-unitario {
  font-size: 13px;
  color: #777;
}

.detalle-total-item {
  font-weight: 600;
  font-size: 15px;
}

.detalle-resumen {
  margin-top: 10px;
  padding-top: 10px;
}

.detalle-resumen div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.descuento {
  color: #2e7d32;
  font-weight: 600;
}

.detalle-total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 10px;
}
.detalle-info strong {
  font-size: 15px;
}

.detalle-precio {
  font-size: 15px;
  font-weight: 600;
}

.btn-repetir {
  width: 100%;
  margin-top: 25px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: var(--color-secundario);
  color: white;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 6px 18px rgba(255, 60, 80, 0.35);
}

.btn-repetir:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 60, 80, 0.45);
}
.tracking-map {
  width: 100%;
  height: 320px;
  border-radius: 28px;
  margin-bottom: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tracking-card {
  background: white;
  padding: 24px;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.tracking-progress {
  background: white;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.tracking-progress h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.tracking-progress p {
  font-size: 14px;
  color: #777;
  margin-bottom: 18px;
}
.tracking-header-estado {
  background: white;
  padding: 22px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
}

.tracking-header-estado h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tracking-header-estado p {
  font-size: 14px;
  color: #777;
}
.tracking-header-estado.pickup-listo {
  background: #eafaf1;
  border: 1px solid var(--color-secundario);
}
.distancia {
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}

.estado-extra {
  font-size: 13px;
  color: #777;
}
.progress-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: #eee;
  transform: translateY(-50%);
  border-radius: 4px;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  width: 0%;
  background: var(--color-secundario);
  transform: translateY(-50%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-step {
  width: 42px;
  height: 42px;
  background: #f3f3f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.progress-step.activo {
  background: var(--color-secundario);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 60, 80, 0.35);
  transform: scale(1.1);
}
#estadoTexto {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.info-ruta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}
.toast-estado {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secundario);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.estado-listo {
  border: 2px solid var(--color-secundario);
  background: #eafaf1;
}
.btn-llegue {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--color-secundario);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.btn-llegue:hover {
  opacity: 0.9;
}

.qr-container {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
/* 🔥 PICKUP LISTO PRO */
.estado-pickup-listo {
  border: 2px solid var(--color-secundario);
  background: linear-gradient(135deg, #eafaf1, #d4f5e3);
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.25);
  animation: glowPickup 2s infinite ease-in-out;
}

@keyframes glowPickup {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 25px 5px rgba(39, 174, 96, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
}
/* Botón más pro cuando esté listo */
.estado-pickup-listo .btn-llegue {
  background: linear-gradient(135deg, var(--color-secundario), #2ecc71);
  box-shadow: 0 10px 25px rgba(39, 174, 96, 0.35);
  animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.tracking-header-estado.pickup-listo {
  background: #eafaf1;
  border: 1px solid var(--color-secundario);
}
.check-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 120px;
  color: var(--color-secundario);
  z-index: 99999;
  animation: fadeIn 0.3s ease;
}
.repartidor-cerca {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secundario);
  color: white;
  padding: 14px 25px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: pulseNear 1.2s infinite;
}

@keyframes pulseNear {
  0% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
.pedido-entrega {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #fff3e0;
  color: #ff6b3d;
}
.pedido-entrega.delivery {
  background: #e3f2fd;
  color: #1976d2;
}

.pedido-entrega.pickup {
  background: #e8f5e9;
  color: #2e7d32;
}
.detalle-card-rappi {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  animation: slideUpDetalle 0.4s ease;
  transform-origin: bottom;
}
@keyframes slideUpDetalle {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#detallePedidoVista.activo {
  backdrop-filter: blur(6px);
}
.detalle-seccion {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.detalle-item-row {
  margin-bottom: 6px;
  font-size: 14px;
}

.pago-status {
  font-weight: 600;
}

.detalle-producto {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prod-nombre {
  font-weight: 600;
}

.prod-detalle {
  font-size: 13px;
  color: #777;
}

.resumen-rappi .resumen-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.resumen-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-top: 10px;
}

.detalle-acciones {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secundario {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}

.btn-ayuda {
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: var(--color-primario);
  color: white;
  font-weight: 600;
}
.detalle-producto-img {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.prod-img-mini {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prod-info {
  flex: 1;
}
.badge-pago {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.badge-pago.pagado {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-pago.pendiente {
  background: #fff3e0;
  color: #ff6b3d;
}
.btn-ayuda,
.btn-secundario {
  transition: 0.2s ease;
}

.btn-ayuda:active,
.btn-secundario:active {
  transform: scale(0.96);
}
.timeline-direcciones {
  margin-top: 15px;
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.timeline-dot.actual {
  background: #2196f3;
}

.timeline-dot.tienda {
  background: #ff6b3d;
}

.timeline-dot.cliente {
  background: #4caf50;
}

.timeline-line {
  position: absolute;
  left: 5px;
  top: 18px;
  width: 2px;
  height: 40px;
  background: #ddd;
}

.timeline-text {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
/* ===== MODAL CARRITO VACÍO ===== */

.modal-vacio {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: 0.3s ease;
}

.modal-vacio.activo {
  opacity: 1;
}

.modal-vacio-card {
  background: white;
  width: 85%;
  max-width: 350px;
  border-radius: 24px;
  padding: 30px 25px;
  text-align: center;
  transform: translateY(30px);
  transition: 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.modal-vacio.activo .modal-vacio-card {
  transform: translateY(0);
}

.modal-icono {
  font-size: 50px;
  margin-bottom: 15px;
}

.modal-vacio-card h3 {
  margin-bottom: 8px;
}

.modal-vacio-card p {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.btn-vacio {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: var(--color-primario);
  color: white;
  font-weight: 600;
  font-size: 15px;
}
/*ICONOS*/
.icono-buscar {
  color: #1a7b88;
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.entrega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
}

.entrega-contenido {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* =============================
   CONFETTI ANIMATION
============================= */

#confetti-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  animation: caerConfetti linear forwards;
}

@keyframes caerConfetti {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
  }
}
/***estilos alerta*/
.credito-alerta-detalle {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.credito-alerta-detalle div {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 14px;
}

.credito-alerta-detalle span {
  color: #64748b;
  font-weight: 700;
}

.credito-alerta-detalle strong {
  color: #0f172a;
  font-weight: 900;
}

.credito-alerta-detalle .verde {
  color: #16a34a;
}

.credito-alerta-detalle .faltante {
  background: #fee2e2;
}

.credito-alerta-detalle .faltante strong {
  color: #dc2626;
}
.modal-granel-app {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
}

.modal-granel-app.activo {
  display: flex;
}

.modal-granel-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 22px;
  position: relative;
}

.cerrar-granel {
  position: absolute;
  right: 18px;
  top: 14px;
  border: none;
  background: #f2f2f2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.granel-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.modal-granel-card h3 {
  text-align: center;
  margin: 6px 0;
}

#granelPrecio {
  text-align: center;
  color: #777;
  margin-bottom: 15px;
}

.granel-total {
  background: #fff4ec;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.granel-total strong {
  color: var(--color-secundario);
  font-size: 22px;
}

.peso-input-box-app {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 18px;
  padding: 12px;
}

.peso-input-box-app input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 28px;
  font-weight: 700;
}

.quick-buttons-app {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.quick-buttons-app button {
  border: none;
  border-radius: 14px;
  padding: 10px;
  background: #f2f2f2;
  font-weight: 700;
}

.btn-confirmar-granel {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 15px;
  background: var(--color-secundario);
  color: #fff;
  font-weight: 800;
}

/* ==========================================================
   OCCHI MARKET — CAPA RESPONSIVE ECOMMERCE
   Mantiene la experiencia móvil y transforma tablet/escritorio.
========================================================== */
.brand-store,
.header-actions,
.desktop-nav,
.sidebar-title,
.desktop-shipping-card,
.btn-filtros-label,
.productos-contador,
.vista-grid,
.desktop-benefits,
.search-submit-desktop {
  display: none;
}

.cart-icon-mobile {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
}

.cart-icon-mobile span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primario);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.slide-copy {
  display: none;
}

@media (min-width: 768px) {
  body {
    background: #f6f8f9;
  }

  .app-header {
    padding: 16px 24px;
  }

  .header-ecommerce {
    max-width: 1440px;
    margin: 0 auto;
  }

  .slider {
    height: 260px;
    margin: 16px;
    width: calc(100% - 32px);
    border-radius: 22px;
  }

  .barra-filtros,
  .filtros-contenedor {
    margin-left: 16px;
    margin-right: 16px;
  }

  #listaProductos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .card img {
    height: 165px;
  }

  .card-body {
    padding: 12px;
  }
}

@media (min-width: 700px) {
  :root {
    --desktop-max: 1480px;
    --desktop-sidebar: 270px;
    --desktop-gap: 18px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: clip;
  }

  body {
    padding-bottom: 0;
    color: #172733;
    background: #f5f7f8;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    padding: 0;
    color: #172733;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.09);
    backdrop-filter: blur(18px);
  }

  .header-ecommerce {
    max-width: var(--desktop-max);
    min-height: 82px;
    padding: 12px 18px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(420px, 1fr) auto;
    align-items: center;
    gap: 24px;
  }

  .brand-store {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #17323c;
    text-decoration: none;
  }

  .brand-store img {
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .brand-copy strong {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .brand-copy span {
    margin-top: 5px;
    color: var(--color-primario);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 6px;
  }

  .top-bar,
  .cart-icon-mobile {
    display: none;
  }

  .app-header .search-box {
    position: relative;
    height: 48px;
    padding: 0 0 0 16px;
    margin: 0;
    border: 1px solid #dbe2e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(21, 47, 59, 0.05);
  }

  .app-header .search-box:focus-within {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 4px rgba(26, 123, 136, 0.1);
  }

  .app-header .search-box input {
    height: 100%;
    margin-left: 9px;
    padding-right: 62px;
    font-size: 14px;
    color: #21333c;
  }

  .search-submit-desktop {
    align-self: stretch;
    width: 54px;
    border: 0;
    border-radius: 0 11px 11px 0;
    background: var(--color-primario);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .header-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
  }

  .header-action {
    position: relative;
    min-height: 48px;
    padding: 6px 13px;
    border: 0;
    border-left: 1px solid #e6ebee;
    background: transparent;
    color: #25343c;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    white-space: nowrap;
  }

  .header-action:hover {
    color: var(--color-primario);
    background: #f4fafb;
  }

  .header-action > svg {
    width: 23px;
    height: 23px;
  }

  .header-action > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 13px;
  }

  .header-action small {
    color: #697981;
    font-size: 11px;
  }

  .cart-action b {
    position: absolute;
    top: 1px;
    left: 30px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--color-primario);
    font-size: 10px;
    display: grid;
    place-items: center;
  }

  .desktop-nav {
    height: 52px;
    padding: 0 max(18px, calc((100vw - var(--desktop-max)) / 2 + 18px));
    border-bottom: 1px solid #e8edef;
    background: #fff;
    display: grid;
    grid-template-columns: var(--desktop-sidebar) 1fr;
    gap: var(--desktop-gap);
    align-items: stretch;
  }

  .desktop-nav button {
    border: 0;
    background: transparent;
    color: #2c3b43;
    font-weight: 600;
    cursor: pointer;
  }

  .desktop-categories-title {
    padding: 0 18px;
    border-radius: 10px 10px 0 0 !important;
    background: var(--color-primario) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }

  .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-nav-links button {
    height: 100%;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .desktop-nav-links button:hover {
    color: var(--color-primario);
    background: #f5fafb;
  }

  .desktop-nav-links svg {
    width: 17px;
  }

  .store-shell {
    max-width: var(--desktop-max);
    margin: 18px auto 0;
    padding: 0 18px;
    display: grid;
    grid-template-columns: var(--desktop-sidebar) minmax(0, 1fr);
    grid-template-areas:
      "sidebar slider"
      "sidebar filters"
      "sidebar products";
    gap: 14px var(--desktop-gap);
    align-items: start;
  }

  .slider {
    grid-area: slider;
    width: 100%;
    height: 300px;
    margin: 0;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(22, 54, 66, 0.1);
  }

  .slide {
    position: relative;
  }

  .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(237, 250, 246, 0.97) 0%,
      rgba(237, 250, 246, 0.82) 35%,
      rgba(237, 250, 246, 0) 65%
    );
    pointer-events: none;
  }

  .slide img {
    object-position: center;
  }

  .slide-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 62px;
    width: 44%;
    transform: translateY(-50%);
    display: block;
  }

  .slide-copy > span {
    color: var(--color-primario);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .slide-copy h2 {
    margin: 10px 0 12px;
    color: #172d38;
    font-size: clamp(31px, 3vw, 48px);
    line-height: 1.08;
  }

  .slide-copy p {
    max-width: 440px;
    color: #5b6c74;
    font-size: 15px;
    line-height: 1.55;
  }

  .slide-copy button {
    margin-top: 20px;
    padding: 13px 21px;
    border: 0;
    border-radius: 10px;
    background: var(--color-primario);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .filtros-contenedor {
    grid-area: sidebar;
    width: 100%;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 150px;
  }

  .categorias-rappi {
    padding: 18px 14px 15px;
    border: 1px solid #e5eaed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(22, 54, 66, 0.05);
  }

  .sidebar-title {
    display: block;
    margin: 0 5px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f2;
    font-size: 16px;
  }

  .categorias-grandes,
  .categorias-pequenas {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    overflow: visible;
  }

  .categorias-pequenas {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #dfe6e9;
  }

  .categoria.grande,
  .categoria.pequena {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    justify-content: flex-start;
    cursor: pointer;
  }

  .categoria.grande::after {
    content: "›";
    margin-left: auto;
    color: #87959c;
    font-size: 20px;
  }

  .categoria.grande:hover,
  .categoria.pequena:hover {
    color: var(--color-primario);
    background: #eff8f9;
  }

  .categoria.grande.activa,
  .categoria.pequena.activa {
    color: var(--color-primario);
    background: #e9f6f7;
    font-weight: 700;
  }

  .categoria.grande.activa::after {
    color: var(--color-primario);
  }

  .desktop-shipping-card {
    min-height: 180px;
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eefafb, #d9f0f2);
    color: #1b6670;
    display: block;
    box-shadow: 0 8px 22px rgba(22, 54, 66, 0.06);
  }

  .desktop-shipping-card span {
    font-size: 22px;
    font-weight: 800;
  }

  .desktop-shipping-card p {
    margin: 7px 0 3px;
    color: #56737a;
    font-size: 13px;
  }

  .desktop-shipping-card strong {
    display: block;
    font-size: 27px;
  }

  .desktop-shipping-card button {
    margin-top: 18px;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primario);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .barra-filtros {
    grid-area: filters;
    min-height: 58px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #e5eaed;
    border-radius: 12px;
    background: #fff;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 18px rgba(22, 54, 66, 0.04);
  }

  .btn-filtros-label,
  .vista-grid {
    border: 1px solid #dde4e7;
    background: #fff;
    color: #44555d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .btn-filtros-label {
    height: 38px;
    padding: 0 13px;
    border-radius: 8px;
  }

  .barra-filtros .filtro {
    flex: 0 0 180px;
  }

  .barra-filtros .filtro select {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid #dde4e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
  }

  .catalog-toolbar-spacer {
    flex: 1;
  }

  .productos-contador {
    display: inline;
    color: #738188;
    font-size: 12px;
  }

  .vista-grid {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    background: var(--color-primario);
  }

  #main-productos {
    grid-area: products;
    min-width: 0;
  }

  #listaProductos,
  .productos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding: 0 0 28px;
  }

  .card {
    min-width: 0;
    border: 1px solid #e5eaed;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(22, 54, 66, 0.05);
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 123, 136, 0.32);
    box-shadow: 0 15px 32px rgba(22, 54, 66, 0.12);
  }

  .card img {
    height: 165px;
    padding: 14px;
  }

  .card-body {
    padding: 10px 12px 12px;
  }

  .card-body h3 {
    min-height: 38px;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .precio {
    color: #172733;
    font-size: 19px;
  }

  .btn-agregar,
  .agregar {
    min-height: 36px;
    border-radius: 8px;
  }

  .btn-fav {
    width: 34px;
    height: 34px;
    top: 9px;
    right: 9px;
  }

  .bottom-app {
    display: none !important;
  }

  #toast {
    bottom: 32px;
  }

  #carritoPanel {
    max-width: 450px;
    z-index: 3000;
    box-shadow: -18px 0 60px rgba(20, 39, 48, 0.18);
  }

  #overlay {
    z-index: 2999;
  }

  .desktop-benefits {
    max-width: calc(
      var(--desktop-max) - var(--desktop-sidebar) - var(--desktop-gap)
    );
    margin: 4px max(18px, calc((100vw - var(--desktop-max)) / 2 + 18px)) 30px
      auto;
    padding: 18px 20px;
    border: 1px solid #e5eaed;
    border-radius: 13px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .desktop-benefits article {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
  }

  .desktop-benefits svg {
    width: 27px;
    height: 27px;
    color: var(--color-primario);
  }

  .desktop-benefits div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .desktop-benefits strong {
    font-size: 13px;
  }

  .desktop-benefits span {
    color: #718087;
    font-size: 11px;
  }
}

@media (min-width: 700px) and (max-width: 1320px) {
  .header-ecommerce {
    grid-template-columns: 210px minmax(330px, 1fr) auto;
    gap: 14px;
  }

  .brand-copy strong {
    font-size: 25px;
  }

  .header-action {
    padding-inline: 9px;
  }

  .header-action > span {
    display: none;
  }

  #listaProductos,
  .productos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================
   AJUSTE FINAL: TABLET = ECOMMERCE / TELÉFONO = APP
   Se aplica en tablets verticales y horizontales.
========================================================== */
@media (min-width: 700px) and (max-width: 1099px) {
  html {
    --desktop-max: 100%;
    --desktop-sidebar: 205px;
    --desktop-gap: 14px;
  }

  body {
    padding-bottom: 0;
    background: #f5f7f8;
  }

  .app-header {
    padding: 0;
    color: #172733;
    background: #fff;
    border-radius: 0;
  }

  .header-ecommerce {
    min-height: 76px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 190px minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .brand-store {
    display: flex;
  }

  .brand-store img {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .brand-copy span {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .top-bar,
  .cart-icon-mobile,
  .bottom-app {
    display: none !important;
  }

  .app-header .search-box {
    height: 46px;
    margin: 0;
  }

  .header-actions {
    display: flex;
  }

  .header-action {
    width: 44px;
    min-width: 44px;
    padding: 6px;
    justify-content: center;
  }

  .header-action > span {
    display: none;
  }

  .desktop-nav {
    display: grid;
    height: 50px;
    padding: 0 16px;
    grid-template-columns: var(--desktop-sidebar) minmax(0, 1fr);
  }

  .desktop-nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .desktop-nav-links::-webkit-scrollbar {
    display: none;
  }

  .desktop-nav-links button {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 12px;
  }

  .store-shell {
    width: 100%;
    margin-top: 14px;
    padding: 0 16px;
    grid-template-columns: var(--desktop-sidebar) minmax(0, 1fr);
    gap: 12px var(--desktop-gap);
  }

  .filtros-contenedor {
    top: 140px;
  }

  .categorias-rappi {
    padding: 15px 11px;
  }

  .desktop-shipping-card {
    min-height: 150px;
    padding: 17px 14px;
  }

  .desktop-shipping-card span {
    font-size: 19px;
  }

  .desktop-shipping-card strong {
    font-size: 23px;
  }

  .slider {
    height: 245px;
  }

  .slide-copy {
    left: 35px;
    width: 54%;
  }

  .slide-copy h2 {
    font-size: clamp(25px, 4vw, 36px);
  }

  .slide-copy p {
    font-size: 13px;
  }

  .barra-filtros {
    overflow-x: auto;
  }

  .barra-filtros .filtro {
    flex: 0 0 145px;
  }

  .productos-contador {
    display: none;
  }

  #listaProductos,
  .productos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .card img {
    height: 145px;
  }

  .desktop-benefits {
    margin: 4px 16px 25px
      calc(var(--desktop-sidebar) + var(--desktop-gap) + 16px);
    padding: 15px;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet horizontal: más productos sin perder la estructura ecommerce. */
@media (min-width: 900px) and (max-width: 1099px) {
  html {
    --desktop-sidebar: 225px;
  }

  .header-ecommerce {
    grid-template-columns: 210px minmax(330px, 1fr) auto;
  }

  #listaProductos,
  .productos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Solo teléfonos conservan el diseño tipo aplicación. */
@media (max-width: 699px) {
  .desktop-nav,
  .brand-store,
  .header-actions,
  .desktop-benefits,
  .sidebar-title,
  .desktop-shipping-card,
  .btn-filtros-label,
  .productos-contador,
  .vista-grid,
  .search-submit-desktop {
    display: none !important;
  }
}

/* ==========================================================
   OCCHI MARKET — CHECKOUT RESPONSIVE PREMIUM
   Móvil conserva la experiencia tipo app.
   Tablet, laptop y escritorio usan dos columnas.
========================================================== */

.checkout-header-pro {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: var(--color-primario);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 63, 71, 0.18);
  border-radius: 0 0 34px 34px;
}

.checkout-header-inner {
  min-height: 88px;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.checkout-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.checkout-back-text,
.checkout-secure,
.checkout-kicker,
.checkout-title-group p {
  display: none;
}

.checkout-title-group {
  min-width: 0;
  text-align: center;
}

.checkout-title-group h1 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}

.checkout-layout {
  display: block;
}

.checkout-main-column,
.checkout-summary-column {
  min-width: 0;
}

.checkout-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-section-heading h3 {
  margin: 0 0 4px;
}

.checkout-section-heading p {
  margin: 0;
  color: #71808a;
  font-size: 13px;
  line-height: 1.45;
}

.checkout-step {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(26, 123, 136, 0.12);
  color: var(--color-primario);
  font-size: 13px;
  font-weight: 800;
}

.tipo-entrega {
  align-items: stretch;
}

.tipo-btn {
  min-width: 0;
  min-height: 58px;
  padding: 13px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: left;
}

.tipo-copy {
  display: none;
}

.tipo-check,
.metodo-check {
  display: none;
}

.entrega-identidad {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entrega-identidad > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entrega-identidad small {
  color: #73808a;
  font-weight: 500;
}

.entrega-icon,
.checkout-time-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #edf7f8;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.checkout-field {
  display: grid;
  gap: 7px;
}

.checkout-field > span {
  color: #46545d;
  font-size: 13px;
  font-weight: 700;
}

.checkout-time-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-time-card > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkout-time-card small {
  color: #71808a;
}

.metodo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metodo-copy small {
  display: none;
  color: #71808a;
  font-size: 12px;
  font-weight: 500;
}

.metodo-icon {
  font-size: 19px;
}

.checkout-options-grid {
  display: block;
}

.checkout-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.checkout-coupon-row input {
  min-width: 0;
  margin: 0 !important;
}

.checkout-coupon-row button {
  align-self: stretch;
}

.checkout-summary-column {
  display: contents;
}

.checkout-summary-sticky {
  display: contents;
}

.checkout-summary-card .resumen-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-totals-card {
  margin-top: 0;
}

.checkout-footer .total-bar {
  gap: 12px;
}

.checkout-footer .total-bar > span {
  color: #66757f;
  font-size: 13px;
  font-weight: 700;
}

.checkout-footer .total-bar > strong {
  color: #102833;
  font-size: 24px;
}

.checkout-footer .btn-confirmar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-trust {
  display: none;
}

@media (min-width: 700px) {
  .checkout {
    background:
      radial-gradient(
        circle at top left,
        rgba(26, 123, 136, 0.08),
        transparent 30%
      ),
      #f4f7f8;
  }

  .checkout-header-pro {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #172733;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.1);
    backdrop-filter: blur(18px);
  }

  .checkout-header-inner {
    max-width: 1320px;
    min-height: 96px;
    margin: 0 auto;
    padding: 16px 28px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  }

  .checkout-back {
    width: auto;
    height: 44px;
    padding: 0 14px;
    justify-self: start;
    grid-auto-flow: column;
    gap: 8px;
    border: 1px solid #dce5e8;
    background: #fff;
    color: #29424d;
    font-size: 18px;
    box-shadow: 0 5px 16px rgba(16, 40, 51, 0.06);
  }

  .checkout-back-text {
    display: inline;
    font-size: 13px;
    font-weight: 750;
  }

  .checkout-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  .checkout-title-group h1 {
    color: #152b35;
    font-size: 24px;
  }

  .checkout-title-group p {
    display: block;
    margin: 4px 0 0;
    color: #71808a;
    font-size: 12px;
  }

  .checkout-secure {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25414b;
  }

  .checkout-secure-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #eaf7f5;
    display: grid;
    place-items: center;
  }

  .checkout-secure > span:last-child {
    display: flex;
    flex-direction: column;
  }

  .checkout-secure strong {
    font-size: 12px;
  }

  .checkout-secure small {
    margin-top: 2px;
    color: #71808a;
    font-size: 10px;
  }

  .checkout-body.checkout-layout {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 38%);
    gap: 22px;
    align-items: start;
    overflow-y: auto;
  }

  .checkout-main-column {
    display: grid;
    gap: 16px;
  }

  .checkout .bloque {
    margin: 0;
    padding: 20px;
    border: 1px solid #e4ebee;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(21, 43, 53, 0.055);
  }

  .checkout-section-heading {
    margin-bottom: 18px;
  }

  .checkout-section-heading p {
    font-size: 13px;
  }

  .tipo-entrega {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tipo-btn {
    min-height: 88px;
    justify-content: flex-start;
    padding: 16px;
    border: 1px solid #dfe8eb;
    border-radius: 16px;
    background: #f9fbfb;
    color: #203842;
    box-shadow: none;
  }

  .tipo-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 123, 136, 0.45);
    box-shadow: 0 10px 22px rgba(20, 78, 86, 0.08);
  }

  .tipo-btn.activo {
    color: #173039;
    border: 2px solid var(--color-primario);
    background: #edf8f8;
    box-shadow: 0 10px 24px rgba(26, 123, 136, 0.12);
  }

  .tipo-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(22, 49, 58, 0.08);
  }

  .tipo-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .tipo-copy strong {
    font-size: 14px;
  }

  .tipo-copy small {
    color: #71808a;
    font-size: 11px;
    line-height: 1.35;
  }

  .tipo-check {
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--color-primario);
    color: #fff;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
  }

  .tipo-btn.activo .tipo-check {
    display: grid;
  }

  .entrega-header {
    padding: 12px 14px;
    border: 1px solid #e2e9ec;
    border-radius: 15px;
    background: #f9fbfb;
  }

  .entrega-contenido {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .entrega-contenido:not(.oculto) {
    display: grid;
  }

  .checkout input,
  #notasPedido {
    border: 1px solid #dbe4e7;
    background: #fbfcfc;
  }

  .checkout input:focus,
  #notasPedido:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(26, 123, 136, 0.12);
  }

  .checkout-time-card {
    padding: 15px 18px !important;
    background: linear-gradient(135deg, #edf9f7, #f7fcfb);
  }

  .metodos-pago {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metodo {
    min-height: 76px;
    padding: 14px;
    border: 1px solid #e1e8eb;
    border-radius: 15px;
    background: #f9fbfb;
    gap: 11px;
  }

  .metodo:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 123, 136, 0.4);
  }

  .metodo.activo {
    border: 2px solid var(--color-primario);
    background: #edf8f8;
    box-shadow: 0 8px 20px rgba(26, 123, 136, 0.1);
  }

  .metodo-copy small {
    display: block;
  }

  .metodo-check {
    width: 23px;
    height: 23px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--color-primario);
    color: #fff;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
  }

  .metodo.activo .metodo-check {
    display: grid;
  }

  .checkout-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .checkout-section-heading.compact {
    margin-bottom: 14px;
  }

  .propinas button {
    min-height: 42px;
    border: 1px solid #e0e8eb;
    background: #f7f9fa;
    color: #334c56;
  }

  .propinas button:hover,
  .propinas button.activo {
    border-color: var(--color-primario);
    background: var(--color-primario);
    color: #fff;
  }

  .checkout-coupon-row button {
    border-radius: 12px;
    box-shadow: none;
  }

  .checkout-summary-column {
    display: block;
  }

  .checkout-summary-sticky {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
  }

  .checkout-summary-card .resumen-header {
    padding: 0 0 14px;
    border-bottom: 1px solid #e8edef;
  }

  .checkout-summary-card #resumenToggle {
    display: none;
  }

  .checkout-summary-card .resumen-contenido,
  .checkout-summary-card .resumen-contenido.oculto {
    display: block !important;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .resumen-item {
    gap: 14px;
    padding: 12px 0;
  }

  .resumen-nombre {
    font-size: 13px;
  }

  .resumen-detalle {
    margin-top: 3px;
    font-size: 11px;
  }

  .resumen-precio {
    white-space: nowrap;
    font-size: 13px;
  }

  .resumen-total {
    display: none;
  }

  .checkout-totals-card {
    padding: 18px 20px !important;
  }

  .checkout-totals-card .linea {
    margin: 0;
    padding: 8px 0;
    color: #5d6c75;
    font-size: 13px;
  }

  .checkout-totals-card .linea span:last-child {
    color: #172d36;
    font-weight: 800;
  }

  .checkout-shipping-progress {
    padding: 15px 18px !important;
  }

  .checkout-footer {
    position: static;
    padding: 20px;
    border: 1px solid #e1e8eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(21, 43, 53, 0.08);
  }

  .checkout-footer .total-bar {
    margin-bottom: 15px;
  }

  .checkout-footer .total-bar > span {
    font-size: 14px;
  }

  .checkout-footer .total-bar > strong {
    color: var(--color-primario);
    font-size: 29px;
  }

  .btn-confirmar {
    min-height: 52px;
    border-radius: 13px;
    background: linear-gradient(
      135deg,
      var(--color-primario),
      var(--color-primario)
    );
    box-shadow: 0 12px 24px rgba(26, 123, 136, 0.2);
  }

  .checkout-trust {
    margin-top: 13px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: #71808a;
    font-size: 10px;
    font-weight: 700;
  }
}

@media (min-width: 1000px) {
  .checkout-body.checkout-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    padding: 32px;
  }

  .checkout .bloque {
    padding: 23px;
  }

  .checkout-title-group h1 {
    font-size: 27px;
  }
}

@media (min-width: 1250px) {
  .checkout-body.checkout-layout {
    grid-template-columns: minmax(0, 780px) 410px;
    justify-content: center;
    gap: 32px;
  }
}

/* Botón: sincroniza visualmente el importe que ya calcula el checkout. */
@media (min-width: 700px) {
  #btnConfirmarCompra .checkout-total-button {
    display: inline;
  }
}

/* ==========================================================
   OCCHI MARKET — SEGUIMIENTO RESPONSIVE PREMIUM
   Móvil mantiene una vista compacta.
   Tablet, laptop y escritorio usan mapa + panel lateral.
========================================================== */

.tracking-vista {
  background:
    radial-gradient(
      circle at top left,
      rgba(26, 123, 136, 0.08),
      transparent 34%
    ),
    #f4f7f8;
}

.tracking-header-pro {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: var(--color-primario);
  color: #fff;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 8px 24px rgba(15, 63, 71, 0.18);
}

.tracking-header-inner {
  min-height: 88px;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.tracking-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tracking-back-text,
.tracking-live-badge,
.tracking-kicker,
.tracking-title-group p {
  display: none;
}

.tracking-title-group {
  text-align: center;
}

.tracking-title-group h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.tracking-body {
  padding: 16px;
}

.tracking-layout {
  width: 100%;
  display: grid;
  gap: 16px;
}

.tracking-map-panel,
.tracking-header-estado,
.tracking-progress,
.tracking-card {
  border: 1px solid #e4ebee;
  box-shadow: 0 10px 28px rgba(21, 43, 53, 0.07);
}

.tracking-map-panel {
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
}

.tracking-map-toolbar {
  display: none;
}

.tracking-map {
  height: 290px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.tracking-status-column {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.tracking-header-estado {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.tracking-status-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #eaf7f8;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.tracking-header-estado > div {
  min-width: 0;
}

.tracking-header-estado h2 {
  margin: 3px 0 4px;
  color: #172d36;
}

.tracking-header-estado p {
  margin: 0;
  line-height: 1.45;
}

.tracking-eyebrow {
  color: var(--color-primario);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.tracking-progress {
  margin: 0;
  padding: 18px 16px 20px;
  border-radius: 18px;
}

.tracking-progress-head {
  margin-bottom: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracking-progress-head strong {
  color: #203842;
  font-size: 14px;
}

.tracking-progress-head span {
  color: #7b8991;
  font-size: 11px;
}

.progress-line {
  padding: 0 5px;
}

.progress-line::before,
.progress-fill {
  top: 21px;
}

.progress-step {
  width: 42px;
  height: auto;
  min-height: 42px;
  background: transparent;
  border-radius: 0;
  flex-direction: column;
  gap: 7px;
  font-size: 17px;
  color: #77858d;
}

.progress-step > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f4f5;
  display: grid;
  place-items: center;
}

.progress-step small {
  display: none;
  white-space: nowrap;
  color: #75838b;
  font-size: 9px;
  font-weight: 700;
}

.progress-step.activo {
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.progress-step.activo > span {
  background: var(--color-primario);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 123, 136, 0.24);
  transform: scale(1.06);
}

.tracking-card {
  padding: 18px;
  border-radius: 18px;
}

.tracking-card-title {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e8edef;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tracking-card-title h3 {
  margin: 4px 0 0;
  color: #172d36;
  font-size: 16px;
}

.tracking-order-chip {
  max-width: 47%;
  padding: 7px 9px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf7f8;
  color: var(--color-primario);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-order-meta {
  margin: 14px 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tracking-order-meta > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5ecee;
  border-radius: 13px;
  background: #f9fbfb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tracking-order-meta small {
  color: #77858d;
  font-size: 10px;
}

.tracking-order-meta strong {
  overflow: hidden;
  color: #172d36;
  font-size: 12px;
  text-overflow: ellipsis;
}

.info-ruta {
  margin: 0;
}

.tracking-route-pill,
.info-ruta:not(:empty) {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8f8;
  color: #31505a;
  font-size: 12px;
  font-weight: 700;
}

.btn-llegue {
  min-height: 48px;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    var(--color-primario),
    var(--color-primario)
  );
  box-shadow: 0 10px 22px rgba(26, 123, 136, 0.2);
}

.tracking-loading,
.tracking-error {
  max-width: 520px;
  margin: 80px auto;
  padding: 28px;
  border: 1px solid #e4ebee;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(21, 43, 53, 0.08);
}

@media (min-width: 700px) {
  .tracking-header-pro {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #172733;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.1);
    backdrop-filter: blur(18px);
  }

  .tracking-header-inner {
    max-width: 1320px;
    min-height: 96px;
    margin: 0 auto;
    padding: 16px 28px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  }

  .tracking-back {
    width: auto;
    height: 44px;
    padding: 0 14px;
    justify-self: start;
    grid-auto-flow: column;
    gap: 8px;
    border: 1px solid #dce5e8;
    background: #fff;
    color: #29424d;
    font-size: 18px;
    box-shadow: 0 5px 16px rgba(16, 40, 51, 0.06);
  }

  .tracking-back-text {
    display: inline;
    font-size: 13px;
    font-weight: 750;
  }

  .tracking-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  .tracking-title-group h1 {
    color: #152b35;
    font-size: 24px;
  }

  .tracking-title-group p {
    display: block;
    margin: 4px 0 0;
    color: #71808a;
    font-size: 12px;
  }

  .tracking-live-badge {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #25414b;
  }

  .tracking-live-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #24a56a;
    box-shadow: 0 0 0 6px rgba(36, 165, 106, 0.12);
    animation: trackingLivePulse 1.8s infinite;
  }

  .tracking-live-badge > span:last-child {
    display: flex;
    flex-direction: column;
  }

  .tracking-live-badge strong {
    font-size: 12px;
  }

  .tracking-live-badge small {
    margin-top: 2px;
    color: #71808a;
    font-size: 10px;
  }

  @keyframes trackingLivePulse {
    50% {
      box-shadow: 0 0 0 10px rgba(36, 165, 106, 0);
    }
  }

  .tracking-body {
    padding: 28px;
  }

  .tracking-layout {
    max-width: 1320px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
    align-items: start;
    gap: 22px;
  }

  .tracking-map-panel {
    position: sticky;
    top: 0;
    border-radius: 20px;
  }

  .tracking-map-toolbar {
    min-height: 66px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tracking-map-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .tracking-map-toolbar strong {
    color: #18313b;
    font-size: 14px;
  }

  .tracking-map-live {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf8f2;
    color: #268458;
    font-size: 10px;
    font-weight: 800;
  }

  .tracking-map-live i {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #27a969;
    display: inline-block;
  }

  .tracking-map {
    height: calc(100dvh - 224px);
    min-height: 470px;
    max-height: 720px;
  }

  .tracking-status-column {
    gap: 14px;
  }

  .tracking-header-estado,
  .tracking-progress,
  .tracking-card {
    border-radius: 18px;
  }

  .progress-step small {
    display: block;
  }

  .tracking-order-chip {
    max-width: 44%;
  }
}

@media (min-width: 1000px) {
  .tracking-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
  }

  .tracking-body {
    padding: 32px;
  }

  .tracking-header-estado,
  .tracking-progress,
  .tracking-card {
    padding: 21px;
  }
}

@media (min-width: 1250px) {
  .tracking-layout {
    grid-template-columns: minmax(0, 820px) 410px;
    justify-content: center;
    gap: 32px;
  }
}

/* ==========================================================
   OCCHI MARKET — DETALLE DEL PEDIDO RESPONSIVE PREMIUM
   Teléfono: una columna tipo app.
   Tablet, laptop y escritorio: contenido + resumen lateral.
========================================================== */

.detalle-pedido {
  background:
    radial-gradient(
      circle at top left,
      rgba(26, 123, 136, 0.08),
      transparent 34%
    ),
    #f4f7f8;
}

.order-detail-header-pro {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: var(--color-primario);
  color: #fff;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 8px 24px rgba(15, 63, 71, 0.18);
}

.order-detail-header-inner {
  min-height: 88px;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.order-detail-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
}

.order-detail-back-text,
.order-detail-help,
.order-detail-kicker,
.order-detail-title-group p {
  display: none;
}

.order-detail-title-group {
  min-width: 0;
  text-align: center;
}

.order-detail-title-group h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.detalle-body {
  padding: 16px;
}

.order-detail-layout {
  width: 100%;
  display: grid;
  gap: 15px;
}

.order-detail-main,
.order-detail-sidebar,
.order-detail-summary-sticky {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.order-detail-hero,
.order-detail-card {
  border: 1px solid #e4ebee;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 43, 53, 0.07);
}

.order-detail-hero {
  padding: 18px;
  border-radius: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-eyebrow {
  color: var(--color-primario);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.order-detail-hero h2 {
  margin: 5px 0 5px;
  overflow-wrap: anywhere;
  color: #172d36;
  font-size: 19px;
}

.order-detail-hero p {
  margin: 0;
  color: #75838b;
  font-size: 12px;
}

.order-detail-card {
  padding: 18px;
  border-radius: 19px;
}

.order-detail-card-heading {
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edef;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-card-heading h3 {
  margin: 4px 0 0;
  color: #172d36;
  font-size: 16px;
}

.order-detail-count {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f8;
  color: var(--color-primario);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.order-detail-products-list {
  display: grid;
  gap: 2px;
}

.order-detail-product {
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f2;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.order-detail-product:last-child {
  border-bottom: 0;
}

.order-detail-product-image {
  width: 54px;
  height: 54px;
  border: 1px solid #e5ecee;
  border-radius: 14px;
  background: #f8fafb;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.order-detail-product-image img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.order-detail-product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-detail-product-copy strong {
  overflow: hidden;
  color: #203842;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.order-detail-product-copy span {
  color: #78868e;
  font-size: 11px;
}

.order-detail-product-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
}

.order-detail-product-total small {
  color: #8a969d;
  font-size: 9px;
}

.order-detail-product-total strong {
  color: #172d36;
  font-size: 13px;
}

.order-detail-service-grid {
  display: grid;
  gap: 11px;
}

.order-detail-service-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5ecee;
  border-radius: 15px;
  background: #f9fbfb;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-detail-service-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #edf7f8;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.order-detail-service-grid article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-detail-service-grid small {
  color: #7a8890;
  font-size: 10px;
}

.order-detail-service-grid strong {
  color: #1c3540;
  font-size: 13px;
}

.order-detail-service-grid p {
  margin: 0;
  color: #74828a;
  font-size: 11px;
  line-height: 1.45;
}

.order-detail-service-grid .badge-pago {
  width: fit-content;
  margin: 3px 0 0;
}

.order-detail-summary-meta {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-detail-summary-meta > div {
  padding: 12px;
  border: 1px solid #e5ecee;
  border-radius: 13px;
  background: #f9fbfb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-detail-summary-meta small {
  color: #7a8890;
  font-size: 10px;
}

.order-detail-summary-meta strong {
  overflow: hidden;
  color: #1c3540;
  font-size: 12px;
  text-overflow: ellipsis;
}

.order-detail-summary-lines {
  padding: 3px 0 12px;
  border-bottom: 1px solid #e8edef;
  display: grid;
  gap: 10px;
}

.order-detail-summary-lines > div,
.order-detail-grand-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.order-detail-summary-lines span {
  color: #6f7e86;
  font-size: 12px;
}

.order-detail-summary-lines strong {
  color: #203842;
  font-size: 12px;
}

.order-detail-discount span,
.order-detail-discount strong {
  color: #278255;
}

.order-detail-grand-total {
  padding-top: 16px;
  align-items: flex-end;
}

.order-detail-grand-total span {
  color: #5e6e76;
  font-size: 13px;
  font-weight: 700;
}

.order-detail-grand-total strong {
  color: var(--color-primario);
  font-size: 25px;
}

.detalle-acciones {
  margin: 0;
  display: grid;
  gap: 9px;
}

.detalle-acciones > button {
  width: 100%;
  min-height: 58px;
  padding: 11px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.detalle-acciones > button:hover {
  transform: translateY(-2px);
}

.detalle-acciones > button > span:first-child {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.detalle-acciones > button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detalle-acciones strong {
  font-size: 12px;
}

.detalle-acciones small {
  color: #74828a;
  font-size: 10px;
}

.btn-reorder-detail,
.btn-contact-detail {
  border: 1px solid #dfe7ea;
  background: #fff;
  color: #203842;
}

.btn-reorder-detail > span:first-child,
.btn-contact-detail > span:first-child {
  background: #edf7f8;
}

.btn-help-detail {
  border: 0;
  background: linear-gradient(
    135deg,
    var(--color-primario),
    var(--color-primario)
  );
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 123, 136, 0.19);
}

.btn-help-detail > span:first-child {
  background: rgba(255, 255, 255, 0.15);
}

.btn-help-detail small {
  color: rgba(255, 255, 255, 0.78);
}

.order-detail-trust {
  display: none;
}

@media (min-width: 700px) {
  .order-detail-header-pro {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #172733;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.1);
    backdrop-filter: blur(18px);
  }

  .order-detail-header-inner {
    max-width: 1320px;
    min-height: 96px;
    margin: 0 auto;
    padding: 16px 28px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  }

  .order-detail-back {
    width: auto;
    height: 44px;
    padding: 0 14px;
    justify-self: start;
    grid-auto-flow: column;
    gap: 8px;
    border: 1px solid #dce5e8;
    background: #fff;
    color: #29424d;
    font-size: 18px;
    box-shadow: 0 5px 16px rgba(16, 40, 51, 0.06);
  }

  .order-detail-back-text {
    display: inline;
    font-size: 13px;
    font-weight: 750;
  }

  .order-detail-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  .order-detail-title-group h1 {
    color: #152b35;
    font-size: 24px;
  }

  .order-detail-title-group p {
    display: block;
    margin: 4px 0 0;
    color: #71808a;
    font-size: 12px;
  }

  .order-detail-help {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25414b;
  }

  .order-detail-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #eaf7f5;
    display: grid;
    place-items: center;
  }

  .order-detail-help > span:last-child {
    display: flex;
    flex-direction: column;
  }

  .order-detail-help strong {
    font-size: 12px;
  }

  .order-detail-help small {
    margin-top: 2px;
    color: #71808a;
    font-size: 10px;
  }

  .detalle-body {
    padding: 28px;
  }

  .order-detail-layout {
    max-width: 1320px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 38%);
    align-items: start;
    gap: 22px;
  }

  .order-detail-main {
    gap: 16px;
  }

  .order-detail-summary-sticky {
    position: sticky;
    top: 18px;
  }

  .order-detail-hero,
  .order-detail-card {
    padding: 21px;
  }

  .order-detail-hero h2 {
    font-size: 22px;
  }

  .order-detail-products-list {
    gap: 0;
  }

  .order-detail-product {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .order-detail-product-image {
    width: 62px;
    height: 62px;
  }

  .order-detail-product-copy strong {
    font-size: 14px;
  }

  .order-detail-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-detail-trust {
    padding: 0 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: #71808a;
    font-size: 10px;
    font-weight: 700;
  }
}

@media (min-width: 1000px) {
  .order-detail-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
  }

  .detalle-body {
    padding: 32px;
  }
}

@media (min-width: 1250px) {
  .order-detail-layout {
    grid-template-columns: minmax(0, 780px) 410px;
    justify-content: center;
    gap: 32px;
  }
}

/* ==========================================================
   OCCHI MARKET — HISTORIAL DE PEDIDOS RESPONSIVE PREMIUM
========================================================== */
.pedidos-vista {
  background:
    radial-gradient(
      circle at top left,
      rgba(26, 123, 136, 0.08),
      transparent 34%
    ),
    #f4f7f8;
}

.orders-header-pro {
  flex: 0 0 auto;
  background: var(--color-primario);
  color: #fff;
  border-radius: 0 0 34px 34px;
  box-shadow: 0 8px 24px rgba(15, 63, 71, 0.18);
}

.orders-header-inner {
  min-height: 88px;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.orders-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.orders-back-text,
.orders-help,
.orders-kicker,
.orders-title-group p {
  display: none;
}

.orders-title-group {
  text-align: center;
}
.orders-title-group h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.orders-toolbar {
  flex: 0 0 auto;
  padding: 12px 14px 0;
  background: transparent;
}

.orders-toolbar-inner,
.orders-content {
  width: 100%;
}

.pedidos-tabs {
  padding: 6px;
  gap: 6px;
  border: 1px solid #e2e9ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 43, 53, 0.06);
}

.tab-pedido {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #53636c;
  background: transparent;
}

.tab-pedido b {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf1f2;
  font-size: 10px;
}

.tab-pedido.activo {
  background: var(--color-primario);
  color: #fff;
  box-shadow: 0 7px 16px rgba(26, 123, 136, 0.18);
}
.tab-pedido.activo b {
  background: rgba(255, 255, 255, 0.18);
}

.pedidos-body {
  padding: 16px;
}
.orders-section-title {
  display: none;
}
.orders-grid {
  display: grid;
  gap: 14px;
}

.pedido-card-pro {
  min-height: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid #e3eaed;
  border-radius: 19px;
  background: #fff;
  display: grid;
  gap: 15px;
  box-shadow: 0 10px 28px rgba(21, 43, 53, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.pedido-card-pro:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 123, 136, 0.28);
  box-shadow: 0 16px 34px rgba(21, 43, 53, 0.1);
}

.pedido-card-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
}

.pedido-order-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #edf7f8;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.pedido-label {
  color: #78868e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pedido-info-top h3 {
  margin: 3px 0 4px;
  overflow: hidden;
  color: #172d36;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedido-fecha {
  margin: 0;
  font-size: 11px;
}

.badge-estado {
  padding: 7px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.pedido-card-body {
  padding: 13px;
  border: 1px solid #e7edef;
  border-radius: 14px;
  background: #f9fbfb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pedido-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pedido-stat small {
  color: #7a8890;
  font-size: 10px;
}
.pedido-stat strong {
  overflow: hidden;
  color: #18313b;
  font-size: 13px;
  text-overflow: ellipsis;
}
.pedido-stat-entrega {
  grid-column: 1 / -1;
}

.pedido-entrega {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pedido-entrega > span {
  font-size: 18px;
}
.pedido-entrega > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pedido-entrega strong {
  font-size: 12px;
}
.pedido-entrega small {
  color: #6f7f87;
  font-size: 10px;
}

.pedido-botones {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.pedido-botones button {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

.btn-track {
  box-shadow: 0 9px 20px rgba(26, 123, 136, 0.18);
}
.btn-detalle:hover {
  background: #edf8f8;
}

.orders-empty {
  padding: 40px 20px;
  border: 1px solid #e3eaed;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(21, 43, 53, 0.06);
}
.orders-empty-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 42px;
}
.orders-empty h3 {
  margin: 0 0 6px;
  color: #17303a;
}
.orders-empty p {
  margin: 0;
  color: #78868e;
  font-size: 13px;
}

@media (min-width: 700px) {
  .orders-header-pro {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #172733;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.1);
    backdrop-filter: blur(18px);
  }

  .orders-header-inner {
    max-width: 1320px;
    min-height: 96px;
    margin: 0 auto;
    padding: 16px 28px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  }

  .orders-back {
    width: auto;
    height: 44px;
    padding: 0 14px;
    justify-self: start;
    grid-auto-flow: column;
    gap: 8px;
    border: 1px solid #dce5e8;
    background: #fff;
    color: #29424d;
    font-size: 18px;
    box-shadow: 0 5px 16px rgba(16, 40, 51, 0.06);
  }

  .orders-back-text {
    display: inline;
    font-size: 13px;
    font-weight: 750;
  }
  .orders-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }
  .orders-title-group h1 {
    color: #152b35;
    font-size: 24px;
  }
  .orders-title-group p {
    display: block;
    margin: 4px 0 0;
    color: #71808a;
    font-size: 12px;
  }

  .orders-help {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25414b;
  }
  .orders-help-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #eaf7f5;
    display: grid;
    place-items: center;
  }
  .orders-help > span:last-child {
    display: flex;
    flex-direction: column;
  }
  .orders-help strong {
    font-size: 12px;
  }
  .orders-help small {
    margin-top: 2px;
    color: #71808a;
    font-size: 10px;
  }

  .orders-toolbar {
    padding: 18px 28px 0;
  }
  .orders-toolbar-inner,
  .orders-content {
    max-width: 1320px;
    margin: 0 auto;
  }
  .pedidos-tabs {
    width: fit-content;
    min-width: 430px;
  }
  .tab-pedido {
    min-width: 132px;
  }

  .pedidos-body {
    padding: 22px 28px 32px;
  }
  .orders-section-title {
    margin-bottom: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
  }
  .orders-eyebrow {
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
  }
  .orders-section-title h2 {
    margin: 4px 0 0;
    color: #172d36;
    font-size: 22px;
  }
  .orders-results-text {
    color: #71808a;
    font-size: 12px;
  }
  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .pedido-card-pro {
    padding: 20px;
  }
  .pedido-card-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pedido-stat-entrega {
    grid-column: auto;
  }
}

@media (min-width: 1180px) {
  .orders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ==========================================================
   CORRECCIÓN DE CAPAS — MIS PEDIDOS
   Evita que el header principal del ecommerce quede encima.
========================================================== */
#pedidosVista.pedidos-vista {
  z-index: 6000;
}

#pedidosVista .orders-header-pro {
  position: relative;
  z-index: 2;
}

#pedidosVista .orders-toolbar,
#pedidosVista .pedidos-body {
  position: relative;
  z-index: 1;
}

/* Asegura que las tarjetas usen el diseño premium y no el flex antiguo. */
#pedidosVista .orders-grid {
  display: grid;
}

#pedidosVista .pedido-card-pro {
  min-height: 0;
  margin: 0;
  display: grid;
  align-items: stretch;
  justify-content: initial;
}
#pedidosVista.pedidos-vista {
  z-index: 6000;
}

#trackingVista.tracking-vista {
  z-index: 7000 !important;
}

#trackingVista.tracking-vista.activo {
  transform: translateX(0);
}

#detallePedidoVista.detalle-pedido {
  z-index: 7100 !important;
}

/* ==========================================================
   OCCHI POS — AGREGAR DIRECCIÓN RESPONSIVE PREMIUM
   Conserva IDs, funciones, mapa y endpoint existentes.
========================================================== */

#modalDireccion.modal-direccion {
  inset: 0;
  bottom: auto;
  width: 100%;
  height: 100dvh;
  padding: 0;
  border-radius: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(26, 123, 136, 0.08),
      transparent 32%
    ),
    #f4f7f8;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  overflow: hidden;
  z-index: 10000;
}

#modalDireccion.modal-direccion.activo {
  bottom: auto;
  transform: translateY(0);
}

.address-header-pro {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  background: var(--color-primario);
  color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 24px rgba(15, 63, 71, 0.18);
}

.address-header-inner {
  min-height: 88px;
  padding: 18px 18px 24px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.address-back {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}

.address-back-text,
.address-safe,
.address-kicker,
.address-title-group p {
  display: none;
}

.address-title-group {
  min-width: 0;
  text-align: center;
}

.address-title-group h1 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.address-layout {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.address-map-card,
.address-form-card {
  border: 1px solid #e3eaed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 43, 53, 0.07);
}

.address-map-card {
  overflow: hidden;
}

.address-map-heading,
.address-form-heading {
  padding: 18px 18px 14px;
}

.address-eyebrow {
  color: var(--color-primario);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.address-map-heading h2,
.address-form-heading h2 {
  margin: 5px 0 5px;
  color: #172d36;
  font-size: 17px;
}

.address-map-heading p,
.address-form-heading p {
  margin: 0;
  color: #75838b;
  font-size: 12px;
  line-height: 1.45;
}

.address-map-badge {
  display: none;
}

.address-search-wrap {
  position: relative;
  margin: 0 16px 14px;
}

.address-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--color-primario);
  font-size: 20px;
}

#modalDireccion .input-buscar-mapa {
  position: static;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 43px;
  border: 1px solid #dce5e8;
  border-radius: 14px;
  background: #f9fbfb;
  box-shadow: none;
  font-size: 14px;
}

#modalDireccion .input-buscar-mapa:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(26, 123, 136, 0.11);
}

#modalDireccion .address-map {
  width: 100%;
  height: 280px;
  margin: 0;
  border-radius: 0;
}

.address-location-button {
  width: calc(100% - 32px);
  min-height: 58px;
  margin: 14px 16px 16px;
  padding: 11px 14px;
  border: 1px solid #dce7ea;
  border-radius: 14px;
  background: #eef8f8;
  color: #1b4f58;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  text-align: left;
}

.address-location-button > span:first-child {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
}

.address-location-button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.address-location-button strong {
  font-size: 12px;
}

.address-location-button small {
  color: #6e7e86;
  font-size: 10px;
}

.address-form-card {
  padding: 18px;
}

.address-form-heading {
  padding: 0 0 16px;
  border-bottom: 1px solid #e8edef;
  margin-bottom: 16px;
}

.address-form-grid {
  display: grid;
  gap: 13px;
}

.address-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.address-field > span {
  color: #44555d;
  font-size: 11px;
  font-weight: 800;
}

.address-input-wrap {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #dde6e9;
  border-radius: 13px;
  background: #f9fbfb;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.address-input-wrap:focus-within {
  border-color: var(--color-primario);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 123, 136, 0.1);
}

.address-input-wrap > span {
  flex: 0 0 22px;
  text-align: center;
  font-size: 15px;
}

#modalDireccion .address-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: #203842;
}

.address-form-footer {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e8edef;
  display: grid;
  gap: 13px;
}

.address-tip {
  padding: 11px 12px;
  border-radius: 13px;
  background: #fff8e8;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.address-tip p {
  margin: 0;
  color: #75643b;
  font-size: 10px;
  line-height: 1.45;
}

.address-save-button {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--color-primario),
    var(--color-primario)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(26, 123, 136, 0.2);
  cursor: pointer;
}

.address-save-button strong {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

@media (min-width: 700px) {
  .address-header-pro {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    color: #172733;
    box-shadow: 0 1px 0 rgba(23, 39, 51, 0.1);
    backdrop-filter: blur(18px);
  }

  .address-header-inner {
    max-width: 1320px;
    min-height: 96px;
    margin: 0 auto;
    padding: 16px 28px;
    grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  }

  .address-back {
    width: auto;
    height: 44px;
    padding: 0 14px;
    justify-self: start;
    grid-auto-flow: column;
    gap: 8px;
    border: 1px solid #dce5e8;
    background: #fff;
    color: #29424d;
    font-size: 16px;
    box-shadow: 0 5px 16px rgba(16, 40, 51, 0.06);
  }

  .address-back-text {
    display: inline;
    font-size: 13px;
    font-weight: 750;
  }

  .address-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primario);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  .address-title-group h1 {
    color: #152b35;
    font-size: 24px;
  }

  .address-title-group p {
    display: block;
    margin: 4px 0 0;
    color: #71808a;
    font-size: 12px;
  }

  .address-safe {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25414b;
  }

  .address-safe-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #eaf7f5;
    display: grid;
    place-items: center;
  }

  .address-safe > span:last-child {
    display: flex;
    flex-direction: column;
  }

  .address-safe strong {
    font-size: 12px;
  }

  .address-safe small {
    margin-top: 2px;
    color: #71808a;
    font-size: 10px;
  }

  .address-layout {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 28px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: start;
    gap: 22px;
  }

  .address-map-column {
    position: sticky;
    top: 0;
  }

  .address-map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .address-map-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf7f8;
    color: var(--color-primario);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  #modalDireccion .address-map {
    height: calc(100dvh - 310px);
    min-height: 420px;
    max-height: 620px;
  }

  .address-form-card {
    padding: 22px;
  }

  .address-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-field-full {
    grid-column: 1 / -1;
  }

  .address-field-wide {
    grid-column: span 1;
  }
}

@media (min-width: 1050px) {
  .address-layout {
    grid-template-columns: minmax(0, 720px) 440px;
    justify-content: center;
    gap: 28px;
    padding: 32px;
  }

  .address-form-card {
    padding: 24px;
  }
}

@media (max-width: 699px) {
  #modalDireccion .address-layout {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  #modalDireccion .address-map {
    height: 250px;
  }
}
.pedido-mini {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  margin-left: 4px;
}
.tracking-driver-card {
  display: flex;
  align-items: center;
  gap: 14px;

  margin: 14px 0;
  padding: 14px;

  border: 1px solid #dce9e9;
  border-radius: 16px;

  background: #ffffff;
}

.tracking-driver-card.asignado {
  border-color: rgba(50, 170, 171, 0.25);
  background: rgba(50, 170, 171, 0.07);
}

.tracking-driver-card.pendiente {
  background: #f8fafc;
}

.tracking-driver-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #dff5f2;
  font-size: 23px;
}

.tracking-driver-info {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tracking-driver-info small {
  color: #278f90;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tracking-driver-info strong {
  color: #17323c;
  font-size: 16px;
  font-weight: 900;
}

.tracking-driver-info span {
  color: #6b7f87;
  font-size: 11px;
}

.tracking-driver-call {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  color: #ffffff;
  background: #278f90;

  text-decoration: none;
}
.brand-store {
  min-width: 0;
}

.brand-store > img {
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  max-width: 170px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 4px;
}

#empresaNombreMobile {
  max-width: calc(100vw - 130px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#empresaNombreSplash {
  margin: 12px 0 0;
  font-size: 23px;
  font-weight: 800;
}

@media (max-width: 699px) {
  #empresaLogoSplash {
    width: 180px;
    max-height: 110px;
    object-fit: contain;
  }
}
/* =========================================
   PEDIDO NO ENTREGADO
========================================= */

.badge-estado.no_entregado {
  color: #c2410c;
  background: #ffedd5;
}

.badge-estado.no_entregado .dot {
  background: #f97316;
}

.pedido-card-pro.estado-no_entregado {
  border-color: #fed7aa;
}

.pedido-card-pro.estado-no_entregado::before {
  background: #f97316;
}

.pedido-entrega-alerta.no-entregado {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.pedido-entrega-alerta.no-entregado strong {
  color: #c2410c;
}

.pedido-entrega-alerta.no-entregado small {
  color: #9a3412;
}

.tab-pedido.tab-no-entregado.activo {
  color: #ffffff;
  background: #ea580c;
}

.tab-pedido.tab-no-entregado b {
  color: #c2410c;
  background: #ffedd5;
}

.tab-pedido.tab-no-entregado.activo b {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 600px) {
  .pedidos-tabs {
    overflow-x: auto;
    justify-content: flex-start;

    scrollbar-width: none;
  }

  .pedidos-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-pedido {
    flex: 0 0 auto;
    min-width: 125px;
  }
}
/* =========================================================
   PROGRESO DE ENVÍO GRATIS
========================================================= */

.checkout-shipping-progress {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #dce8e8;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top right,
      rgba(50, 170, 171, 0.14),
      transparent 42%
    ),
    #ffffff;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.shipping-progress-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.shipping-progress-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaf7f7;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(26, 123, 136, 0.08);
}

.shipping-progress-copy {
  min-width: 0;
}

.shipping-progress-kicker {
  display: block;
  margin-bottom: 3px;
  color: #6c7c80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shipping-progress-copy strong {
  display: block;
  color: #173f48;
  font-size: 14px;
  line-height: 1.35;
}

.shipping-progress-percent {
  min-width: 52px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef7f7;
  color: var(--color-primario);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.envio-barra-container {
  margin-top: 16px;
}

.envio-barra {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9efef;
  box-shadow: inset 0 2px 4px rgba(17, 62, 70, 0.08);
}

.envio-progreso {
  position: relative;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--color-primario) 0%,
    var(--color-secundario-hover) 55%,
    #5dc7bc 100%
  );
  box-shadow: 0 3px 10px rgba(26, 123, 136, 0.28);
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.shipping-progress-shine {
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: translateX(-150%);
  animation: shippingProgressShine 2.2s infinite;
}

.shipping-progress-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #748287;
  font-size: 12px;
}

.shipping-progress-values > span:first-child {
  color: var(--color-primario);
  font-weight: 800;
}

.shipping-progress-values strong {
  color: #294e56;
}

.envio-mensaje {
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f4f8f8;
  color: #51676d;
  font-size: 13px;
  line-height: 1.45;
}

.envio-mensaje.exito {
  background: #eaf9f1;
  color: #167044;
  font-weight: 700;
}

.envio-mensaje.advertencia {
  background: #fff7e6;
  color: #8d5e09;
}

.checkout-shipping-progress.completado {
  border-color: #9bd8bb;
  background:
    radial-gradient(
      circle at top right,
      rgba(40, 183, 105, 0.2),
      transparent 46%
    ),
    #f9fffb;
  box-shadow: 0 14px 30px rgba(30, 145, 84, 0.1);
}

.checkout-shipping-progress.completado .shipping-progress-icon {
  background: #daf5e6;
}

.checkout-shipping-progress.completado .shipping-progress-percent {
  background: #dff7e9;
  color: #167044;
}

.checkout-shipping-progress.completado .envio-progreso {
  background: linear-gradient(90deg, #199653, #36c878);
}

.checkout-shipping-progress.pickup {
  border-color: #d8e2e4;
  background: #fbfdfd;
}

.checkout-shipping-progress.pickup .envio-progreso {
  background: linear-gradient(90deg, #587b83, #809da3);
}

.checkout-shipping-progress.sin-direccion {
  border-color: #f2d290;
}

.checkout-shipping-progress.desactivado {
  opacity: 0.92;
}

.checkout-shipping-progress.desactivado .envio-progreso {
  background: #99a9ad;
}

.envio-gratis-linea {
  color: #17824e;
  font-weight: 800;
}

@keyframes shippingProgressShine {
  0% {
    transform: translateX(-150%);
  }

  55%,
  100% {
    transform: translateX(360%);
  }
}

@media (max-width: 767px) {
  .checkout-shipping-progress {
    padding: 15px;
    border-radius: 16px;
  }

  .shipping-progress-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .shipping-progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 20px;
  }

  .shipping-progress-copy strong {
    font-size: 13px;
  }

  .shipping-progress-percent {
    min-width: 45px;
    padding: 6px 7px;
    font-size: 12px;
  }
}
/* =========================================================
   PANTALLA GRACIAS POR TU COMPRA
========================================================= */

.pantalla-exito {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  padding: 28px 18px;
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(50, 170, 171, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(26, 123, 136, 0.14),
      transparent 32%
    ),
    #f4f8f8;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.pantalla-exito.activo {
  opacity: 1;
  visibility: visible;
}

.success-page-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 56px);
}

.success-card {
  position: relative;
  width: min(100%, 720px);
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(26, 123, 136, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 30px 80px rgba(22, 69, 78, 0.16),
    0 8px 24px rgba(22, 69, 78, 0.08);
  text-align: center;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.pantalla-exito.activo .success-card {
  transform: translateY(0) scale(1);
}

.success-decoration {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.success-decoration-one {
  top: -85px;
  right: -65px;
  width: 210px;
  height: 210px;
  background: rgba(50, 170, 171, 0.1);
}

.success-decoration-two {
  bottom: -90px;
  left: -80px;
  width: 190px;
  height: 190px;
  background: rgba(26, 123, 136, 0.07);
}

.success-check-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.success-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #178454;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-card h2 {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  color: #173f48;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
}

.success-card .exito-texto {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto 22px;
  color: #64767b;
  font-size: 15px;
  line-height: 1.6;
}

.success-order-code {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  max-width: 470px;
  margin: 0 auto 20px;
  padding: 16px 18px;
  border: 1px dashed #a9cfd1;
  border-radius: 16px;
  background: #f6fbfb;
  text-align: left;
}

.success-order-code > span {
  color: #718287;
  font-size: 12px;
}

.success-order-code > strong {
  grid-column: 1;
  color: var(--color-primario);
  font-size: 21px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.success-copy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  background: #e7f5f5;
  color: var(--color-primario);
  font-weight: 800;
  cursor: pointer;
}

.success-copy-button svg {
  width: 16px;
  height: 16px;
}

.success-status-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 570px;
  margin: 0 auto 18px;
  padding: 17px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(26, 123, 136, 0.08),
    rgba(50, 170, 171, 0.04)
  );
  text-align: left;
}

.success-status-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #ffffff;
  font-size: 24px;
  box-shadow: 0 7px 18px rgba(26, 123, 136, 0.1);
}

.success-status-card span {
  display: block;
  margin-bottom: 3px;
  color: #708086;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-status-card strong {
  display: block;
  color: #224d56;
  font-size: 15px;
}

.success-status-card small {
  display: block;
  margin-top: 4px;
  color: #697b80;
  line-height: 1.4;
}

.success-order-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 620px;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid #e3ebeb;
  border-radius: 17px;
  background: #e3ebeb;
}

.success-order-summary > div {
  min-width: 0;
  padding: 15px 10px;
  background: #ffffff;
}

.success-order-summary span {
  display: block;
  margin-bottom: 5px;
  color: #7a898d;
  font-size: 11px;
}

.success-order-summary strong {
  display: block;
  overflow-wrap: anywhere;
  color: #294f57;
  font-size: 13px;
}

.success-order-summary strong.pagado {
  color: #18834e;
}

.success-order-summary strong.pendiente {
  color: #a56b0b;
}

.success-address {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 570px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border: 1px solid #e2eaea;
  border-radius: 15px;
  background: #fbfdfd;
  text-align: left;
}

.success-address-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e9f6f6;
}

.success-address small {
  display: block;
  margin-bottom: 3px;
  color: #7b898d;
}

.success-address strong {
  color: #31555d;
  font-size: 13px;
}

.success-next-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 570px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #fffaf0;
  text-align: left;
}

.success-next-step-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1a928;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.success-next-step strong {
  color: #6b4d15;
}

.success-next-step p {
  margin: 4px 0 0;
  color: #806e4e;
  font-size: 13px;
  line-height: 1.45;
}

.success-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  max-width: 570px;
  margin: 0 auto;
}

.success-primary-button,
.success-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.success-primary-button {
  border: 0;
  background: linear-gradient(
    135deg,
    var(--color-primario),
    var(--color-secundario-hover)
  );
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(26, 123, 136, 0.24);
}

.success-secondary-button {
  border: 1px solid #cfe0e1;
  background: #ffffff;
  color: #315861;
}

.success-primary-button svg,
.success-secondary-button svg {
  width: 18px;
  height: 18px;
}

.success-help {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #667b80;
  text-align: left;
}

.success-help svg {
  flex: 0 0 auto;
  width: 20px;
  color: #23835a;
}

.success-help strong,
.success-help small {
  display: block;
}

.success-help strong {
  color: #3d626a;
  font-size: 12px;
}

.success-help small {
  margin-top: 2px;
  font-size: 11px;
}

.contador-redireccion {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #8a989b;
  font-size: 12px;
}

.contador-redireccion strong {
  color: var(--color-primario);
}

@media (max-width: 767px) {
  .pantalla-exito {
    padding: 0;
    background: #f5f9f9;
  }

  .success-page-shell {
    display: block;
    min-height: 100vh;
  }

  .success-card {
    min-height: 100vh;
    padding: 30px 18px 34px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .success-order-summary {
    grid-template-columns: 1fr 1fr;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }

  .success-order-code {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 390px) {
  .success-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .success-order-summary > div {
    padding: 13px 8px;
  }

  .success-order-summary strong {
    font-size: 12px;
  }
}
/* =========================================================
   PRODUCTOS EDITABLES EN RESUMEN DEL CHECKOUT
========================================================= */

.checkout-summary-card {
  overflow: hidden;
}

.checkout-summary-card .resumen-contenido {
  width: 100%;
}

.checkout-product-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e9edef;
  animation: checkoutProductAppear 0.22s ease;
}

.checkout-product-item:last-of-type {
  border-bottom: 0;
}

.checkout-product-image {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #e8edef;
  border-radius: 14px;
  background: #f8fafb;
}

.checkout-product-image img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.checkout-product-content {
  min-width: 0;
}

.checkout-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.checkout-product-info {
  min-width: 0;
}

.checkout-product-name {
  display: -webkit-box;
  overflow: hidden;
  color: #172d36;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-product-unit-price {
  display: block;
  margin-top: 4px;
  color: #728087;
  font-size: 11px;
}

.checkout-product-delete {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f4f5f6;
  color: #879298;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.checkout-product-delete svg {
  width: 15px;
  height: 15px;
}

.checkout-product-delete:hover {
  background: #fff0f0;
  color: #d64c4c;
}

.checkout-product-delete:active {
  transform: scale(0.9);
}

.checkout-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.checkout-product-controls {
  display: inline-grid;
  grid-template-columns: 30px minmax(34px, auto) 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8e4e5;
  border-radius: 10px;
  background: #ffffff;
}

.checkout-product-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #eaf6f7;
  color: var(--color-primario);
  cursor: pointer;
}

.checkout-product-controls button:hover {
  background: var(--color-primario);
  color: #ffffff;
}

.checkout-product-controls button:active {
  transform: scale(0.92);
}

.checkout-product-controls svg {
  width: 15px;
  height: 15px;
}

.checkout-product-quantity {
  min-width: 34px;
  padding: 0 6px;
  color: #18333c;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.checkout-product-total {
  color: #173944;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-summary-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #dfe7e9;
  color: #1c343d;
  font-size: 14px;
}

.checkout-summary-subtotal strong {
  color: var(--color-primario);
  font-size: 17px;
}

.checkout-summary-empty {
  display: grid;
  justify-items: center;
  padding: 25px 15px;
  text-align: center;
}

.checkout-summary-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #edf7f7;
  font-size: 27px;
}

.checkout-summary-empty strong {
  color: #243e47;
  font-size: 15px;
}

.checkout-summary-empty p {
  max-width: 260px;
  margin: 7px 0 15px;
  color: #748188;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-summary-empty button {
  padding: 10px 15px;
  border: 0;
  border-radius: 11px;
  background: var(--color-primario);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.btn-confirmar.checkout-disabled,
.btn-confirmar:disabled {
  background: #aab5b8 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.78;
}

@keyframes checkoutProductAppear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 699px) {
  .checkout-summary-subtotal {
    display: none;
  }
}
/* =========================================================
   AJUSTE FINAL DEL RESUMEN EDITABLE DEL CHECKOUT
========================================================= */

/*
|--------------------------------------------------------------------------
| GENERAL
|--------------------------------------------------------------------------
*/

.checkout-summary-card {
  overflow: visible;
}

.checkout-summary-card .resumen-contenido {
  width: 100%;
  min-width: 0;
}

.checkout-product-item {
  min-width: 0;
}

/*
|--------------------------------------------------------------------------
| ESCRITORIO Y TABLET HORIZONTAL
|--------------------------------------------------------------------------
*/

@media (min-width: 700px) {
  .checkout-summary-sticky {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .checkout-summary-card {
    margin-bottom: 0;
    padding: 18px;
  }

  /*
   * El scroll debe estar solamente en la lista,
   * no en toda la tarjeta.
   */
  .checkout-summary-card .resumen-contenido {
    display: block;
    max-height: min(43vh, 430px);
    margin-top: 10px;
    padding-right: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #91a5a9 transparent;
  }

  .checkout-summary-card .resumen-contenido.oculto {
    display: none;
  }

  .checkout-summary-card .resumen-contenido::-webkit-scrollbar {
    width: 6px;
  }

  .checkout-summary-card .resumen-contenido::-webkit-scrollbar-track {
    background: transparent;
  }

  .checkout-summary-card .resumen-contenido::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #91a5a9;
  }

  .checkout-product-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
  }

  .checkout-product-image {
    width: 54px;
    height: 54px;
  }

  .checkout-product-name {
    padding-right: 4px;
    font-size: 13px;
  }

  .checkout-product-bottom {
    margin-top: 8px;
  }

  /*
   * El subtotal ya aparece en la tarjeta inferior.
   * Lo ocultamos para no duplicarlo.
   */
  .checkout-summary-subtotal {
    display: none;
  }
}

/*
|--------------------------------------------------------------------------
| MÓVIL
|--------------------------------------------------------------------------
*/

@media (max-width: 699px) {
  .checkout-body {
    padding-bottom: 120px;
  }

  .checkout-summary-card {
    padding: 12px !important;
    margin-bottom: 12px;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .checkout-summary-card .resumen-header {
    min-height: 34px;
    padding: 0 1px 9px;
  }

  .checkout-summary-card .resumen-header > div {
    gap: 7px;
  }

  .checkout-summary-card .resumen-header strong {
    font-size: 13px;
  }

  #resumenToggle {
    font-size: 11px;
  }

  .checkout-summary-card .resumen-contenido:not(.oculto) {
    display: block;
    max-height: none;
    margin-top: 0;
    overflow: visible;
  }

  .checkout-product-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
  }

  .checkout-product-image {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .checkout-product-image img {
    padding: 4px;
  }

  .checkout-product-top {
    gap: 5px;
  }

  .checkout-product-name {
    font-size: 11px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  .checkout-product-unit-price {
    margin-top: 2px;
    font-size: 9px;
  }

  .checkout-product-delete {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .checkout-product-delete svg {
    width: 13px;
    height: 13px;
  }

  .checkout-product-bottom {
    gap: 6px;
    margin-top: 6px;
  }

  .checkout-product-controls {
    grid-template-columns: 25px minmax(28px, auto) 25px;
    border-radius: 9px;
  }

  .checkout-product-controls button {
    width: 25px;
    height: 25px;
  }

  .checkout-product-controls svg {
    width: 13px;
    height: 13px;
  }

  .checkout-product-quantity {
    min-width: 28px;
    padding: 0 3px;
    font-size: 10px;
  }

  .checkout-product-total {
    font-size: 11px;
  }

  /*
   * Ya existe un subtotal en el desglose.
   */
  .checkout-summary-subtotal {
    display: none !important;
  }

  /*
   * Evita que el botón fijo tape la parte baja.
   */
  .checkout-footer {
    padding: 10px 14px 12px;
  }

  .checkout-footer .total-bar {
    margin-bottom: 8px;
  }

  .checkout-footer .total-bar > span {
    font-size: 10px;
  }

  .checkout-footer .total-bar > strong {
    font-size: 19px;
  }

  .checkout-footer .btn-confirmar {
    min-height: 43px;
    padding: 11px 10px;
    border-radius: 11px;
    font-size: 12px;
  }
}
/* =========================================================
   CENTRAR ICONO DEL BOTÓN ELIMINAR EN CHECKOUT
========================================================= */

.checkout-product-delete {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;

  flex-shrink: 0;
}

.checkout-product-delete svg {
  display: block;
  width: 15px;
  height: 15px;

  margin: 0 !important;
  padding: 0 !important;

  flex-shrink: 0;
  transform: none !important;
}
.tracking-eta-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0;
  padding: 15px;
  border: 1px solid rgba(26, 123, 136, 0.14);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(26, 123, 136, 0.08),
    rgba(50, 170, 171, 0.03)
  );
}

.tracking-eta-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-primario);
  box-shadow: 0 7px 18px rgba(26, 123, 136, 0.12);
}

.tracking-eta-icon svg {
  width: 21px;
  height: 21px;
}

.tracking-eta-copy {
  min-width: 0;
}

.tracking-eta-copy small,
.tracking-eta-copy strong,
.tracking-eta-copy span {
  display: block;
}

.tracking-eta-copy small {
  margin-bottom: 3px;
  color: #718187;
  font-size: 11px;
  font-weight: 700;
}

.tracking-eta-copy strong {
  color: #173f48;
  font-size: 15px;
}

.tracking-eta-copy span {
  margin-top: 4px;
  color: #65787d;
  font-size: 11px;
}
/* ==================================================
   ESTADO DE ACTUALIZACIÓN DEL GPS
================================================== */

.tracking-gps-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: fit-content;
  max-width: 100%;

  margin-top: -5px;
  padding: 7px 11px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.tracking-gps-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.tracking-gps-status.gps-online {
  background: #dcfce7;
  color: #15803d;
}

.tracking-gps-status.gps-online i {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.tracking-gps-status.gps-warning {
  background: #fef3c7;
  color: #a16207;
}

.tracking-gps-status.gps-warning i {
  background: #f59e0b;
}

.tracking-gps-status.gps-offline {
  background: #fee2e2;
  color: #b91c1c;
}

.tracking-gps-status.gps-offline i {
  background: #ef4444;
}

@media (max-width: 699px) {
  .tracking-gps-status {
    font-size: 9px;
  }
}
/* ==================================================
   ALERTA INTELIGENTE DE CERCANÍA
================================================== */

.tracking-alerta-cercania {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 13px 15px;

  border: 1px solid transparent;
  border-radius: 16px;

  box-sizing: border-box;
}

.tracking-alerta-cercania.oculto {
  display: none;
}

.tracking-alerta-cercania-icono {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border-radius: 14px;

  font-size: 20px;
}

.tracking-alerta-cercania-texto {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.tracking-alerta-cercania-texto strong {
  color: #132d36;

  font-size: 13px;
  font-weight: 900;
}

.tracking-alerta-cercania-texto span {
  color: #58707a;

  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

/* Cerca: 150 a 500 metros */

.tracking-alerta-cercania.cerca {
  border-color: #99e5dc;
  background: #e8fbf7;
}

.tracking-alerta-cercania.cerca .tracking-alerta-cercania-icono {
  background: #ccf5ef;
}

/* Llegando: menos de 150 metros */

.tracking-alerta-cercania.llegando {
  border-color: #78df9d;
  background: #e9faef;

  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.12);
}

.tracking-alerta-cercania.llegando .tracking-alerta-cercania-icono {
  background: #c9f4d8;

  animation: tracking-moto-pulso 1.5s ease-in-out infinite;
}

/* GPS vencido */

.tracking-alerta-cercania.sin-gps {
  border-color: #fed7aa;
  background: #fff7ed;
}

.tracking-alerta-cercania.sin-gps .tracking-alerta-cercania-icono {
  background: #ffedd5;
}

/* Tarjeta ETA según cercanía */

.tracking-eta-card {
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.tracking-eta-card.eta-cerca {
  border-color: #8dddd3;
  background: #effcf9;
}

.tracking-eta-card.eta-llegando {
  border-color: #70dd98;
  background: #effcf3;

  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.12);
}

.tracking-eta-card.eta-sin-gps {
  border-color: #fed7aa;
  background: #fffaf3;
}

/* Animaciones */

.tracking-alerta-entrada {
  animation: tracking-alerta-entrada 0.45s ease both;
}

@keyframes tracking-alerta-entrada {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tracking-moto-pulso {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 699px) {
  .tracking-alerta-cercania {
    padding: 11px 12px;
  }

  .tracking-alerta-cercania-icono {
    width: 38px;
    height: 38px;

    flex-basis: 38px;

    font-size: 18px;
  }

  .tracking-alerta-cercania-texto strong {
    font-size: 12px;
  }

  .tracking-alerta-cercania-texto span {
    font-size: 9px;
  }
}
/* ==================================================
   MARCADOR ROTABLE DEL REPARTIDOR
================================================== */

.tracking-moto-marker {
  position: absolute;
  z-index: 20;

  display: grid;
  place-items: center;

  pointer-events: none;

  transform-origin: center;
  transition: filter 0.2s ease;

  will-change: left, top, transform;
}

.tracking-moto-marker img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: drop-shadow(0 5px 5px rgba(15, 38, 47, 0.3));

  user-select: none;
}

/* ==================================================
   PROGRESO DEL TRAYECTO
================================================== */

.tracking-travel-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 15px 17px;

  border: 1px solid #d8e8eb;
  border-radius: 18px;

  background: #ffffff;
}

.tracking-travel-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.tracking-travel-progress-top > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tracking-travel-progress-top small {
  color: #71838a;

  font-size: 9px;
  font-weight: 700;
}

.tracking-travel-progress-top strong {
  color: #173039;

  font-size: 12px;
  font-weight: 900;
}

#trackingTravelProgressPercent {
  color: #168893;

  font-size: 17px;
  font-weight: 900;
}

.tracking-travel-progress-bar {
  position: relative;

  width: 100%;
  height: 8px;

  overflow: hidden;

  border-radius: 999px;

  background: #e7f0f2;
}

.tracking-travel-progress-fill {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(
    90deg,
    var(--color-primario),
    var(--color-secundario-hover)
  );

  transition: width 0.8s ease;
}

.tracking-travel-progress-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  color: #708289;

  font-size: 8px;
  font-weight: 700;
}

@media (max-width: 699px) {
  .tracking-travel-progress {
    padding: 13px 14px;
  }

  .tracking-travel-progress-top strong {
    font-size: 11px;
  }

  #trackingTravelProgressPercent {
    font-size: 15px;
  }
}

/* ==========================================================
   VENTAS MI CLOSET — BOUTIQUE ECOMMERCE SKIN
   Capa visual: mantiene IDs, funciones y endpoints existentes.
========================================================== */
html {
  --color-primario: #c6a15b;
  --color-secundario: #b88e43;
  --color-secundario-hover: #a77b33;
  --color-fondo: #f8f5ef;
  --color-blanco: #ffffff;
  --color-texto: #171717;
  --color-texto-sec: #746d63;
  --color-card: #ffffff;
  --color-borde: #e9e1d3;

  --boutique-gold: #c6a15b;
  --boutique-gold-dark: #9b7330;
  --boutique-ink: #161616;
  --boutique-muted: #746d63;
  --boutique-cream: #f8f5ef;
  --boutique-sand: #efe6d7;
  --boutique-white: #fff;
  --boutique-danger: #b65c52;
  --boutique-shadow: 0 12px 34px rgba(41, 31, 18, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--boutique-cream);
  color: var(--boutique-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.boutique-topbar {
  display: none;
}

.app-header {
  background: rgba(255, 255, 255, 0.97);
  color: var(--boutique-ink);
  border: 0;
  box-shadow: 0 1px 0 rgba(198, 161, 91, 0.22);
}

.brand-store img {
  object-fit: contain;
  background: #fff;
}

.brand-copy strong,
#empresaNombreHeader {
  color: var(--boutique-ink);
  letter-spacing: 0.02em;
}

.search-box {
  background: #fff;
  border: 1px solid #ded7cb;
  box-shadow: none;
}

.search-box:focus-within {
  border-color: var(--boutique-gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.12);
}

.search-box input {
  color: var(--boutique-ink);
}

.search-submit-desktop {
  background: var(--boutique-ink) !important;
  color: #fff !important;
}

.header-action {
  color: var(--boutique-ink) !important;
}

.header-action:hover {
  color: var(--boutique-gold-dark) !important;
}

.cart-action b,
#carritoCantidadDesktop,
.cart-icon-mobile span,
.fab-cart span {
  background: var(--boutique-gold) !important;
  color: #fff !important;
}

.desktop-nav {
  background: #fff;
  border-bottom: 1px solid #eee7dd;
}

.desktop-categories-title {
  background: var(--boutique-gold) !important;
  color: #fff !important;
}

.desktop-nav-links button {
  color: #3e3932 !important;
  font-weight: 650;
}

.desktop-nav-links button:hover {
  color: var(--boutique-gold-dark) !important;
}

.store-shell {
  max-width: 1450px;
}

.slider {
  border-radius: 20px !important;
  min-height: 280px;
  background: #e9e2d7;
  overflow: hidden;
  box-shadow: var(--boutique-shadow);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 14, 11, 0.55) 0%,
    rgba(17, 14, 11, 0.18) 46%,
    rgba(17, 14, 11, 0) 72%
  );
  pointer-events: none;
}

.slide {
  position: relative;
}

.slide img {
  object-fit: cover;
}

.slide-copy {
  z-index: 2;
  max-width: 540px;
}

.slide-copy > span,
.boutique-eyebrow {
  color: var(--boutique-gold);
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 11px;
}

.slide-copy h2 {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px) !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em;
}

.slide-copy p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  max-width: 440px;
}

.slide-copy button {
  background: var(--boutique-gold) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 13px 22px !important;
}

.boutique-home-sections,
.boutique-store-heading,
.boutique-footer {
  display: none;
}

.barra-filtros {
  background: #fff;
  border: 1px solid var(--boutique-borde);
  box-shadow: 0 8px 22px rgba(41, 31, 18, 0.04);
}

.filtro select,
.btn-filtros-label,
.vista-grid {
  border-color: #e3dbcf !important;
  background: #fff !important;
  color: #4b443b !important;
}

.filtros-contenedor,
.categorias-rappi,
.desktop-shipping-card {
  background: #fff !important;
  border-color: var(--boutique-borde) !important;
  box-shadow: var(--boutique-shadow);
}

.sidebar-title {
  color: var(--boutique-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
}

.categoria {
  color: #51493f !important;
}

.categoria.grande.activa,
.categoria.pequena.activa,
.chip.activo {
  background: #f3ebdc !important;
  color: var(--boutique-gold-dark) !important;
}

.desktop-shipping-card {
  background: linear-gradient(145deg, #faf5ea, #fff) !important;
}

.desktop-shipping-card span,
.desktop-shipping-card strong {
  color: var(--boutique-gold-dark) !important;
}

.desktop-shipping-card button,
.agregar,
.btn-checkout,
.btn-auth,
.btn-principal-pro,
.btn-confirmar,
.btn-confirmar-granel,
.btn-ver-pedidos,
.success-primary-button,
.address-save-button,
.btn-track {
  background: var(--boutique-gold) !important;
  color: #fff !important;
  border-color: var(--boutique-gold) !important;
}

.desktop-shipping-card button:hover,
.agregar:hover,
.btn-checkout:hover,
.btn-auth:hover {
  background: var(--boutique-gold-dark) !important;
}

.productos {
  gap: 18px !important;
}

.card {
  border: 1px solid #ece5da;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(42, 34, 23, 0.055) !important;
  background: #fff;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(42, 34, 23, 0.11) !important;
}

.card img {
  height: 250px !important;
  object-fit: cover !important;
  padding: 0 !important;
  background: #f3efe8;
}

.card-body {
  padding: 14px 14px 16px !important;
}

.card-body h3 {
  color: var(--boutique-ink);
  font-size: 15px;
  font-weight: 650;
}

.precio {
  color: var(--boutique-gold-dark) !important;
  font-size: 18px !important;
}

.btn-fav {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #6c6358 !important;
  box-shadow: 0 5px 16px rgba(42, 34, 23, 0.12);
}

.badge {
  background: var(--boutique-gold) !important;
}

.desktop-benefits {
  background: #fff;
  border-top: 1px solid #ece4d8;
  border-bottom: 1px solid #ece4d8;
}

.desktop-benefits article i {
  color: var(--boutique-gold-dark);
}

#carritoPanel,
.panel-cuenta,
.checkout,
.pedidos-vista,
.tracking-vista,
.detalle-pedido,
.direcciones-vista,
.modal-direccion {
  background: var(--boutique-cream) !important;
}

.header-premium,
.checkout-header-pro,
.orders-header-pro,
.tracking-header-pro,
.order-detail-header-pro,
.address-header-pro,
.cuenta-header-pro {
  background: #fff !important;
  color: var(--boutique-ink) !important;
  border-bottom: 1px solid #e8dfd2 !important;
  box-shadow: 0 8px 28px rgba(42, 34, 23, 0.05) !important;
}

.header-premium h1,
.header-premium h2,
.checkout-header-pro h1,
.orders-header-pro h1,
.tracking-header-pro h1,
.order-detail-header-pro h1,
.address-header-pro h1,
.cuenta-header-pro h2 {
  color: var(--boutique-ink) !important;
}

.checkout-kicker,
.orders-kicker,
.tracking-kicker,
.order-detail-kicker,
.address-kicker,
.orders-eyebrow,
.address-eyebrow {
  color: var(--boutique-gold-dark) !important;
}

.checkout-back,
.tracking-back,
.order-detail-back,
.address-back,
.btn-back {
  color: var(--boutique-ink) !important;
  background: #f4efe7 !important;
}

.checkout-secure,
.tracking-live-badge,
.order-detail-help,
.address-safe {
  background: #faf5eb !important;
  color: #6b5a3e !important;
  border-color: #ead9bb !important;
}

.bloque,
.checkout-section,
.checkout-summary-card,
.pedido-card-pro,
.order-detail-card,
.cuenta-card-pro,
.address-map-card,
.address-form-card,
.direccion-card,
.success-card {
  border: 1px solid #e9e0d3 !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(42, 34, 23, 0.055) !important;
}

.checkout-step,
.success-next-step-number {
  background: var(--boutique-gold) !important;
  color: #fff !important;
}

.tipo-btn.activo,
.metodo.activo,
.direccion-card.seleccionada {
  border-color: var(--boutique-gold) !important;
  background: #fffaf1 !important;
}

.tipo-check,
.metodo-check,
.badge-estado.entregado,
.verde {
  color: var(--boutique-gold-dark) !important;
}

.btn-vaciar,
.btn-eliminar {
  color: var(--boutique-danger) !important;
}

.item-carrito {
  border: 1px solid #ebe2d6;
  box-shadow: none !important;
}

.miniatura {
  background: #f3eee6;
}

.total-box,
.checkout-total-row strong,
.success-order-summary strong {
  color: var(--boutique-ink) !important;
}

.pedidos-tabs {
  background: #fff !important;
}

.tab-pedido.activo {
  background: #f3eadb !important;
  color: var(--boutique-gold-dark) !important;
}

.progress-fill,
.progress-step.activo .progress-dot,
.tracking-progress-fill {
  background: var(--boutique-gold) !important;
}

.success-check-wrapper,
.check-circulo {
  border-color: var(--boutique-gold) !important;
}

.check-paloma {
  border-color: var(--boutique-gold) !important;
}

.bottom-app {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #e8dfd4;
  box-shadow: 0 -8px 24px rgba(42, 34, 23, 0.08) !important;
}

.nav-item.activo {
  color: var(--boutique-gold-dark) !important;
}

.fab-cart {
  background: var(--boutique-ink) !important;
}

.modal-granel-card,
.modal-vacio-card {
  background: #fff !important;
}

.btn-vacio {
  background: var(--boutique-gold) !important;
}

/* Desktop boutique content */
@media (min-width: 900px) {
  body {
    padding-bottom: 0 !important;
  }

  .boutique-topbar {
    display: block;
    background: #171717;
    color: #fff;
    font-size: 12px;
  }

  .boutique-topbar-inner {
    max-width: 1450px;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }

  .boutique-topbar span {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.92;
  }

  .boutique-topbar svg {
    width: 14px;
    height: 14px;
    color: var(--boutique-gold);
  }

  .app-header {
    position: sticky;
    top: 0;
  }

  .header-ecommerce {
    min-height: 82px;
  }

  .brand-store img {
    width: 84px !important;
    height: 62px !important;
  }

  .desktop-nav {
    position: sticky;
    top: 82px;
    z-index: 980;
  }

  .store-shell {
    padding-top: 22px;
  }

  .slider {
    height: 395px !important;
  }

  .boutique-home-sections {
    display: block;
    grid-column: 2 / -1;
    margin: 22px 0 8px;
  }

  .boutique-section-heading,
  .boutique-store-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
  }

  .boutique-section-heading h2,
  .boutique-store-heading h2 {
    margin: 4px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
    color: var(--boutique-ink);
  }

  .boutique-section-heading p,
  .boutique-store-heading p {
    margin: 0;
    color: var(--boutique-muted);
    max-width: 520px;
    line-height: 1.5;
  }

  .boutique-promo-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 16px;
  }

  .boutique-promo-card {
    min-height: 245px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ddd;
    box-shadow: var(--boutique-shadow);
  }

  .boutique-promo-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
  }

  .boutique-promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      transparent 25%,
      rgba(15, 12, 8, 0.76) 100%
    );
  }

  .boutique-promo-overlay {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
  }

  .boutique-promo-overlay span {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #f4dba7;
    font-weight: 800;
  }

  .boutique-promo-overlay h3 {
    margin: 5px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
  }

  .boutique-promo-overlay p {
    margin: 0 0 12px;
    font-size: 13px;
    opacity: 0.9;
    max-width: 480px;
  }

  .boutique-promo-overlay button {
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(5px);
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
  }

  .boutique-quick-categories {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--boutique-borde);
    border-radius: 18px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }

  .boutique-quick-categories button {
    min-height: 62px;
    border: 1px solid #ece3d7;
    background: #fbf8f3;
    border-radius: 14px;
    color: #3d372f;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
  }

  .boutique-quick-categories button:hover {
    border-color: var(--boutique-gold);
    color: var(--boutique-gold-dark);
    transform: translateY(-2px);
  }

  .boutique-store-heading {
    display: flex;
    grid-column: 2 / -1;
    margin: 32px 0 14px;
  }

  .boutique-store-heading button {
    border: 1px solid #ded3c3;
    background: #fff;
    color: #4a433a;
    border-radius: 999px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .boutique-footer {
    display: block;
    margin-top: 36px;
    background: #171717;
    color: #fff;
  }

  .boutique-footer-grid {
    max-width: 1450px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 38px;
  }

  .boutique-footer h4 {
    margin: 0 0 15px;
    color: #e8c985;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .boutique-footer p,
  .boutique-footer button {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
  }

  .boutique-footer button {
    display: block;
    border: 0;
    background: none;
    padding: 3px 0;
    cursor: pointer;
  }

  .boutique-footer button:hover {
    color: #fff;
  }

  .boutique-footer-brand img {
    width: 120px;
    max-height: 85px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 14px;
  }

  .boutique-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #e8c985;
    font-size: 12px;
  }

  .boutique-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 1450px;
    margin: 0 auto;
    padding: 18px 24px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
  }
}

@media (max-width: 899px) {
  .app-header {
    background: #fff !important;
  }

  .top-bar h1 {
    color: var(--boutique-ink) !important;
  }

  .cart-icon-mobile {
    background: #171717 !important;
  }

  .slider {
    margin: 12px !important;
    width: calc(100% - 24px) !important;
    min-height: 180px;
    height: 210px !important;
    border-radius: 18px !important;
  }

  .slide-copy {
    display: block !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
  }

  .slide-copy h2 {
    font-size: 29px !important;
  }

  .slide-copy p {
    display: none;
  }

  .slide-copy button {
    padding: 10px 15px !important;
  }

  .card img {
    height: 185px !important;
  }

  .productos {
    gap: 10px !important;
    padding: 10px !important;
  }

  .card-body {
    padding: 10px !important;
  }

  .boutique-home-sections,
  .boutique-store-heading,
  .boutique-footer {
    display: none !important;
  }
}

/* =====================================================================
   OCCHI POS — HOME ECOMMERCE MOBILE 2026
   EXCLUSIVO PARA TELÉFONO (<= 699px)
   Tablet, laptop y computadora conservan exactamente sus estilos previos.
   ===================================================================== */

.mobile-search-cart-row {
  display: contents;
}

.mobile-ofertas-dia {
  display: none;
}

@media (max-width: 699px) {
  /* -----------------------------------------------------------
     HEADER COMPACTO: SOLO BUSCADOR + CARRITO
     ----------------------------------------------------------- */
  .app-header {
    padding: 10px 12px !important;
    background: var(--color-primario) !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 12px rgba(15, 63, 71, 0.16) !important;
  }

  .header-ecommerce {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  .top-bar {
    display: none !important;
  }

  .mobile-search-cart-row {
    width: 100%;
    min-width: 0;
    display: flex !important;
    align-items: center;
    gap: 9px;
  }

  .mobile-search-cart-row .search-box {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .mobile-search-cart-row .search-box .icono-buscar {
    flex: 0 0 auto;
    width: 20px !important;
    height: 20px !important;
    color: var(--color-primario) !important;
  }

  .mobile-search-cart-row .search-box input {
    min-width: 0 !important;
    height: 44px !important;
    margin-left: 9px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 44px !important;
    text-overflow: ellipsis;
  }

  .mobile-search-cart-row .cart-icon-mobile {
    position: relative !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  .mobile-search-cart-row .cart-icon-mobile svg {
    width: 25px !important;
    height: 25px !important;
  }

  .mobile-search-cart-row .cart-icon-mobile span {
    top: -5px !important;
    right: -4px !important;
    min-width: 20px !important;
    height: 20px !important;
    background: #fff !important;
    color: var(--color-primario) !important;
  }

  /* -----------------------------------------------------------
     SLIDER / HERO
     ----------------------------------------------------------- */
  .store-shell {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .slider {
    width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .slide,
  .slide img {
    height: 100% !important;
  }

  .slide img {
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .slide-copy {
    display: block !important;
    left: 18px !important;
    right: auto !important;
    bottom: 22px !important;
    width: min(58%, 215px) !important;
    color: #172733 !important;
    text-shadow: none !important;
  }

  .slide-copy > span {
    display: inline-flex !important;
    width: max-content;
    margin-bottom: 7px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #172733 !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
  }

  .slide-copy h2 {
    margin: 0 0 10px !important;
    font-size: clamp(21px, 6vw, 27px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
  }

  .slide-copy p {
    display: none !important;
  }

  .slide-copy button {
    min-height: 36px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }

  /* -----------------------------------------------------------
     FILTROS
     ----------------------------------------------------------- */
  .barra-filtros {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    background: #fffaf1 !important;
    overflow: visible !important;
  }

  .btn-filtros-label {
    width: 44px !important;
    min-width: 44px !important;
    height: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #eceff1 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: var(--color-primario) !important;
    font-size: 0 !important;
    box-shadow: 0 4px 12px rgba(27, 51, 61, 0.06) !important;
  }

  .btn-filtros-label svg {
    width: 19px !important;
    height: 19px !important;
  }

  .barra-filtros .filtro {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .barra-filtros .filtro select {
    width: 100% !important;
    height: 42px !important;
    min-width: 0 !important;
    padding: 0 28px 0 12px !important;
    border: 1px solid #eceff1 !important;
    border-radius: 13px !important;
    background: #fff !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(27, 51, 61, 0.06) !important;
  }

  .catalog-toolbar-spacer,
  .productos-contador,
  .vista-grid {
    display: none !important;
  }

  /* -----------------------------------------------------------
     CATEGORÍAS: CHIPS VISUALES + SCROLL HORIZONTAL
     ----------------------------------------------------------- */
  .filtros-contenedor {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 12px 10px !important;
    overflow: hidden !important;
    background: #fffaf1 !important;
  }

  .categorias-rappi {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .categorias-grandes,
  .categorias-pequenas {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 12px 5px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .categorias-grandes::-webkit-scrollbar,
  .categorias-pequenas::-webkit-scrollbar {
    display: none !important;
  }

  .categoria.grande,
  .categoria.pequena {
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: 150px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #eceff1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #172733 !important;
    box-shadow: 0 4px 12px rgba(27, 51, 61, 0.06) !important;
  }

  .categoria.grande {
    height: 50px !important;
    padding: 0 12px !important;
  }

  .categoria.pequena {
    height: 34px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
  }

  .categoria.grande.activa,
  .categoria.pequena.activa {
    border-color: var(--color-primario) !important;
    background: var(--color-primario) !important;
    color: #fff !important;
  }

  .categoria.grande::after {
    display: none !important;
  }

  .categoria.grande img {
    flex: 0 0 23px !important;
    width: 23px !important;
    height: 23px !important;
    object-fit: contain !important;
  }

  .categoria.grande span,
  .categoria.pequena span {
    min-width: 0 !important;
    max-width: 105px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .categoria.pequena span {
    max-width: 125px !important;
    font-weight: 600 !important;
  }

  /* -----------------------------------------------------------
     OFERTAS DEL DÍA
     ----------------------------------------------------------- */
  .mobile-ofertas-dia {
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    margin: 0 12px 12px !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid rgba(27, 137, 148, 0.18) !important;
    border-radius: 15px !important;
    background: linear-gradient(100deg, #e7f8f5, #f8fcfb) !important;
    box-sizing: border-box !important;
  }

  .mobile-ofertas-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(31, 157, 162, 0.13);
    color: var(--color-primario);
  }

  .mobile-ofertas-icon svg {
    width: 22px;
    height: 22px;
  }

  .mobile-ofertas-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-ofertas-copy strong {
    color: #172733;
    font-size: 13px;
    line-height: 1.2;
  }

  .mobile-ofertas-copy span {
    color: #6b7a82;
    font-size: 10px;
    line-height: 1.25;
  }

  .mobile-ofertas-link {
    min-width: max-content;
    padding: 7px 0 7px 7px;
    border: 0;
    background: transparent;
    color: var(--color-primario);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-ofertas-link svg {
    width: 15px;
    height: 15px;
  }

  /* -----------------------------------------------------------
     PRODUCTOS: 2 COLUMNAS, PERO CARDS COMPACTAS
     ----------------------------------------------------------- */
  #main-productos {
    width: 100% !important;
    min-width: 0 !important;
    background: #fffaf1 !important;
  }

  #listaProductos,
  .productos {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 0 12px 100px !important;
    box-sizing: border-box !important;
  }

  .card {
    min-width: 0 !important;
    width: 100% !important;
    border: 1px solid #edf0f1 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 4px 13px rgba(25, 45, 55, 0.07) !important;
    overflow: hidden !important;
  }

  .card img {
    width: 100% !important;
    height: 126px !important;
    padding: 10px !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
  }

  .card-body {
    min-width: 0 !important;
    padding: 8px 9px 9px !important;
  }

  .card-body h3 {
    min-height: 34px !important;
    margin: 0 0 4px !important;
    color: #172733 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  .precio {
    margin: 0 0 7px !important;
    color: #172733 !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  .btn-fav {
    top: 7px !important;
    right: 7px !important;
    width: 31px !important;
    height: 31px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 2px 8px rgba(20, 40, 50, 0.12) !important;
  }

  .btn-fav svg {
    width: 17px !important;
    height: 17px !important;
  }

  .btn-agregar,
  .agregar {
    width: 100% !important;
    min-height: 35px !important;
    padding: 7px 8px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }

  .control-cantidad {
    width: 100% !important;
    min-height: 35px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    justify-content: space-between !important;
    gap: 5px !important;
    border: 1px solid rgba(27, 137, 148, 0.28) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  .control-cantidad button {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
  }

  .control-cantidad span {
    min-width: 0 !important;
    font-size: 12px !important;
  }

  /* -----------------------------------------------------------
     NAVEGACIÓN INFERIOR
     ----------------------------------------------------------- */
  .bottom-app {
    height: 72px !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -5px 18px rgba(25, 45, 55, 0.1) !important;
  }

  .fab-cart {
    width: 58px !important;
    height: 58px !important;
    top: -22px !important;
    box-shadow: 0 8px 18px rgba(19, 118, 128, 0.25) !important;
  }

  .fab-cart svg {
    width: 25px !important;
    height: 25px !important;
  }

  .nav-item span {
    font-size: 9px !important;
  }
}

/* Teléfonos angostos: conserva las 2 columnas sin inflar las cards. */
@media (max-width: 380px) {
  #listaProductos,
  .productos {
    gap: 7px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .card img {
    height: 112px !important;
    padding: 8px !important;
  }

  .card-body {
    padding: 7px 8px 8px !important;
  }

  .card-body h3 {
    min-height: 32px !important;
    font-size: 12px !important;
  }

  .precio {
    font-size: 16px !important;
  }

  .mobile-ofertas-dia {
    width: calc(100% - 18px) !important;
    margin-left: 9px !important;
    margin-right: 9px !important;
  }
}

/* =====================================================================
   CORRECCIONES MÓVIL
   - Mis Direcciones sin desplazamiento lateral
   - Estado vacío de productos compacto
   - Vista de Promociones
   ===================================================================== */

.promociones-vista {
  position: fixed;
  inset: 0;
  z-index: 12000;
  width: 100%;
  height: 100dvh;
  background: var(--boutique-cream, #f8f5ef);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.promociones-vista.activo {
  transform: translateX(0);
}

.promociones-header {
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid #e9e0d3;
}

.promociones-header > div {
  min-width: 0;
}

.promociones-header span {
  display: block;
  margin-bottom: 2px;
  color: var(--app-color-hover);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.promociones-header h1 {
  margin: 0;
  color: #171717;
  font-size: 22px;
  line-height: 1.1;
}

.promociones-back {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: #f4efe7;
  color: #171717;
}

.promociones-back svg {
  width: 20px;
  height: 20px;
}

.promociones-body {
  height: calc(100dvh - 92px);
  overflow-y: auto;
  padding: 15px 14px 105px;
}

.promociones-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--app-color-border);
  border-radius: 15px;
  background: var(--app-color-soft-2);
}

.promociones-intro-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--app-color-soft);
  color: var(--app-color-hover);
}

.promociones-intro-icon svg {
  width: 22px;
  height: 22px;
}

.promociones-intro strong {
  display: block;
  margin-bottom: 3px;
  color: #171717;
  font-size: 14px;
}

.promociones-intro p {
  margin: 0;
  color: #746d63;
  font-size: 11px;
  line-height: 1.35;
}

.promociones-lista {
  display: grid;
  gap: 13px;
}

.promocion-card {
  overflow: hidden;
  border: 1px solid #e9e0d3;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(42, 34, 23, 0.055);
}

.promocion-imagen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #f3eee6;
}

.promocion-imagen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promocion-imagen-vacia {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9e9488;
}

.promocion-imagen-vacia svg {
  width: 34px;
  height: 34px;
}

.promocion-etiqueta {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--app-color-hover);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promocion-etiqueta svg {
  width: 14px;
  height: 14px;
}

.promocion-contenido {
  padding: 13px;
}

.promocion-contenido h2 {
  margin: 0 0 5px;
  color: #171717;
  font-size: 17px;
  line-height: 1.2;
}

.promocion-contenido p {
  margin: 0 0 12px;
  color: #746d63;
  font-size: 12px;
  line-height: 1.4;
}

.promocion-contenido button {
  min-height: 39px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--app-color);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.promocion-contenido button svg {
  width: 16px;
  height: 16px;
}

.promociones-loading,
.promociones-vacio {
  min-height: 330px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #746d63;
}

.promociones-loading svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: var(--app-color);
  animation: promocionesSpin 0.9s linear infinite;
}

@keyframes promocionesSpin {
  to {
    transform: rotate(360deg);
  }
}

.promociones-vacio-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--app-color-soft);
  color: var(--app-color-hover);
}

.promociones-vacio-icon svg {
  width: 29px;
  height: 29px;
}

.promociones-vacio h2 {
  margin: 0 0 7px;
  color: #171717;
  font-size: 19px;
}

.promociones-vacio p {
  max-width: 260px;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
}

.promociones-vacio button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--app-color);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 699px) {
  /* -----------------------------------------------------------
     MIS DIRECCIONES
     Antes el panel podía quedar desplazado hacia la izquierda.
     Ahora la vista siempre ocupa exactamente el viewport.
     ----------------------------------------------------------- */
  .direcciones-vista {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .direcciones-vista.activo {
    right: auto !important;
    transform: translateX(0) !important;
  }

  .direcciones-vista .header-premium {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 98px !important;
    margin: 0 !important;
    padding: 22px 16px 24px !important;
    border-radius: 0 0 28px 28px !important;
    box-sizing: border-box !important;
  }

  .direcciones-vista .header-premium .btn-back {
    left: 14px !important;
    top: 22px !important;
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
  }

  .direcciones-vista .header-premium .btn-back svg {
    width: 19px !important;
    height: 19px !important;
  }

  .direcciones-vista .header-premium h1 {
    padding: 0 46px !important;
    font-size: 21px !important;
  }

  .direcciones-body {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 12px 28px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  #listaDirecciones {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .direccion-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 13px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .dir-top {
    width: 100% !important;
    min-width: 0 !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .dir-top > strong {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .badge-star {
    flex: 0 0 auto !important;
    max-width: 145px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .dir-texto {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .mini-mapa {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 128px !important;
    margin: 10px 0 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .mini-mapa > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dir-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(0, 1fr)
      minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .dir-actions button {
    width: 100% !important;
    min-width: 0 !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 7px 6px !important;
    box-sizing: border-box !important;
  }

  .btn-agregar-dir {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* -----------------------------------------------------------
     SIN RESULTADOS
     Evita el título enorme y los saltos de línea exagerados.
     ----------------------------------------------------------- */
  #listaProductos:has(.sin-resultados) {
    width: 100% !important;
    min-height: 280px !important;
    padding: 0 12px 100px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  #listaProductos .sin-resultados {
    width: 100% !important;
    max-width: 330px !important;
    min-height: 280px !important;
    margin: 0 auto !important;
    padding: 42px 18px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  #listaProductos .icono-vacio {
    width: 50px !important;
    height: 50px !important;
    margin: 0 0 13px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    background: var(--app-color-soft) !important;
    color: var(--app-color-hover) !important;
    animation: none !important;
  }

  #listaProductos .icono-vacio svg {
    width: 25px !important;
    height: 25px !important;
  }

  #listaProductos .sin-resultados h2 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 7px !important;
    color: #171717 !important;
    font-size: 19px !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  #listaProductos .sin-resultados p {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 !important;
    color: #8a8278 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Promociones en teléfono ocupa la app completa */
  .promociones-vista {
    width: 100vw;
    max-width: 100vw;
  }
}

/* En tablet/escritorio la vista de promociones sigue siendo utilizable,
   pero no cambia el diseño existente del catálogo. */
@media (min-width: 700px) {
  .promociones-vista {
    left: auto;
    right: 0;
    max-width: 520px;
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.12);
  }
}

/* =====================================================================
   CHECKOUT MÓVIL — CORRECCIÓN FINAL
   1. El resumen / confirmar pedido ya NO flota.
   2. Tipo de entrega: deseleccionado neutro, seleccionado dorado.
   3. Métodos de pago: texto e iconos siempre legibles.
   IMPORTANTE: solo afecta teléfonos <= 699px.
   ===================================================================== */
@media (max-width: 699px) {
  /* -----------------------------------------------------------
     1) CONFIRMAR PEDIDO EN SU POSICIÓN REAL
     ----------------------------------------------------------- */
  .checkout-summary-column,
  .checkout-summary-sticky {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .checkout-summary-column {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .checkout-summary-sticky {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .checkout-footer {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px 14px !important;
    border-radius: 16px !important;
    border: 1px solid #e9e0d3 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(42, 34, 23, 0.055) !important;
    transform: none !important;
  }

  /* Como el botón ya no es flotante no necesitamos
     reservar 120px extra debajo del checkout. */
  .checkout-body {
    padding-bottom: 28px !important;
  }

  /* -----------------------------------------------------------
     2) SELECTOR: RECOGER / ENTREGA A DOMICILIO
     ----------------------------------------------------------- */
  .checkout-delivery-section .tipo-entrega {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .checkout-delivery-section .tipo-btn {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 12px 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;

    border: 1px solid #e4ddd3 !important;
    border-radius: 13px !important;

    background: #f7f4ef !important;
    color: #26221d !important;

    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .checkout-delivery-section .tipo-btn:hover {
    transform: none !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 9px !important;
    background: #ffffff !important;
    color: var(--boutique-gold-dark, #9b7330) !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-copy strong {
    display: block !important;
    margin: 0 !important;
    color: inherit !important;
    opacity: 1 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-copy small {
    display: none !important;
  }

  /* Seleccionado */
  .checkout-delivery-section .tipo-btn.activo {
    border-color: var(--boutique-gold, #c6a15b) !important;
    background: var(--boutique-gold, #c6a15b) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(155, 115, 48, 0.18) !important;
  }

  .checkout-delivery-section .tipo-btn.activo .tipo-icon {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
  }

  .checkout-delivery-section .tipo-btn.activo .tipo-copy,
  .checkout-delivery-section .tipo-btn.activo .tipo-copy strong {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-check {
    display: none !important;
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    width: 18px !important;
    height: 18px !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--boutique-gold-dark, #9b7330) !important;
  }

  .checkout-delivery-section .tipo-btn.activo .tipo-check {
    display: grid !important;
  }

  .checkout-delivery-section .tipo-btn .tipo-check svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 3 !important;
  }

  /* -----------------------------------------------------------
     3) MÉTODOS DE PAGO
     ----------------------------------------------------------- */
  #formaPago.metodos-pago {
    gap: 9px !important;
  }

  #formaPago .metodo {
    min-height: 54px !important;
    padding: 11px 13px !important;

    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    border: 1px solid #e4ddd3 !important;
    border-radius: 11px !important;

    background: #f1f1f1 !important;
    color: #24211e !important;

    box-shadow: none !important;
    transform: none !important;
  }

  #formaPago .metodo:hover {
    transform: none !important;
  }

  #formaPago .metodo .metodo-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 8px !important;
    background: #ffffff !important;
    color: #24211e !important;
  }

  #formaPago .metodo .metodo-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
  }

  #formaPago .metodo .metodo-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    color: inherit !important;
    opacity: 1 !important;
  }

  #formaPago .metodo .metodo-copy strong {
    display: block !important;
    margin: 0 !important;
    color: inherit !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  #formaPago .metodo .metodo-copy small {
    display: none !important;
  }

  #formaPago .metodo .metodo-check {
    display: none !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    place-items: center !important;
    border-radius: 999px !important;
  }

  /* Método seleccionado: fondo sólido y texto blanco */
  #formaPago .metodo.activo {
    border-color: var(--boutique-gold, #c6a15b) !important;
    background: var(--boutique-gold, #c6a15b) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(155, 115, 48, 0.18) !important;
  }

  #formaPago .metodo.activo .metodo-copy,
  #formaPago .metodo.activo .metodo-copy strong {
    color: #ffffff !important;
    opacity: 1 !important;
  }

  #formaPago .metodo.activo .metodo-icon {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
  }

  #formaPago .metodo.activo .metodo-check {
    display: grid !important;
    background: #ffffff !important;
    color: var(--boutique-gold-dark, #9b7330) !important;
  }

  #formaPago .metodo.activo .metodo-check svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 3 !important;
  }

  /* -----------------------------------------------------------
     4) BOTÓN CONFIRMAR: normal dentro del flujo
     ----------------------------------------------------------- */
  .checkout-footer .btn-confirmar {
    position: static !important;
    width: 100% !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
    background: var(--boutique-gold, #c6a15b) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .checkout-footer .btn-confirmar span,
  .checkout-footer .btn-confirmar strong,
  .checkout-footer .btn-confirmar .checkout-total-button {
    color: #ffffff !important;
  }
}

/* =====================================================================
   MIS PEDIDOS — BOTÓN REGRESAR VISIBLE EN MÓVIL
   ===================================================================== */
@media (max-width: 699px) {
  #pedidosVista .orders-header-inner {
    position: relative !important;
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    gap: 8px !important;
  }

  #pedidosVista .orders-back {
    position: relative !important;
    z-index: 50 !important;

    justify-self: start !important;
    align-self: center !important;

    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 13px !important;

    background: #f4efe7 !important;
    color: #161616 !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    box-shadow: none !important;
  }

  /*
   * Forzamos tanto el placeholder de Lucide como el SVG
   * que Lucide genera después de ejecutar createIcons().
   */
  #pedidosVista .orders-back > i[data-lucide="arrow-left"],
  #pedidosVista .orders-back > svg,
  #pedidosVista .orders-back svg.lucide,
  #pedidosVista .orders-back .lucide-arrow-left {
    display: block !important;
    width: 21px !important;
    min-width: 21px !important;
    height: 21px !important;

    color: #161616 !important;
    stroke: #161616 !important;
    fill: none !important;
    stroke-width: 2.2 !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  #pedidosVista .orders-back-text {
    display: none !important;
  }

  #pedidosVista .orders-title-group {
    min-width: 0 !important;
    text-align: center !important;
  }

  #pedidosVista .orders-title-group h1 {
    margin: 0 !important;
    color: #161616 !important;
  }
}
/* ==========================================================
   FIX FINAL — TEXTO TIPO DE ENTREGA SELECCIONADO
   ========================================================== */

.checkout-delivery-section .tipo-btn.activo .tipo-copy,
.checkout-delivery-section .tipo-btn.activo .tipo-copy strong,
.checkout-delivery-section .tipo-btn.activo .tipo-copy small {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #ffffff !important;
}

.checkout-delivery-section .tipo-btn.activo .tipo-copy strong {
  display: block !important;
}

/* =====================================================================
   CHECKOUT — FIX DEFINITIVO TEXTO DE TIPO DE ENTREGA
   El CSS base tiene ".tipo-copy { display: none; }".
   Esta regla vuelve a mostrar el texto en teléfono y define
   explícitamente colores seleccionado / deseleccionado.
   ===================================================================== */
@media (max-width: 699px) {
  /* Texto SIEMPRE visible */
  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;

    opacity: 1 !important;
    visibility: visible !important;

    color: var(--boutique-ink, #161616) !important;
    -webkit-text-fill-color: var(--boutique-ink, #161616) !important;
  }

  /* DESELECCIONADO */
  #checkoutVista .checkout-delivery-section .tipo-btn:not(.activo) .tipo-copy,
  #checkoutVista
    .checkout-delivery-section
    .tipo-btn:not(.activo)
    .tipo-copy
    strong {
    display: flex !important;
    color: var(--boutique-ink, #161616) !important;
    -webkit-text-fill-color: var(--boutique-ink, #161616) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #checkoutVista
    .checkout-delivery-section
    .tipo-btn:not(.activo)
    .tipo-copy
    strong {
    display: block !important;
  }

  /* SELECCIONADO */
  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy,
  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy strong {
    display: block !important;
  }

  /* Mantener textos secundarios ocultos en móvil */
  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy small {
    display: none !important;
  }
}

/* =====================================================================
   CATÁLOGO RESPONSIVE FINAL — DENSIDAD DE PRODUCTOS
   ---------------------------------------------------------------------
   Teléfono < 700px: conserva el diseño móvil actual SIN cambios.
   Tablet vertical 700–899px: 4 productos por fila.
   Tablet horizontal 900–1199px: 5 productos por fila.
   Laptop 1200–1499px: 6 productos por fila.
   Desktop 1500–1799px: 7 productos por fila.
   Desktop grande >=1800px: 8 productos por fila.

   Este bloque es la autoridad final del grid y está al final del CSS
   para evitar que reglas antiguas de .productos / #listaProductos
   vuelvan a cambiar la cantidad de columnas.
   ===================================================================== */

/* ==========================================================
   TABLET VERTICAL
   ========================================================== */
@media (min-width: 700px) and (max-width: 899px) {
  #listaProductos.productos,
  #listaProductos,
  .productos {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #listaProductos .card,
  .productos .card {
    min-width: 0 !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 138px !important;
    padding: 10px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 9px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  #listaProductos .precio,
  .productos .precio {
    font-size: 17px !important;
  }

  #listaProductos .btn-agregar,
  #listaProductos .agregar,
  .productos .btn-agregar,
  .productos .agregar {
    min-height: 34px !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================
   TABLET HORIZONTAL
   ========================================================== */
@media (min-width: 900px) and (max-width: 1199px) {
  #listaProductos.productos,
  #listaProductos,
  .productos {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #listaProductos .card,
  .productos .card {
    min-width: 0 !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 130px !important;
    padding: 9px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 8px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #listaProductos .precio,
  .productos .precio {
    font-size: 16px !important;
  }

  #listaProductos .btn-agregar,
  #listaProductos .agregar,
  .productos .btn-agregar,
  .productos .agregar {
    min-height: 33px !important;
    padding: 7px 7px !important;
    font-size: 11px !important;
  }

  #listaProductos .btn-fav,
  .productos .btn-fav {
    width: 32px !important;
    height: 32px !important;
    top: 7px !important;
    right: 7px !important;
  }
}

/* ==========================================================
   LAPTOP
   ========================================================== */
@media (min-width: 1200px) and (max-width: 1499px) {
  #listaProductos.productos,
  #listaProductos,
  .productos {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #listaProductos .card,
  .productos .card {
    min-width: 0 !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 128px !important;
    padding: 9px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 8px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  #listaProductos .precio,
  .productos .precio {
    font-size: 16px !important;
  }

  #listaProductos .btn-agregar,
  #listaProductos .agregar,
  .productos .btn-agregar,
  .productos .agregar {
    min-height: 32px !important;
    padding: 6px 7px !important;
    font-size: 11px !important;
  }

  #listaProductos .btn-fav,
  .productos .btn-fav {
    width: 31px !important;
    height: 31px !important;
    top: 7px !important;
    right: 7px !important;
  }
}

/* ==========================================================
   COMPUTADORA / DESKTOP
   ========================================================== */
@media (min-width: 1500px) and (max-width: 1799px) {
  #listaProductos.productos,
  #listaProductos,
  .productos {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #listaProductos .card,
  .productos .card {
    min-width: 0 !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 120px !important;
    padding: 8px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 8px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  #listaProductos .precio,
  .productos .precio {
    font-size: 15px !important;
  }

  #listaProductos .btn-agregar,
  #listaProductos .agregar,
  .productos .btn-agregar,
  .productos .agregar {
    min-height: 31px !important;
    padding: 6px !important;
    font-size: 11px !important;
  }

  #listaProductos .btn-fav,
  .productos .btn-fav {
    width: 30px !important;
    height: 30px !important;
    top: 6px !important;
    right: 6px !important;
  }
}

/* ==========================================================
   COMPUTADORA GRANDE — 8 POR FILA
   ========================================================== */
@media (min-width: 1800px) {
  #listaProductos.productos,
  #listaProductos,
  .productos {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #listaProductos .card,
  .productos .card {
    min-width: 0 !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 116px !important;
    padding: 8px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 7px 8px 8px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    min-height: 30px !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
    line-height: 1.16 !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  #listaProductos .precio,
  .productos .precio {
    margin-bottom: 6px !important;
    font-size: 15px !important;
  }

  #listaProductos .btn-agregar,
  #listaProductos .agregar,
  .productos .btn-agregar,
  .productos .agregar {
    min-height: 30px !important;
    padding: 6px !important;
    border-radius: 7px !important;
    font-size: 10.5px !important;
  }

  #listaProductos .btn-fav,
  .productos .btn-fav {
    width: 29px !important;
    height: 29px !important;
    top: 6px !important;
    right: 6px !important;
  }

  #listaProductos .btn-fav svg,
  .productos .btn-fav svg {
    width: 16px !important;
    height: 16px !important;
  }

  #listaProductos .control-cantidad,
  .productos .control-cantidad {
    gap: 5px !important;
  }

  #listaProductos .control-cantidad button,
  .productos .control-cantidad button {
    width: 27px !important;
    height: 27px !important;
    font-size: 15px !important;
  }

  #listaProductos .control-cantidad span,
  .productos .control-cantidad span {
    font-size: 11px !important;
  }
}
/* =========================================================
   FAVORITOS — CORAZÓN ACTIVO
   ========================================================= */

.btn-fav {
  color: #161616;
}

.btn-fav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: transparent;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    transform 0.2s ease;
}

/* FAVORITO SELECCIONADO */
.btn-fav.activo {
  background: #ffffff !important;
  color: #e53935 !important;
}

/* Lucide Heart necesita fill para verse relleno */
.btn-fav.activo svg {
  fill: #e53935 !important;
  stroke: #e53935 !important;
}

/* Pequeña animación */
.btn-fav.activo svg {
  animation: favoritoPop 0.25s ease;
}

@keyframes favoritoPop {
  0% {
    transform: scale(0.75);
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================================================
   PROMOCIONES - CATÁLOGO / CARRITO / CHECKOUT
   ========================================================= */

.card.card-promocion {
  border: 1px solid #ffd6ad;
  box-shadow: 0 8px 24px rgba(235, 118, 35, 0.11);
}

.promo-ribbon-app {
  position: absolute;
  top: 12px;
  left: -6px;
  z-index: 8;
  min-width: 72px;
  height: 27px;
  padding: 0 11px 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25);
}

.promo-ribbon-app::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  border-top: 6px solid #b91c1c;
  border-left: 6px solid transparent;
}

.precio-promocion-app {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.precio-original-app {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 600;
}

.precio-final-app {
  color: #16a34a;
  font-size: 20px;
  font-weight: 900;
}

.promocion-nombre-app {
  display: block;
  min-height: 16px;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.item-carrito-promo {
  border-color: #dcfce7;
}

.carrito-precios-promo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
}

.carrito-precios-promo strong {
  color: #16a34a;
  font-size: 15px;
}

.carrito-precio-anterior {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 12px;
}

.carrito-promo-nombre {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}

.carrito-precio-normal {
  display: block;
  margin-top: 4px;
  color: #334155;
}

.carrito-total-linea {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.carrito-ahorro-promos {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
}

.carrito-ahorro-promos strong {
  font-size: 15px;
  font-weight: 900;
}

.checkout-product-unit-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.checkout-precio-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.checkout-precio-promo {
  color: #16a34a;
  font-weight: 900;
}

.checkout-promocion-label {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
}

.checkout-totals-card .descuento-promociones span:last-child {
  color: #16a34a;
  font-weight: 800;
}

/* Vista de promociones */
.promocion-producto-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  min-height: 210px;
  background: #fff;
  border: 1px solid #fee2c5;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.promocion-producto-imagen {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffaf5;
  padding: 18px;
}

.promocion-producto-imagen img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.promocion-producto-badge {
  position: absolute;
  top: 14px;
  left: 0;
  padding: 7px 13px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.promocion-producto-contenido {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promocion-producto-contenido > small {
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}

.promocion-producto-contenido h3 {
  margin: 7px 0 10px;
  color: #172033;
  font-size: 20px;
}

.promocion-producto-precios {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.promocion-producto-precios span {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 14px;
}

.promocion-producto-precios strong {
  color: #16a34a;
  font-size: 24px;
  font-weight: 900;
}

.promocion-producto-contenido p {
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 13px;
}

.promocion-producto-contenido button {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primario);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
}

.promocion-producto-contenido button svg {
  width: 17px;
  height: 17px;
}

.promociones-vacio {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  padding: 30px;
}

.promociones-vacio svg {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  color: #94a3b8;
}

.promociones-vacio h3 {
  margin: 0 0 6px;
  color: #172033;
}

@media (max-width: 699px) {
  .promo-ribbon-app {
    top: 8px;
    height: 23px;
    min-width: 62px;
    font-size: 9px;
  }

  .precio-final-app {
    font-size: 17px;
  }

  .precio-original-app {
    font-size: 11px;
  }

  .promocion-nombre-app {
    font-size: 9.5px;
  }

  .promocion-producto-card {
    grid-template-columns: 110px 1fr;
    min-height: 165px;
    border-radius: 16px;
  }

  .promocion-producto-imagen {
    min-height: 150px;
    padding: 10px;
  }

  .promocion-producto-imagen img {
    height: 120px;
  }

  .promocion-producto-contenido {
    padding: 14px;
  }

  .promocion-producto-contenido h3 {
    font-size: 15px;
  }

  .promocion-producto-precios strong {
    font-size: 19px;
  }

  .promocion-producto-contenido button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* =========================================================
   PANTALLA DE ÉXITO V2 - COMPACTA / RESPONSIVE
   ========================================================= */

.pantalla-exito {
  padding: clamp(14px, 2.4vw, 28px) !important;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(205, 169, 91, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 82%,
      rgba(26, 123, 136, 0.08),
      transparent 30%
    ),
    #f6f3ee !important;
}

.success-page-shell {
  width: 100%;
  min-height: calc(100dvh - 56px) !important;
  display: grid;
  place-items: center;
}

.success-card.success-card-v2 {
  width: min(100%, 680px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(20px, 3vw, 30px) !important;
  border-radius: 26px !important;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #d9c59e transparent;
}

.success-card-v2::-webkit-scrollbar {
  width: 5px;
}

.success-card-v2::-webkit-scrollbar-thumb {
  background: #d9c59e;
  border-radius: 999px;
}

.success-card-v2 .success-decoration-one {
  top: -115px;
  right: -90px;
}

.success-card-v2 .success-decoration-two {
  bottom: -125px;
  left: -100px;
}

.success-hero-v2 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.success-card-v2 .success-check-wrapper {
  margin: 0;
  justify-content: flex-start;
}

.success-card-v2 .check-animado {
  width: 76px;
  height: 76px;
  margin: 0;
}

.success-card-v2 .check-circulo {
  width: 76px;
  height: 76px;
  background: #22b86a !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(34, 184, 106, 0.22);
}

.success-card-v2 .check-paloma {
  top: 20px;
  left: 25px;
  width: 19px;
  height: 37px;
  border-right: 5px solid #fff !important;
  border-bottom: 5px solid #fff !important;
}

.success-hero-copy {
  min-width: 0;
}

.success-card-v2 .success-kicker {
  padding: 6px 11px;
  margin-bottom: 8px;
  background: #edf8f2;
  color: #167a4e;
  font-size: 10px;
}

.success-card-v2 h2 {
  margin: 0 0 5px;
  color: #203f46;
  font-size: clamp(24px, 4vw, 34px);
}

.success-card-v2 .exito-texto {
  max-width: none;
  margin: 0;
  color: #6c7c81;
  font-size: 14px;
  line-height: 1.45;
}

/* FOLIO: nunca partir el código */
.success-order-code.success-order-code-v2 {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  text-align: left;
}

.success-order-code-copy {
  min-width: 0;
  flex: 1;
}

.success-order-code-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #7c898c;
  font-size: 11px;
}

.success-order-code.success-order-code-v2 #codigoPedidoExito {
  display: block;
  max-width: 100%;
  color: var(--boutique-gold-dark, #a67c2d) !important;
  font-size: clamp(14px, 3vw, 19px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.success-card-v2 .success-copy-button {
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #e8dcc7;
  background: #faf5eb;
  color: #9b742e;
  font-size: 12px;
}

/* ESTADO */
.success-status-card.success-status-card-v2 {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px;
  gap: 12px;
  border: 1px solid #e8e3db;
  border-radius: 15px;
  background: linear-gradient(135deg, #fbfaf7, #f7f3ec) !important;
}

.success-card-v2 .success-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #8d6d32;
}

.success-card-v2 .success-status-icon svg {
  width: 21px;
  height: 21px;
}

.success-status-copy {
  min-width: 0;
}

.success-card-v2 .success-status-card strong {
  font-size: 14px;
}

.success-card-v2 .success-status-card small {
  font-size: 12px;
}

/* RESUMEN COMPACTO */
.success-order-summary.success-order-summary-v2 {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.success-order-summary-v2 .success-summary-item {
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ebe4da;
  border-radius: 13px;
  background: #fff;
}

.success-summary-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f6f0e6;
  color: #9a7432;
}

.success-summary-icon svg {
  width: 16px;
  height: 16px;
}

.success-order-summary-v2 .success-summary-item > div {
  min-width: 0;
}

.success-order-summary-v2 span:not(.success-summary-icon) {
  margin-bottom: 2px;
  font-size: 10px;
}

.success-order-summary-v2 strong {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

/* DIRECCIÓN */
.success-card-v2 .success-address {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 11px 13px;
}

.success-card-v2 .success-address-icon {
  font-size: 0;
}

.success-card-v2 .success-address-icon svg {
  width: 18px;
  height: 18px;
}

/* SIGUIENTE PASO */
.success-next-step.success-next-step-v2 {
  max-width: none;
  width: 100%;
  margin: 0 0 15px;
  padding: 12px 14px;
  align-items: center;
  border: 1px solid #efe1c7;
  background: #fffaf1 !important;
}

.success-next-step-v2 .success-next-step-number {
  width: 32px;
  height: 32px;
  background: var(--boutique-gold, #c6a15b) !important;
}

.success-next-step-v2 .success-next-step-number svg {
  width: 15px;
  height: 15px;
}

.success-next-step-v2 p {
  margin-top: 2px;
  line-height: 1.35;
}

/* BOTONES */
.success-actions.success-actions-v2 {
  max-width: none;
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success-card-v2 .success-primary-button,
.success-card-v2 .success-secondary-button {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 13px;
}

.success-card-v2 .success-primary-button {
  background: var(--boutique-gold, #c6a15b) !important;
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(166, 124, 45, 0.18);
}

.success-card-v2 .success-secondary-button {
  border-color: #ded4c5;
  color: #294f57;
}

/* PIE */
.success-footer-v2 {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.success-card-v2 .success-help {
  margin: 0;
  min-width: 0;
}

.success-card-v2 .success-help strong {
  font-size: 11px;
}

.success-card-v2 .success-help small {
  font-size: 10px;
}

.success-card-v2 .contador-redireccion {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f5f1ea;
  color: #7d7467;
  font-size: 10px;
  white-space: nowrap;
}

/* TABLET */
@media (max-width: 767px) {
  .pantalla-exito {
    padding: 10px !important;
  }

  .success-page-shell {
    min-height: calc(100dvh - 20px) !important;
    display: grid !important;
    place-items: center !important;
  }

  .success-card.success-card-v2 {
    min-height: 0 !important;
    max-height: calc(100dvh - 20px);
    padding: 18px !important;
    border: 1px solid #e9e0d3 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 30px rgba(42, 34, 23, 0.08) !important;
  }

  .success-hero-v2 {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 14px;
  }

  .success-card-v2 .check-animado,
  .success-card-v2 .check-circulo {
    width: 62px;
    height: 62px;
  }

  .success-card-v2 .check-paloma {
    top: 16px;
    left: 21px;
    width: 15px;
    height: 30px;
    border-width: 4px !important;
  }

  .success-card-v2 h2 {
    font-size: clamp(21px, 6vw, 28px);
  }

  .success-card-v2 .exito-texto {
    font-size: 12.5px;
  }
}

/* TELÉFONO */
@media (max-width: 520px) {
  .success-card.success-card-v2 {
    padding: 15px !important;
    border-radius: 18px !important;
  }

  .success-hero-v2 {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 12px;
  }

  .success-card-v2 .check-animado,
  .success-card-v2 .check-circulo {
    width: 50px;
    height: 50px;
  }

  .success-card-v2 .check-paloma {
    top: 13px;
    left: 17px;
    width: 12px;
    height: 24px;
    border-right-width: 3px !important;
    border-bottom-width: 3px !important;
  }

  .success-card-v2 .success-kicker {
    margin-bottom: 5px;
    padding: 4px 8px;
    font-size: 8.5px;
  }

  .success-card-v2 h2 {
    margin-bottom: 3px;
    font-size: 20px;
  }

  .success-card-v2 .exito-texto {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .success-order-code.success-order-code-v2 {
    padding: 10px 11px;
    margin-bottom: 10px;
  }

  .success-order-code.success-order-code-v2 #codigoPedidoExito {
    font-size: 13px;
  }

  .success-card-v2 .success-copy-button {
    min-height: 34px;
    padding: 7px 9px;
  }

  .success-card-v2 .success-copy-button span {
    display: none;
  }

  .success-status-card.success-status-card-v2 {
    padding: 10px 11px;
    margin-bottom: 10px;
  }

  .success-card-v2 .success-status-icon {
    width: 38px;
    height: 38px;
  }

  .success-card-v2 .success-status-card span {
    font-size: 9px;
  }

  .success-card-v2 .success-status-card strong {
    font-size: 12px;
  }

  .success-card-v2 .success-status-card small {
    margin-top: 2px;
    font-size: 10.5px;
  }

  .success-order-summary.success-order-summary-v2 {
    gap: 6px;
    margin-bottom: 10px;
  }

  .success-order-summary-v2 .success-summary-item {
    padding: 8px;
    gap: 7px;
  }

  .success-summary-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .success-order-summary-v2 span:not(.success-summary-icon) {
    font-size: 8.5px;
  }

  .success-order-summary-v2 strong {
    font-size: 10.5px;
  }

  .success-next-step.success-next-step-v2 {
    padding: 9px 10px;
    margin-bottom: 10px;
  }

  .success-next-step-v2 .success-next-step-number {
    width: 27px;
    height: 27px;
  }

  .success-next-step-v2 strong {
    font-size: 11.5px;
  }

  .success-next-step-v2 p {
    font-size: 10.5px;
  }

  .success-actions.success-actions-v2 {
    gap: 7px;
  }

  .success-card-v2 .success-primary-button,
  .success-card-v2 .success-secondary-button {
    min-height: 42px;
    padding: 9px 8px;
    font-size: 11px;
  }

  .success-footer-v2 {
    margin-top: 9px;
  }

  .success-card-v2 .success-help {
    display: none;
  }

  .success-card-v2 .contador-redireccion {
    margin-left: auto;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .success-order-summary.success-order-summary-v2 {
    grid-template-columns: 1fr;
  }

  .success-actions.success-actions-v2 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   OCCHI MARKET — ECOMMERCE COMPLETO 2026
   Capa final de Home + Catálogo responsive.
   ===================================================================== */

:root {
  --ec-bg: #f7f7f8;
  --ec-surface: #ffffff;
  --ec-ink: #171717;
  --ec-muted: #767676;
  --ec-border: #e8e8ea;
  --ec-sale: #d9342b;
  --ec-success: #1f8f57;
  --ec-radius-xl: 24px;
  --ec-radius-lg: 18px;
  --ec-radius-md: 14px;
  --ec-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

body {
  background: var(--ec-bg) !important;
}

.store-shell {
  background: transparent !important;
}

.ecommerce-home,
.catalog-intro {
  min-width: 0;
}

.ecommerce-home {
  display: grid;
  gap: 28px;
  margin: 24px 0 30px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ecommerce-home.ecommerce-home-hidden {
  display: none !important;
}

.ecommerce-shelf,
.home-category-section {
  min-width: 0;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-xl);
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow);
  padding: 22px;
  overflow: hidden;
}

.ecommerce-shelf-promo {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 235, 230, 0.9),
      transparent 34%
    ),
    #ffffff;
}

.ecommerce-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ecommerce-section-heading > div {
  min-width: 0;
}

.ecommerce-section-heading h2,
.catalog-intro h2 {
  margin: 5px 0 5px;
  color: var(--ec-ink);
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.ecommerce-section-heading p,
.catalog-intro p {
  margin: 0;
  max-width: 680px;
  color: var(--ec-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ecommerce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primario);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ecommerce-eyebrow svg {
  width: 15px;
  height: 15px;
}

.ecommerce-eyebrow-sale {
  color: var(--ec-sale);
}

.ecommerce-section-link {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--ec-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ec-ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: 0.18s ease;
}

.ecommerce-section-link:hover {
  border-color: var(--color-primario);
  color: var(--color-primario);
  transform: translateY(-1px);
}

.ecommerce-section-link svg {
  width: 15px;
  height: 15px;
}

/* Categorías home */
.home-category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(102px, 118px);
  gap: 11px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
}

.home-category-card {
  min-width: 0;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 8px;
  border: 1px solid var(--ec-border);
  border-radius: 18px;
  background: #fff;
  color: var(--ec-ink);
  cursor: pointer;
  transition: 0.18s ease;
}

.home-category-card:hover {
  border-color: color-mix(in srgb, var(--color-primario) 40%, #ddd);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.07);
}

.home-category-image,
.home-category-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f5f6;
}

.home-category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.home-category-icon svg {
  width: 27px;
  height: 27px;
}

.home-category-all .home-category-icon {
  background: color-mix(in srgb, var(--color-primario) 10%, #fff);
  color: var(--color-primario);
}

.home-category-sale .home-category-icon {
  background: #fff0ee;
  color: var(--ec-sale);
}

.home-category-card strong {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rails de productos */
.ecommerce-products-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 205px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  padding: 2px 2px 10px;
}

.ecommerce-product-card {
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ec-border);
  border-radius: 17px;
  background: #fff;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.ecommerce-product-card:hover {
  transform: translateY(-3px);
  border-color: #dedee1;
  box-shadow: 0 13px 28px rgba(15, 23, 42, 0.09);
}

.ecommerce-product-media {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.ecommerce-product-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.22s ease;
}

.ecommerce-product-card:hover .ecommerce-product-media > img {
  transform: scale(1.035);
}

.ecommerce-promo-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ec-sale);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.ecommerce-fav-button {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #555;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(15, 23, 42, 0.08);
}

.ecommerce-fav-button svg {
  width: 17px;
  height: 17px;
}

.ecommerce-fav-button.activo,
.ecommerce-fav-button.is-favorite {
  color: #d83232;
}

.ecommerce-stock-overlay {
  position: absolute;
  inset: auto 10px 10px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.ecommerce-product-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 11px;
}

.ecommerce-promo-name,
.ecommerce-product-kicker {
  min-height: 16px;
  overflow: hidden;
  color: var(--ec-sale);
  font-size: 9px;
  line-height: 1.25;
  font-weight: 850;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecommerce-product-kicker {
  color: var(--ec-success);
}

.ecommerce-product-content h3 {
  min-height: 35px;
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 7px;
  color: var(--ec-ink);
  font-size: 13px;
  line-height: 1.32;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ecommerce-product-pricing {
  min-height: 28px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.ecommerce-product-pricing strong {
  color: var(--ec-ink);
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.ecommerce-product-card.is-promo .ecommerce-product-pricing strong {
  color: var(--ec-sale);
}

.ecommerce-old-price {
  color: #999;
  font-size: 11px;
  text-decoration: line-through;
}

.ecommerce-product-pricing small {
  color: #8c8c8c;
  font-size: 9px;
}

.ecommerce-saving,
.ecommerce-low-stock,
.ecommerce-card-spacer {
  min-height: 17px;
  display: block;
  margin-top: 4px;
  color: var(--ec-success);
  font-size: 9px;
  font-weight: 800;
}

.ecommerce-low-stock {
  color: #b56a00;
}

.ecommerce-card-control {
  margin-top: 8px;
}

.ecommerce-card-control .btn-agregar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px !important;
  font-size: 11px !important;
}

.ecommerce-card-control .btn-agregar svg {
  width: 14px;
  height: 14px;
}

.ecommerce-qty-control {
  width: 100%;
  min-height: 36px;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 3px;
  border: 1px solid var(--ec-border);
  border-radius: 11px;
  background: #fafafa;
}

.ecommerce-qty-control button {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
}

.ecommerce-qty-control span {
  overflow: hidden;
  font-size: 11px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecommerce-product-card.is-out {
  opacity: 0.7;
}

.ecommerce-shelf-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ec-muted);
  font-size: 12px;
}

/* Barra de confianza */
.ecommerce-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ecommerce-trust-strip article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--ec-border);
  border-radius: 16px;
  background: #fff;
}

.ecommerce-trust-strip article > span {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-primario) 9%, #fff);
  color: var(--color-primario);
}

.ecommerce-trust-strip svg {
  width: 19px;
  height: 19px;
}

.ecommerce-trust-strip strong,
.ecommerce-trust-strip small {
  display: block;
}

.ecommerce-trust-strip strong {
  color: var(--ec-ink);
  font-size: 11px;
  font-weight: 850;
}

.ecommerce-trust-strip small {
  margin-top: 2px;
  color: var(--ec-muted);
  font-size: 9px;
  line-height: 1.35;
}

/* Catálogo */
.catalog-intro {
  margin: 12px 0 10px;
  padding: 4px 2px;
}

.catalog-intro h2 {
  font-size: clamp(22px, 2vw, 28px);
}

.barra-filtros {
  border: 1px solid var(--ec-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.categorias-rappi {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: 18px;
  overflow: hidden;
}

.categoria-especial-icon {
  display: grid;
  place-items: center;
}

.categoria-especial-icon svg {
  width: 20px;
  height: 20px;
}

.categoria-promociones {
  color: var(--ec-sale);
}

/* Mejoras de cards del catálogo existentes */
#listaProductos .card {
  border: 1px solid var(--ec-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.055) !important;
}

#listaProductos .card:hover {
  box-shadow: 0 11px 25px rgba(15, 23, 42, 0.085) !important;
}

#listaProductos .card-body h3 {
  display: -webkit-box !important;
  min-height: 34px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#listaProductos .btn-agregar {
  min-height: 37px;
  border-radius: 10px !important;
}

/* Carrito */
.cart-shipping-progress {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #e9e9eb;
  border-radius: 13px;
  background: #fafafa;
}

.cart-shipping-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #666;
  font-size: 10px;
}

.cart-shipping-progress-copy strong {
  color: var(--color-primario);
  font-size: 11px;
}

.cart-shipping-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8ea;
}

.cart-shipping-progress-track span {
  width: 0%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--color-primario);
  transition: width 0.3s ease;
}

.cart-shipping-progress.is-complete {
  border-color: #cfeedd;
  background: #f2fbf6;
}

.cart-shipping-progress.is-complete .cart-shipping-progress-copy,
.cart-shipping-progress.is-complete .cart-shipping-progress-copy strong {
  color: var(--ec-success);
}

.cart-shipping-progress.is-complete .cart-shipping-progress-track span {
  background: var(--ec-success);
}

.cart-total-pro {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cart-total-pro > span {
  font-size: 12px;
  color: #666;
}

.cart-total-pro > strong {
  color: var(--ec-ink);
  font-size: 22px;
  font-weight: 950;
}

/* Desktop */
@media (min-width: 900px) {
  .store-shell {
    max-width: 1480px !important;
  }

  .slider {
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .ecommerce-home,
  .catalog-intro {
    grid-column: 1 / -1;
  }

  .ecommerce-home {
    padding-left: 0;
    padding-right: 0;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(175px, 1fr);
  }
}

/* Tablet */
@media (min-width: 700px) and (max-width: 899px) {
  .ecommerce-home {
    margin: 18px 12px 24px;
    gap: 18px;
  }

  .catalog-intro {
    margin-left: 12px;
    margin-right: 12px;
  }

  .ecommerce-shelf,
  .home-category-section {
    padding: 17px;
    border-radius: 20px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(170px, 190px);
  }

  .ecommerce-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Teléfono */
@media (max-width: 699px) {
  body {
    background: #f6f6f7 !important;
  }

  .ecommerce-home {
    gap: 16px;
    margin: 14px 0 18px;
  }

  .ecommerce-shelf,
  .home-category-section {
    margin: 0 10px;
    padding: 14px 12px;
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.045);
  }

  .ecommerce-section-heading {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .ecommerce-section-heading h2,
  .catalog-intro h2 {
    margin-top: 3px;
    font-size: 19px;
    letter-spacing: -0.025em;
  }

  .ecommerce-section-heading p {
    max-width: 245px;
    font-size: 10.5px;
    line-height: 1.4;
  }

  .ecommerce-section-link {
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    background: transparent;
    color: var(--color-primario);
    font-size: 10px;
  }

  .ecommerce-section-link svg {
    width: 13px;
    height: 13px;
  }

  .ecommerce-eyebrow {
    font-size: 8.5px;
  }

  .ecommerce-eyebrow svg {
    width: 12px;
    height: 12px;
  }

  .home-category-rail {
    grid-auto-columns: 83px;
    gap: 8px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .home-category-card {
    min-height: 96px;
    gap: 6px;
    padding: 8px 5px;
    border-radius: 14px;
  }

  .home-category-image,
  .home-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .home-category-card strong {
    font-size: 9.5px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(145px, 46vw);
    gap: 9px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .ecommerce-product-card {
    border-radius: 15px;
  }

  .ecommerce-product-media {
    height: 143px;
  }

  .ecommerce-product-media > img {
    padding: 11px;
  }

  .ecommerce-promo-badge {
    top: 7px;
    left: 7px;
    min-height: 22px;
    padding: 3px 7px;
    font-size: 8.5px;
  }

  .ecommerce-fav-button {
    top: 7px;
    right: 7px;
    width: 29px;
    height: 29px;
  }

  .ecommerce-fav-button svg {
    width: 14px;
    height: 14px;
  }

  .ecommerce-product-content {
    padding: 9px;
  }

  .ecommerce-product-content h3 {
    min-height: 32px;
    margin: 4px 0 6px;
    font-size: 11.5px;
  }

  .ecommerce-product-pricing strong {
    font-size: 17px;
  }

  .ecommerce-old-price {
    font-size: 9.5px;
  }

  .ecommerce-saving,
  .ecommerce-low-stock,
  .ecommerce-card-spacer {
    font-size: 8px;
  }

  .ecommerce-card-control .btn-agregar {
    min-height: 34px;
    font-size: 10px !important;
  }

  .ecommerce-trust-strip {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 0 10px;
  }

  .ecommerce-trust-strip article {
    min-height: 66px;
    padding: 9px;
    border-radius: 14px;
  }

  .ecommerce-trust-strip article > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }

  .ecommerce-trust-strip strong {
    font-size: 9.5px;
  }

  .ecommerce-trust-strip small {
    font-size: 7.5px;
  }

  .catalog-intro {
    margin: 14px 12px 8px;
  }

  .catalog-intro p {
    font-size: 10px;
  }

  /* Dos columnas equilibradas, con imágenes menos altas */
  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    padding: 10px !important;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 148px !important;
    padding: 9px !important;
    object-fit: contain !important;
  }

  #listaProductos .card-body,
  .productos .card-body {
    padding: 9px !important;
  }

  #listaProductos .card-body h3,
  .productos .card-body h3 {
    min-height: 31px !important;
    font-size: 11.5px !important;
    line-height: 1.32 !important;
  }

  #listaProductos .precio,
  #listaProductos .precio-final-app {
    font-size: 16px !important;
  }

  #listaProductos .btn-agregar {
    min-height: 34px !important;
    font-size: 10px !important;
  }

  /* Categorías móviles como chips horizontales */
  .filtros-contenedor {
    overflow: visible !important;
  }

  .categorias-rappi {
    margin: 0 10px 10px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .categorias-grandes {
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    padding-bottom: 3px !important;
  }

  .categorias-grandes::-webkit-scrollbar {
    display: none;
  }

  .categorias-grandes .categoria.grande {
    width: auto !important;
    min-width: max-content !important;
    min-height: 36px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border: 1px solid var(--ec-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
  }

  .categorias-grandes .categoria.grande img {
    width: 22px !important;
    height: 22px !important;
    padding: 2px !important;
    border-radius: 7px !important;
  }

  .categorias-grandes .categoria.grande span {
    font-size: 9.5px !important;
    font-weight: 800 !important;
  }

  .categorias-grandes .categoria.grande.activa {
    border-color: var(--color-primario) !important;
    background: var(--color-primario) !important;
    color: #fff !important;
  }

  .categoria-especial-icon svg {
    width: 15px;
    height: 15px;
  }

  .categorias-pequenas {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    padding: 7px 0 0 !important;
  }

  .categorias-pequenas .categoria.pequena {
    min-width: max-content !important;
    flex: 0 0 auto !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
  }

  .cart-shipping-progress {
    padding: 9px 10px;
  }
}

@media (max-width: 380px) {
  .ecommerce-products-rail {
    grid-auto-columns: minmax(138px, 45vw);
  }

  .ecommerce-product-media {
    height: 134px;
  }

  #listaProductos .card img,
  .productos .card img {
    height: 136px !important;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .ecommerce-product-card,
  .home-category-card,
  .ecommerce-section-link,
  .cart-shipping-progress-track span {
    transition: none !important;
  }
}

/* =====================================================================
   OCCHI MARKET — DESKTOP / TABLET PREMIUM 2026
   ---------------------------------------------------------------------
   IMPORTANTE:
   - EXCLUSIVO PARA >= 700px.
   - NO modifica teléfono <= 699px.
   - Reemplaza visualmente el viejo layout sidebar/grid.
   - Orden real:
       Hero
       Banners
       Categorías populares
       Promociones
       Nuevos
       Más vendidos
       Destacados
       Catálogo completo
   ===================================================================== */

.desktop-promo-mosaic {
  display: none;
}

@media (min-width: 700px) {
  /* ==========================================================
     1. BASE Y CONTENEDOR
     ========================================================== */

  body {
    padding-bottom: 0 !important;
    background:
      radial-gradient(
        circle at 10% 0%,
        rgba(225, 242, 240, 0.52),
        transparent 28rem
      ),
      #f6f7f8 !important;
  }

  .store-shell {
    width: min(100% - 32px, 1540px) !important;
    max-width: 1540px !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;

    /*
     * CLAVE:
     * eliminamos el antiguo grid de sidebar/productos.
     * Así el DOM vuelve a su orden natural.
     */
    display: block !important;
  }

  .store-shell > * {
    min-width: 0;
  }

  /* ==========================================================
     2. HEADER + NAV
     ========================================================== */

  .app-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 7px 25px rgba(15, 23, 42, 0.055) !important;
    backdrop-filter: blur(14px);
  }

  .header-ecommerce {
    width: min(100% - 32px, 1540px) !important;
    max-width: 1540px !important;
    margin: 0 auto !important;
  }

  .desktop-nav {
    width: 100% !important;
    border-bottom: 1px solid #eceeef !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035) !important;
  }

  .desktop-nav > * {
    min-width: 0;
  }

  .desktop-nav {
    padding-left: max(16px, calc((100vw - 1540px) / 2)) !important;
    padding-right: max(16px, calc((100vw - 1540px) / 2)) !important;
  }

  .desktop-categories-title {
    border-radius: 11px !important;
    margin: 6px 0 !important;
    min-height: 40px !important;
    height: auto !important;
  }

  .desktop-nav-links button {
    border-radius: 9px !important;
    min-height: 38px;
  }

  /* ==========================================================
     3. HERO GRANDE
     ========================================================== */

  #sliderPrincipal.slider {
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 26px !important;
    background: #e8f4f1 !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09) !important;
  }

  #sliderPrincipal .slide::after {
    background: linear-gradient(
      90deg,
      rgba(238, 250, 247, 0.98) 0%,
      rgba(238, 250, 247, 0.91) 31%,
      rgba(238, 250, 247, 0.28) 56%,
      rgba(238, 250, 247, 0) 74%
    ) !important;
  }

  #sliderPrincipal .slide-copy {
    left: clamp(32px, 5vw, 78px) !important;
    width: min(46%, 620px) !important;
  }

  #sliderPrincipal .slide-copy > span {
    display: inline-flex !important;
    align-items: center;
    width: max-content;
    padding: 7px 11px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px);
  }

  #sliderPrincipal .slide-copy h2 {
    margin: 13px 0 13px !important;
    max-width: 620px;
    color: #172c33 !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
  }

  #sliderPrincipal .slide-copy p {
    max-width: 490px !important;
    color: #566970 !important;
    line-height: 1.55 !important;
  }

  #sliderPrincipal .slide-copy button {
    min-height: 44px !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 9px 22px rgba(26, 123, 136, 0.2);
  }

  /* ==========================================================
     4. MOSAICO DE BANNERS
     ========================================================== */

  .desktop-promo-mosaic {
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.72fr);
    grid-template-rows: repeat(2, minmax(112px, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
  }

  .desktop-promo-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.065);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
  }

  .desktop-promo-card-main {
    grid-row: 1 / 3;
    min-height: 242px;
    display: flex;
    align-items: center;
    padding: clamp(24px, 3vw, 44px);
    background:
      radial-gradient(
        circle at 82% 28%,
        rgba(255, 255, 255, 0.3),
        transparent 13rem
      ),
      linear-gradient(125deg, #183f46 0%, #216d75 60%, #2c9094 100%);
    color: #fff;
  }

  .desktop-promo-card-copy {
    position: relative;
    z-index: 2;
    max-width: 500px;
  }

  .desktop-promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d6f5ef;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .desktop-promo-kicker svg {
    width: 16px;
    height: 16px;
  }

  .desktop-promo-card-main h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.05em;
  }

  .desktop-promo-card-main p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 13px;
    line-height: 1.5;
  }

  .desktop-promo-card-main button {
    min-height: 40px;
    margin-top: 18px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 11px;
    background: #fff;
    color: #17464d;
    font-weight: 850;
    cursor: pointer;
  }

  .desktop-promo-card-main button svg {
    width: 15px;
    height: 15px;
  }

  .desktop-promo-decoration {
    position: absolute;
    right: -28px;
    bottom: -46px;
    width: 245px;
    height: 245px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transform: rotate(-10deg);
  }

  .desktop-promo-decoration::before {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.13);
  }

  .desktop-promo-decoration span {
    color: rgba(255, 255, 255, 0.18);
    font-size: 76px;
    font-weight: 950;
  }

  .desktop-promo-card-delivery,
  .desktop-promo-card-new {
    min-height: 114px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: #fff;
  }

  .desktop-promo-card-delivery {
    background: linear-gradient(130deg, #fff8ea 0%, #fffdf9 72%);
  }

  .desktop-promo-card-new {
    background: linear-gradient(130deg, #edf9f7 0%, #fbfefd 72%);
  }

  .desktop-promo-mini-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--color-primario);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
  }

  .desktop-promo-card-delivery .desktop-promo-mini-icon {
    color: #aa762b;
  }

  .desktop-promo-mini-icon svg {
    width: 23px;
    height: 23px;
  }

  .desktop-promo-card > div:nth-child(2) {
    min-width: 0;
  }

  .desktop-promo-card-delivery span,
  .desktop-promo-card-new span {
    display: block;
    color: #8b8b8b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .desktop-promo-card-delivery strong,
  .desktop-promo-card-new strong {
    display: block;
    margin: 2px 0;
    color: #202124;
    font-size: 14px;
    font-weight: 900;
  }

  .desktop-promo-card-delivery b {
    display: block;
    color: #a46e20;
    font-size: 19px;
    font-weight: 950;
  }

  .desktop-promo-card-new small {
    display: block;
    max-width: 260px;
    color: #767676;
    font-size: 10px;
    line-height: 1.35;
  }

  .desktop-promo-card-delivery > button,
  .desktop-promo-card-new > button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #444;
    cursor: pointer;
  }

  .desktop-promo-card-delivery > button svg,
  .desktop-promo-card-new > button svg {
    width: 16px;
    height: 16px;
  }

  /* ==========================================================
     5. HOME SECTIONS — FULL WIDTH
     ========================================================== */

  #ecommerceHome.ecommerce-home {
    width: 100% !important;
    margin: 0 0 38px !important;
    padding: 0 !important;
    display: grid !important;
    gap: 24px !important;
  }

  #ecommerceHome.ecommerce-home.ecommerce-home-hidden {
    display: none !important;
  }

  .home-category-section,
  .ecommerce-shelf {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e7eaeb !important;
    border-radius: 23px !important;
    background: #fff !important;
    box-shadow: 0 9px 30px rgba(15, 23, 42, 0.052) !important;
  }

  .home-category-section {
    padding: 22px !important;
  }

  .ecommerce-shelf {
    padding: 24px !important;
  }

  .ecommerce-shelf-promo {
    background:
      radial-gradient(
        circle at 96% 0%,
        rgba(255, 226, 218, 0.75),
        transparent 22rem
      ),
      #fff !important;
  }

  .ecommerce-section-heading {
    margin-bottom: 18px !important;
  }

  .ecommerce-section-heading h2 {
    font-size: clamp(23px, 2vw, 31px) !important;
  }

  /* ==========================================================
     6. CATEGORÍAS COMO MÓVIL, PERO PREMIUM
     ========================================================== */

  .home-category-rail {
    grid-auto-columns: minmax(106px, 122px) !important;
    gap: 11px !important;
    padding-bottom: 5px !important;
  }

  .home-category-card {
    min-height: 118px !important;
  }

  /*
   * Catálogo: quitamos el sidebar y hacemos una fila horizontal.
   */
  .filtros-contenedor {
    width: 100% !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    display: block !important;
  }

  .categorias-rappi {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e7eaeb !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045) !important;
  }

  .sidebar-title {
    display: none !important;
  }

  .categorias-grandes,
  .categorias-pequenas {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding: 2px 1px !important;
    border: 0 !important;
  }

  .categorias-grandes::-webkit-scrollbar,
  .categorias-pequenas::-webkit-scrollbar {
    display: none !important;
  }

  .categorias-pequenas {
    margin-top: 9px !important;
    padding-top: 9px !important;
    border-top: 1px solid #f0f1f2 !important;
  }

  .categoria.grande,
  .categoria.pequena {
    width: auto !important;
    min-width: max-content !important;
    max-width: 190px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    border: 1px solid #e7eaeb !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #36383a !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .categoria.grande {
    height: 42px !important;
    padding: 5px 12px 5px 7px !important;
  }

  .categoria.pequena {
    height: 34px !important;
    padding: 5px 11px !important;
    color: #676a6c !important;
  }

  .categoria.grande::after {
    display: none !important;
  }

  .categoria.grande img {
    width: 29px !important;
    height: 29px !important;
    flex: 0 0 29px !important;
    padding: 3px !important;
    object-fit: contain !important;
    border-radius: 9px !important;
    background: #f6f7f8 !important;
  }

  .categoria.grande span,
  .categoria.pequena span {
    max-width: 145px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .categoria.grande:hover,
  .categoria.pequena:hover {
    border-color: color-mix(
      in srgb,
      var(--color-primario) 45%,
      #ddd
    ) !important;
    background: #f7fbfb !important;
    color: var(--color-primario) !important;
  }

  .categoria.grande.activa,
  .categoria.pequena.activa {
    border-color: var(--color-primario) !important;
    background: var(--color-primario) !important;
    color: #fff !important;
  }

  .categoria.grande.activa img {
    background: rgba(255, 255, 255, 0.9) !important;
  }

  .categoria-especial-icon {
    width: 27px;
    height: 27px;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px;
    background: #f3f5f6;
  }

  .categoria.grande.activa .categoria-especial-icon {
    background: rgba(255, 255, 255, 0.16);
  }

  .desktop-shipping-card {
    display: none !important;
  }

  /* ==========================================================
     7. CATÁLOGO COMPLETO DESPUÉS DE HOME
     ========================================================== */

  #catalogoCompleto.catalog-intro {
    width: 100% !important;
    margin: 6px 0 12px !important;
    padding: 0 2px !important;
  }

  #catalogoCompleto h2 {
    margin-bottom: 5px !important;
    font-size: clamp(25px, 2.1vw, 32px) !important;
  }

  .barra-filtros {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 0 12px !important;
    padding: 9px 11px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    overflow: visible !important;
    border: 1px solid #e7eaeb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.04) !important;
  }

  .barra-filtros .filtro {
    flex: 0 0 auto !important;
  }

  .barra-filtros .filtro select {
    min-width: 150px !important;
    height: 39px !important;
    border-radius: 10px !important;
  }

  #main-productos {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 36px !important;
  }

  #listaProductos .card {
    min-width: 0 !important;
    border: 1px solid #e8eaec !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.048) !important;
  }

  #listaProductos .card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(26, 123, 136, 0.25) !important;
    box-shadow: 0 13px 30px rgba(15, 23, 42, 0.09) !important;
  }

  #listaProductos .card > img {
    width: 100% !important;
    object-fit: contain !important;
    background: linear-gradient(#fafafa, #fff) !important;
  }

  #listaProductos .card-body h3 {
    color: #202124 !important;
  }

  /* ==========================================================
     8. PRODUCT RAILS
     ========================================================== */

  .ecommerce-products-rail {
    grid-auto-columns: minmax(168px, 194px) !important;
    gap: 12px !important;
  }

  .ecommerce-product-card {
    border-radius: 16px !important;
  }

  .ecommerce-product-media {
    height: 158px !important;
  }

  /* ==========================================================
     9. BENEFICIOS
     ========================================================== */

  .ecommerce-trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ecommerce-trust-strip article {
    min-height: 76px !important;
    border-radius: 16px !important;
  }

  /*
   * La segunda barra antigua repite información.
   * Conservamos la nueva dentro de Home.
   */
  body > .desktop-benefits {
    display: none !important;
  }
}

/* =====================================================================
   TABLET VERTICAL — 700–899
   ===================================================================== */
@media (min-width: 700px) and (max-width: 899px) {
  .store-shell {
    width: calc(100% - 24px) !important;
    margin-top: 12px !important;
  }

  .header-ecommerce {
    width: calc(100% - 24px) !important;
  }

  #sliderPrincipal.slider {
    height: 285px !important;
    border-radius: 20px !important;
  }

  #sliderPrincipal .slide-copy {
    left: 28px !important;
    width: 54% !important;
  }

  #sliderPrincipal .slide-copy h2 {
    font-size: clamp(27px, 4.8vw, 38px) !important;
  }

  #sliderPrincipal .slide-copy p {
    max-width: 330px !important;
    font-size: 12px !important;
  }

  .desktop-promo-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    margin: 12px 0 20px !important;
  }

  .desktop-promo-card-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 185px;
    padding: 25px !important;
  }

  .desktop-promo-card-main h2 {
    font-size: 31px;
  }

  .desktop-promo-card-delivery,
  .desktop-promo-card-new {
    min-height: 105px;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    padding: 13px;
  }

  .desktop-promo-mini-icon {
    width: 42px;
    height: 42px;
  }

  #ecommerceHome.ecommerce-home {
    gap: 17px !important;
  }

  .home-category-section,
  .ecommerce-shelf {
    padding: 17px !important;
    border-radius: 19px !important;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(155px, 174px) !important;
    gap: 10px !important;
  }

  .ecommerce-product-media {
    height: 148px !important;
  }

  .ecommerce-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .barra-filtros .filtro select {
    min-width: 132px !important;
  }

  .productos-contador {
    display: none !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #listaProductos .card > img {
    height: 138px !important;
    padding: 9px !important;
  }

  #listaProductos .card-body {
    padding: 9px !important;
  }

  #listaProductos .card-body h3 {
    min-height: 33px !important;
    font-size: 11.5px !important;
  }

  #listaProductos .precio,
  #listaProductos .precio-final-app {
    font-size: 16px !important;
  }
}

/* =====================================================================
   TABLET HORIZONTAL / LAPTOP COMPACTA — 900–1199
   ===================================================================== */
@media (min-width: 900px) and (max-width: 1199px) {
  .store-shell,
  .header-ecommerce {
    width: calc(100% - 32px) !important;
  }

  #sliderPrincipal.slider {
    height: 340px !important;
  }

  #sliderPrincipal .slide-copy h2 {
    font-size: clamp(32px, 4.2vw, 45px) !important;
  }

  .desktop-promo-mosaic {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.8fr) !important;
  }

  .desktop-promo-card-main {
    min-height: 228px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(168px, 185px) !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  #listaProductos .card > img {
    height: 145px !important;
    padding: 10px !important;
  }

  #listaProductos .card-body h3 {
    font-size: 12px !important;
  }
}

/* =====================================================================
   LAPTOP — 1200–1499
   ===================================================================== */
@media (min-width: 1200px) and (max-width: 1499px) {
  #sliderPrincipal.slider {
    height: 390px !important;
  }

  .desktop-promo-card-main {
    min-height: 250px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(175px, 195px) !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #listaProductos .card > img {
    height: 154px !important;
    padding: 11px !important;
  }
}

/* =====================================================================
   DESKTOP — 1500–1799
   ===================================================================== */
@media (min-width: 1500px) and (max-width: 1799px) {
  #sliderPrincipal.slider {
    height: 430px !important;
  }

  .desktop-promo-card-main {
    min-height: 265px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(180px, 202px) !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 13px !important;
  }

  #listaProductos .card > img {
    height: 160px !important;
    padding: 12px !important;
  }
}

/* =====================================================================
   DESKTOP GRANDE — >=1800
   ===================================================================== */
@media (min-width: 1800px) {
  #sliderPrincipal.slider {
    height: 455px !important;
  }

  .desktop-promo-card-main {
    min-height: 278px;
  }

  .ecommerce-products-rail {
    grid-auto-columns: minmax(185px, 205px) !important;
  }

  #listaProductos.productos,
  #listaProductos,
  .productos {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 13px !important;
  }

  #listaProductos .card > img {
    height: 162px !important;
    padding: 12px !important;
  }
}
/* =========================================================
   SIN RESULTADOS - ECOMMERCE COMPACTO
   ========================================================= */

#listaProductos:has(.sin-resultados-premium) {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 28px 0 50px !important;
}

#listaProductos .sin-resultados-premium {
  position: relative;

  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 30px 38px !important;

  display: grid !important;

  grid-template-columns:
    90px
    minmax(0, 1fr)
    auto;

  grid-template-areas: "icon content buttons";

  align-items: center !important;

  gap: 26px;

  text-align: left !important;

  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #ffffff 68%,
    rgba(45, 157, 158, 0.045) 100%
  );

  border: 1px solid rgba(198, 161, 91, 0.22);

  border-radius: 22px;

  box-shadow: 0 12px 34px rgba(31, 43, 48, 0.06);

  overflow: hidden;
}

/* decoración */

#listaProductos .sin-resultados-premium::before {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  right: -75px;
  top: -95px;

  border-radius: 50%;

  background: rgba(45, 157, 158, 0.055);

  pointer-events: none;
}

#listaProductos .sin-resultados-premium::after {
  display: none;
}

/* ICONO */

.sin-resultados-ilustracion {
  grid-area: icon;

  position: relative;

  width: 82px;
  height: 82px;

  display: grid;
  place-items: center;

  margin: 0 !important;
}

.sin-resultados-icono-fondo {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  border-radius: 21px;

  color: var(--color-primario);

  background: linear-gradient(
    145deg,
    rgba(45, 157, 158, 0.12),
    rgba(198, 161, 91, 0.12)
  );

  border: 1px solid rgba(45, 157, 158, 0.1);

  transform: rotate(-4deg);
}

.sin-resultados-icono-fondo svg {
  width: 32px;
  height: 32px;

  stroke-width: 1.8;

  transform: rotate(4deg);
}

.sin-resultados-mini-icon {
  position: absolute;

  right: 0;
  bottom: 1px;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: white;

  color: #c69b4f;

  border: 1px solid #ebe1cf;

  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

.sin-resultados-mini-icon svg {
  width: 14px;
  height: 14px;
}

/* CONTENIDO */

.sin-resultados-premium .sin-resultados-eyebrow {
  grid-area: content;

  align-self: start;

  margin: 4px 0 0;

  color: #ba8e3c;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.4px;

  text-transform: uppercase;
}

/*
 * Como eyebrow, h2 y p son hermanos,
 * los agrupamos visualmente en la misma columna.
 */

#listaProductos .sin-resultados-premium h2 {
  grid-column: 2;
  grid-row: 1;

  align-self: center;

  margin: 18px 0 3px !important;

  color: #17262b;

  font-size: 22px !important;
  line-height: 1.18 !important;

  font-weight: 800 !important;

  letter-spacing: -0.4px;
}

#listaProductos .sin-resultados-premium p {
  grid-column: 2;
  grid-row: 1;

  align-self: end;

  width: 100%;
  max-width: 540px;

  margin: 0 0 4px !important;

  color: #7d898d !important;

  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* BOTONES */

.sin-resultados-acciones {
  grid-area: buttons;

  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  align-items: stretch;

  gap: 8px;

  width: 185px;

  margin: 0 !important;
}

.btn-sin-resultados-principal,
.btn-sin-resultados-secundario {
  width: 100%;

  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 14px;

  border-radius: 11px;

  font-size: 11px;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-sin-resultados-principal {
  border: none;

  background: var(--color-primario);

  color: white;

  box-shadow: 0 7px 16px rgba(45, 157, 158, 0.16);
}

.btn-sin-resultados-secundario {
  border: 1px solid #ddd8cf;

  background: white;

  color: #35474d;
}

.btn-sin-resultados-principal:hover,
.btn-sin-resultados-secundario:hover {
  transform: translateY(-1px);
}

.btn-sin-resultados-principal svg,
.btn-sin-resultados-secundario svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) and (max-width: 1000px) {
  #listaProductos .sin-resultados-premium {
    grid-template-columns:
      75px
      1fr;

    grid-template-areas:
      "icon content"
      "icon buttons";

    gap: 8px 20px;
  }

  .sin-resultados-acciones {
    grid-area: buttons;

    width: auto;

    flex-direction: row;

    margin-top: 10px !important;
  }

  .btn-sin-resultados-principal,
  .btn-sin-resultados-secundario {
    width: auto;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 699px) {
  #listaProductos:has(.sin-resultados-premium) {
    padding: 20px 12px 100px !important;
  }

  #listaProductos .sin-resultados-premium {
    display: flex !important;

    flex-direction: column;

    width: 100% !important;
    max-width: none !important;

    padding: 28px 20px 24px !important;

    gap: 0;

    text-align: center !important;

    border-radius: 20px;
  }

  .sin-resultados-ilustracion {
    width: 74px;
    height: 74px;

    margin: 0 auto 16px !important;
  }

  .sin-resultados-icono-fondo {
    width: 66px;
    height: 66px;

    border-radius: 19px;
  }

  .sin-resultados-icono-fondo svg {
    width: 29px;
    height: 29px;
  }

  .sin-resultados-premium .sin-resultados-eyebrow {
    margin: 0 0 7px !important;
  }

  #listaProductos .sin-resultados-premium h2 {
    margin: 0 0 8px !important;

    font-size: 19px !important;
  }

  #listaProductos .sin-resultados-premium p {
    max-width: 290px;

    margin: 0 auto !important;

    font-size: 12px !important;
  }

  .sin-resultados-acciones {
    width: 100%;

    margin-top: 20px !important;

    gap: 8px;
  }

  .btn-sin-resultados-principal,
  .btn-sin-resultados-secundario {
    width: 100%;

    min-height: 43px;
  }
}
/* =========================================================
   MODO BÚSQUEDA
   Oculta elementos promocionales mientras se busca
   ========================================================= */

.busqueda-activa-oculto {
  display: none !important;
}

/* Hace que el catálogo quede más cerca del header */
body.modo-busqueda-productos .catalog-intro {
  margin-top: 28px !important;
}

/* Animación ligera al aparecer el catálogo */
body.modo-busqueda-productos #catalogoCompleto,
body.modo-busqueda-productos .barra-filtros,
body.modo-busqueda-productos .filtros-contenedor,
body.modo-busqueda-productos #listaProductos {
  animation: mostrarCatalogoBusqueda 0.22s ease;
}

@keyframes mostrarCatalogoBusqueda {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MÓVIL */

@media (max-width: 699px) {
  body.modo-busqueda-productos .catalog-intro {
    margin-top: 14px !important;
  }
}

/* =====================================================================
   ECOMMERCE INTELIGENTE — FASE 1
   Buscador sugerido + detalle de producto + compra de nuevo
   ===================================================================== */

.search-box-inteligente {
  position: relative !important;
  overflow: visible !important;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5000;
  display: none;
  max-height: min(520px, 72vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(24, 42, 47, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(20, 32, 38, 0.16);
  backdrop-filter: blur(14px);
}

.search-suggestions.activo {
  display: block;
}

.search-suggestions-label {
  padding: 8px 10px 7px;
  color: #a17a38;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.search-suggestion-item,
.search-suggestion-all {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
}

.search-suggestion-item:hover {
  background: #f7f8f6;
}

.search-suggestion-image {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #edf0ed;
  border-radius: 11px;
  background: #fff;
}

.search-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.search-suggestion-copy {
  min-width: 0;
}
.search-suggestion-copy strong {
  display: block;
  overflow: hidden;
  color: #1a292e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggestion-copy small {
  display: block;
  margin-top: 3px;
  color: #7b878b;
  font-size: 11px;
}

.search-suggestion-item > svg {
  width: 16px;
  height: 16px;
  color: #9aa3a5;
}

.search-suggestion-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  padding: 11px 12px;
  border-top: 1px solid #edf0ed;
  color: var(--color-primario);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.search-suggestion-all svg {
  width: 16px;
  height: 16px;
}

.search-suggestion-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  color: #526166;
}
.search-suggestion-empty > svg {
  width: 24px;
  height: 24px;
  color: #c59d54;
}
.search-suggestion-empty strong,
.search-suggestion-empty small {
  display: block;
}
.search-suggestion-empty strong {
  color: #24363b;
  font-size: 13px;
}
.search-suggestion-empty small {
  margin-top: 3px;
  font-size: 11px;
}

.ecommerce-product-clickable,
.catalog-product-clickable {
  cursor: pointer;
}

.ecommerce-shelf-reorder {
  background: linear-gradient(
    135deg,
    rgba(198, 161, 91, 0.08),
    rgba(39, 143, 144, 0.045)
  );
  border: 1px solid rgba(198, 161, 91, 0.16);
  border-radius: 24px;
  padding: 22px;
}
.ecommerce-eyebrow-reorder {
  color: #a87d32 !important;
}

.product-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(15, 24, 28, 0.52);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  backdrop-filter: blur(6px);
}
.product-detail-overlay.activo {
  opacity: 1;
  visibility: visible;
}

.product-detail-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease;
}
.product-detail-overlay.activo .product-detail-modal {
  transform: translateY(0) scale(1);
}

.product-detail-close {
  position: sticky;
  top: 14px;
  z-index: 5;
  float: right;
  width: 40px;
  height: 40px;
  margin: 14px 14px -54px 0;
  display: grid;
  place-items: center;
  border: 1px solid #e7e9e7;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #27383d;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.07);
}
.product-detail-close svg {
  width: 19px;
  height: 19px;
}

.product-detail-main {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: 38px;
  padding: 38px;
}

.product-detail-media {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #fafafa, #f3f7f5);
}
.product-detail-media img {
  width: 82%;
  height: 330px;
  object-fit: contain;
}
.product-detail-promo {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: #c89e4f;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.product-detail-copy {
  align-self: center;
}
.product-detail-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #b08338;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.product-detail-copy h2 {
  margin: 0;
  color: #17282d;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -1px;
}
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
}
.product-detail-price > span {
  color: #9ca3a5;
  font-size: 15px;
  text-decoration: line-through;
}
.product-detail-price strong {
  color: #17363b;
  font-size: 30px;
}
.product-detail-price small {
  color: #7c898d;
  font-size: 12px;
}
.product-detail-saving {
  margin: 7px 0 0;
  color: #21866e;
  font-size: 12px;
  font-weight: 800;
}

.product-detail-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #eef8f4;
  color: #23735f;
  font-size: 12px;
  font-weight: 750;
}
.product-detail-stock.agotado {
  background: #fff2f0;
  color: #ae5146;
}
.product-detail-stock svg {
  width: 17px;
  height: 17px;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}
.product-detail-add,
.product-detail-fav {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.product-detail-add {
  border: 0;
  background: var(--color-primario);
  color: #fff;
}
.product-detail-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-detail-fav {
  border: 1px solid #dfe4e2;
  padding: 0 16px;
  background: #fff;
  color: #34484e;
}
.product-detail-add svg,
.product-detail-fav svg {
  width: 17px;
  height: 17px;
}

.product-related-section {
  padding: 4px 38px 38px;
  border-top: 1px solid #edf0ee;
}
.product-related-heading {
  padding: 24px 0 16px;
}
.product-related-heading span {
  color: #b08338;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.product-related-heading h3 {
  margin: 4px 0 0;
  color: #1d3035;
  font-size: 20px;
}
.product-related-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.product-related-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e9ecea;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.product-related-card:hover {
  box-shadow: 0 9px 24px rgba(22, 35, 40, 0.07);
}
.product-related-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}
.product-related-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: #26383d;
  font-size: 11px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-related-card small {
  display: block;
  margin-top: 5px;
  color: #1c7779;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 699px) {
  .search-suggestions {
    position: fixed;
    top: 112px;
    left: 12px;
    right: 12px;
    max-height: 60vh;
    border-radius: 16px;
  }

  .product-detail-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .product-detail-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 25px 25px 0 0;
  }

  .product-detail-main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px 20px;
  }

  .product-detail-media {
    min-height: 245px;
    border-radius: 20px;
  }
  .product-detail-media img {
    height: 220px;
  }
  .product-detail-copy h2 {
    font-size: 24px;
  }
  .product-detail-price strong {
    font-size: 26px;
  }

  .product-detail-actions {
    grid-template-columns: 1fr;
  }
  .product-detail-fav {
    min-height: 44px;
  }

  .product-related-section {
    padding: 2px 18px 28px;
  }
  .product-related-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
  }
  .product-related-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }

  .ecommerce-shelf-reorder {
    padding: 16px;
    border-radius: 19px;
  }
}

/* =========================================================
   ECOMMERCE FASE 2 - RESEÑAS, STOCK Y MARCAS
   ========================================================= */
.fase2-product-info {
  padding: 0 28px 32px;
  border-top: 1px solid #eee8dc;
}
.fase2-loading {
  padding: 24px;
  text-align: center;
  color: #7b8588;
}
.fase2-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f4f7f7;
  color: var(--color-primario);
  font-size: 12px;
  font-weight: 700;
}
.fase2-brand-chip svg {
  width: 14px;
}
.fase2-stock-alert {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #eadfc9;
  border-radius: 18px;
  background: #fffaf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.fase2-stock-alert strong,
.fase2-stock-alert span {
  display: block;
}
.fase2-stock-alert span {
  margin-top: 4px;
  color: #7c7c78;
  font-size: 12px;
}
.fase2-stock-alert button {
  border: 0;
  border-radius: 12px;
  background: var(--color-primario);
  color: #fff;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  cursor: pointer;
}
.fase2-stock-alert button svg {
  width: 16px;
}
.fase2-reviews {
  margin-top: 24px;
}
.fase2-review-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px;
  border: 1px solid #eee8dc;
  border-radius: 20px;
  background: #fff;
}
.fase2-score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fase2-score > strong {
  font-size: 46px;
  color: #17262b;
}
.fase2-score > div > span:last-child {
  display: block;
  margin-top: 5px;
  color: #7b8588;
  font-size: 12px;
}
.fase2-star {
  color: #d8d8d8;
  font-size: 18px;
  line-height: 1;
}
.fase2-star.activa {
  color: #e4a11b;
}
.fase2-bars {
  display: grid;
  gap: 6px;
}
.fase2-bars > div {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #727b7e;
}
.fase2-bars b {
  height: 7px;
  border-radius: 99px;
  background: #eee;
  overflow: hidden;
}
.fase2-bars i {
  display: block;
  height: 100%;
  background: #e4a11b;
  border-radius: inherit;
}
.fase2-review-form {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f8faf9;
}
.fase2-review-form h4 {
  margin: 0 0 12px;
}
.fase2-star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 13px;
  cursor: pointer;
}
.fase2-star-picker .fase2-star {
  font-size: 28px;
}
.fase2-review-form input,
.fase2-review-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  margin-top: 9px;
  outline: none;
}
.fase2-review-form textarea {
  min-height: 90px;
  resize: vertical;
}
.fase2-review-form button {
  margin-top: 10px;
  border: 0;
  border-radius: 11px;
  background: var(--color-primario);
  color: white;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}
.fase2-review-locked {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  border-radius: 14px;
  background: #f6f6f4;
  color: #71787a;
  font-size: 12px;
}
.fase2-review-locked svg {
  width: 18px;
}
.fase2-review-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.fase2-review-list article {
  padding: 17px;
  border: 1px solid #eee8dc;
  border-radius: 16px;
  background: #fff;
}
.fase2-review-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.fase2-review-head strong {
  font-size: 13px;
}
.fase2-review-head .fase2-star {
  font-size: 14px;
}
.fase2-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #278f90;
}
.fase2-verified svg {
  width: 14px;
}
.fase2-review-list h5 {
  margin: 11px 0 5px;
  font-size: 13px;
}
.fase2-review-list p {
  margin: 0;
  color: #60696c;
  font-size: 12px;
  line-height: 1.55;
}
.fase2-no-reviews {
  padding: 20px;
  text-align: center;
  color: #8a9295;
}
.filtro-marca-ecommerce select {
  min-width: 135px;
}
@media (max-width: 699px) {
  .fase2-product-info {
    padding: 0 16px 24px;
  }
  .fase2-stock-alert {
    align-items: stretch;
    flex-direction: column;
  }
  .fase2-stock-alert button {
    justify-content: center;
  }
  .fase2-review-summary {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 17px;
  }
  .fase2-score {
    justify-content: center;
  }
  .fase2-review-head {
    flex-direction: column;
  }
  .filtro-marca-ecommerce {
    width: 100%;
  }
  .filtro-marca-ecommerce select {
    width: 100%;
  }
}
/* =====================================================================
   CHECKOUT — CORRECCIÓN RESPONSIVE ENTREGA
   Teléfono conserva diseño actual.
   Tablet / laptop / desktop corrigen contraste y distribución.
   ===================================================================== */

@media (min-width: 700px) {
  /* ---------------------------------------------------------
     CONTENEDOR DE OPCIONES
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-entrega {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* ---------------------------------------------------------
     TARJETA BASE
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-btn {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;
    min-height: 82px !important;

    padding: 16px 52px 16px 16px !important;

    border: 1px solid #ddd6ca !important;
    border-radius: 14px !important;

    background: #f8fafb !important;

    color: #17252b !important;
    -webkit-text-fill-color: #17252b !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer !important;

    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn:hover {
    border-color: var(--color-secundario, #c6a15b) !important;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;

    transform: translateY(-1px);
  }

  /* ---------------------------------------------------------
     ICONO
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-icon {
    flex: 0 0 48px !important;

    width: 48px !important;
    height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin-right: 14px !important;

    border-radius: 13px !important;

    background: #ffffff !important;

    color: #17323a !important;
    -webkit-text-fill-color: #17323a !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
  }

  /* ---------------------------------------------------------
     TEXTO
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    min-width: 0 !important;

    gap: 4px !important;

    color: #17252b !important;
    -webkit-text-fill-color: #17252b !important;

    opacity: 1 !important;
    visibility: visible !important;

    text-align: left !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy strong {
    display: block !important;

    margin: 0 !important;

    color: #17252b !important;
    -webkit-text-fill-color: #17252b !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy small {
    display: block !important;

    margin: 0 !important;

    color: #738087 !important;
    -webkit-text-fill-color: #738087 !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  /* ---------------------------------------------------------
     SELECCIONADO
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-btn.activo {
    background: var(--color-secundario, #c6a15b) !important;

    border-color: var(--color-secundario, #c6a15b) !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    box-shadow: 0 8px 20px rgba(198, 161, 91, 0.18) !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy,
  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-copy small {
    display: block !important;

    color: rgba(255, 255, 255, 0.82) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;

    opacity: 1 !important;
  }

  /* Icono del seleccionado */
  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-icon {
    background: rgba(255, 255, 255, 0.96) !important;

    color: #17323a !important;
    -webkit-text-fill-color: #17323a !important;
  }

  /* ---------------------------------------------------------
     CHECK
     --------------------------------------------------------- */
  #checkoutVista .checkout-delivery-section .tipo-check {
    position: absolute !important;

    top: 50% !important;
    right: 16px !important;

    transform: translateY(-50%) !important;

    width: 26px !important;
    height: 26px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

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

    color: var(--color-secundario, #c6a15b) !important;
    -webkit-text-fill-color: var(--color-secundario, #c6a15b) !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transition: 0.2s ease !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn.activo .tipo-check {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* =====================================================================
   TABLET
   ===================================================================== */

@media (min-width: 700px) and (max-width: 1023px) {
  #checkoutVista .checkout-delivery-section .tipo-btn {
    min-height: 78px !important;

    padding: 14px 44px 14px 14px !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-icon {
    flex-basis: 44px !important;

    width: 44px !important;
    height: 44px !important;

    margin-right: 10px !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy strong {
    font-size: 14px !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy small {
    font-size: 11px !important;
  }
}

/* =====================================================================
   LAPTOP / ESCRITORIO
   ===================================================================== */

@media (min-width: 1024px) {
  #checkoutVista .checkout-delivery-section .tipo-btn {
    min-height: 86px !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy strong {
    font-size: 15px !important;
  }

  #checkoutVista .checkout-delivery-section .tipo-btn .tipo-copy small {
    font-size: 12px !important;
  }
}

/* =========================================================
   CHECKOUT · SELECCIÓN DE PROPINA
   ========================================================= */
.checkout-tip-card .propinas {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.checkout-tip-card .propinas button {
  position: relative !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 8px !important;
  border: 1px solid var(--color-borde, #e9e1d3) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--boutique-ink, #161616) !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

.checkout-tip-card .propinas button:hover:not(.activo) {
  border-color: var(--boutique-gold, #c6a15b) !important;
  background: #fffaf1 !important;
  color: var(--boutique-gold-dark, #9b7330) !important;
}

.checkout-tip-card .propinas button.activo {
  border: 2px solid var(--boutique-gold, #c6a15b) !important;
  background: var(--boutique-gold, #c6a15b) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(155, 115, 48, 0.18) !important;
  transform: translateY(-1px) !important;
}

.checkout-tip-card .propinas button.activo::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--boutique-gold-dark, #9b7330);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
