/* ==========================================================================
   NÁCAR JOYERÍA · estilos
   Mobile-first. Paleta y tipografías de marca en :root; todo lo demás deriva de ahí.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --esmeralda: #0F3B34;
  --champan: #D9C08A;
  --oro: #B8913F;
  --negro: #111111;
  --perla: #F4F0E8;

  /* Derivados (transparencias de la paleta) */
  --esmeralda-90: #0B2E28;
  --texto-suave: rgba(17, 17, 17, 0.66);
  --linea: rgba(17, 17, 17, 0.12);
  --linea-champan: rgba(217, 192, 138, 0.45);
  --perla-80: rgba(244, 240, 232, 0.82);
  --sombra: 0 18px 40px rgba(15, 59, 52, 0.16);

  /* Tipografía */
  --f-logo: "Jost", "Futura", "Segoe UI", sans-serif;
  --f-titulo: "Bodoni Moda", "Didot", Georgia, serif;
  --f-cuerpo: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Medidas */
  --header-h: 64px;
  --tabs-h: 42px;
  --radio: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--perla); color: var(--negro); font-family: var(--f-cuerpo); font-size: 15px; line-height: 1.55; padding-top: calc(var(--header-h) + var(--tabs-h) + env(safe-area-inset-top, 0px)); }
body.is-locked { overflow: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--negro); color: var(--perla); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
section[id] { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 8px); }

.eyebrow { font-family: var(--f-logo); font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--oro); }
.eyebrow-light { color: var(--champan); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-family: var(--f-cuerpo); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--oro); color: var(--negro); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-emerald { background: var(--esmeralda); color: var(--perla); }
.btn-emerald:hover { filter: brightness(1.2); }
.btn-ghost { background: transparent; color: var(--perla); border-color: var(--linea-champan); }
.btn-ghost:hover { background: rgba(217, 192, 138, 0.12); }
.btn-outline-dark { background: transparent; color: var(--negro); border-color: var(--linea); }
.btn-outline-dark:hover { border-color: var(--oro); }
.btn-block { width: 100%; }
.btn-spark { width: 14px; height: 14px; fill: var(--champan); }
.text-button { background: none; border: 0; color: var(--esmeralda); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linea); background: transparent; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--esmeralda); border-bottom: 1px solid rgba(217, 192, 138, 0.2); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { height: var(--header-h); max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.seal { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--champan); display: grid; place-items: center; position: relative; color: var(--champan); box-shadow: inset 0 0 0 3px var(--esmeralda), inset 0 0 0 4px rgba(217, 192, 138, 0.45); }
.seal-n { font-family: var(--f-logo); font-size: 17px; font-weight: 400; line-height: 1; transform: translateY(1px); }
.seal-spark { position: absolute; width: 8px; height: 8px; top: 8px; right: 9px; fill: var(--champan); }

.logo { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--champan); line-height: 1; }
.logo-word { font-family: var(--f-logo); font-weight: 400; font-size: 22px; letter-spacing: 0.32em; margin-right: -0.32em; line-height: 1; display: inline-flex; }
.logo-a { position: relative; display: inline-block; }
.logo-spark { position: absolute; width: 0.34em; height: 0.34em; left: calc((100% - 0.32em) / 2 - 0.17em + 0.05em); top: -0.34em; fill: var(--champan); }
.logo-sub { font-family: var(--f-logo); font-size: 8.5px; font-weight: 500; letter-spacing: 0.55em; margin-right: -0.55em; margin-top: 6px; color: var(--champan); opacity: 0.9; }

.cart-button { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea-champan); background: transparent; display: grid; place-items: center; color: var(--champan); justify-self: end; }
.cart-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cart-button:hover { background: rgba(217, 192, 138, 0.12); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--oro); color: var(--negro); font-size: 11px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-count.is-bumped { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* ---------- pestañas Tienda / Subastas ---------- */
.site-tabs { height: var(--tabs-h); display: flex; justify-content: center; gap: 6px; border-top: 1px solid rgba(217, 192, 138, 0.14); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.site-tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-family: var(--f-logo); font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(217, 192, 138, 0.72); text-decoration: none; border-bottom: 2px solid transparent; }
.site-tab:hover { color: var(--champan); }
.site-tab[aria-current="page"] { color: var(--perla); border-bottom-color: var(--champan); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champan); box-shadow: 0 0 0 0 rgba(217, 192, 138, 0.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(217, 192, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 192, 138, 0); } }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(120% 80% at 78% -10%, #1A5A50 0%, rgba(26, 90, 80, 0) 58%), radial-gradient(90% 70% at -10% 110%, #0A2924 0%, rgba(10, 41, 36, 0) 70%), var(--esmeralda); color: var(--perla); padding-block: 36px 44px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-family: var(--f-titulo); font-weight: 400; font-size: clamp(40px, 11vw, 76px); line-height: 1.02; margin-top: 14px; letter-spacing: -0.015em; text-wrap: balance; }
.hero-sub { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--perla-80); max-width: 52ch; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.hero-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--champan); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--champan); }
.hero-art { width: min(340px, 82vw); aspect-ratio: 1 / 1; max-width: 100%; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- secciones ---------- */
.catalog, .trust, .steps { padding-block: 48px; }
.section-head { display: grid; gap: 8px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--f-titulo); font-weight: 400; font-size: clamp(32px, 7.5vw, 48px); line-height: 1.08; letter-spacing: -0.01em; }
.section-lead { color: var(--texto-suave); max-width: 60ch; }

/* ---------- filtros ---------- */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter-r)); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; font-size: 14px; font-weight: 600; color: var(--negro); white-space: nowrap; }
.chip:hover { border-color: var(--oro); }
.chip[aria-pressed="true"] { background: var(--esmeralda); border-color: var(--esmeralda); color: var(--perla); }
.chip-finish[aria-pressed="true"] { background: transparent; color: var(--negro); border-color: var(--oro); box-shadow: inset 0 0 0 1px var(--oro); }
.chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(17, 17, 17, 0.15); }
.result-count { font-size: 13px; color: var(--texto-suave); margin-bottom: 14px; }

/* ---------- tarjetas de producto (móvil: horizontales) ---------- */
.product-grid { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 124px minmax(0, 1fr); background: var(--perla); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.card-media { position: relative; background: var(--esmeralda); min-height: 132px; height: 100%; max-width: 100%; overflow: hidden; }
.card-media::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(217, 192, 138, 0.22); border-radius: 9px; pointer-events: none; }
.card-media svg, .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) { .card:hover .card-media svg, .card:hover .card-media img { transform: scale(1.04); } }
.badge { position: absolute; left: 6px; top: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.badge-disponible { background: var(--perla); color: var(--esmeralda); }
.badge-ultimas { background: var(--oro); color: var(--negro); }
.badge-agotado { background: var(--negro); color: var(--perla); }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-finish { font-family: var(--f-logo); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto-suave); }
.card-title { font-family: var(--f-titulo); font-size: 17px; font-weight: 500; line-height: 1.22; }
.card-desc { display: none; font-size: 13.5px; color: var(--texto-suave); }
.card-price { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; height: 40px; flex: none; }
.stepper button { width: 34px; height: 38px; border: 0; background: none; font-size: 18px; font-weight: 700; color: var(--negro); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-add { flex: 1; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--esmeralda); color: var(--perla); font-weight: 700; font-size: 14px; }
.btn-add:hover { filter: brightness(1.2); }
.btn-add:disabled { background: var(--linea); color: var(--texto-suave); cursor: not-allowed; filter: none; }
.btn-add.is-done { background: var(--oro); color: var(--negro); }
.catalog-note { padding: 28px 16px; border: 1px dashed var(--linea); border-radius: var(--radio); text-align: center; color: var(--texto-suave); }
.catalog-note code { font-size: 13px; background: rgba(17, 17, 17, 0.06); padding: 2px 6px; border-radius: 6px; }

/* ---------- confianza ---------- */
.trust { background: var(--perla); border-top: 1px solid var(--linea); }
.pillars { display: grid; gap: 14px; }
.pillar { background: var(--perla); border: 1px solid var(--champan); border-radius: var(--radio); padding: 22px 20px; display: grid; gap: 8px; box-shadow: inset 0 0 0 4px var(--perla), inset 0 0 0 5px rgba(217, 192, 138, 0.35); }
.pillar-icon { width: 34px; height: 34px; fill: none; stroke: var(--oro); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pillar h3 { font-family: var(--f-titulo); font-weight: 500; font-size: 23px; line-height: 1.15; }
.pillar p { color: var(--texto-suave); font-size: 14.5px; }
.pillar strong { color: var(--negro); }

/* ---------- pasos ---------- */
.steps { background: var(--esmeralda); color: var(--perla); }
.steps .eyebrow { color: var(--champan); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: paso; }
.steps-list li { counter-increment: paso; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 0; border-top: 1px solid rgba(217, 192, 138, 0.25); }
.steps-list li::before { content: counter(paso); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--champan); color: var(--champan); display: grid; place-items: center; font-family: var(--f-logo); font-size: 16px; }
.steps-list strong { font-family: var(--f-titulo); font-weight: 500; font-size: 20px; line-height: 1.2; }
.steps-list span { color: var(--perla-80); font-size: 14.5px; }
.steps-cta { margin-top: 22px; }
.steps .btn-emerald { background: var(--champan); color: var(--esmeralda); }

/* ---------- footer ---------- */
.site-footer { background: var(--negro); color: var(--perla-80); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; gap: 12px; justify-items: center; text-align: center; font-size: 13.5px; }
.logo-footer { color: var(--champan); }
.footer-small { font-size: 12px; opacity: 0.7; }
.footer-wa { color: var(--champan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(217, 192, 138, 0.4); padding-bottom: 2px; }
.footer-wa:hover { border-color: var(--champan); }

/* ---------- barra de pedido (móvil) ---------- */
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: linear-gradient(to top, var(--perla) 70%, rgba(244, 240, 232, 0)); }
.order-bar-btn { width: 100%; justify-content: space-between; box-shadow: var(--sombra); }

/* ---------- overlay, modal y drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.5); z-index: 50; backdrop-filter: blur(2px); }
.modal { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: calc(100% - 24px - env(safe-area-inset-top, 0px)); overflow-y: auto; background: var(--perla); border-radius: 22px 22px 0 0; padding: 20px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); box-shadow: var(--sombra); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-family: var(--f-titulo); font-weight: 500; font-size: 28px; margin-top: 4px; }
.progress { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress li { height: 4px; border-radius: 999px; background: var(--linea); }
.progress li.is-done { background: var(--oro); }
.question { font-family: var(--f-titulo); font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.options { display: grid; gap: 10px; }
.option { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 10px 14px; border-radius: var(--radio); border: 1px solid var(--linea); background: transparent; }
.option:hover, .option:focus-visible { border-color: var(--oro); box-shadow: inset 0 0 0 1px var(--oro); }
.option-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--esmeralda); display: grid; place-items: center; }
.option-icon svg { width: 22px; height: 22px; }
.option b { display: block; font-size: 15.5px; }
.option small { color: var(--texto-suave); font-size: 13px; }
.assistant-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; flex-wrap: wrap; }
.suggestions { display: grid; gap: 10px; }
.suggestion { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--linea); border-radius: var(--radio); align-items: center; }
.suggestion.is-top { border-color: var(--oro); box-shadow: inset 0 0 0 1px var(--oro); }
.suggestion-media { border-radius: 10px; overflow: hidden; background: var(--esmeralda); aspect-ratio: 1 / 1; max-width: 100%; }
.suggestion-media svg, .suggestion-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.suggestion b { font-size: 15px; display: block; line-height: 1.3; }
.suggestion .price { font-weight: 800; font-variant-numeric: tabular-nums; }
.suggestion .why { font-size: 12.5px; color: var(--texto-suave); margin-top: 2px; }
.suggestion .btn-add { margin-top: 8px; min-height: 38px; font-size: 13px; width: 100%; }
.tag-top { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--oro); color: var(--negro); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.assistant-summary { font-size: 14px; color: var(--texto-suave); margin-bottom: 12px; }

.drawer { position: fixed; z-index: 60; inset: 0; background: var(--perla); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter-r) 12px var(--gutter); border-bottom: 1px solid var(--linea); }
.drawer-head h2 { font-family: var(--f-titulo); font-weight: 500; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); min-height: 0; }
.cart-empty { display: grid; gap: 16px; justify-items: start; padding-top: 20px; color: var(--texto-suave); }

.cart-items { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--esmeralda); }
.cart-thumb svg, .cart-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cart-item b { font-size: 14px; display: block; line-height: 1.3; }
.cart-item small { font-size: 12px; color: var(--texto-suave); display: block; }
.cart-item .stepper { height: 34px; margin-top: 6px; }
.cart-item .stepper button { width: 30px; height: 32px; }
.cart-line-total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.remove { display: block; margin-left: auto; margin-top: 4px; background: none; border: 0; font-size: 12px; color: var(--texto-suave); text-decoration: underline; padding: 4px 0; }

.upsell { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: var(--radio); border: 1px solid var(--oro); background: rgba(184, 145, 63, 0.08); cursor: pointer; margin-bottom: 20px; }
.upsell input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--esmeralda); }
.upsell-title { display: block; font-weight: 800; font-size: 14.5px; }
.upsell-price { color: var(--esmeralda); white-space: nowrap; }
.upsell-detail { display: block; font-size: 13px; color: var(--texto-suave); margin-top: 2px; }

.checkout-form { display: grid; gap: 14px; }
.form-title { font-family: var(--f-titulo); font-weight: 500; font-size: 21px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 700; padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea); background: rgba(255, 255, 255, 0.6); font-size: 16px; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(184, 145, 63, 0.2); }
.field [aria-invalid="true"] { border-color: #A3313B; }
.field-error { font-size: 12.5px; font-weight: 700; color: #A3313B; min-height: 0; }
.field-error:empty { display: none; }
.payment { gap: 8px; }
.radio { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--oro); box-shadow: inset 0 0 0 1px var(--oro); }
.radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--esmeralda); }
.radio span { font-weight: 700; font-size: 14.5px; }
.radio small { display: block; font-weight: 500; font-size: 12.5px; color: var(--texto-suave); }

.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 6px 0 2px; padding: 14px 0 0; border-top: 1px solid var(--linea); font-size: 14.5px; }
.totals dt { color: var(--texto-suave); }
.totals dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 18px; color: var(--negro); font-weight: 800; padding-top: 6px; }
.totals .hint { grid-column: 1 / -1; font-size: 12.5px; color: var(--esmeralda); font-weight: 700; }
.wa-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.form-note { font-size: 12.5px; color: var(--texto-suave); text-align: center; }

.order-done { display: grid; gap: 14px; justify-items: center; text-align: center; align-content: start; padding-top: 32px; }
.done-spark { width: 40px; height: 40px; fill: var(--oro); }
.order-done h3 { font-family: var(--f-titulo); font-weight: 500; font-size: 28px; }
.done-id { font-family: var(--f-logo); font-size: 14px; letter-spacing: 0.14em; color: var(--esmeralda); font-weight: 500; }
.order-done p { color: var(--texto-suave); max-width: 40ch; }
.done-message { width: 100%; text-align: left; white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(17, 17, 17, 0.05); border-radius: 12px; padding: 14px; margin: 0; max-height: 240px; overflow: auto; }

body.is-locked .toast { top: calc(env(safe-area-inset-top, 0px) + 76px); bottom: auto; }
.toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--negro); color: var(--perla); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--sombra); max-width: calc(100% - 32px); text-align: center; }

/* ==========================================================================
   Tablet y escritorio
   ========================================================================== */
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 1 / 1; height: auto; min-height: 0; }
  .card-media::after { inset: 8px; border-radius: 10px; }
  .card-title { font-size: 19px; }
  .card-desc { display: block; }
  .badge { left: 8px; top: 8px; font-size: 10.5px; letter-spacing: 0.06em; padding: 4px 8px; }
  .card-body { padding: 14px 16px 16px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .modal { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); border-radius: 22px; padding: 26px 28px; }
  .drawer { left: auto; width: min(440px, 100%); box-shadow: -20px 0 60px rgba(17, 17, 17, 0.25); }
  .order-bar { display: none !important; }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .logo-word { font-size: 25px; }
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; }
  .hero-art { width: 100%; max-width: 440px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog, .trust, .steps { padding-block: 72px; }
  .filters { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .chip-row { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1180px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
