/* Casa Oferta · botones de WhatsApp (venta por el bot). Se carga después de hallazgos.css.
   Verde WhatsApp #25D366 con texto tinta #0b1514 (contraste 9.4:1, AA); el blanco sobre ese verde no llega a AA. */
:root{--wa-green:#25d366;--wa-green-hover:#1ebe5a;--wa-green-border:#1aa851;--wa-ink:#0b1514}
.wa-icon{width:18px;height:18px;flex:none;display:block}
.wa-button,.wa-cta,.wa-float{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--wa-green);color:var(--wa-ink);border:1px solid var(--wa-green-border);border-radius:8px;font-weight:800;line-height:1.15;text-decoration:none;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,box-shadow .15s ease}
.wa-button:hover,.wa-cta:hover,.wa-float:hover{background:var(--wa-green-hover);color:var(--wa-ink);text-decoration:none}
.wa-button:focus-visible,.wa-cta:focus-visible,.wa-float:focus-visible{outline:3px solid var(--wa-ink);outline-offset:2px}
.wa-button[hidden],.wa-cta[hidden]{display:none!important}
.wa-button{min-height:40px;padding:8px 12px;font-size:13px}

/* Tarjeta del catálogo: WhatsApp principal; la bolsa queda como acción secundaria discreta. */
.product-bottom.wa-bottom{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.wa-card{width:100%}
.wa-bag{align-self:center;min-height:30px;padding:4px 8px;background:transparent;border:0;color:#ad4012;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.wa-bag:hover{color:#7d2d0b}
.product-bottom .wa-secondary{margin-top:6px;background:#fff;border-color:#bfe9cf;min-height:34px;font-size:11px}

/* Bolsa: «Consultar mi bolsa por WhatsApp» (flujo existente) con el mismo verde. */
#whatsappRequestForm button[type=submit]{background:var(--wa-green);color:var(--wa-ink);border-color:var(--wa-green-border);font-weight:800}
#whatsappRequestForm button[type=submit]:hover{background:var(--wa-green-hover);filter:none}

/* Destacados (Hallazgos de hoy). */
.featured-detail .wa-featured{align-self:stretch;margin-top:auto;min-height:36px;padding:6px 4px;gap:4px;font-size:11px;letter-spacing:-.01em}
.featured-detail .wa-featured .wa-icon{width:14px;height:14px}
.featured-detail .wa-featured+.featured-action{margin-top:0}

/* Ficha de producto. */
.wa-detail-box{margin:18px 0 6px}
.wa-detail{width:100%;min-height:52px;font-size:16px;border-radius:10px}
.wa-detail .wa-icon{width:22px;height:22px}
.wa-detail-note{margin-top:8px;font-size:11px;line-height:1.5;color:#5c675f}
.detail-copy>.wa-detail.wa-secondary{margin-top:10px;min-height:44px;font-size:13px;background:#fff;border-color:#bfe9cf}
.wa-sticky{display:none}

/* Banner principal y bloque de ayuda. */
.wa-cta{min-height:47px;padding:10px 22px;font-size:17px}
.wa-cta .wa-icon{width:22px;height:22px}
.hero-ctas{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}
.hero-ctas .intro-cta{margin-top:0!important}
.wa-hero-cta{min-height:54px;padding:12px 24px;font-size:20px;box-shadow:0 6px 16px #0b151424}
.wa-hero-cta .wa-icon{width:26px;height:26px}
.help-actions{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}
.help-actions .button{margin:0}
.wa-help-cta{font-size:16px}
.empty-state .wa-empty{margin:12px auto 0;min-height:44px;padding:10px 18px;font-size:14px}
.legal-actions .wa-cta{min-height:47px;font-size:15px;padding:10px 20px}
.legal-main a.wa-cta,.legal-main a.wa-cta:hover{color:var(--wa-ink);text-decoration:none}

/* Botón flotante en todas las páginas (no en /admin). El chat del sitio sube para no encimarse. */
.wa-float{position:fixed;right:24px;bottom:24px;z-index:14;gap:10px;min-height:56px;padding:10px 20px 10px 14px;border-radius:999px;font-size:15px;box-shadow:0 10px 26px #0b151433,0 2px 6px #0b15141f;transition:background-color .15s ease,box-shadow .15s ease,opacity .15s ease,visibility .15s}
/* whatsapp.js lo apaga mientras un «Pedir por WhatsApp» queda debajo: el toque ahí debe llevar el SKU. */
.wa-float.wa-float-off{opacity:0;visibility:hidden;pointer-events:none}
.wa-float .wa-icon{width:30px;height:30px}
.wa-ready .chat-launcher{bottom:94px}
.wa-ready .site-footer{padding-bottom:160px}
.wa-ready .legal-footer{padding-bottom:100px}
.chat-panel:not([hidden])~.wa-float{display:none}

@media(max-width:1365px){
  .wa-card{font-size:12px;gap:6px;padding:8px 6px}
  .wa-card .wa-icon{width:16px;height:16px}
}
@media(max-width:1199px){
  .desktop-intro-cta,.button.dark.desktop-intro-cta{width:auto;min-height:50px;font-size:18px;gap:14px}
  .wa-hero-cta{min-height:50px;font-size:18px;padding:10px 20px}
  .intro-copy{display:none}
}
@media(max-width:850px){
  .hero-ctas{gap:10px}
  .desktop-intro-cta,.button.dark.desktop-intro-cta{display:none!important}
  .help-banner{flex-wrap:wrap}
  .help-actions{margin-left:0;justify-content:flex-start}
}
@media(max-width:700px){
  .wa-button{font-size:12px;gap:6px;padding:8px 8px}
  .wa-icon{width:16px;height:16px}
  .wa-card{min-height:38px;font-size:11px;gap:5px;padding:7px 4px;letter-spacing:-.01em}
  .wa-card .wa-icon{width:15px;height:15px}
  .wa-ready .site-footer{padding-bottom:96px}
  .wa-ready .legal-footer{padding-bottom:90px}
  .legal-actions .wa-cta{width:100%}
  .wa-help-cta{font-size:15px;min-height:46px}
  .wa-bag{font-size:10px;min-height:28px}
  .featured-detail .wa-featured{min-height:34px;font-size:11px;padding:6px 4px}
  /* El CTA del banner ocupa el lugar del botón «Ver producto» (la foto del producto sigue abriendo su ficha). */
  .wa-ready .mobile-intro-cta,.wa-ready .button.dark.mobile-intro-cta{display:none!important}
  .hero-ctas{margin:0}
  .wa-hero-cta{position:absolute;left:0;bottom:12px;min-height:42px;padding:9px 16px;font-size:14px;white-space:nowrap}
  .wa-hero-cta .wa-icon{width:20px;height:20px}
  .help-actions{width:100%}
  .help-actions>*{flex:1 1 100%}
  .wa-detail-box .wa-detail{display:none}
  .wa-detail-box{margin-top:12px}
  .wa-sticky{display:block;position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid #eee3d7;padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px #3a22000f}
  .wa-sticky .wa-button{width:100%;min-height:50px;font-size:16px;border-radius:10px}
  .wa-sticky .wa-icon{width:22px;height:22px}
  .wa-float{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:52px;height:52px;min-height:0;padding:0;border-radius:50%}
  .mobile-bottom-nav~.wa-float{bottom:calc(80px + env(safe-area-inset-bottom))}
  .wa-float .wa-icon{width:30px;height:30px}
  .wa-float-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.wa-button,.wa-cta,.wa-float{transition:none}}
