/* ==========================================================
   KARMAX · Hoja de estilos principal
   Paleta basada en el logo: azul marino, azul, turquesa, naranja
   ========================================================== */
:root {
  --navy-900: #081a38;
  --navy: #0f2a55;
  --navy-700: #1a3a6e;
  --blue: #1f6fe0;
  --teal: #16b3b0;
  --orange: #f7931e;
  --amber: #fbb03b;
  --ink: #0f1b2d;
  --text: #3d4b60;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #eef4fc;
  --wa: #25d366;
  --grad-brand: linear-gradient(135deg, #1f6fe0 0%, #16b3b0 100%);
  --grad-orange: linear-gradient(135deg, #f7931e 0%, #fbb03b 100%);
  --grad-navy: linear-gradient(135deg, #081a38 0%, #0f2a55 55%, #1a3a6e 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 42, 85, .06);
  --shadow: 0 12px 34px rgba(15, 42, 85, .10);
  --shadow-lg: 0 24px 60px rgba(15, 42, 85, .18);
  --header-h: 76px;
  --container: 1200px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(31, 111, 224, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; font-family: var(--font-head); font-weight: 700;
  font-size: .95rem; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-orange); color: #fff; box-shadow: 0 10px 24px rgba(247, 147, 30, .35); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(247, 147, 30, .45); }
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(31, 111, 224, .28); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border: 2px solid var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
.btn-ghost-light { border: 2px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-msg { display: flex; align-items: center; gap: 8px; }
.topbar-msg strong { color: var(--amber); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.topbar-social { display: flex; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 80; background: #fff; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(15, 42, 85, .08); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.logo { position: relative; display: block; width: 190px; aspect-ratio: 443 / 134; overflow: hidden; flex-shrink: 0; }
.logo img {
  position: absolute; width: 127.77%; height: auto; max-width: none; left: -14%; top: -65.7%;
  mix-blend-mode: multiply;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 13px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; white-space: nowrap;
  color: var(--navy); border-radius: 10px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--blue); background: var(--bg-tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy); font-size: 1.1rem; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-tint); color: var(--blue); }
.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--grad-orange); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: linear-gradient(180deg, #f6f9fd 0%, #fff 100%); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: rgba(22, 179, 176, .25); top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: rgba(247, 147, 30, .18); bottom: -200px; left: -120px; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--navy); text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22, 179, 176, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(22, 179, 176, 0); } }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 22px 0 18px; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-orange { color: var(--orange); }
.hero-lead { font-size: 1.13rem; max-width: 540px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; min-height: 480px; }
.hero-card {
  position: absolute; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
}
.hero-card.main { inset: 0 70px 60px 0; background: radial-gradient(circle at 50% 35%, #fff 0%, #eef4fc 100%); }
.hero-card.main svg { width: 100%; height: 100%; }
.hero-card.side { width: 250px; right: 0; bottom: 0; padding: 6px; animation: float 6s ease-in-out infinite; }
.hero-card.side svg { width: 100%; height: auto; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--navy); z-index: 2;
  animation: float 5s ease-in-out infinite;
}
.hero-chip i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-family: var(--font-body); font-size: .75rem; }
.hero-chip.c1 { top: 24px; left: -26px; }
.hero-chip.c1 i { background: var(--grad-brand); }
.hero-chip.c2 { top: 44%; right: 20px; animation-delay: -2.5s; }
.hero-chip.c2 i { background: var(--grad-orange); }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Franja de confianza ---------- */
.trust { margin-top: -40px; position: relative; z-index: 3; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item i {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--bg-tint); color: var(--blue);
}
.trust-item:nth-child(2n) i { background: #fff4e6; color: var(--orange); }
.trust-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); transition: all .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Tarjetas de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; border: 1px solid var(--line);
  overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media {
  position: relative; display: block; aspect-ratio: 6 / 5; background: radial-gradient(circle at 50% 40%, #fff 0%, #eef4fc 100%);
}
.product-media svg { width: 100%; height: 100%; transition: transform .5s; }
.product-card:hover .product-media svg { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 16px; right: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--navy);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .03em;
}
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-code { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); }
.product-body h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.product-body h3 a:hover { color: var(--blue); }
.product-body > p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--bg-soft);
  font-size: .8rem; font-weight: 600; color: var(--navy);
}
.spec i { color: var(--blue); font-size: .8rem; }
.product-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: var(--navy); line-height: 1; }
.price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--muted); margin-top: 6px; }
.product-actions { display: flex; gap: 8px; }
.add-btn {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-orange); color: #fff;
  box-shadow: 0 8px 18px rgba(247, 147, 30, .35); transition: transform .2s;
}
.add-btn:hover { transform: translateY(-2px) rotate(-6deg); }
.view-btn {
  height: 46px; padding: 0 16px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-tint); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .85rem; transition: background .2s, color .2s;
}
.view-btn:hover { background: var(--navy); color: #fff; }

/* ---------- Beneficios (oscuro) ---------- */
.section-dark { position: relative; background: var(--grad-navy); color: rgba(255, 255, 255, .78); overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(22, 179, 176, .25), transparent 65%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.features { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px); transition: transform .3s, background .3s;
}
.feature:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); }
.feature i {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; color: #fff;
  background: var(--grad-brand); margin-bottom: 20px;
}
.feature:nth-child(2n) i { background: var(--grad-orange); }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .92rem; margin: 0; }
.counters { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; padding-top: 50px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.counter strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.counter strong em { font-style: normal; color: var(--amber); }
.counter > span { font-size: .9rem; }

/* ---------- Guía de tamaños ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.guide-card { position: relative; background: #fff; border-radius: 22px; border: 1px solid var(--line); padding: 30px; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.guide-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-brand); }
.guide-card:nth-child(2)::after { background: var(--grad-orange); }
.guide-card:nth-child(3)::after { background: linear-gradient(90deg, var(--navy), var(--blue)); }
.guide-size { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.guide-size small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.guide-liters { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 18px; padding: 7px 14px; border-radius: 999px; background: var(--bg-tint); color: var(--blue); font-weight: 700; font-size: .85rem; }
.guide-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.guide-card li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .92rem; border-bottom: 1px solid var(--bg-soft); }
.guide-card li i { color: var(--teal); }
.guide-options { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-options a { padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--navy); font-family: var(--font-head); transition: all .2s; }
.guide-options a:hover { border-color: var(--orange); color: var(--orange); }
.table-wrap { margin-top: 50px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.compare th { background: var(--navy); color: #fff; text-align: left; padding: 16px 18px; font-family: var(--font-head); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.compare td { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background .2s; cursor: pointer; }
.compare tbody tr:hover { background: var(--bg-tint); }
.compare .code { font-family: var(--font-head); font-weight: 800; color: var(--blue); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag-gruesa { background: #0f2a55; color: #fff; }
.tag-intermedia { background: #e0f4f4; color: #0d7f7d; }
.tag-delgada { background: #fff1de; color: #b8690a; }

/* ---------- CTA asistente ---------- */
.assist-cta { position: relative; border-radius: 28px; background: var(--grad-brand); padding: 56px; color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.assist-cta::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -80px; top: -120px; }
.assist-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.assist-cta p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; }
.assist-cta .btn { margin-top: 10px; }
.assist-bubbles { position: relative; display: flex; flex-direction: column; gap: 12px; }
.assist-bubbles div { max-width: 88%; padding: 13px 18px; border-radius: 18px; background: #fff; color: var(--ink); font-size: .92rem; box-shadow: var(--shadow); }
.assist-bubbles div:nth-child(2n) { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.assist-bubbles div:nth-child(2n+1) { border-bottom-left-radius: 4px; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.sector { text-align: center; padding: 28px 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all .3s; }
.sector:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-5px); }
.sector i { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--bg-tint); color: var(--blue); transition: all .3s; }
.sector:hover i { background: var(--grad-orange); color: #fff; }
.sector strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.sector span { font-size: .8rem; color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step); position: absolute; right: 22px; top: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--bg-tint); line-height: 1;
}
.step i { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; }
.faq-q i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); transition: transform .3s, background .3s, color .3s; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--text); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info { background: var(--grad-navy); border-radius: 24px; padding: 40px; color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.contact-info::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(247, 147, 30, .15); right: -90px; bottom: -90px; }
.contact-info h3 { color: #fff; font-size: 1.5rem; }
.contact-line { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-line i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--amber); font-size: 1.1rem; }
.contact-line small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); }
.contact-line strong { color: #fff; font-family: var(--font-head); }
.contact-social { display: flex; gap: 10px; margin-top: 26px; position: relative; z-index: 1; }
.contact-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: all .2s; }
.contact-social a:hover { background: var(--orange); transform: translateY(-3px); }
.form-card { background: #fff; border-radius: 24px; padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--navy); }
.field label em { color: var(--orange); font-style: normal; }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.input-wrap.area i { top: 18px; transform: none; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px 13px 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; outline: none; font-size: .95rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 224, .1); }
.field.error input, .field.error select, .field.error textarea { border-color: #e5484d; background: #fff6f6; }
.field-msg { font-size: .76rem; color: #e5484d; display: none; }
.field.error .field-msg { display: block; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-note i { color: var(--wa); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: inline-block; background: #f8f7f2; border-radius: 14px; padding: 10px 16px; margin-bottom: 18px; }
.footer-logo .logo { width: 170px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { transition: color .2s, padding .2s; }
.footer ul a:hover { color: var(--amber); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--teal); margin-top: 4px; width: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: all .2s; }
.footer-social a:hover { background: var(--grad-orange); transform: translateY(-3px); }
.footer-bottom { margin-top: 60px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Botones flotantes ---------- */
.float-social { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.float-social a {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow); transition: transform .25s;
}
.float-social a:hover { transform: translateX(4px) scale(1.06); }
.float-social a span {
  position: absolute; left: 56px; white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .78rem;
  font-weight: 600; opacity: 0; pointer-events: none; transform: translateX(-6px); transition: all .2s;
}
.float-social a:hover span { opacity: 1; transform: none; }
.fs-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fs-fb { background: #1877f2; }
.fs-tt { background: #111; }
.fs-wa { background: var(--wa); }
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 75; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem;
  box-shadow: 0 12px 30px rgba(15, 42, 85, .3); transition: transform .25s;
}
.fab:hover { transform: scale(1.08); }
.fab-wa { background: var(--wa); }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-bot { background: var(--grad-brand); }
.fab-label {
  position: absolute; right: 74px; white-space: nowrap; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--navy);
  font-size: .82rem; font-weight: 700; font-family: var(--font-head); box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: all .25s; pointer-events: none;
}
.fab:hover .fab-label { opacity: 1; transform: none; }
.fab-hint { opacity: 1; transform: none; animation: hintOut .4s 6s forwards; }
@keyframes hintOut { to { opacity: 0; transform: translateX(8px); } }
.to-top {
  position: fixed; right: 30px; bottom: 180px; z-index: 74; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--navy);
  box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Asistente virtual ---------- */
.chat {
  position: fixed; right: 22px; bottom: 100px; z-index: 90; width: 390px; max-width: calc(100vw - 32px); height: 590px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: all .3s cubic-bezier(.2, .9, .3, 1.2);
}
.chat.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--grad-navy); color: #fff; }
.chat-avatar { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); font-size: 1.2rem; }
.chat-avatar::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--wa); border: 2px solid var(--navy); }
.chat-head strong { display: block; font-family: var(--font-head); }
.chat-head small { font-size: .78rem; color: rgba(255, 255, 255, .7); }
.chat-close { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.chat-close:hover { background: rgba(255, 255, 255, .2); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: .9rem; line-height: 1.5; animation: msgIn .3s ease; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg strong { color: var(--navy); }
.msg-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; animation: msgIn .3s ease; }
.quick button { padding: 8px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--blue); color: var(--blue); font-size: .8rem; font-weight: 600; transition: all .2s; }
.quick button:hover { background: var(--blue); color: #fff; }
.chat-product { display: flex; gap: 12px; align-items: center; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; }
.chat-product svg { width: 76px; height: 64px; flex-shrink: 0; background: var(--bg-tint); border-radius: 10px; }
.chat-product strong { display: block; font-size: .85rem; line-height: 1.3; }
.chat-product small { color: var(--muted); font-size: .76rem; }
.chat-product-actions { display: flex; gap: 6px; margin-top: 6px; }
.chat-product-actions a, .chat-product-actions button { padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 700; }
.chat-product-actions a { background: var(--bg-tint); color: var(--navy); }
.chat-product-actions button { background: var(--orange); color: #fff; }
.chat-foot { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-foot input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); outline: none; font-size: .9rem; }
.chat-foot input:focus { border-color: var(--blue); }
.chat-foot button { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-orange); color: #fff; flex-shrink: 0; }

/* ---------- Carrito / Pedido ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 26, 56, .5); backdrop-filter: blur(3px); z-index: 95; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 460px; max-width: 100%; background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.drawer-head h3 i { color: var(--orange); }
.drawer-steps { display: flex; gap: 8px; padding: 14px 24px; background: var(--bg-soft); font-size: .8rem; font-weight: 700; font-family: var(--font-head); }
.drawer-steps span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.drawer-steps span b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .72rem; }
.drawer-steps span.on { color: var(--navy); }
.drawer-steps span.on b { background: var(--grad-brand); color: #fff; }
.drawer-steps .sep { flex: 1; height: 2px; background: var(--line); align-self: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: #fff; }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item svg { width: 82px; height: 70px; background: var(--bg-tint); border-radius: 12px; }
.cart-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; line-height: 1.3; }
.cart-item small { color: var(--muted); font-size: .78rem; }
.cart-item .ci-price { font-family: var(--font-head); font-weight: 800; color: var(--navy); text-align: right; }
.cart-item .ci-remove { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.cart-item .ci-remove:hover { color: #e5484d; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; background: #fff; }
.qty button { width: 34px; height: 34px; color: var(--navy); font-weight: 700; transition: background .2s; }
.qty button:hover { background: var(--bg-tint); }
.qty input { width: 44px; height: 34px; border: 0; text-align: center; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.lg button { width: 48px; height: 50px; font-size: 1.1rem; }
.qty.lg input { width: 60px; height: 50px; font-size: 1.1rem; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart-total span { color: var(--muted); font-size: .9rem; }
.cart-total strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.cart-empty { text-align: center; padding: 50px 10px; }
.cart-empty > i { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2rem; background: var(--bg-tint); color: var(--blue); }
.cart-empty h4 { font-size: 1.1rem; }
.cart-empty p { color: var(--muted); font-size: .9rem; }
.checkout-summary { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: .86rem; }
.checkout-summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.checkout-summary div:last-child { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 800; color: var(--navy); }
.drawer .form-grid { grid-template-columns: 1fr; gap: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; transition: all .35s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast i { color: var(--amber); }
.toast button { color: var(--amber); font-weight: 700; margin-left: 6px; text-decoration: underline; }

/* ---------- Página de producto ---------- */
.breadcrumb { padding: 22px 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb i { font-size: .65rem; }
.breadcrumb strong { color: var(--navy); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding-bottom: 80px; }
.pd > *, .hero .container > *, .contact-grid > * { min-width: 0; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-main { position: relative; aspect-ratio: 6 / 5; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff 0%, #eaf1fb 100%); border: 1px solid var(--line); }
.pd-main svg { width: 100%; height: 100%; animation: fadeImg .45s ease; }
@keyframes fadeImg { from { opacity: 0; transform: scale(.97); } }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pd-thumb { aspect-ratio: 6 / 5; border-radius: 16px; overflow: hidden; background: var(--bg-soft); border: 2px solid transparent; transition: border-color .2s; position: relative; }
.pd-thumb.active { border-color: var(--orange); }
.pd-thumb svg { width: 100%; height: 100%; }
.pd-thumb span { position: absolute; left: 8px; bottom: 8px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--navy); }
.pd-info .product-code { font-size: .8rem; }
.pd-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; }
.pd-lead { font-size: 1.05rem; color: var(--text); }
.pd-price { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; background: var(--bg-soft); margin: 24px 0; }
.pd-price .price { font-size: 2.3rem; }
.pd-price .unit-price { padding: 7px 12px; border-radius: 10px; background: #fff; font-size: .85rem; font-weight: 700; color: var(--teal); }
.pd-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.pd-spec { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.pd-spec i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); }
.pd-spec small { display: block; color: var(--muted); font-size: .75rem; }
.pd-spec strong { font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.pd-buy .qty { margin: 0; }
.pd-buy .btn { flex: 1; min-width: 190px; }
.pd-subtotal { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.pd-subtotal strong { color: var(--navy); font-family: var(--font-head); }
.pd-guarantee { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .85rem; }
.pd-guarantee span { display: flex; align-items: center; gap: 8px; }
.pd-guarantee i { color: var(--teal); }
.tabs { margin-top: 30px; }
.tab-list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab-list button { padding: 12px 16px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-list button.active { color: var(--navy); border-color: var(--orange); }
.tab-panel { display: none; animation: msgIn .3s ease; }
.tab-panel.active { display: block; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: var(--teal); margin-top: 5px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.spec-table td { color: var(--ink); font-weight: 600; }
.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.use-grid span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-weight: 600; font-size: .9rem; color: var(--navy); }
.use-grid i { color: var(--orange); }
.note { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.not-found { text-align: center; padding: 100px 0; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features, .counters { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .burger { display: grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px;
    background: #fff; box-shadow: 0 20px 30px rgba(15, 42, 85, .1); transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--bg-soft); }
  .header-actions .btn { display: none; }
  .hero .container, .pd, .contact-grid, .assist-cta { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 80px; }
  .hero-visual { min-height: 400px; max-width: 560px; width: 100%; margin: 0 auto; }
  .product-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pd-gallery { position: static; }
  .topbar-msg span.long { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .topbar-links a.mail, .topbar-social { display: none; }
  .logo { width: 150px; }
  .product-grid, .guide-grid, .features, .form-grid, .pd-specs, .use-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .hero-visual { min-height: 340px; }
  .hero-card.main { inset: 0 30px 50px 0; }
  .hero-card.side { width: 170px; }
  .hero-chip { font-size: .75rem; padding: 9px 12px; }
  .hero-chip.c1 { left: 0; top: 10px; }
  .hero-chip.c2 { right: 0; }
  .hero-chip i { width: 30px; height: 30px; }
  .hero-stats { gap: 20px; }
  .hero-cta .btn { flex: 1; }
  .assist-cta { padding: 34px 24px; }
  .form-card, .contact-info { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-social { top: auto; bottom: 22px; left: 16px; transform: none; flex-direction: row; gap: 8px; }
  .float-social a { width: 40px; height: 40px; font-size: .95rem; border-radius: 12px; }
  .float-social a span { display: none; }
  .float-actions { right: 16px; bottom: 76px; }
  .fab { width: 54px; height: 54px; font-size: 1.4rem; }
  .fab-label { display: none; }
  .to-top { right: 21px; bottom: 216px; }
  .chat { right: 12px; left: 12px; width: auto; max-width: none; bottom: 12px; height: auto; top: 80px; max-height: none; }
  .pd-buy .btn { min-width: 100%; }
  .footer-bottom { padding-bottom: 80px; }
}

/* ---------- Fotos de producto ---------- */
.product-media { overflow: hidden; }
.product-media img, .pd-main img, .pd-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 64%; transition: transform .6s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }
.media-units, .media-tag {
  position: absolute; z-index: 1; font-family: var(--font-head); font-weight: 700; border-radius: 999px;
}
.media-units { top: 16px; left: 16px; padding: 6px 12px; font-size: .72rem; color: #fff; background: var(--grad-orange); box-shadow: 0 6px 14px rgba(247, 147, 30, .3); }
.media-tag {
  left: 16px; bottom: 16px; padding: 8px 14px; font-size: .8rem; color: var(--navy);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.media-tag i { color: var(--blue); margin-right: 4px; }
.pd-main img { animation: fadeImg .45s ease; }
.pd-thumbs { grid-template-columns: repeat(3, 1fr); }
.hero-card.side img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 62%; border-radius: 22px; }
.cart-item img { width: 82px; height: 70px; object-fit: cover; object-position: center 64%; border-radius: 12px; }
.chat-product img { width: 76px; height: 64px; flex-shrink: 0; object-fit: cover; object-position: center 64%; border-radius: 10px; }

/* ---------- Precio por paquete ---------- */
.view-btn { white-space: nowrap; }
.pack-price {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 8px;
  background: #e6f7f7; color: #0d7f7d; font-family: var(--font-body); font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.pack-price i { font-size: .7rem; }

/* ---------- Compra por saco o paquete ---------- */
.pd-label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); margin: 0 0 10px; }
.buy-format { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.buy-format button {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.buy-format button:hover { border-color: var(--blue); }
.buy-format button.on { border-color: var(--orange); background: #fff8ef; box-shadow: 0 8px 20px rgba(247, 147, 30, .15); }
.buy-format i { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); }
.buy-format button.on i { background: var(--grad-orange); color: #fff; }
.buy-format strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.buy-format small { display: block; color: var(--muted); font-size: .78rem; }
.buy-format b { grid-column: 2; font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-top: 4px; }
.unit-switch { display: flex; width: max-content; margin-top: 8px; padding: 3px; border-radius: 10px; background: var(--bg-soft); gap: 2px; }
.unit-switch button { padding: 5px 10px; border-radius: 8px; font-size: .74rem; font-weight: 700; color: var(--muted); transition: all .2s; }
.unit-switch button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.cart-item .qty { display: flex; width: max-content; }
.ci-bags { display: block; text-align: right; color: var(--muted); font-size: .74rem; }
.chat-product-actions button.alt { background: var(--navy); }
@media (max-width: 420px) { .buy-format { grid-template-columns: 1fr; } }

/* ---------- Disponibilidad (gestionada desde el panel) ---------- */
.product-badge.stock-out { background: #e5484d; }
.product-badge.stock-ask { background: var(--orange); }
.add-btn:disabled { background: #c9d1dc; box-shadow: none; cursor: not-allowed; transform: none; }
.stock-alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff0f0; color: #b42328; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.stock-alert.ask { background: #fff6e8; color: #a8600a; }
.pill-out { display: inline-block; padding: 5px 10px; border-radius: 8px; background: #fff0f0; color: #b42328; font-size: .75rem; font-weight: 700; }
.fs-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fs-tt { background: #111; }

[hidden] { display: none !important; }

/* Acceso al panel en el pie de página */
.footer-admin { display: inline-flex; align-items: center; gap: 5px; opacity: .7; transition: opacity .2s, color .2s; }
.footer-admin:hover { opacity: 1; color: var(--amber); }
.footer-admin i { font-size: .7rem; }
