/* ============================================================
   ENSAMBLES Y ADORNOS · PORTALES B2B
   Sistema visual dark-premium + animaciones (base: ref nova·web)
   ============================================================ */

/* ---- Tipografías locales (100% offline, sin Google Fonts) ---- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}

:root {
  --bg: #0a0a0b;
  --panel: #131316;
  --panel2: #1a1a1e;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  /* Acento de marca: dorado cálido (del prompt original) */
  --gold: #d97706;
  --gold-soft: #f59e0b;
  --gold-pop: #fbbf24;
  --gold-veil: rgba(217, 119, 6, 0.12);
  /* WhatsApp */
  --wa: #25d366;
  --wa-hover: #1ebe5d;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.font-display { font-family: var(--font-display); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: #0a0a0b; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0a0b; }
::-webkit-scrollbar-thumb { background: #26262c; border-radius: 8px; border: 2px solid #0a0a0b; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Texturas de fondo ---------- */
.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.grid-lines {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0.5H0M0.5 0v40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; position: relative; }
.section-alt { background: #0e0e10; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-pop);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  margin-top: 12px;
}
.section-sub { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 640px; }

/* ============================================================
   NAVBAR (glass al hacer scroll) — ref
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, var(--gold), #b45309);
  box-shadow: 0 6px 20px -6px rgba(217, 119, 6, 0.7);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .mark { transform: rotate(12deg) scale(1.05); }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 22px -8px rgba(37, 211, 102, 0.9);
}
.nav-cta:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 1); }
.nav-cta svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================================================
   HERO — ref (badge ping, glow, typing, stats, tarjetas flotantes)
   ============================================================ */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; }

/* Fondo fotográfico del hero (giro del cliente) + capa oscura para legibilidad */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  pointer-events: none;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.88) 55%, #0a0a0b 100%),
    radial-gradient(circle at 72% 28%, rgba(217,119,6,0.20), transparent 58%);
}
.hero .glow, .hero .texture { z-index: 1; }
.hero-grid { z-index: 2; }
.hero .glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.16), transparent 66%);
  pointer-events: none;
}
.hero .texture { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: var(--gold-veil); color: var(--gold-pop);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.ping { position: relative; width: 9px; height: 9px; }
.ping::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--gold-pop); opacity: 0.75; animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-pop); }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.03;
  margin-top: 22px;
}
.hero h1 .accent { color: var(--gold-pop); }
.hero .lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 540px; }
.caret { color: var(--gold-pop); font-weight: 700; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.9);
}
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 1); }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 15px 24px; border-radius: 14px;
  transition: all 0.3s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .chk { color: var(--gold-pop); font-weight: 800; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; max-width: 460px; }
.stat { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); border-radius: 18px; padding: 18px 14px; text-align: center; }
.stat .v { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Mock browser */
.mock-wrap { position: relative; }
.float-card {
  position: absolute; z-index: 20;
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); background: var(--panel);
  padding: 12px 15px; border-radius: 16px; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.9);
}
.float-card .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-veil); color: var(--gold-pop); }
.float-card .t1 { font-size: 12.5px; font-weight: 700; }
.float-card .t2 { font-size: 11px; color: var(--muted); }
.fc-tl { left: -14px; top: 60px; animation: float-slow 6s ease-in-out infinite; }
.fc-br { right: -12px; bottom: 66px; animation: float-slow 6s ease-in-out infinite; animation-delay: 2s; }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.browser {
  overflow: hidden; border-radius: 26px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 46px 90px -24px rgba(0, 0, 0, 0.9);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.d-red { background: #ff5f57; } .d-yel { background: #febc2e; } .d-grn { background: #28c840; }
.browser-url {
  margin-left: 12px; flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.4); border-radius: 9px; padding: 7px 12px;
  font-size: 12.5px; color: var(--muted);
}
.browser-url .lock { color: var(--wa); }
.browser-body { padding: 26px; min-height: 340px; background: #0c0c0e; }

/* Mini producto dentro del mock */
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: none; }
.mock-thumb { width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(135deg, rgba(217,119,6,0.3), rgba(217,119,6,0.06)); display: grid; place-items: center; color: var(--gold-pop); flex-shrink: 0; }
.mock-thumb svg.i { width: 26px; height: 26px; }
.mock-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.mock-name { font-weight: 600; font-size: 14px; }
.mock-sku { font-size: 11px; color: var(--gold-pop); font-weight: 600; letter-spacing: 0.03em; }
/* Precios fuera: el mock también muestra "Para cotizar" */
.mock-price {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-pop);
  white-space: nowrap; padding: 5px 10px; border-radius: 999px;
  background: var(--gold-veil); border: 1.5px dashed rgba(217, 119, 6, 0.55);
}

/* ============================================================
   SPRITE DE ICONOS SVG (línea, tipo lucide)
   ============================================================ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.i .solid { fill: currentColor; stroke: none; }

/* ============================================================
   MARQUEE — ref
   ============================================================ */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e10; padding: 15px 0; }
.marquee { display: flex; width: max-content; gap: 12px; animation: marquee 26s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  padding: 9px 17px; border-radius: 999px; font-size: 14px; color: #e4e4e7;
}
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-pop); }

/* ============================================================
   PRODUCTOS — cards reveal
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 22px; padding: 22px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
}

/* Foto real del producto — sangra al borde superior de la tarjeta */
.card-img {
  display: block; width: calc(100% + 44px); margin: -22px -22px 18px;
  height: 165px; object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-img { transform: scale(1.06); }
.grid-3 .card-img { height: 185px; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.45);
  background: var(--panel2);
  box-shadow: 0 26px 50px -22px rgba(217, 119, 6, 0.4);
}
.card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--gold-veil); transition: all 0.3s ease; color: var(--gold-pop);
}
.card .icon svg.i { width: 27px; height: 27px; }
.card:hover .icon { background: var(--gold); color: #0a0a0b; transform: scale(1.08) rotate(-6deg); }
.card h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 700; margin-top: 18px; line-height: 1.25; }
.card .sku { font-size: 11.5px; font-weight: 700; color: var(--gold-pop); letter-spacing: 0.04em; margin-top: 6px; }
.card .desc { font-size: 14px; color: var(--muted); margin-top: 10px; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12px; font-weight: 600; color: #d4d4d8; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 5px 11px; border-radius: 8px; }

/* Sin precios en línea: todo el catálogo es "Para cotizar" */
.quote {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gold-pop);
  border: 1.5px dashed rgba(217, 119, 6, 0.55);
  background: var(--gold-veil);
  padding: 8px 13px; border-radius: 10px;
}
.quote svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }

.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  color: #0a0a0b; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-pop), var(--gold));
  border: 1px solid transparent; border-radius: 12px;
  box-shadow: 0 10px 24px -12px rgba(217, 119, 6, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-add:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 28px -12px rgba(217, 119, 6, 1); }
.btn-add:active { transform: translateY(0) scale(0.985); }
.btn-add svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; flex-shrink: 0; }
.btn-add.en-carrito {
  background: rgba(37, 211, 102, 0.14); color: #4ade80;
  border-color: rgba(37, 211, 102, 0.45); box-shadow: none;
}
.btn-add.en-carrito:hover { background: rgba(37, 211, 102, 0.2); filter: none; }

a.tag-link:hover { border-color: rgba(217, 119, 6, 0.6); color: var(--gold-pop); background: var(--gold-veil); }

.badge { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: rgba(37, 211, 102, 0.14); color: #4ade80; border: 1px solid rgba(37,211,102,0.3); }
.badge.low { background: rgba(217, 119, 6, 0.16); color: var(--gold-pop); border: 1px solid rgba(217,119,6,0.4); }

/* ============================================================
   PROCESO / pasos numerados — ref Process
   ============================================================ */
.step { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: 26px; overflow: hidden; }
.step .num { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: rgba(255, 255, 255, 0.06); line-height: 1; }
.step .badge-time { position: absolute; right: 20px; top: 20px; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,0.04); padding: 4px 11px; border-radius: 999px; }
.step .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--gold); color: #0a0a0b; margin-top: 6px; }
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 16px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 9px; }

/* ============================================================
   OFERTA — bloque premium con cupón + WhatsApp
   ============================================================ */
.offer {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 26px; padding: 34px;
  background: linear-gradient(135deg, #131316 0%, #1c1610 100%);
}
.offer::before {
  content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.3), transparent 70%);
}
.offer .txt { position: relative; z-index: 1; flex: 1; min-width: 280px; }
.offer .tagline { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-pop); margin-bottom: 10px; }
.offer h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.22; }
.offer p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 480px; }
.coupon {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(217, 119, 6, 0.16); border: 1.5px dashed var(--gold);
  color: var(--gold-pop); font-weight: 800; font-size: 14.5px; letter-spacing: 0.04em;
  padding: 10px 18px; border-radius: 12px; margin-top: 16px;
}
.offer .cta { position: relative; z-index: 1; }

/* ============================================================
   FOOTER + FAB WhatsApp (pulse-ring) — ref ChatWidget
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: #0e0e10; padding: 40px 0; text-align: center; }
.footer p { color: var(--muted); font-size: 13px; }
.footer .brand-line { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.9);
  transition: transform 0.3s ease, background 0.3s ease;
}
.fab:hover { transform: scale(1.09); background: var(--wa-hover); }
.fab svg { width: 32px; height: 32px; fill: #fff; }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: ring 2s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }

/* ============================================================
   RECOMENDACIONES — productos reales del catálogo E&A
   ============================================================ */
.rec-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  padding: 5px 11px; border-radius: 999px;
}
.rec-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-pop); }
.card .cat { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 14px; }

/* ============================================================
   CARRITO DE COTIZACIÓN (drawer + FAB)
   ============================================================ */
.cart-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  display: inline-flex; align-items: center; gap: 11px;
  height: 60px; padding: 0 22px; border: none; cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-pop), var(--gold));
  color: #0a0a0b; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(217, 119, 6, 0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.cart-fab:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
.cart-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-fab .cnt {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  background: #0a0a0b; color: var(--gold-pop); font-size: 13.5px; font-weight: 700;
}
.cart-fab.vacio .cnt { background: rgba(10, 10, 11, 0.35); color: #0a0a0b; }
@keyframes cart-bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.14); } }
.cart-fab.bump { animation: cart-bump 0.42s cubic-bezier(0.22, 1, 0.36, 1); }

.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(430px, 100%); display: flex; flex-direction: column;
  background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.9);
  transform: translateX(104%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer .ch-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 22px; border-bottom: 1px solid var(--line);
}
.cart-drawer .ch-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.cart-drawer .ch-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ch-x {
  width: 38px; height: 38px; flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 11px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink);
  font-size: 17px; transition: all 0.25s ease;
}
.ch-x:hover { background: var(--gold); color: #0a0a0b; border-color: var(--gold); }

.ch-list { flex: 1; overflow-y: auto; padding: 10px 22px; }
.ch-empty { text-align: center; padding: 54px 12px; color: var(--muted); font-size: 14px; }
.ch-empty .big { font-size: 34px; display: block; margin-bottom: 12px; opacity: 0.6; }

.ch-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ch-item:last-child { border-bottom: none; }
.ch-thumb {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.24), rgba(217, 119, 6, 0.05));
  border: 1px solid var(--line);
}
.ch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-info { flex: 1; min-width: 0; }
.ch-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ch-sku { font-size: 10.5px; font-weight: 700; color: var(--gold-pop); letter-spacing: 0.05em; margin-top: 4px; }
.ch-pres { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.ch-tools { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.qty {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); border-radius: 9px;
}
.qty button {
  width: 26px; height: 26px; cursor: pointer; border: none; background: transparent;
  color: var(--ink); font-size: 15px; line-height: 1; border-radius: 7px;
  transition: background 0.2s ease, color 0.2s ease;
}
.qty button:hover { background: var(--gold); color: #0a0a0b; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; }
.ch-del {
  cursor: pointer; border: none; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s ease; padding: 4px 2px;
}
.ch-del:hover { color: #f87171; }
.ch-quote { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

.ch-foot { border-top: 1px solid var(--line); padding: 20px 22px; background: var(--panel2); }
.ch-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.ch-row + .ch-row { margin-top: 8px; }
.ch-row b { color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.ch-note {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: var(--muted); margin-top: 14px;
  padding: 11px 13px; border-radius: 11px;
  background: var(--gold-veil); border: 1px solid rgba(217, 119, 6, 0.32);
}
.ch-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 15px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 15.5px;
  padding: 15px 20px; border-radius: 13px; text-align: center;
  transition: all 0.3s ease; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.9);
}
.ch-send:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, 1); }
.ch-send svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.ch-clear {
  display: block; width: 100%; margin-top: 11px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 11px; border-radius: 11px; transition: all 0.25s ease;
}
.ch-clear:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.5); }

/* Aviso flotante al agregar */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 26px);
  z-index: 99; display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid rgba(217, 119, 6, 0.5);
  color: var(--ink); font-size: 14px; font-weight: 600;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.95);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #0a0a0b; font-size: 13px; font-weight: 900; flex-shrink: 0;
}

/* ============================================================
   REVEAL on scroll — ref (IntersectionObserver)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .hero { padding: 118px 0 70px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .nav-cta span { display: none; }
  .float-card { display: none; }
  .offer { padding: 26px; }
  .btn-wa, .btn-ghost { width: 100%; }
  /* Carrito */
  .cart-fab { left: 16px; bottom: 16px; height: 54px; padding: 0 17px; font-size: 14px; }
  .cart-fab svg { width: 21px; height: 21px; }
  .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .fab svg { width: 28px; height: 28px; }
  .cart-drawer { width: 100%; }
  .ch-head, .ch-list, .ch-foot { padding-left: 17px; padding-right: 17px; }
  .toast { bottom: 84px; font-size: 13px; width: calc(100% - 32px); justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .cart-fab .lbl-txt { display: none; }
  .cart-fab { padding: 0 15px; gap: 8px; }
}

/* ============================================================
   MOVIL — catalogo en forma de LISTA (renglones compactos)
   En pantallas <=640px cada tarjeta se vuelve un renglon:
   foto cuadrada a la izquierda + datos a la derecha.
   ============================================================ */
@media (max-width: 640px) {
  .grid, .grid-3, .grid-4 { gap: 12px; }

  .card {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-areas:
      "foto datos"
      "foto boton";
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
  }
  /* sin flotar ni escalar al tocar: es una lista */
  .card:hover { transform: none; }
  .card:hover .card-img { transform: none; }

  /* miniatura cuadrada, esquina redondeada, sin sangrar */
  .card-img {
    grid-area: foto;
    width: 92px; height: 92px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    object-fit: cover;
  }
  .grid-3 .card-img { height: 92px; }

  /* datos a la derecha */
  .card .top { grid-area: datos; display: block; }
  .card .icon { display: none; }               /* el icono grande estorba en lista */
  .card .cat { margin-top: 0; margin-bottom: 3px; }
  .card h3 {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card .sku { font-size: 11px; margin-top: 5px; }
  .card .desc { display: none; }               /* descripcion larga se oculta en lista */
  .card .meta { margin-top: 7px; gap: 6px; }
  .card .tag { font-size: 10.5px; padding: 4px 8px; }

  /* "Para cotizar" y boton en una sola linea, debajo de los datos */
  .card-foot {
    grid-area: boton;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
  }
  .quote { font-size: 10.5px; padding: 6px 9px; gap: 5px; }
  .quote svg { width: 13px; height: 13px; }
  .btn-add {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
}

@media (max-width: 380px) {
  .card { grid-template-columns: 74px 1fr; column-gap: 11px; }
  .card-img { width: 74px; height: 74px; }
  .grid-3 .card-img { height: 74px; }
  .card h3 { font-size: 14px; }
}
