/* ═══════════════════════════════════════════════════════════════════
   Detallux — Features v2.3
   WhatsApp float button / Category hero / Hero video banner + modal
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   🤖 ASISTENTE DE VENTAS IA (chatbot, sobre el botón de WhatsApp)
   ═══════════════════════════════════════════════════════════════════ */
.dlx-chat__launcher {
  position: fixed; right: 22px; bottom: 92px;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; font-size: 25px; z-index: 240; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.45);
  transition: transform 0.25s ease, box-shadow 0.2s ease;
}
.dlx-chat__launcher:hover { transform: scale(1.07); }
.dlx-chat__launcher i { position: relative; z-index: 2; }
.dlx-chat__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--color-primary); z-index: 1; animation: wa-pulse 2.4s ease-out infinite; }
.dlx-chat--open .dlx-chat__launcher i::before { content: "\f00d"; } /* x al abrir */
.dlx-chat--open .dlx-chat__pulse { display: none; }

/* Burbuja "te asesoramos de inmediato" */
.dlx-chat__tip {
  position: fixed; right: 86px; bottom: 100px; z-index: 240;
  max-width: 220px; padding: 10px 30px 10px 14px;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border-light); border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: var(--font-weight-semibold);
  text-align: left; line-height: 1.35; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateX(10px) scale(0.96);
  transition: all var(--transition-spring);
}
.dlx-chat__tip--show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.dlx-chat__tip::after {
  content: ''; position: absolute; right: -7px; bottom: 16px;
  border-width: 7px 0 7px 8px; border-style: solid;
  border-color: transparent transparent transparent var(--color-surface);
}
.dlx-chat__tip-close { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--color-text-muted); padding: 4px; }
.dlx-chat--open .dlx-chat__tip { display: none; }

/* Oculta el chatbot cuando el carrito lateral está abierto */
body.cart-open .dlx-chat__launcher,
body.cart-open .dlx-chat__tip { opacity: 0; visibility: hidden; pointer-events: none; }

/* Panel del chat */
.dlx-chat__panel {
  position: fixed; right: 22px; bottom: 92px; z-index: calc(var(--z-bottom-nav) + 10);
  width: 380px; max-width: calc(100vw - 32px);
  height: min(72vh, 580px);
  background: var(--color-surface); border-radius: var(--rounded-xl);
  box-shadow: var(--shadow-xl); border: 1px solid var(--color-border-light);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transform-origin: bottom right; transition: all var(--transition);
}
.dlx-chat--open .dlx-chat__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dlx-chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.dlx-chat__id { display: flex; align-items: center; gap: var(--space-3); }
.dlx-chat__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.dlx-chat__id strong { display: block; font-size: var(--text-base); line-height: 1.1; }
.dlx-chat__status { font-size: 11px; opacity: 0.9; display: flex; align-items: center; gap: 5px; }
.dlx-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: dlxDot 1.8s infinite; }
@keyframes dlxDot { 0%{box-shadow:0 0 0 0 rgba(74,222,128,0.5)} 70%{box-shadow:0 0 0 6px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }
.dlx-chat__hactions { display: flex; align-items: center; gap: 2px; }
.dlx-chat__act { width: 32px; height: 32px; border-radius: var(--rounded); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; opacity: 0.85; transition: all var(--transition-fast); }
.dlx-chat__act:hover { background: rgba(255,255,255,0.18); opacity: 1; }
.dlx-chat__close { width: 32px; height: 32px; border-radius: var(--rounded); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.dlx-chat__close:hover { background: rgba(255,255,255,0.18); }

.dlx-chat__body { flex: 1; overflow-y: auto; padding: var(--space-4); background: var(--color-bg); display: flex; flex-direction: column; gap: var(--space-3); -webkit-overflow-scrolling: touch; }

.dlx-msg { display: flex; max-width: 88%; }
.dlx-msg--user { align-self: flex-end; }
.dlx-msg--assistant { align-self: flex-start; }
.dlx-msg--full { max-width: 100%; align-self: stretch; }
.dlx-msg--full .dlx-msg__bubble { width: 100%; }
.dlx-checkout-bubble { padding: var(--space-2); }
.dlx-checkout-bubble .dlx-form__grid { grid-template-columns: 1fr; }
.dlx-checkout-bubble .dlx-form__submit { height: 46px; }
.dlx-msg__bubble { padding: 10px 13px; border-radius: var(--rounded-lg); font-size: var(--text-sm); line-height: 1.5; box-shadow: var(--shadow-sm); }
.dlx-msg--assistant .dlx-msg__bubble { background: var(--color-surface); color: var(--color-text); border-bottom-left-radius: 4px; }
.dlx-msg--user .dlx-msg__bubble { background: var(--color-primary); color: #fff; border-bottom-right-radius: 4px; }
.dlx-msg__bubble a { color: var(--color-primary); font-weight: var(--font-weight-semibold); text-decoration: underline; }
.dlx-msg--user .dlx-msg__bubble a { color: #fff; }

/* Sugerencias rápidas */
.dlx-quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.dlx-quick__chip {
  padding: 7px 12px; font-size: var(--text-xs); font-weight: var(--font-weight-semibold);
  color: var(--color-primary); background: var(--tint-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.25); border-radius: var(--rounded-full);
  cursor: pointer; transition: all var(--transition-fast);
}
.dlx-quick__chip:hover { background: var(--color-primary); color: #fff; }

.dlx-typing { display: inline-flex; gap: 4px; }
.dlx-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); animation: dlxType 1.2s infinite; }
.dlx-typing span:nth-child(2) { animation-delay: 0.2s; }
.dlx-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dlxType { 0%,60%,100%{opacity:0.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }

/* Tarjetas de producto dentro del chat */
.dlx-cards { display: flex; flex-direction: column; gap: var(--space-2); align-self: stretch; }
.dlx-card { display: flex; gap: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--rounded-lg); padding: var(--space-2); }
.dlx-card__img { width: 64px; height: 64px; border-radius: var(--rounded); background: var(--color-bg) center/cover no-repeat; flex-shrink: 0; padding: 0; border: none; cursor: pointer; display: block; }
.dlx-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dlx-card__name {
  font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--color-text); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-align: left; background: none; border: none; padding: 0; cursor: pointer; width: 100%;
}
button.dlx-card__name:hover { color: var(--color-primary); }
.dlx-card__price { font-size: var(--text-sm); font-weight: var(--font-weight-extrabold); color: var(--color-primary); }
.dlx-card__oos { font-size: 11px; color: var(--color-danger); font-weight: 700; }
.dlx-card__actions { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.dlx-card__buy, .dlx-card__add, .dlx-card__view {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px;
  font-size: var(--text-xs); font-weight: var(--font-weight-bold); border-radius: var(--rounded);
  background: var(--color-primary); color: #fff; cursor: pointer; border: none; line-height: 1.1;
}
.dlx-card__buy { flex: 1; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
.dlx-card__buy:hover { box-shadow: var(--shadow-primary); }
.dlx-card__add--icon { flex-shrink: 0; padding: 7px; width: 34px; background: var(--tint-primary); color: var(--color-primary); }
.dlx-card__add--icon:hover { background: var(--color-primary); color: #fff; }
.dlx-card__view { background: var(--color-bg-alt); color: var(--color-text); }
.dlx-card__add:hover { background: var(--color-primary-dark); }

/* Barra de carrito */
.dlx-chat__cartbar { align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--color-surface); border-top: 1px solid var(--color-border-light); }
.dlx-cartbar__info { font-size: var(--text-xs); color: var(--color-text-secondary); }
.dlx-cartbar__info strong { color: var(--color-text); }
.dlx-cartbar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: var(--text-xs); font-weight: var(--font-weight-bold); color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: var(--rounded); white-space: nowrap; }

/* Input */
.dlx-chat__form { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border-top: 1px solid var(--color-border-light); background: var(--color-surface); }
.dlx-chat__input { flex: 1; height: 42px; border: 1.5px solid var(--color-border); border-radius: var(--rounded-full); padding: 0 var(--space-4); font-size: 16px; outline: none; background: var(--color-bg); transition: all var(--transition-fast); }
.dlx-chat__input:focus { border-color: var(--color-primary); background: var(--color-surface); box-shadow: var(--ring-primary); }
.dlx-chat__send { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.dlx-chat__send:active { transform: scale(0.94); }
.dlx-chat__foot { text-align: center; font-size: 10px; color: var(--color-text-muted); padding: 0 0 var(--space-2); background: var(--color-surface); }
.dlx-chat__foot a { color: var(--color-primary); font-weight: 600; }

/* Móvil: panel a pantalla casi completa */
@media (max-width: 768px) {
  .dlx-chat__launcher { right: 16px; bottom: calc(var(--bottom-nav-height) + 80px); width: 52px; height: 52px; font-size: 22px; }
  .dlx-chat__tip { right: 76px; bottom: calc(var(--bottom-nav-height) + 86px); }
  .dlx-chat__panel {
    right: 10px; left: 10px; width: auto; max-width: none;
    top: calc(var(--header-height) + env(safe-area-inset-top) + 6px);
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
    height: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dlx-chat__pulse, .dlx-chat__dot { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   ⚡ COMPRA RÁPIDA / CHECKOUT EXPRESS (popup)
   ═══════════════════════════════════════════════════════════════════ */
.dlx-qb-overlay {
  position: fixed; inset: 0; z-index: 339;
  background: var(--overlay-scrim); opacity: 0; visibility: hidden;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: opacity var(--transition), visibility var(--transition);
}
.dlx-qb-overlay.dlx-qb--open { opacity: 1; visibility: visible; }

.dlx-qb {
  position: fixed; z-index: 340; background: var(--color-surface);
  left: 50%; top: 50%; transform: translate(-50%, -48%) scale(0.98);
  width: 440px; max-width: calc(100vw - 28px); max-height: 90vh;
  border-radius: var(--rounded-xl); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.dlx-qb.dlx-qb--open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.dlx-qb__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--color-border-light); }
.dlx-qb__head strong { font-family: var(--font-heading); font-size: var(--text-lg); }
.dlx-qb__close { width: 34px; height: 34px; border-radius: var(--rounded); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.dlx-qb__close:hover { background: var(--color-bg); color: var(--color-text); }
.dlx-qb__body { padding: var(--space-4); overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.dlx-qb__loading { text-align: center; padding: var(--space-8) 0; color: var(--color-text-secondary); }
.dlx-qb__loading i { color: var(--color-primary); margin-right: 6px; }

.dlx-qb-prod { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.dlx-qb-prod__img { position: relative; width: 74px; height: 74px; border-radius: var(--rounded); background: var(--color-bg) center/cover no-repeat; flex-shrink: 0; }
.dlx-qb__badge { position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--color-success), var(--color-success-dark)); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: var(--rounded-full); box-shadow: 0 2px 8px rgba(31,169,113,.5); white-space: nowrap; }
.dlx-qb__badge i { font-size: 8px; }
.dlx-qb-prod__name { font-weight: var(--font-weight-semibold); line-height: 1.25; }
.dlx-qb-prod__price { font-weight: var(--font-weight-extrabold); color: var(--color-primary); font-size: var(--text-lg); margin-top: 2px; }
.dlx-qb-prod__price del { color: var(--color-text-muted); font-weight: 600; font-size: .72em; margin-right: 6px; }
.dlx-qb-prod__price ins { text-decoration: none; color: var(--color-primary); font-weight: 900; }
.dlx-qb-prod__price .amount { color: inherit; }

.dlx-qb__attrs { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.dlx-qb__attr { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.dlx-qb__qtyrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); font-weight: var(--font-weight-semibold); }
.dlx-qb__qty { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--rounded); overflow: hidden; }
.dlx-qb__qty button { width: 44px; height: 44px; font-size: 18px; color: var(--color-text-secondary); }
.dlx-qb__qty button:hover { background: var(--color-bg); color: var(--color-primary); }
.dlx-qb__qty input { width: 48px; height: 44px; text-align: center; border: none; font-weight: var(--font-weight-bold); font-size: 16px; -moz-appearance: textfield; }
.dlx-qb__qty input::-webkit-outer-spin-button, .dlx-qb__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dlx-qb__err, .dlx-form__err { color: var(--color-danger); font-size: var(--text-xs); font-weight: var(--font-weight-semibold); min-height: 16px; margin: 4px 0; }
.dlx-qb__back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-secondary); margin-bottom: var(--space-3); }
.dlx-qb__back:hover { color: var(--color-primary); }

/* Formulario express (compartido con el chat) */
.dlx-form { display: flex; flex-direction: column; gap: var(--space-2); }
.dlx-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 480px) { .dlx-form__grid { grid-template-columns: 1fr; } }
.dlx-in { width: 100%; height: 44px; padding: 0 var(--space-3); font-size: 16px; border: 1.5px solid var(--color-border); border-radius: var(--rounded); background: var(--color-surface); color: var(--color-text); outline: none; transition: all var(--transition-fast); }
textarea.dlx-in { height: auto; padding: var(--space-2) var(--space-3); }
.dlx-in:focus { border-color: var(--color-primary); box-shadow: var(--ring-primary); }
.dlx-form__warn { font-size: var(--text-sm); color: var(--color-danger); }

.dlx-pay-group { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-1) 0; }
.dlx-pay { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); border: 1.5px solid var(--color-border); border-radius: var(--rounded-lg); cursor: pointer; transition: all var(--transition-fast); }
.dlx-pay.is-sel { border-color: var(--color-primary); background: var(--tint-primary); }
.dlx-pay input { margin-top: 3px; accent-color: var(--color-primary); }
.dlx-pay__t { display: flex; flex-direction: column; }
.dlx-pay__t strong { font-size: var(--text-sm); }
.dlx-pay__t small { font-size: var(--text-xs); color: var(--color-text-muted); }

.dlx-form__submit {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; height: 50px; margin-top: var(--space-2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; font-size: var(--text-base); font-weight: var(--font-weight-bold);
  border-radius: var(--rounded-lg); box-shadow: var(--shadow-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.dlx-form__submit:hover { box-shadow: var(--shadow-primary-lg); transform: translateY(-1px); }
.dlx-form__submit:disabled { opacity: 0.75; transform: none; cursor: progress; }

/* Confirmación */
.dlx-ok { text-align: center; padding: var(--space-2) 0; }
.dlx-ok__icon { font-size: 52px; color: var(--color-success); margin-bottom: var(--space-2); }
.dlx-ok h3 { font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.dlx-ok__num { color: var(--color-text-secondary); margin-bottom: var(--space-3); }
.dlx-ok__items { text-align: left; border: 1px solid var(--color-border-light); border-radius: var(--rounded-lg); padding: var(--space-3); margin-bottom: var(--space-2); }
.dlx-ok__items li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); padding: 3px 0; }
.dlx-ok__total { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-1) var(--space-3); font-weight: var(--font-weight-extrabold); }
.dlx-ok__total strong { color: var(--color-primary); font-size: var(--text-lg); }
.dlx-ok__data { text-align: left; background: var(--color-bg); border-radius: var(--rounded-lg); padding: var(--space-3); font-size: var(--text-sm); color: var(--color-text-secondary); display: flex; flex-direction: column; gap: 5px; margin-bottom: var(--space-3); }
.dlx-ok__data i { color: var(--color-primary); width: 16px; }
.dlx-ok__btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); background: var(--color-secondary); color: #fff; border-radius: var(--rounded-lg); font-weight: var(--font-weight-bold); }

/* Disparadores */
.product-card__quickbuy {
  flex: 1 0 100%; width: 100%; min-height: 42px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--color-accent); color: var(--color-on-accent); border-radius: var(--rounded);
  font-size: var(--text-xs); font-weight: var(--font-weight-bold); transition: all var(--transition-fast);
}
.product-card__quickbuy i { font-size: 14px; }
.product-card__quickbuy:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dlx-qb-trigger { margin-top: var(--space-2); }

/* Botón admin "Landing IA" (solo visible para administradores) */
.dlx-lp-adminbar { margin-top: var(--space-2); }
.dlx-lp-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 8px 12px; font-size: var(--text-xs); font-weight: var(--font-weight-bold);
  border-radius: var(--rounded); cursor: pointer; text-decoration: none;
  border: 1.5px dashed rgba(var(--color-primary-rgb), 0.5);
  background: var(--tint-primary); color: var(--color-primary);
  transition: all var(--transition-fast);
}
.dlx-lp-chip:hover { background: var(--color-primary); color: #fff; border-style: solid; }
.dlx-lp-chip--view { border-style: solid; }
.dlx-lp-chip[disabled] { opacity: 0.6; cursor: progress; }

/* Móvil: bottom sheet */
@media (max-width: 560px) {
  .dlx-qb {
    left: 0; right: 0; bottom: 0; top: auto; transform: translateY(100%);
    width: 100%; max-width: none; max-height: 92vh;
    border-radius: var(--rounded-2xl) var(--rounded-2xl) 0 0;
  }
  .dlx-qb.dlx-qb--open { transform: translateY(0); }
  .dlx-qb__body { padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); }
}

/* ── WHATSAPP FLOATING BUTTON ── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 31px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(var(--color-whatsapp-rgb), 0.45);
  z-index: 240;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.wa-float:hover { background: var(--color-whatsapp-dark); transform: scale(1.08); color: #fff; }
.wa-float i { position: relative; z-index: 2; line-height: 1; }

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  z-index: 1;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float__pulse { animation: none; display: none; }
}

/* Hide when the side cart is open */
body.cart-open .wa-float {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.4);
  pointer-events: none;
}

/* Hide on checkout & cart pages */
.woocommerce-checkout .wa-float,
.woocommerce-cart .wa-float { display: none; }

/* Mobile: lift above bottom navigation */
@media (max-width: 768px) {
  .wa-float {
    right: 16px;
    bottom: calc(var(--bottom-nav-height) + 14px);
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
}

/* ── CATEGORY HERO BANNER (photo background) ── */
.category-banner {
  position: relative;
  border-radius: var(--rounded-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-azul));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.category-banner__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.category-banner:hover .category-banner__image { transform: scale(1.06); }
.category-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 60%);
}
.category-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: #fff;
  width: 100%;
}
.category-banner__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin: var(--space-2) 0 var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.category-banner__title i { font-size: var(--text-2xl); opacity: 0.9; }
.category-banner__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  max-width: 620px;
  margin-bottom: var(--space-2);
}
.category-banner__bread {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
}
.category-banner__bread a { color: rgba(255,255,255,0.85); text-decoration: none; }
.category-banner__bread a:hover { color: #fff; }
.category-banner__bread i { font-size: 9px; opacity: 0.7; }
.category-banner__count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: var(--rounded-full);
}
@media (max-width: 768px) {
  .category-banner { min-height: 180px; }
  .category-banner__content { padding: var(--space-4); }
  .category-banner__title { font-size: var(--text-2xl); }
  .category-banner__desc { font-size: var(--text-sm); }
}

/* ── Botón claro (usado por el hero slider sobre fondos oscuros) ── */
.btn.btn--light { background: #fff; color: var(--color-secondary); border: none; }
.btn.btn--light:hover { background: rgba(255,255,255,0.88); color: var(--color-secondary); }


/* ═══════════════════════════════════════════════════════════════════
   QUIÉNES SOMOS (About page)
   ═══════════════════════════════════════════════════════════════════ */
.about-page { background: var(--color-bg); }

/* Hero header */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
  text-align: center;
}
.about-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.10) 0%, transparent 45%);
  pointer-events: none;
}
.about-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: var(--rounded-full);
  margin-bottom: var(--space-4);
}
.about-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: #fff;
}
.about-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin: 0 auto;
  max-width: 620px;
}

.about-page__body { padding: clamp(32px, 6vw, 64px) var(--container-padding); }

/* Misión / Visión cards */
.about-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 7vw, 80px);
}
@media (max-width: 820px) { .about-mv { grid-template-columns: 1fr; } }

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
}
.about-card--mision::before { background: var(--color-primary); }
.about-card--vision::before { background: var(--color-naranja); }

.about-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: var(--space-4);
}
.about-card--mision .about-card__icon { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
.about-card--vision .about-card__icon { background: linear-gradient(135deg, var(--color-naranja), color-mix(in srgb, var(--color-naranja) 82%, #000)); }

.about-card__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
}
.about-card__text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0;
}
.about-card__quote {
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: italic;
  color: var(--color-naranja);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-naranja);
}

/* Section heading */
.about-section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.about-section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.about-section-head__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}

/* Valores grid */
.about-valores { margin-bottom: clamp(40px, 7vw, 80px); }
.about-valores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.valor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}
.valor-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb),0.08);
  transition: background 0.25s ease, color 0.25s ease;
}
.valor-card:hover .valor-card__icon {
  background: var(--color-primary);
  color: #fff;
}
.valor-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.valor-card__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* CTA */
.about-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-secondary), color-mix(in srgb, var(--color-secondary), #fff 10%));
  color: #fff;
  border-radius: var(--rounded-xl);
  padding: clamp(36px, 6vw, 64px) var(--space-5);
}
.about-cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--space-2);
}
.about-cta__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.82);
  margin: 0 0 var(--space-5);
}
.about-cta__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════════
   CONTACTO (Contact page)
   ═══════════════════════════════════════════════════════════════════ */
.contact-page { background: var(--color-bg); }

/* Hero */
.contact-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: clamp(44px, 7vw, 84px) 0;
  overflow: hidden;
  text-align: center;
}
.contact-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.10) 0%, transparent 45%);
  pointer-events: none;
}
.contact-hero__inner { position: relative; z-index: 1; max-width: 720px; }
.contact-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: var(--rounded-full);
  margin-bottom: var(--space-4);
}
.contact-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: #fff;
}
.contact-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin: 0 auto;
  max-width: 600px;
}

.contact-page__body { padding: clamp(32px, 6vw, 64px) var(--container-padding); }

/* Two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Info column */
.contact-info__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
  color: var(--color-text);
}
.contact-info__lead {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  border-color: var(--color-primary);
}
.contact-method--static { cursor: default; }
.contact-method__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--rounded);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.contact-method--wa .contact-method__icon { background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark)); }
.contact-method__body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.contact-method__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.contact-method__value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  word-break: break-word;
}
.contact-method__hint { font-size: var(--text-xs); color: var(--color-text-secondary); }
.contact-method__arrow { color: var(--color-text-muted); font-size: 13px; flex-shrink: 0; }
a.contact-method:hover .contact-method__arrow { color: var(--color-primary); }

/* Horario */
.contact-hours {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
.contact-hours__title {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.contact-hours__title i { color: var(--color-primary); }
.contact-hours__list { list-style: none; margin: 0; padding: 0; }
.contact-hours__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-border-light);
  font-size: var(--text-sm);
}
.contact-hours__list li:last-child { border-bottom: none; }
.contact-hours__list span { color: var(--color-text-secondary); }
.contact-hours__list strong { color: var(--color-text); font-weight: 700; }
.contact-hours__closed { color: var(--color-danger) !important; }

/* Social */
.contact-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.contact-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 17px;
  transition: all 0.2s ease;
}
.contact-social a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Form card */
.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.contact-form-card__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
  color: var(--color-text);
}
.contact-form-card__lead {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
}

/* WhatsApp form */
.wa-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 520px) { .wa-form__row { grid-template-columns: 1fr; } }
.wa-form__field { margin-bottom: var(--space-3); display: flex; flex-direction: column; }
.wa-form__field label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wa-form__field input,
.wa-form__field select,
.wa-form__field textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--rounded);
  padding: 12px 14px;
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wa-form__field textarea { resize: vertical; min-height: 110px; }
.wa-form__field input:focus,
.wa-form__field select:focus,
.wa-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.12);
}
.wa-form__submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark));
  color: #fff;
  font-size: var(--text-base);
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--rounded-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-shadow: 0 6px 18px rgba(var(--color-whatsapp-rgb),0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--color-whatsapp-rgb),0.45);
}
.wa-form__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin: var(--space-3) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* CTA strip */
.contact-cta {
  background: linear-gradient(135deg, var(--color-secondary), color-mix(in srgb, var(--color-secondary), #fff 10%));
  color: #fff;
  margin-top: clamp(32px, 6vw, 56px);
}
.contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(28px, 5vw, 48px) var(--container-padding);
  flex-wrap: wrap;
}
.contact-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 4px;
}
.contact-cta__text p, .contact-cta__inner p { color: rgba(255,255,255,0.82); margin: 0; font-size: var(--text-base); }
.contact-cta__btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .contact-cta__inner { flex-direction: column; align-items: flex-start; }
  .contact-cta__btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO PDF (catalog tool + print layout)
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO PDF — tool UI (toolbar, filters, preview, progress)
   ═══════════════════════════════════════════════════════════════════ */
.catalog-page { background: var(--color-bg); min-height: 70vh; }

/* Nav link accent (header desktop) */
.main-nav__link--catalog { color: var(--color-pdf) !important; font-weight: 700; }
.main-nav__link--catalog i { font-size: 13px; margin-right: 2px; }
.main-nav__link--catalog:hover { color: var(--color-pdf-dark) !important; }

/* Toolbar */
.catalog-toolbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.catalog-toolbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-5) var(--container-padding);
}
.catalog-toolbar__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.catalog-toolbar__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}
.catalog-toolbar__title i { color: var(--color-pdf); }
.catalog-toolbar__count {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  padding: 4px 12px;
  border-radius: var(--rounded-full);
  white-space: nowrap;
}
.catalog-toolbar__lead {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
  max-width: 680px;
}

/* Filter chips */
.catalog-toolbar__filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.catalog-filter {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--rounded-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-filter:hover { border-color: var(--color-primary); color: var(--color-primary); }
.catalog-filter--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Actions */
.catalog-toolbar__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.catalog-back {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-back:hover { color: var(--color-primary); }
.catalog-generate {
  margin-left: auto;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-pdf), var(--color-pdf-dark));
  color: #fff;
  font-size: var(--text-base);
  font-weight: 800;
  padding: 13px 26px;
  border-radius: var(--rounded-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 6px 18px rgba(var(--color-pdf-rgb),0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.catalog-generate:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--color-pdf-rgb),0.42); }
.catalog-generate:disabled { opacity: 0.6; cursor: progress; transform: none; }

@media (max-width: 600px) {
  .catalog-generate { margin-left: 0; width: 100%; justify-content: center; }
  .catalog-toolbar__actions { flex-direction: column-reverse; align-items: stretch; }
  .catalog-back { justify-content: center; }
}

/* Progress */
.catalog-progress { margin-top: var(--space-4); }
.catalog-progress__track {
  width: 100%;
  height: 10px;
  background: var(--color-bg-alt);
  border-radius: var(--rounded-full);
  overflow: hidden;
}
.catalog-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-verde));
  border-radius: var(--rounded-full);
  transition: width 0.25s ease;
}
.catalog-progress__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-2) 0 0;
}
.catalog-progress__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.catalog-progress__hint i { color: var(--color-primary); }

/* Preview area */
.catalog-preview {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) var(--container-padding) var(--space-12);
}
.catalog-loading {
  text-align: center;
  color: var(--color-text-secondary);
  padding: var(--space-12) 0;
  font-size: var(--text-base);
}
.catalog-loading i { color: var(--color-primary); margin-right: 6px; }
.catalog-empty { text-align: center; color: var(--color-text-secondary); padding: var(--space-12) 0; }

.catalog-cat { margin-bottom: var(--space-8); }
.catalog-cat__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-2);
  margin: 0 0 var(--space-4);
}
.catalog-cat__count { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.catalog-cat__more { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-3) 0 0; font-style: italic; }

/* Preview grid: 4 per row (mirrors the PDF) */
.catalog-prev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .catalog-prev-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .catalog-prev-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }

.catalog-prev-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--rounded-lg);
  padding: var(--space-3);
  text-align: center;
}
.catalog-prev-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--rounded);
  overflow: hidden;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-prev-card__img img { width: 100%; height: 100%; object-fit: contain; }
.catalog-prev-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.catalog-prev-card__sku { font-size: 10px; color: var(--color-text-muted); margin-bottom: 2px; }
.catalog-prev-card__price { font-size: var(--text-base); font-weight: 800; color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════════
   BANNERS PUBLICITARIOS (zonas IA / imagen) — ligeros, no saturan
   ═══════════════════════════════════════════════════════════════════ */
.dlx-ad-wrap { width: 100%; max-width: 1200px; margin: var(--space-8) auto; padding: 0 var(--space-4); }
.dlx-ad { display: block; position: relative; width: 100%; border-radius: var(--rounded-xl); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
a.dlx-ad:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dlx-ad__img { width: 100%; height: auto; display: block; }
.dlx-ad--ai > * { width: 100%; min-height: clamp(140px, 18vw, 230px); max-height: 360px; }

/* Animaciones utilitarias para banners IA (la regla global de reduced-motion las desactiva) */
@keyframes dlxFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }
@keyframes dlxPulse { 0%,100%{ transform: scale(1) } 50%{ transform: scale(1.06) } }
@keyframes dlxRise  { from{ opacity:0; transform: translateY(14px) } to{ opacity:1; transform:none } }
@keyframes dlxShine { 0%{ background-position:-150% 0 } 100%{ background-position:250% 0 } }
.dlx-anim-float { animation: dlxFloat 4s ease-in-out infinite; }
.dlx-anim-pulse { animation: dlxPulse 2.6s ease-in-out infinite; }
.dlx-anim-rise  { animation: dlxRise .7s ease both; }
.dlx-anim-shine { background-size: 200% 100%; animation: dlxShine 3.5s linear infinite; }
/* Kinéticas para el Hero IA: revelado escalonado por palabra + barrido tipo corte */
@keyframes dlxKinetic { from{ opacity:0; transform: translateY(18%) skewY(3deg) } to{ opacity:1; transform:none } }
@keyframes dlxSweep   { from{ clip-path: inset(0 100% 0 0) } to{ clip-path: inset(0 0 0 0) } }
.dlx-anim-kinetic { display: inline-block; animation: dlxKinetic .6s cubic-bezier(.2,.8,.2,1) both; }
.dlx-anim-kinetic:nth-child(2) { animation-delay: .08s } .dlx-anim-kinetic:nth-child(3) { animation-delay: .16s }
.dlx-anim-kinetic:nth-child(4) { animation-delay: .24s } .dlx-anim-kinetic:nth-child(5) { animation-delay: .32s }
.dlx-anim-sweep { animation: dlxSweep .7s cubic-bezier(.7,0,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .dlx-anim-float, .dlx-anim-pulse, .dlx-anim-rise, .dlx-anim-shine, .dlx-anim-kinetic, .dlx-anim-sweep {
    animation: none !important; opacity: 1 !important; clip-path: none !important; transform: none !important;
  }
}

@media (max-width: 768px) {
  .dlx-ad-wrap { margin: var(--space-6) auto; }
  .dlx-ad--ai > * { max-height: 300px; }
}
/* Admin: pestaña activa */
.dlx-b-tab.is-active { background: var(--color-primary, #3B45A6); color: #fff; border-color: transparent; }

/* Precio con descuento (del/ins) en tarjetas del chat y resultados de búsqueda */
.dlx-card__price del, .search-result-item__price del { color: var(--color-text-muted); font-weight: 600; font-size: .82em; margin-right: 4px; }
.dlx-card__price ins, .search-result-item__price ins { text-decoration: none; color: var(--color-primary); font-weight: 800; }
.dlx-card__price .amount, .search-result-item__price .amount { color: inherit; }

/* ═══════════════════════════════════════════════════════════════════
   BARRA DE ENVÍO GRATIS (side cart)
   ═══════════════════════════════════════════════════════════════════ */
.cart-freeship { padding: var(--space-3) var(--space-4); background: var(--tint-primary); border-bottom: 1px solid var(--color-border-light); }
.cart-freeship__msg { font-size: var(--text-xs); font-weight: 600; color: var(--color-text); margin-bottom: 8px; text-align: center; line-height: 1.4; }
.cart-freeship__msg strong { color: var(--color-primary); font-weight: 800; }
.cart-freeship__bar { height: 8px; border-radius: var(--rounded-full); background: rgba(var(--color-primary-rgb), 0.15); overflow: hidden; }
.cart-freeship__fill { display: block; height: 100%; width: 0; border-radius: var(--rounded-full); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.cart-freeship.is-qualified { background: rgba(31,169,113,0.10); }
.cart-freeship.is-qualified .cart-freeship__msg strong,
.cart-freeship.is-qualified .cart-freeship__msg i { color: var(--color-success); }
.cart-freeship.is-qualified .cart-freeship__fill { background: linear-gradient(90deg, var(--color-success), var(--color-success-dark)); }
