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

button {
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}
:root {
  /* PALETA */

  --color-primario: #1a7b88;
  --color-secundario: #1a7b88;
  --color-secundario-hover: #32aaab;
  --color-fondo: #fcf5e3;

  /* BASE */

  --color-blanco: #ffffff;
  --color-texto: #1a7b88;
  --color-texto-sec: #666;

  /* UI */

  --color-card: #ffffff;
  --color-borde: #e7e0cf;

  /* ESTADOS */

  --color-exito: var(--color-secundario);
  --color-error: var(--color-secundario);
}
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
.categorias{
    display:flex;
    gap:10px;
    padding:15px;
    overflow-x:auto;
}

.categorias button{
    border:none;
    background:#fff;
    padding:8px 15px;
    border-radius:20px;
    cursor:pointer;
    box-shadow:0 2px 5px rgba(0,0,0,0.08);
}

.categorias button:hover{
    background:#1a7b88;
    color:white;
}
    */
.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: #1a7b88;
  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);
}
/* PANEL CARRITO 
.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
}

.overlay.activo{
    opacity:1;
    visibility:visible;
}

.carrito-panel{
    position:fixed;
    top:0;
    right:-400px;
    width:350px;
    height:100%;
    box-shadow:-4px 0 20px rgba(0,0,0,0.2);
    transition:0.3s;
    display:flex;
    flex-direction:column;
    z-index:1001;
    background:#f8f9fb;
}

.carrito-panel.activo{
    right:0;
}
    */
/****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: #1a7b88;
  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: #1a7b88;
  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-grandes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.categorias-pequenas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.categoria {
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;

  background: #f2f2f2;
  transition: all 0.25s ease;
}

.categoria img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.categoria.activa {
  background: var(--color-primario);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(2, 51, 65, 0.25);
}


.categoria.activa img {
  filter: brightness(1) invert(0);
}


.categoria:hover {
  transform: translateY(-3px);
}



.grande span {
  font-size: 16px;
  font-weight: 600;
}

.pequena {
  background: #f4f4f4;
  padding: 15px 10px;
}

.pequena span {
  font-size: 13px;
}

.beige {
  background: #f3e8e2;
}
.verde {
  background: #dff2e3;
}

.categoria:active {
  transform: scale(0.95);
}
.categoria.pequena.activa {
  background: rgb(248, 130, 94);
  border: 2px solid var(--color-secundario);
}
.control button {
  background: #ff7d56;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
}
  */

.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%, #8fc5c9 45%, #1a7b88 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: #1a7b88;
  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) {
  :root {
    --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) {
  :root {
    --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, #1a7b88, #2495a2);
    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, #1a7b88, #2495a2);
  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, #1a7b88, #2495a2);
  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, #1a7b88, #2495a2);
  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: #1a7b88;
  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, #1a7b88 0%, #32aaab 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: #1a7b88;
  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: #1a7b88;
  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: #1a7b88;
  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, #1a7b88, #32aaab);
  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: #1a7b88;
}

@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, #1a7b88, #32aaab);

  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;
  }
}
