/* ===== Tienda pública de cada empresa (prefijo td-) ===== */
:root {
  --td-acento: #1f7a4d;
  --td-acento-oscuro: #186240;
  --td-tinta: #141413;
  --td-suave: #4e5651;
  --td-linea: #e3e9e5;
  --td-fondo-suave: #f3f6f4;
  --td-fondo: #fff;
  --td-card-bg: #f5f5fa;
  --td-card-borde: #dce4df;
  --td-borde-in: #cdd8d2;
}
/* Tema oscuro: se activa con el interruptor del encabezado (html[data-tema="dark"]) */
html[data-tema="dark"] {
  color-scheme: dark;
  --td-tinta: #e9eeeb;
  --td-suave: #bdc5c0;
  --td-linea: #3d4540;
  --td-fondo-suave: #28302b;
  --td-fondo: #16151f;
  --td-card-bg: #1f2a25;
  --td-card-borde: #3d4540;
  --td-borde-in: #4e5651;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.td-body { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.45; color: var(--td-tinta); background: var(--td-fondo); }
.td-body a { color: inherit; text-decoration: none; }
.td-body button, .td-body input { font: inherit; }
.td-body :focus-visible { outline: 2px solid var(--td-acento); outline-offset: 2px; }
.td-body svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.td-contenedor { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Encabezado ---------- */
.td-header { position: relative; z-index: 30; background: var(--td-fondo); border-bottom: 1px solid var(--td-linea); }
.td-top {
  max-width: 1280px; margin: 0 auto; padding: 20px 24px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  grid-template-areas: "buscar marca der";
}
.td-burger { display: none; grid-area: burger; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--td-tinta); }
.td-burger svg { width: 26px; height: 26px; }
.td-burger .td-ico-cerrar { display: none; }
.td-burger[aria-expanded="true"] .td-ico-abrir { display: none; }
.td-burger[aria-expanded="true"] .td-ico-cerrar { display: block; }

.td-buscar { grid-area: buscar; justify-self: start; width: 100%; max-width: 320px; display: flex; align-items: center; height: 46px; border: 1.5px solid var(--td-tinta); border-radius: 6px; padding: 0 6px 0 14px; background: var(--td-fondo); }
.td-buscar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--td-tinta); }
.td-buscar button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--td-tinta); }
.td-buscar button svg { width: 20px; height: 20px; }

.td-marca { grid-area: marca; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.td-marca svg { width: 34px; height: 34px; stroke: var(--td-acento); flex: 0 0 auto; }
.td-top-der { grid-area: der; justify-self: end; display: flex; align-items: center; gap: 4px; }
.td-cuenta, .td-carrito { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; font-size: 16px; }
.td-cuenta svg, .td-carrito svg { width: 24px; height: 24px; stroke-width: 1.6; }
.td-cuenta:hover, .td-carrito:hover { color: var(--td-acento); }
.td-carrito-num { display: none; position: absolute; right: 2px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--td-acento); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.td-nav .td-nav-ingresar { display: none; }

.td-nav { max-width: 1280px; margin: 6px auto 0; padding: 10px 24px 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; }
.td-nav > a, .td-cat > button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; cursor: pointer; color: var(--td-tinta); }
.td-nav > a:hover, .td-cat > button:hover, .td-cat > button[aria-expanded="true"] { color: var(--td-acento); }
.td-cat { position: relative; }
.td-cat > button svg { width: 14px; height: 14px; stroke-width: 2; transition: transform .15s; }
.td-cat > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.td-cat-lista {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 40;
  min-width: 260px; max-height: 70vh; overflow-y: auto;
  background: var(--td-fondo); border: 1px solid var(--td-linea); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 20, 19, .14);
  padding: 8px; display: flex; flex-direction: column;
}
.td-cat-lista a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 15px; }
.td-cat-lista a:hover { background: var(--td-fondo-suave); color: var(--td-acento); }
.td-cat-lista .td-cat-todas { margin-top: 4px; border-top: 1px solid var(--td-linea); border-radius: 0 0 8px 8px; font-weight: 600; color: var(--td-acento); }

/* ---------- Carrusel ---------- */
.td-carrusel { position: relative; display: grid; overflow: hidden; background: var(--td-fondo-suave); }
/* Todas las imágenes quedan apiladas; la activa aparece con un fundido y un leve acercamiento. */
.td-slide { grid-area: 1 / 1; min-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.td-slide.activa { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease, visibility 0s; }
.td-slide a, .td-slide picture { display: block; height: 100%; }
.td-slide img { display: block; width: 100%; height: 100%; aspect-ratio: 8 / 3; object-fit: cover; transform: scale(1); transition: transform 8s ease-out; will-change: transform; }
.td-slide.activa img { transform: scale(1.07); }
.td-flecha, .td-puntos { z-index: 2; }
.td-flecha { transition: background .15s, transform .15s; }
.td-flecha:hover { background: var(--td-fondo); transform: translateY(-50%) scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .td-slide, .td-slide.activa { transition-duration: .01s; }
  .td-slide img, .td-slide.activa img { transform: none; transition: none; }
}
.td-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(20, 20, 19, .18); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--td-tinta); }
.td-flecha svg { width: 22px; height: 22px; stroke-width: 2; }
.td-flecha-izq { left: 16px; }
.td-flecha-der { right: 16px; }
.td-puntos { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; }
.td-puntos button { min-width: 32px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.td-puntos button span { display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(20, 20, 19, .35); transition: width .15s; }
.td-puntos button.activo span { width: 28px; background: var(--td-acento); box-shadow: none; }

/* ---------- Secciones ---------- */
.td-seccion { padding-top: 56px; padding-bottom: 8px; }
.td-seccion-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.td-seccion-cab h1, .td-seccion-cab h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: var(--td-acento); }
.td-seccion-cab a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--td-acento); }
.td-total { color: var(--td-suave); font-size: 15px; }
.td-vacio { padding: 32px 0; text-align: center; color: var(--td-suave); }
.td-centro { display: flex; justify-content: center; margin-top: 32px; }
.td-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border-radius: 8px; background: var(--td-acento); color: #fff !important; font-weight: 600; }
.td-btn:hover { background: var(--td-acento-oscuro); }

.td-migas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--td-suave); }
.td-migas a { color: var(--td-acento) !important; }

.td-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.td-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--td-linea); border-radius: 999px; font-size: 15px; font-weight: 500; }
.td-chip:hover { border-color: var(--td-acento); }
.td-chip-on { background: var(--td-tinta); border-color: var(--td-tinta); color: var(--td-fondo) !important; }

/* ---------- Categorías ---------- */
.td-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.td-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.td-cat-ico { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--td-fondo-suave); display: flex; align-items: center; justify-content: center; color: var(--td-suave); transition: background .15s; }
.td-cat-ico svg { width: 40px; height: 40px; stroke-width: 1.4; }
.td-cat-tile:hover .td-cat-ico { background: color-mix(in srgb, var(--td-acento) 14%, #fff); color: var(--td-acento); }
.td-cat-nombre { font-size: 17px; font-weight: 600; text-align: center; }
.td-cat-cant { font-size: 14px; color: var(--td-suave); margin-top: -6px; }

/* ---------- Productos ---------- */
.td-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.td-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--td-card-borde); border-radius: 14px; background: var(--td-card-bg); box-shadow: 0 2px 10px rgba(60, 50, 150, .10); }
.td-card-img { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--td-fondo-suave); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #7f8782; }
.td-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-card-img > svg { width: 44px; height: 44px; stroke-width: 1.3; }
.td-etiqueta { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--td-acento); color: #fff; font-size: 13px; font-weight: 600; }
.td-etiqueta-gris { background: #747c77; }
.td-card-info { display: flex; flex-direction: column; gap: 4px; }
.td-card-info h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.3; }
.td-card-info h3 { font-weight: 600; }
.td-card-info { flex: 1; }
.td-precio { font-size: 20px; font-weight: 700; color: var(--td-acento); }
.td-card-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--td-acento); border-radius: 10px; color: var(--td-acento) !important; font-weight: 600; font-size: 15px; }
.td-card-btn:hover { background: var(--td-acento); color: #fff !important; }
html { scroll-behavior: smooth; }
#destacados, #nuevos { scroll-margin-top: 12px; }

.td-paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.td-paginas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--td-tinta); border-radius: 8px; font-weight: 600; }
.td-paginas span { color: var(--td-suave); font-size: 15px; }

/* ---------- Pie ---------- */
.td-footer { margin-top: 72px; background: #141413; color: #fff; }
html[data-tema="dark"] .td-footer { background: #0b110e; border-top: 1px solid var(--td-linea); }
.td-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.td-footer-marca { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.td-footer-logo { display: block; max-width: 320px; max-height: 190px; width: auto; height: auto; margin-top: 0; object-fit: contain; }
.td-logo { height: 68px; width: auto; max-width: 280px; object-fit: contain; flex: 0 0 auto; display: block; }
.td-marca .td-marca-nombre { color: var(--td-acento); }
.td-marca-nombre { font-family: inherit; font-weight: 700; letter-spacing: 0; }
.td-footer-sub { font-weight: 600; font-size: 15px; margin: 18px 0 8px; }
.td-fila { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.td-fila-et { color: #9fa7a2; min-width: 72px; }
.td-footer p a { color: #fff; }
.td-mapa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 18px; border: 1.5px solid #fff; border-radius: 10px; color: #fff !important; font-weight: 600; font-size: 15px; }
.td-mapa:hover { background: var(--td-fondo); color: var(--td-tinta) !important; }
.td-mapa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.td-wpp { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s; }
.td-wpp:hover { transform: scale(1.08); }
.td-wpp svg { width: 32px; height: 32px; }
.td-footer-tit { font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.td-footer p { margin: 0 0 8px; color: #d2dcd6; font-size: 15px; }
.td-footer p a { display: inline-flex; align-items: center; min-height: 32px; }
.td-footer-pie { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #38403b; font-size: 14px; color: #bccbc3; }

.td-nodisp main { max-width: 520px; margin: 18vh auto; padding: 0 24px; text-align: center; }

/* ---------- Tablet y celular ---------- */
@media (max-width: 900px) {
  .td-top { grid-template-columns: 48px 1fr 48px; grid-template-areas: "burger marca der" "buscar buscar buscar"; padding: 8px 8px 12px; gap: 8px; }
  .td-burger { display: flex; }
  .td-marca { justify-self: center; font-size: 21px; }
  .td-marca svg { width: 28px; height: 28px; }
  .td-logo { height: 48px; max-width: 200px; }
  .td-buscar { max-width: none; margin: 0 8px; }
  .td-cuenta { display: none; }
  .td-carrito { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .td-carrito-txt { display: none; }
  .td-carrito-num { display: flex; }
  .td-nav .td-nav-ingresar { display: flex; color: var(--td-acento); font-weight: 600; border-bottom: 0; }

  .td-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px 16px 16px; background: var(--td-fondo); border-bottom: 1px solid var(--td-linea); box-shadow: 0 14px 28px rgba(20, 20, 19, .14); flex-direction: column; flex-wrap: nowrap; gap: 0; max-height: 80vh; overflow-y: auto; }
  .td-nav.abierto { display: flex; }
  .td-nav > a, .td-cat > button { width: 100%; min-height: 52px; font-size: 16px; text-transform: none; border-bottom: 1px solid var(--td-linea); justify-content: space-between; }
  .td-cat-lista { position: static; transform: none; min-width: 0; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: var(--td-fondo-suave); padding: 4px 0 8px 12px; }

  .td-slide img { aspect-ratio: 4 / 3; }
  .td-slide-cel img { aspect-ratio: 4 / 5; }
  .td-flecha { display: none; }
  .td-seccion { padding-top: 40px; }
  .td-seccion-cab h1, .td-seccion-cab h2 { font-size: 24px; }
  .td-contenedor { padding-left: 16px; padding-right: 16px; }
  .td-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .td-cat-nombre { font-size: 14px; }
  .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .td-card-info h3 { font-size: 14px; }
  .td-precio { font-size: 17px; }
  .td-footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .td-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Detalle de producto ---------- */
.td-card-img { text-decoration: none; }
.td-card-info h3 a { color: inherit; }
.td-card-info h3 a:hover { color: var(--td-acento); }

.td-det { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.td-det-fotos { flex: 1 1 520px; min-width: 0; display: flex; gap: 16px; align-items: flex-start; }
.td-det-minis { display: flex; flex-direction: column; gap: 10px; flex: 0 0 84px; max-height: 640px; overflow-y: auto; }
.td-mini { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--td-fondo-suave); cursor: pointer; aspect-ratio: 4 / 5; }
.td-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-mini-on { border-color: var(--td-acento); }
.td-det-grande { flex: 1; min-width: 0; }
.td-det-marco { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; background: var(--td-fondo-suave); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #7f8782; }
.td-det-marco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-det-marco > svg { width: 64px; height: 64px; stroke-width: 1.2; }
.td-det-contador { text-align: center; margin-top: 10px; font-size: 13px; color: var(--td-suave); }

.td-det-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.td-det-cat { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--td-suave); }
.td-det-info h1 { margin: -8px 0 0; font-size: 32px; letter-spacing: -0.01em; line-height: 1.15; }
.td-det-precio { font-size: 30px; font-weight: 700; color: var(--td-acento); }
.td-var-tit { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.td-var-tit span { font-weight: 500; }
.td-var-opc { display: flex; flex-wrap: wrap; gap: 8px; }
.td-opc { min-width: 48px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--td-borde-in); border-radius: 10px; background: var(--td-fondo); font: inherit; font-weight: 600; cursor: pointer; color: var(--td-tinta); }
.td-opc:hover { border-color: var(--td-acento); }
.td-opc-on { background: var(--td-acento); border-color: var(--td-acento); color: #fff; }
.td-opc-agotada:not(.td-opc-on) { color: #aeb6b1; text-decoration: line-through; background: var(--td-fondo-suave); border-color: var(--td-linea); }
.td-det-stock { font-size: 14px; font-weight: 600; }
.td-stock-ok { color: #0f766e; }
.td-stock-poco { color: #b4650a; }
.td-stock-no { color: #c4261b; }
.td-det-comprar { display: flex; flex-wrap: wrap; gap: 12px; }
.td-cant { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--td-borde-in); border-radius: 10px; }
.td-cant button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--td-tinta); }
.td-cant span { min-width: 36px; text-align: center; font-weight: 600; }
.td-det-agregar { flex: 1 1 200px; border: 0; cursor: pointer; font-size: 16px; border-radius: 10px; }
.td-det-agregar:disabled { background: #aeb6b1; cursor: not-allowed; }
.td-det-aviso { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--td-fondo-suave); color: var(--td-suave); font-size: 14px; }
.td-det-desc { border-top: 1px solid var(--td-linea); padding-top: 20px; }
.td-det-desc h2 { margin: 0 0 8px; font-size: 20px; }
.td-det-desc p { margin: 0; line-height: 1.6; white-space: pre-line; color: var(--td-tinta); }
.td-det-rel { margin-top: 56px; }

@media (max-width: 900px) {
  .td-det { gap: 24px; }
  .td-det-fotos { flex-direction: column-reverse; flex-basis: 100%; }
  .td-det-minis { flex-direction: row; flex: none; max-height: none; width: 100%; overflow-x: auto; overflow-y: hidden; }
  .td-mini { flex: 0 0 64px; }
  .td-det-info h1 { font-size: 26px; }
  .td-det-precio { font-size: 26px; }
}

/* ---------- Filtros del listado ---------- */
.td-lista-filtros { display: flex; gap: 36px; align-items: flex-start; }
.td-lista-prod { flex: 1; min-width: 0; }
.td-filtros { flex: 0 0 260px; border: 1px solid var(--td-linea); border-radius: 14px; background: var(--td-fondo); padding: 4px 20px 20px; }
.td-filtros > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 700; font-size: 17px; cursor: default; }
.td-filtros > summary::-webkit-details-marker { display: none; }
.td-filtros > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.td-fil-grupo { border: 0; border-top: 1px solid var(--td-linea); margin: 0; padding: 14px 0 6px; min-width: 0; }
.td-fil-grupo legend { padding: 0; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; float: left; width: 100%; }
.td-fil-grupo legend + * { clear: both; }
.td-fil-opc { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.td-fil-opc input { width: 18px; height: 18px; accent-color: var(--td-acento); flex: 0 0 auto; }
.td-fil-opc span { flex: 1; min-width: 0; }
.td-fil-opc small { color: var(--td-suave); }
.td-fil-precio { display: flex; gap: 10px; padding-bottom: 8px; clear: both; }
.td-fil-precio label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--td-suave); }
.td-fil-precio input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--td-borde-in); border-radius: 8px; font: inherit; font-size: 15px; color: var(--td-tinta); }
.td-fil-botones { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.td-fil-botones .td-btn { border: 0; cursor: pointer; font-size: 15px; min-height: 48px; }
.td-fil-limpiar { text-align: center; font-weight: 600; color: var(--td-acento); min-height: 44px; display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .td-lista-filtros { flex-direction: column; gap: 20px; }
  .td-filtros { flex-basis: auto; width: 100%; box-sizing: border-box; }
  .td-filtros > summary { cursor: pointer; }
}

/* ---------- Barra de precio (desde / hasta) ---------- */
.td-rango-valores { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--td-suave); margin-bottom: 14px; clear: both; }
.td-rango-valores strong { color: var(--td-tinta); }
.td-rango { position: relative; height: 28px; margin: 0 8px 16px; }
.td-rango-pista, .td-rango-activa { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 999px; }
.td-rango-pista { left: 0; right: 0; background: var(--td-linea); }
.td-rango-activa { background: var(--td-acento); }
.td-rango input[type=range] { position: absolute; left: -8px; width: calc(100% + 16px); top: 0; height: 28px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.td-rango input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.td-rango input[type=range]::-moz-range-track { background: transparent; height: 28px; }
.td-rango input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--td-acento); background: var(--td-fondo); box-shadow: 0 1px 4px rgba(20, 20, 40, .3); cursor: grab; }
.td-rango input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--td-acento); background: var(--td-fondo); box-shadow: 0 1px 4px rgba(20, 20, 40, .3); cursor: grab; }
.td-rango input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--td-tinta); outline-offset: 2px; }
.td-lista-prod { transition: opacity .15s; }


/* Combos */
.td-combo-incluye { margin: 0 0 .5rem; padding-left: 1.2rem; }
.td-combo-ahorro { color: #1f7a4d; font-weight: 600; margin: 0; }
.td-combo-sel { display: grid; gap: .5rem; margin: .8rem 0; }
.td-combo-fila { display: grid; gap: .25rem; font-size: .95rem; }
.td-combo-select { padding: .55rem .7rem; border: 1px solid #cfe3d7; border-radius: 10px; background: #fff; font: inherit; }

/* Descuento por producto */
.td-precio-antes { margin-left: 8px; color: #8a978f; font-size: .85em; font-weight: 400; }
.td-etiqueta-desc { background: #c4261b; color: #fff; }
.td-desc-pill { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #c4261b; color: #fff; font-size: .55em; font-weight: 700; vertical-align: middle; }


/* Celular: que el botón flotante de WhatsApp no tape el final del pie */
@media (max-width: 900px) {
  .td-footer { padding-bottom: 84px; }
  .td-wpp { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* ----- Footer en celu: ordenado y centrado ----- */
@media (max-width: 900px) {
  .td-footer { margin-top: 48px; padding-bottom: 96px; }
  .td-footer-grid { gap: 0; padding-top: 32px; padding-bottom: 8px; text-align: center; }
  .td-footer-col { padding: 22px 0; border-top: 1px solid #38403b; }
  .td-footer-col:first-child { padding-top: 0; border-top: 0; }
  .td-footer-logo { margin: 0 auto; max-width: 200px; max-height: 110px; }
  .td-footer-marca { font-size: 26px; }
  .td-footer-tit { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fb3a9; margin-bottom: 12px; }
  .td-footer-sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fb3a9; margin: 18px 0 6px; }
  .td-footer-sub-0, .td-footer-col .td-footer-sub:first-child { margin-top: 0; }
  .td-footer p, .td-fila { justify-content: center; text-align: center; font-size: 15px; }
  .td-footer p a { justify-content: center; word-break: break-word; }
  .td-redes { gap: 14px; margin-top: 6px; }
  .td-mapa { display: flex; justify-content: center; width: 100%; max-width: 320px; margin: 12px auto 0; }
  .td-footer-pie { text-align: center; font-size: 13px; padding-top: 16px; padding-bottom: 20px; }
}
