/* ==========================================================================
   CUPON PROMO — CSS Arquitectura V4 (100% Mobile & Desktop Native)
   Basado en la especificación visual y técnica de https://uruguaydescuentos.com/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..800&display=swap');

/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg2: #f7f7f5;
  --bg3: #f0f0ee;
  --border: #e8e8e6;
  --border2: #d0d0ce;
  --text1: #111111;
  --text2: #555555;
  --text3: #777777;
  
  --red: #C94040;
  --red2: #a83232;
  --hbg: #1a1a1a;
  --hborder: #282828;
  --htext: #e0e0e0;
  --hmuted: #777777;
  
  --color-oca-blue: #0070ba;
  --color-brou-blue: #00529b;
  --color-badge-warn: #B57314;
  --color-badge-nuevo: #2E7D4F;
  --color-badge-hoy: #C94040;
  --color-badge-expired: #444444;
  
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Archivo', 'DM Sans', sans-serif;
  --container-max: 1200px;
}

[data-ud-theme="dark"],
body.dark-theme {
  --bg: #141414;
  --bg2: #1e1e1e;
  --bg3: #262626;
  --border: #303030;
  --border2: #404040;
  --text1: #e8e8e8;
  --text2: #aaaaaa;
  --text3: #666666;
  --hbg: #222222;
  --hborder: #333333;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text1);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 56px;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body {
    padding-top: 86px; /* 44px header + 42px mobile search bar */
    padding-bottom: 60px; /* Space for bottom nav bar */
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   1. HEADER FIJO (#udh)
   ========================================================================== */
#udh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 1000;
  background: var(--hbg);
  border-bottom: 1px solid var(--hborder);
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  #udh {
    height: 44px;
  }
}

#udh::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 40%);
  opacity: .3;
  pointer-events: none;
}

@media (max-width: 640px) {
  #udh::after {
    display: none;
  }
}

.udh-in {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

@media (max-width: 640px) {
  .udh-in {
    padding: 0 12px;
    gap: 8px;
  }
}

/* Brand Identity */
.udh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.udh-logo-sq {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-main);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(201, 64, 64, 0.3);
}

@media (max-width: 640px) {
  .udh-logo-sq {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
  }
}

.udh-logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.udh-logo-txt {
  font-size: 15px;
  font-weight: 700;
  color: var(--htext);
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.udh-logo-sub {
  font-size: 10.5px;
  color: var(--hmuted);
  white-space: nowrap;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .udh-logo-txt {
    font-size: 13.5px;
  }
  .udh-logo-sub {
    font-size: 9px;
  }
}

/* Desktop Search Bar */
.udh-search {
  flex: 1;
  min-width: 0;
  max-width: 620px;
  margin-left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  height: 36px;
  padding: 0 6px 0 12px;
  transition: border-color .15s, background-color .15s;
}

.udh-search:focus-within,
.udh-search:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
}

.udh-search-ic {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

#udh-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
  min-width: 0;
}

#udh-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.udh-mic {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .15s;
}

.udh-mic:hover, .udh-mic.active {
  color: var(--red);
}

.udh-mic svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.udh-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 7px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.udh-btn:hover {
  background: var(--red2);
}

.udh-btn svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

/* Header Actions Right */
.udh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.udh-ic-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  color: #d1d1d6;
}

.udh-ic-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.udh-ic-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.udh-ic-btn--menu {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #ffffff !important;
}

.udh-ic-btn--menu:hover {
  background: var(--red2) !important;
  border-color: var(--red2) !important;
  color: #ffffff !important;
  transform: scale(1.06);
}

.udh-ic-btn--menu svg {
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

/* Mobile Search Bar (#udh-bar) */
@media (max-width: 640px) {
  .udh-search {
    display: none;
  }
}

#udh-bar {
  display: none;
}

@media (max-width: 640px) {
  #udh-bar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    height: 42px;
    z-index: 999;
    background: var(--hbg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px 6px;
    gap: 6px;
  }
}

.udh-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  height: 32px;
  padding: 0 6px 0 10px;
}

.udh-bar-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}

#udh-bar-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-family: var(--font-main);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
  min-width: 0;
}

#udh-bar-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.udh-bar-mic {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  padding: 3px;
  display: flex;
  align-items: center;
}

.udh-bar-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.udh-bar-btn svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

/* ==========================================================================
   2. CONTENEDOR PRINCIPAL (.udv3)
   ========================================================================== */
.udv3 {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 70px;
}

@media (min-width: 900px) {
  .udv3 {
    max-width: var(--container-max);
    padding: 12px 16px 80px;
  }
}

/* Sticky Filter Chipbar */
.udf-chipbar {
  position: sticky;
  z-index: 900;
  background: var(--bg);
  padding: 10px 0 10px;
  top: 56px;
  border-bottom: 1px solid var(--border);
  transition: background-color .2s;
}

@media (max-width: 640px) {
  .udf-chipbar {
    top: 86px;
    padding: 8px 0 8px;
  }
}

.udf-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.udf-chips::-webkit-scrollbar {
  display: none;
}

.udf-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text1);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-main);
  transition: background-color .15s, border-color .15s, transform .1s;
}

.udf-chip:hover {
  background: var(--bg2);
  border-color: var(--text1);
}

.udf-chip--filtros {
  border-color: var(--text1);
}

.udf-chip--aplicado {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.udf-chip--aplicado b {
  font-weight: 800;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.udf-chip svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   3. SECCIONES Y ENCABEZADOS (.udv3-sec)
   ========================================================================== */
.udv3-sec {
  padding: 18px 0 6px;
}

.udv3-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 4px;
}

.udv3-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.udv3-title .dia {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-left: 4px;
  text-transform: uppercase;
}

.udv3-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
}

.udv3-link:hover {
  color: var(--red);
}

.udv3-sub {
  font-size: 13px;
  color: var(--text3);
  padding: 0 16px;
  margin-bottom: 12px;
}

/* Filas Horizontales con Scroll Suave (.udv3-fila) */
.udv3-fila {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 16px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.udv3-fila::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   4. CARDS DE PROMOCIÓN (.udv3-card)
   ========================================================================== */
.udv3-card {
  flex: none;
  width: 245px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.udv3-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.udv3-card:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .udv3-card {
    width: 195px;
    border-radius: 12px;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .udv3-card {
    width: 225px;
  }
}

/* Imagen cuadrada 1:1 */
.udv3-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
}

.udv3-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .25s;
}

.udv3-card:hover .udv3-img img {
  transform: scale(1.03);
}

.udv3-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Badge de porcentaje arriba a la izquierda */
.udv3-pct {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.2;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .udv3-pct {
    font-size: 11px;
    padding: 3px 8px;
    left: 8px;
    top: 8px;
  }
}

/* Corazón de favoritos arriba a la derecha */
.udv3-save {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform .15s, background-color .15s;
}

.udv3-save:hover {
  transform: scale(1.15);
  background: #ffffff;
}

.udv3-save svg {
  width: 16px;
  height: 16px;
  stroke: #333333;
  fill: none;
  stroke-width: 2;
  transition: fill .15s, stroke .15s;
}

.udv3-save.on svg {
  fill: var(--red);
  stroke: var(--red);
}

@media (max-width: 640px) {
  .udv3-save {
    width: 28px;
    height: 28px;
    right: 8px;
    top: 8px;
  }
  .udv3-save svg {
    width: 14px;
    height: 14px;
  }
}

/* Área de información */
.udv3-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 640px) {
  .udv3-info {
    padding: 10px 11px 12px;
  }
}

.udv3-comercio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.udv3-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text2);
  flex: none;
  overflow: hidden;
}

.udv3-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.udv3-nom {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .udv3-logo {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .udv3-nom {
    font-size: 13px;
  }
}

.udv3-deal {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ud-theme="dark"] .udv3-deal {
  color: #e07070;
}

@media (max-width: 640px) {
  .udv3-deal {
    font-size: 13px;
  }
}

.udv3-meta {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.udv3-pill-bank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-oca-blue);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.udv3-pill-bank.brou {
  background-color: var(--color-brou-blue);
}

/* ==========================================================================
   5. COMPACT ROW CARDS (.udv3-row-card) — Vence pronto & Supermercados
   ========================================================================== */
.udv3-row-card {
  flex: none;
  width: 230px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 13px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}

.udv3-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .udv3-row-card {
    width: 205px;
    padding: 9px 11px;
    gap: 9px;
  }
}

.udv3-row-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text2);
  flex: none;
  overflow: hidden;
}

.udv3-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.udv3-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.udv3-row-nom {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.udv3-row-deal {
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.udv3-row-when {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  margin-top: 2px;
}

.udv3-row-when--warn { background: var(--color-badge-warn); }
.udv3-row-when--hoy { background: var(--color-badge-hoy); }

/* ==========================================================================
   6. EXPIRED CARDS (.udv3-expired-card) — Te lo perdiste
   ========================================================================== */
.udv3-expired-card {
  flex: none;
  width: 140px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  opacity: 0.9;
  cursor: pointer;
  transition: transform .15s;
}

.udv3-expired-card:hover {
  transform: translateY(-2px);
  opacity: 1;
}

@media (max-width: 640px) {
  .udv3-expired-card {
    width: 115px;
    padding: 5px;
  }
}

.udv3-expired-thumb {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: 6px;
  overflow: hidden;
  filter: grayscale(100%);
  background: #e5e7eb;
}

.udv3-expired-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.udv3-expired-nom {
  font-size: 12px;
  font-weight: 700;
  color: var(--text1);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.udv3-expired-desc {
  font-size: 10.5px;
  color: var(--text3);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.udv3-expired-badge {
  align-self: flex-start;
  background: var(--color-badge-expired);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  letter-spacing: .03em;
}

/* ==========================================================================
   7. NEWSLETTER ALERT BANNER
   ========================================================================== */
.udv3-alert-banner {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 16px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.udv3-alert-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.udv3-alert-bell {
  font-size: 18px;
}

.udv3-alert-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text1);
}

.udv3-alert-sub {
  font-size: 12.5px;
  color: var(--text2);
  margin-top: 1px;
}

.udv3-alert-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .udv3-alert-form {
    flex-direction: column;
  }
}

.udv3-alert-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--text1);
  font-family: var(--font-main);
  outline: none;
  transition: border-color .15s;
}

.udv3-alert-input:focus {
  border-color: var(--red);
  background: var(--bg);
}

.udv3-alert-btn {
  height: 42px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .15s;
  flex-shrink: 0;
}

.udv3-alert-btn:hover {
  background: var(--red2);
}

/* ==========================================================================
   8. FOOTER (#udh-footer)
   ========================================================================== */
#udh-footer {
  background: var(--hbg);
  border-top: 1px solid var(--hborder);
  padding: 44px 16px 24px;
  color: #a1a1aa;
}

.udh-footer-in {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .udh-footer-in {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .udh-footer-in {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.udh-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.udh-footer-brand-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.udh-footer-brand-sub {
  font-size: 12px;
  color: #888888;
}

.udh-footer-brand-desc {
  font-size: 12.5px;
  color: #666666;
  line-height: 1.5;
  margin-top: 10px;
}

.udh-footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 12px;
}

.udh-footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #aaaaaa;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s;
}

.udh-footer-col a:hover {
  color: #ffffff;
}

.udh-footer-bottom {
  max-width: var(--container-max);
  margin: 32px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #666666;
}

.udh-footer-legal {
  display: flex;
  gap: 16px;
}

.udh-footer-legal a:hover {
  color: #aaaaaa;
}

.udh-footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaaaaa;
}

.udh-footer-ig:hover {
  color: #ffffff;
}

/* ==========================================================================
   9. MOBILE BOTTOM NAVIGATION BAR (#udh-bb)
   ========================================================================== */
#udh-bb {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--hbg);
  border-top: 1px solid var(--hborder);
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

@media (max-width: 640px) {
  #udh-bb {
    display: block;
  }
}

.udnh-bb-in {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 480px;
  margin: 0 auto;
}

.udnh-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #888888;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 5px 12px;
  transition: color .15s;
  background: none;
  border: none;
  cursor: pointer;
}

.udnh-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.udnh-tab.active,
.udnh-tab:hover {
  color: var(--red);
}

/* ==========================================================================
   10. DRAWER / MENÚ LATERAL HAMBURGUESA (#ud-dr, #ud-ov)
   ========================================================================== */
.ud-ov {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}

.ud-ov.open {
  opacity: 1;
  pointer-events: all;
}

.ud-dr {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: var(--bg);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.25);
}

.ud-dr.open {
  transform: translateX(0);
}

.ud-dr-hdr {
  background: var(--hbg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hborder);
  height: 56px;
  box-sizing: border-box;
}

.ud-dr-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: .02em;
}

.ud-dr-close {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 19px;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, transform .15s;
}

.ud-dr-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.ud-dr-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  overscroll-behavior: contain;
}

.ud-dr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: var(--text1);
  font-size: 13.5px;
  font-family: var(--font-main);
  border-bottom: 1px solid var(--border);
  transition: background-color .15s, color .15s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

button.ud-dr-item {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .03em;
}

.ud-dr-item:hover {
  background: var(--bg2);
  color: var(--red);
}

.ud-dr-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--text3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke .15s;
}

.ud-dr-item:hover svg {
  stroke: var(--red);
}

.ud-dr-item-arr {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  transition: transform .2s ease;
}

.ud-dr-sub {
  display: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.ud-dr-sub.open {
  display: block;
  animation: udSubSlide .2s ease;
}

@keyframes udSubSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ud-dr-subitem {
  display: block;
  padding: 10px 20px 10px 50px;
  text-decoration: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-main);
  border-bottom: 1px solid var(--border2);
  transition: color .15s, background-color .15s, padding-left .15s;
}

.ud-dr-subitem:last-child {
  border-bottom: none;
}

.ud-dr-subitem:hover {
  color: var(--red);
  background: var(--bg);
  padding-left: 54px;
}

.ud-dr-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.ud-dr-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  transition: color .15s;
}

.ud-dr-footer a:hover {
  color: var(--red);
}

/* ==========================================================================
   11. MODAL DE FILTROS & DETALLES (BOTTOM SHEET RESPONSIVE)
   ========================================================================== */
.ud-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.ud-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.ud-modal-box {
  background: var(--bg);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 24px;
  border: 1px solid var(--border2);
  transition: transform .25s ease;
}

@media (max-width: 640px) {
  .ud-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .ud-modal-box {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    padding: 20px 18px;
  }
}

.ud-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ud-modal-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: var(--text1);
}

.ud-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg2);
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ud-filter-group {
  margin-bottom: 18px;
}

.ud-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.ud-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ud-filter-chip {
  border: 1px solid var(--border2);
  background: var(--bg);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
  cursor: pointer;
  transition: all .15s;
}

.ud-filter-chip:hover {
  background: var(--bg2);
}

.ud-filter-chip.on {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.ud-modal-actions {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ud-btn-clear {
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  padding: 10px;
}

.ud-btn-clear:hover {
  color: var(--red);
}

.ud-btn-apply {
  flex: 1;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s;
}

.ud-btn-apply:hover {
  background: var(--red2);
}

/* Toast flotante */
.app-toast {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #1a1a1a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   7. SINGLE DEAL PAGE (.ud-single) & RELATED (.ud-related)
   ========================================================================== */
.ud-single {
  max-width: 600px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}

.ud-single__back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text3, #999);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.ud-single__back:hover {
  color: var(--red, #C94040);
}

.ud-single__card {
  background: var(--bg, #fff);
  border: 1.5px solid var(--border, #e0e0e0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.ud-single__img-wrap {
  position: relative;
  width: 100%;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 24px;
}

.ud-single__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.ud-logo-sup {
  position: absolute;
  bottom: -14px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ud-logo-sup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ud-single__save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: transform .15s;
  z-index: 3;
  padding: 0;
}
.ud-single__save:hover { transform: scale(1.1); }
.ud-single__save svg { width: 16px; height: 16px; stroke: #C94040; fill: none; stroke-width: 2; transition: fill .15s; }
.ud-single__save.on svg { fill: #C94040; }

.ud-single__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ud-single__brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text1, #111);
  text-decoration: none;
}

.ud-single__discount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text1, #111);
  line-height: 1.15;
  margin-bottom: 14px;
}

.ud-single__desc {
  font-size: 14px;
  color: var(--text2, #444);
  line-height: 1.65;
  margin-bottom: 18px;
}

.ud-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ud-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.ud-badge--vigente {
  background: #EAF7EE;
  color: #1E8E3E;
  border: 1px solid rgba(30,142,62,0.2);
}

.ud-badge--rubro {
  background: #F1F3F4;
  color: #3C4043;
  border: 1px solid #E0E0E0;
}

.ud-badge--dias {
  background: #F8F9FA;
  color: #5F6368;
  border: 1px solid #E8EAED;
}

.ud-single__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  border-top: 1px solid var(--border, #eee);
  padding-top: 14px;
}

.ud-single__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2, #666);
}

.ud-single__meta-label {
  font-weight: 600;
  color: var(--text3, #999);
  min-width: 80px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ud-single__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.ud-single__actions .ud-single__btn {
  flex: 1;
  margin-bottom: 0;
}

.ud-single__btn {
  display: block;
  text-align: center;
  background: var(--red, #E24B4A);
  color: #fff !important;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.ud-single__btn:hover {
  background: var(--red2, #c73b3a);
}

.ud-single__share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #25D366;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.ud-single__share-btn:hover {
  background: #f0faf3;
  border-color: #25D366;
}
.ud-single__share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Related Section ── */
.ud-related {
  margin-top: 2rem;
  width: 100%;
}

.ud-related__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3, #888);
  margin-bottom: 12px;
}

.ud-rel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ud-rel-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border, #e0e0e0);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--bg, #fff);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.ud-rel-row:hover {
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ud-rel-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 1.5px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
  overflow: hidden;
}

.ud-rel-circle img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ud-brand-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ud-rel-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1, #111);
}

.ud-rel-desc {
  font-size: 11.5px;
  color: var(--text3, #777);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ud-row__bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ud-rel-discount {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red, #C94040);
}

/* ==========================================================================
   8. HOY PAGE STYLES (.ud-hoy)
   ========================================================================== */
.ud-hoy {
  max-width: 900px;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
  font-family: var(--font-main);
}
.ud-hoy__hdr { margin-bottom: 1.4rem; }
.ud-hoy__tabs { display: flex; gap: 8px; margin-bottom: 1rem; }
.ud-hoy__tab {
  font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 100px;
  text-decoration: none; border: 1.5px solid var(--border, #e0e0e0);
  background: var(--bg, #fff); color: var(--text2, #666); transition: all .15s;
}
.ud-hoy__tab.active, .ud-hoy__tab:hover {
  background: var(--text1, #111); color: #fff; border-color: var(--text1, #111);
}
.ud-hoy__title { font-size: 22px; font-weight: 700; color: var(--text1, #111); margin-bottom: 4px; }
.ud-hoy__meta  { font-size: 12px; color: var(--text3, #999); }

.ud-hoy-sublabel {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text3, #888); margin: 20px 0 10px;
}
.ud-hoy-sublabel::after { content: ''; flex: 1; height: 1px; background: var(--border, #e8e8e6); }

.ud-hoy-list { display: flex; flex-direction: column; gap: 8px; }
.ud-hoy-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--bg, #fff); border: 1.5px solid var(--border, #e8e8e6);
  border-radius: 12px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s;
  min-width: 0; overflow: hidden;
}
.ud-hoy-row:hover { border-color: var(--border2, #d0d0ce); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.ud-hoy-row-img {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.ud-hoy-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ud-hoy-row-logo {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg2, #f5f5f5); border: 1px solid var(--border, #e8e8e8);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text2, #555); overflow: hidden;
}
.ud-hoy-row-logo img { width: 50px; height: 50px; object-fit: contain; }

.ud-hoy-row-info {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 16px;
}
.ud-hoy-row-info-left { flex: 1; min-width: 0; }
.ud-hoy-row-info-right {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: flex-end; gap: 5px;
}

.ud-hoy-brand-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.ud-hoy-brand { font-size: 13.5px; font-weight: 700; color: var(--text1, #111); }
.ud-hoy-logo-sm {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg2, #f5f5f5); border: 1px solid var(--border, #e8e8e8);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--text2, #555); overflow: hidden;
}
.ud-hoy-logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.ud-hoy-detail {
  font-size: 12px; color: var(--text2, #666); line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ud-hoy-discount {
  font-size: 14px; font-weight: 700; color: var(--text1, #111); white-space: nowrap;
}
.ud-hoy-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.ud-hoy-days { font-size: 10px; padding: 2px 6px; border-radius: 10px; background: var(--bg3, #f0f0f0); color: var(--text3, #777); white-space: nowrap; }

@media(max-width: 640px) {
  .ud-hoy { padding-left: .75rem; padding-right: .75rem; margin-top: 1rem; }
  .ud-hoy-row { gap: 10px; padding: 10px 12px; }
  .ud-hoy-row-img { width: 56px; height: 56px; }
  .ud-hoy-row-logo { width: 44px; height: 44px; font-size: 12px; }
  .ud-hoy-row-info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ud-hoy-row-info-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .ud-hoy-discount { font-size: 13px; }
}

/* ==========================================================================
   9. TAXONOMY PAGES (.ud-tax) & GRID (.ud-grid)
   ========================================================================== */
.ud-tax {
  max-width: 900px;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
  font-family: var(--font-main);
}
.ud-tax__header { margin-bottom: 1.2rem; }
.ud-tax__title  { font-size: 24px; font-weight: 800; color: var(--text1, #111); margin-bottom: 6px; }
.ud-tax__meta   { font-size: 13px; color: var(--text2, #666); }
.ud-term-desc {
  font-size: 13.5px; color: var(--text2, #666); line-height: 1.6;
  margin: 10px 0 1.2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #f0f0f0);
}

.ud-context-nav, .ud-tax__filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center;
}
.ud-context__title {
  font-size: 12px; font-weight: 600; color: var(--text3, #888); width: 100%; margin-bottom: 2px;
}
.ud-filter {
  font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 20px;
  border: 1.5px solid var(--border, #e0e0e0);
  background: var(--bg, #fff); color: var(--text2, #666);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.ud-filter:hover, .ud-filter.active {
  background: var(--text1, #1a1a1a); color: #fff; border-color: var(--text1, #1a1a1a);
}

.ud-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text3, #888); margin-bottom: 14px;
}

.ud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2.5rem;
}
@media(max-width: 768px) { .ud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 500px) { .ud-grid { grid-template-columns: 1fr; } }

.ud-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg, #fff); border: 1.5px solid var(--border, #e0e0e0);
  border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: visible; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ud-card:hover {
  border-color: var(--border2, #ccc);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.ud-card__body  { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ud-card__header{ display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 20px; }
.ud-brand    { font-size: 13px; font-weight: 700; color: var(--text1, #111); }
.ud-discount { font-size: 17px; font-weight: 800; line-height: 1.25; color: var(--text1, #111); }
.ud-desc     { font-size: 12px; color: var(--text2, #666); line-height: 1.45; }
.ud-meta     { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

.ud-img-wrap { position: relative; border-radius: 12px 12px 0 0; overflow: visible; aspect-ratio: 3/2; }
.ud-post-img, .ud-img-fallback { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 12px 0 0; overflow: hidden; }
.ud-img-fallback { display: flex; align-items: center; justify-content: center; }
.ud-img-fallback span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }

.fb-moda{background:#f5f0ff}.fb-gastronomia{background:#fff4e8}.fb-farmacias{background:#e8f4ff}
.fb-supermercados{background:#eafaf0}.fb-hogar{background:#fff8e8}.fb-tecnologia{background:#e8f0ff}
.fb-salud-y-deportes{background:#e8fff4}.fb-turismo{background:#e8f8ff}.fb-entretenimiento{background:#fff0f5}
.fb-automotor{background:#f0f0f0}.fb-librerias{background:#fff8e8}.fb-belleza{background:#fff0f5}
.fb-educacion{background:#e8f0ff}.fb-mascotas{background:#fff4e8}.fb-inmuebles{background:#f3f3ff}.fb-otros{background:#f5f5f5}

@media (max-width: 640px) {
  .ud-single, .ud-tax, .ud-hoy {
    margin-top: 1rem;
  }
}

