:root {
  --ink: #111827;
  --muted: #64748b;
  --soft: #f3f6fb;
  --panel: #ffffff;
  --line: #e2e8f0;
  --blue: #2563eb;
  --green: #0f9f6e;
  --dark: #0b1220;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
  --radius: 8px;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font-body); color: var(--ink); background: #f6f8fb; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.section,
.product-section,
.family-section,
.packs-section,
.financing-section,
.mazic-order-section,
.shop-family {
  scroll-margin-top: 148px;
}

.family-section,
.packs-section,
.financing-section,
.mazic-order-section,
.shop-family,
.margin-panel {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 900px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  background: rgba(6, 12, 24, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.brand img { width: 148px; height: auto; }
.brand-store {
  display: grid;
  gap: 3px;
  min-width: max-content;
  padding-left: 12px;
  border-left: 1px solid rgba(191, 219, 254, .48);
  line-height: 1;
  text-transform: uppercase;
}
.brand-store strong {
  color: #ffffff;
  font: 800 13px/1 var(--font-display);
  letter-spacing: .12em;
}
.brand-store small {
  color: #93c5fd;
  font: 700 8px/1 var(--font-body);
  letter-spacing: .13em;
}
.nav { display: flex; gap: 22px; margin-left: auto; color: #cbd5e1; font-size: 14px; font-weight: 600; }
.nav a:hover { color: white; }
.cart-button { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: white; color: var(--dark); padding: 11px 16px; font-weight: 700; }
.cart-button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; background: var(--blue); color: white; }

.hero {
  max-width: none;
  margin: 0;
  padding: 42px max(32px, calc((100vw - 1220px) / 2 + 32px)) 50px;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1fr);
  gap: 38px;
  align-items: center;
  background:
    radial-gradient(circle at 70% 18%, rgba(37, 99, 235, .24), transparent 32%),
    linear-gradient(135deg, #050a14 0%, #0b1220 52%, #122a56 100%);
  color: white;
}
.hero-copy { padding-top: 0; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin-bottom: 10px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(42px, 4.6vw, 62px); color: inherit; }
.hero-text { max-width: 640px; margin-top: 20px; color: #dbeafe; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; border: 1px solid transparent; padding: 0 18px; font-weight: 800; }
.btn-primary { background: #20d39b; color: #032217; }
.btn-soft { background: white; color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--dark); color: white; border: 0; }
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid rgba(219, 234, 254, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}
.hero-contact span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: white;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}
.hero-contact a:hover {
  background: white;
  color: var(--dark);
}

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #dbeafe; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 132px));
  gap: 10px;
  margin-top: 18px;
}
.hero-stats span {
  display: flex;
  flex-direction: column;
  min-height: 72px;
  justify-content: center;
  border-left: 2px solid rgba(32, 211, 155, .85);
  padding-left: 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.hero-stats strong {
  color: white;
  font: 700 26px/1 var(--font-display);
}

.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  margin-bottom: 128px;
  overflow: visible;
}
.carousel-track {
  position: absolute;
  inset: 0 0 84px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, white, #eef4fb);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}
.carousel-slide div {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -78px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .14);
}
.carousel-slide span {
  display: inline-flex;
  align-items: center;
  grid-row: 1 / span 2;
  min-height: 26px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.carousel-slide strong {
  display: block;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 900 20px/1.12 var(--font-display);
}
.carousel-slide p {
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -124px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  pointer-events: none;
}
.carousel-controls button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--dark);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.carousel-dots {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .22);
  box-shadow: none;
  font-size: 0;
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.active {
  width: 22px;
  background: #20d39b;
}

.category-strip {
  position: sticky;
  top: 72px;
  z-index: 15;
  max-width: none;
  margin: 0;
  padding: 14px max(32px, calc((100vw - 1220px) / 2 + 32px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  background: rgba(246, 248, 251, .94);
  backdrop-filter: blur(16px);
}
.category-chip { flex: 0 0 auto; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 10px 14px; color: var(--muted); font-weight: 800; }
.category-chip.active { background: var(--dark); border-color: var(--dark); color: white; }

.section { max-width: 1220px; margin: 0 auto; padding: 42px 32px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: end; margin-bottom: 22px; }
.section-head h2 { font-size: 36px; }
.section-head p { color: var(--muted); }

.flow-section { padding-top: 28px; padding-bottom: 20px; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.flow-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  overflow: hidden;
  position: relative;
}
.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background: linear-gradient(120deg, transparent 0%, white 55%, transparent 100%);
  transform: translateX(-38%);
}
.flow-quote { background: linear-gradient(135deg, #0b1220, #1e40af); }
.flow-order { background: linear-gradient(135deg, #052e1b, #0f9f6e); }
.flow-card span {
  position: relative;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 900;
}
.flow-order span { color: #bbf7d0; }
.flow-card h2 {
  position: relative;
  max-width: 520px;
  margin-top: 8px;
  font-size: 34px;
}
.flow-card p {
  position: relative;
  max-width: 560px;
  margin-top: 10px;
  color: rgba(255,255,255,.78);
}
.flow-link {
  position: relative;
  align-self: flex-start;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--dark);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
}

.financing-section {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}
.financing-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b1220, #10275a);
  color: white;
  padding: 32px;
  box-shadow: var(--shadow);
}
.financing-kicker {
  align-self: flex-start;
  margin: 0 0 12px;
  border: 1px solid rgba(251, 191, 36, .36);
  border-radius: 999px;
  background: rgba(251, 191, 36, .12);
  color: #fde68a;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.financing-copy h2 {
  max-width: 560px;
  font-size: 46px;
}
.financing-lead {
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.65;
}
.financing-legal {
  margin-top: 12px;
  color: #93a4ba;
  font-size: 12px;
  font-weight: 700;
}
.financing-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}
.financing-points span {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(118px, 136px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  padding: 12px 14px;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
}
.financing-points strong {
  display: block;
  color: #fbbf24;
  min-width: 0;
  white-space: nowrap;
  font: 900 23px/1.05 var(--font-display);
}
.financing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.financing-visual {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
}
.financing-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: white;
}

.mazic-order-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}
.mazic-order-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.mazic-order-copy h2 {
  max-width: 520px;
  font-size: 38px;
}
.mazic-order-copy p {
  margin-top: 12px;
  color: var(--muted);
}
.mazic-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.mazic-offer-grid span {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.mazic-offer-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font: 700 24px/1 var(--font-display);
}
.mazic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.mazic-order-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(180px, .72fr);
  gap: 14px;
  align-items: start;
}
.mazic-order-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}
.mazic-order-gallery > div {
  display: grid;
  gap: 12px;
}
.mazic-main-img {
  aspect-ratio: 1 / 1;
}
.mazic-order-gallery .mazic-offer-img {
  aspect-ratio: 1058 / 1487;
  max-height: 720px;
  justify-self: center;
  background: #f8f5ff;
}
.mazic-side-img {
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.family-section { padding-top: 24px; }
.category-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.category-panel {
  min-height: 176px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, white, #f8fbff);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}
.category-panel:hover {
  border-color: rgba(37, 99, 235, .35);
  transform: translateY(-2px);
  transition: transform .18s ease, border-color .18s ease;
}
.category-panel span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.category-panel strong {
  display: block;
  margin-top: 6px;
  font: 700 24px/1.05 var(--font-display);
}
.category-panel small {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--soft);
  color: #334155;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.technical-guides {
  padding-top: 28px;
  padding-bottom: 28px;
}
.guides-head { margin-bottom: 16px; }
.technical-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.technical-guide {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}
.technical-guide h3 {
  max-width: 430px;
  margin-top: 8px;
  font-size: 26px;
}
.technical-guide p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
}
.guide-brand {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.guide-piocreat { background: linear-gradient(135deg, #ffffff, #f0fdfa); }
.guide-lilivis { background: linear-gradient(135deg, #ffffff, #f5f3ff); }
.guide-cadcam { background: linear-gradient(135deg, #ffffff, #eff6ff); }
.guide-mazic { background: linear-gradient(135deg, #ffffff, #fdf4ff); }
.guide-download { align-self: flex-start; }
.category-panel img {
  width: 142px;
  height: 128px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  filter: drop-shadow(0 18px 18px rgba(15, 23, 42, .12));
}

.product-sections {
  display: grid;
  gap: 34px;
}
.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: end;
  margin: -4px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}
.search-box {
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.search-box input {
  display: block;
  margin-top: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding-left: 16px;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}
.shop-count {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.shop-count strong {
  color: var(--ink);
  font: 900 28px/1 var(--font-display);
}
.empty-results {
  border: 1px dashed #bfdbfe;
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 24px;
  color: var(--muted);
}
.empty-results strong {
  display: block;
  color: var(--ink);
  font: 800 24px/1.1 var(--font-display);
}
.empty-results span {
  display: block;
  margin-top: 6px;
}
.empty-results .btn {
  margin-top: 16px;
}
.shop-family {
  padding-top: 4px;
}
.family-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.family-head h3 {
  font-size: 32px;
}
.family-head p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.brand-group-stack {
  display: grid;
  gap: 22px;
}
.brand-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.brand-title span {
  color: var(--ink);
  font: 900 18px/1.1 var(--font-display);
}
.brand-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scanner-group-stack {
  display: grid;
  gap: 26px;
}
.scanner-group {
  display: grid;
  gap: 14px;
}
.scanner-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .06));
}
.scanner-group-head span {
  color: var(--ink);
  font: 900 20px/1.05 var(--font-display);
}
.scanner-group-head p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}
.scanner-group-head small {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 100%; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px rgba(15, 23, 42, .06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 18px 44px rgba(15, 23, 42, .1); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  min-height: 28px;
  background: var(--gold);
  color: #3b2500;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: 6px 11px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.product-card[data-category="recambios"] .badge {
  background: rgba(239, 246, 255, .96);
  color: #0f3f7a;
  border-color: rgba(147, 197, 253, .72);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}
.product-card[data-category="consumibles"] .badge {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
}
.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, .08), transparent 56%),
    linear-gradient(180deg, white, #eef4fb);
  border-bottom: 1px solid var(--line);
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 8px;
  pointer-events: none;
}
.product-media img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
}
.product-card-sheet .product-media {
  aspect-ratio: 4 / 5;
  padding: 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.product-card-sheet .product-media::after {
  inset: 8px;
}
.product-card-sheet .product-media img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.product-card[data-category="consumibles"] .product-media img,
.product-card[data-category="recambios"] .product-media img {
  max-width: 82%;
  max-height: 82%;
}
.product-card[data-category="clinica"] .product-media img,
.product-card[data-category="cadcam"] .product-media img,
.product-card[data-category="diagnostico"] .product-media img {
  max-width: 80%;
  max-height: 80%;
}
.product-card[data-product-id="cingol-x3"] .product-media img {
  max-width: 92%;
  max-height: 86%;
}
.product-card[data-category="softwarecam"] .product-media img {
  max-width: 86%;
  max-height: 86%;
}
.product-card[data-product-id="lilivis-print"] .product-media img,
.product-card[data-product-id="lilivis-uv"] .product-media img,
.product-card[data-product-id="lilivis-print-uv"] .product-media img {
  max-width: 68%;
  max-height: 68%;
}
.product-card[data-product-id="lilivis-l-scan"] .product-media img,
.product-card[data-product-id="lilivis-mill"] .product-media img {
  max-width: 72%;
  max-height: 72%;
}
.product-card[data-product-id="pionext-mini"] .product-media img,
.product-card[data-product-id="pionext-ultra"] .product-media img,
.product-card[data-product-id="shining-elite"] .product-media img,
.product-card[data-product-id="shining-elite-wireless"] .product-media img {
  max-width: 72%;
  max-height: 72%;
}
.product-card[data-product-id="coxo-scanner"] .product-media img,
.product-card[data-product-id="dof-freedom-air"] .product-media img {
  max-width: 82%;
  max-height: 82%;
}
.product-card[data-product-id="medit-i700"] .product-media img {
  max-width: 72%;
  max-height: 88%;
}
.product-card[data-product-id="shining-elf"] .product-media img,
.product-card[data-product-id="panda-smart"] .product-media img,
.product-card[data-product-id="lilivis-l-scan-escaneo"] .product-media img {
  max-width: 74%;
  max-height: 74%;
}
.product-card[data-product-id="millbox-standard"] .product-media img,
.product-card[data-product-id="millbox-expert"] .product-media img {
  max-width: 78%;
  max-height: 78%;
}
.product-card[data-category="produccion"] .product-media img,
.product-card[data-category="ceramica"] .product-media img {
  max-width: 74%;
  max-height: 76%;
}
.product-card[data-product-id="deprag-s7"] .product-media img,
.product-card[data-product-id="kdf-zircom-standard"] .product-media img {
  max-width: 66%;
  max-height: 76%;
}
.product-card[data-product-id="kdf-zircom-plus"] .product-media img {
  max-width: 72%;
  max-height: 86%;
}
.product-card[data-product-id="kdf-zircom-speed"] .product-media img {
  max-width: 72%;
  max-height: 72%;
}
.product-card[data-product-id="duotron-t3200"] .product-media img {
  max-width: 66%;
  max-height: 72%;
}
.product-card[data-product-id="tornado-ultrasonidos"] .product-media img {
  max-width: 72%;
  max-height: 76%;
}
.product-card[data-product-id="oferta-mazic-horno-duotron"] .product-media img {
  max-width: 78%;
  max-height: 78%;
}
.product-card.product-card-sheet .product-media img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.product-body { padding: 18px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.product-category { min-width: 0; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-mode { flex: 0 1 auto; max-width: 100%; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: .06em; white-space: normal; }
.product-mode.quote { background: #eef2ff; color: #3730a3; }
.product-mode.direct { background: #dcfce7; color: #166534; }
.product-body h3 { margin-top: 7px; font-size: 21px; }
.product-body p { margin-top: 8px; color: var(--muted); font-size: 14px; min-height: 44px; }
.product-body ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 14px; }
.product-body li { border-radius: 999px; background: var(--soft); color: #334155; padding: 6px 9px; font-size: 12px; font-weight: 700; }
.product-color-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  margin-top: 12px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}
.product-color-preview > div { display: grid; gap: 3px; min-width: 0; }
.product-color-preview span { color: #42658b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.product-color-preview strong { color: #11264a; font-size: 14px; line-height: 1.25; }
.product-color-preview img { flex: 0 0 auto; width: 92px; height: 92px; margin: -13px -11px -13px 8px; object-fit: contain; }
.product-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px solid var(--line); background: #fbfdff; }
.product-buy > div:first-child { min-width: 0; }
.product-buy strong { display: block; font-family: var(--font-display); font-size: 22px; }
.product-buy span {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  color: #475569;
  background: #eef4fb;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-card[data-category="consumibles"] .product-buy span {
  color: #3b2f74;
  background: #f4f1ff;
  border-color: #ddd6fe;
}
.product-card[data-category="consumibles"] .product-body li {
  background: #f5f7ff;
  color: #263b72;
}
.buy-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}
.buy-actions small {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}
.buy-actions .btn {
  min-width: 138px;
}

.packs-section { padding-top: 26px; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack-card { background: var(--dark); color: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pack-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, .08), transparent 56%),
    white;
}
.pack-image img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
}
.pack-content { padding: 20px; }
.pack-content span { color: #93c5fd; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.pack-content h3 { margin-top: 8px; font-size: 24px; }
.pack-content p { margin-top: 10px; color: #cbd5e1; font-size: 14px; }
.pack-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.pack-foot strong { font-family: var(--font-display); font-size: 24px; }

.margin-panel { max-width: 1156px; margin: 30px auto 60px; padding: 34px; border-radius: var(--radius); background: linear-gradient(135deg, #0b1220, #12376b); color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.margin-panel .eyebrow { color: #93c5fd; }
.margin-panel h2 { font-size: 38px; }
.margin-panel p { margin-top: 12px; color: #cbd5e1; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-grid span { display: flex; flex-direction: column; gap: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 16px; color: #cbd5e1; }
.metric-grid strong { color: white; font: 700 28px var(--font-display); }

.cart-drawer { position: fixed; inset: 0; z-index: 40; display: none; justify-content: flex-end; background: rgba(15, 23, 42, .45); }
.cart-drawer.open { display: flex; }
.cart-panel { width: min(440px, 100%); height: 100%; background: white; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.commerce-panel { width: min(760px, 100%); overflow: auto; }
.cart-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.cart-head h2 { font-size: 30px; }
.icon-close { border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 50%; font-size: 26px; }
.lead-form, .commerce-block { margin-top: 18px; }
.lead-form, .commerce-block, .commerce-title {
  display: grid;
  gap: 12px;
}
.form-intro {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 3px solid #2563eb;
  background: #f1f7ff;
  color: #36506f;
  font-size: 12px;
  line-height: 1.45;
}
.form-intro strong {
  color: #112a4d;
  font: 700 15px var(--font-display);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
label em, .label-optional {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
label em { color: #1d4ed8; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font: 500 14px var(--font-body);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .45);
}
input.input-invalid, textarea.input-invalid, select.input-invalid {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}
.commerce-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}
.quote-block { background: #f8fbff; }
.order-block { background: #f7fef9; }
.chairside-config {
  display: grid;
  gap: 12px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: white;
  padding: 12px;
}
.chairside-config[hidden] {
  display: none;
}
.chairside-config > span {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.module-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.module-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 8px 9px;
  color: #334155;
  font-size: 11px;
}
.module-options input {
  width: auto;
}
.commerce-title {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.commerce-title span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.commerce-title strong {
  display: block;
  margin-top: 3px;
  font: 700 22px var(--font-display);
}
.commerce-title small {
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}
.cart-items { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; overflow: visible; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 12px; }
.order-line { grid-template-columns: minmax(0, 1fr) auto auto; }
.cart-line span, .empty-cart { color: var(--muted); font-size: 13px; }
.cart-line button { border: 0; background: transparent; color: #ef4444; font-weight: 800; }
.qty-control { display: inline-grid; grid-template-columns: 30px 34px 30px; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { color: var(--ink); background: var(--soft); width: 30px; height: 30px; }
.qty-control span { text-align: center; color: var(--ink); font-weight: 900; }
.mazic-options {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: #f8fbff;
}
.mazic-options p {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}
.mazic-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.payment-options { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-options label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: white; padding: 8px 10px; }
.payment-options input { width: auto; }
.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 8px;
}
.cart-total div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}
.cart-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.cart-total strong {
  min-width: 0;
  text-align: right;
  color: var(--ink);
  font: 800 16px var(--font-display);
  overflow-wrap: anywhere;
}
.cart-total-final {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.cart-total-final span { color: var(--ink); }
.cart-total-final strong {
  color: var(--blue);
  font-size: 28px;
}
.cart-whatsapp { margin-top: 16px; width: 100%; }
.btn-payment { background: #0b1220; color: white; width: 100%; margin-top: 10px; }
.btn-payment[aria-disabled="true"] { background: white; color: var(--ink); border-color: var(--line); }
.submit-status {
  min-height: 18px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.payment-note { color: var(--muted); font-size: 12px; }

.footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 28px 32px; color: var(--muted); }
.footer strong { color: var(--ink); }

@media (max-width: 1020px) {
  .hero, .section-head, .family-head, .margin-panel, .mazic-order-section, .financing-section, .shop-toolbar { grid-template-columns: 1fr; }
  .hero-carousel { justify-self: center; max-width: 680px; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 128px; }
  .category-panels, .technical-guides-grid, .product-grid, .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .nav { display: none; }
  .brand-store small { display: none; }
  .hero, .section, .category-strip { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 40px; }
  .category-strip { top: 72px; padding-top: 8px; padding-bottom: 14px; }
  .hero-carousel { aspect-ratio: 3 / 4; margin-bottom: 132px; }
  .carousel-track { inset: 0 0 88px; }
  .carousel-slide img { padding: 12px; }
  .carousel-slide div {
    left: 0;
    right: 0;
    bottom: -94px;
    min-height: 70px;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .carousel-slide span { grid-row: auto; min-height: 22px; font-size: 10px; }
  .carousel-slide strong { font-size: 17px; }
  .carousel-slide p { display: none; }
  .carousel-controls { bottom: -130px; }
  .carousel-controls button { width: 34px; height: 34px; font-size: 22px; }
  .carousel-dots {
    max-width: calc(100vw - 120px);
    overflow: hidden;
    justify-content: center;
    gap: 5px;
  }
  .carousel-dots button {
    width: 7px;
    height: 7px;
  }
  .carousel-dots button.active {
    width: 18px;
  }
  .category-panels, .technical-guides-grid, .product-grid, .pack-grid, .metric-grid { grid-template-columns: 1fr; }
  .category-panel { grid-template-columns: minmax(0, 1fr) 120px; min-height: 150px; padding: 16px; }
  .category-panel img { width: 116px; height: 108px; padding: 6px; }
  .section-head h2, .margin-panel h2 { font-size: 30px; }
  .family-head h3 { font-size: 26px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card h2 { font-size: 28px; }
  .form-row, .commerce-title, .order-line, .mazic-fields, .mazic-order-gallery, .mazic-offer-grid, .module-options { grid-template-columns: 1fr; }
  .financing-points span {
    grid-template-columns: minmax(106px, 118px) minmax(0, 1fr);
    gap: 10px;
  }
  .financing-points strong { font-size: 21px; }
  .shop-toolbar { margin-top: 0; }
  .shop-count { min-height: 54px; }
  .product-buy { grid-template-columns: 1fr; }
  .buy-actions { justify-items: stretch; }
  .buy-actions .btn { width: 100%; }
  .financing-copy { padding: 24px; }
  .financing-copy h2 { font-size: 32px; }
  .financing-points span { min-height: 64px; }
  .product-meta { align-items: flex-start; flex-direction: column; }
}

/* Asesor comercial IA */
.sales-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.sales-chat button,
.sales-chat textarea {
  font: inherit;
}

.sales-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #0b1d36;
  color: #fff;
  box-shadow: 0 12px 34px rgba(10, 28, 55, .24);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.sales-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(10, 28, 55, .3);
}

.sales-chat-launcher-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22d3a5;
  box-shadow: 0 0 0 4px rgba(34, 211, 165, .16);
}

.sales-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  width: min(390px, calc(100vw - 28px));
  height: min(638px, calc(100vh - 34px));
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 43, 82, .14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 28, 55, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.sales-chat.is-open .sales-chat-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sales-chat.is-open .sales-chat-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.sales-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 16px 15px;
  background: #0b1d36;
  color: #fff;
}

.sales-chat-title {
  display: grid;
  gap: 3px;
}

.sales-chat-title strong {
  font-size: 15px;
  line-height: 1.1;
}

.sales-chat-title span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.sales-chat-title span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3a5;
  content: "";
}

.sales-chat-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-chat-close,
.sales-chat-min {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.sales-chat-min {
  font-size: 22px;
}

.sales-chat-close:hover,
.sales-chat-min:hover {
  background: rgba(255, 255, 255, .1);
}

/* Estado minimizado: colapsa el panel a su barra de cabecera (conserva la conversación) */
.sales-chat.is-min .sales-chat-panel {
  height: auto;
}

.sales-chat.is-min .sales-chat-header {
  cursor: pointer;
}

.sales-chat.is-min .sales-chat-messages,
.sales-chat.is-min .sales-chat-actions,
.sales-chat.is-min .sales-chat-form,
.sales-chat.is-min .sales-chat-privacy {
  display: none;
}

.sales-chat-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 16px;
  background: #f5f8fc;
  scrollbar-width: thin;
}

.sales-chat-message {
  display: flex;
}

.sales-chat-message p {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
}

.sales-chat-message-assistant p {
  border: 1px solid #e0e7f0;
  background: #fff;
  color: #1b2d46;
}

.sales-chat-message-user {
  justify-content: flex-end;
}

.sales-chat-message-user p {
  background: #1267d6;
  color: #fff;
}

.sales-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px 4px;
  background: #fff;
}

.sales-chat-actions[hidden] {
  display: none;
}

.sales-chat-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d9e3f0;
  border-radius: 999px;
  background: #fff;
  color: #24466f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.sales-chat-actions button:hover {
  border-color: #1267d6;
  background: #eef6ff;
}

.sales-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px 14px 8px;
  background: #fff;
}

.sales-chat-form textarea {
  min-height: 44px;
  max-height: 112px;
  resize: none;
  padding: 11px 12px;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  color: #142945;
  font-size: 13px;
  line-height: 1.35;
  outline: none;
}

.sales-chat-form textarea:focus {
  border-color: #1267d6;
  box-shadow: 0 0 0 3px rgba(18, 103, 214, .12);
}

.sales-chat-form button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #1267d6;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.sales-chat-form button:disabled,
.sales-chat-form textarea:disabled {
  cursor: wait;
  opacity: .65;
}

.sales-chat-privacy {
  margin: 0;
  padding: 0 14px 13px;
  background: #fff;
  color: #667993;
  font-size: 10px;
  line-height: 1.4;
}

.sales-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 20px;
}

.sales-chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f829a;
  animation: sales-chat-dot .8s infinite alternate;
}

.sales-chat-typing i:nth-child(2) { animation-delay: .15s; }
.sales-chat-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes sales-chat-dot {
  to { opacity: .28; transform: translateY(-3px); }
}

@media (max-width: 680px) {
  .sales-chat {
    right: 12px;
    bottom: 12px;
  }

  .sales-chat-panel {
    width: calc(100vw - 24px);
    height: min(610px, calc(100dvh - 24px));
    margin-bottom: 0;
  }

  .sales-chat-launcher {
    min-height: 46px;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Store polish: a calmer B2B presentation with a consistent commercial hierarchy. */
body {
  background: #f7f9fc;
}

.topbar {
  height: 76px;
  gap: 24px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: rgba(8, 18, 36, .96);
}

.nav {
  gap: 18px;
  font-size: 13px;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: #20d39b;
  transition: transform .18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cart-button {
  min-height: 44px;
  padding-inline: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.hero {
  position: relative;
  grid-template-columns: minmax(340px, .78fr) minmax(500px, 1.12fr);
  gap: clamp(28px, 4vw, 62px);
  padding-top: 48px;
  padding-bottom: 56px;
  color: var(--ink);
  background: #eff5fb;
  border-bottom: 1px solid #dbe5f1;
}

.hero::before {
  display: none;
}

.hero-copy,
.hero-carousel {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #1d4ed8;
}

.hero h1 {
  max-width: 640px;
  color: #081a35;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 850;
  letter-spacing: .01em;
}

.hero h1 span {
  display: inline-block;
  margin-left: .1em;
  padding: .08em .22em .1em;
  border-radius: 8px;
  background: linear-gradient(135deg, #0c51d8, #27a4f4);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .2);
  color: white;
  font-size: .58em;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: .18em;
}

.hero-text {
  max-width: 590px;
  color: #45566f;
  font-size: 18px;
  line-height: 1.6;
}

.hero-contact {
  max-width: 590px;
  border-color: #d7e3f0;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.hero-contact span {
  color: #1d4ed8;
}

.hero-contact a {
  border: 1px solid #dbe5f1;
  background: white;
  color: #0f2749;
}

.trust-row {
  gap: 8px;
  margin-top: 22px;
}

.trust-row span {
  border-color: #d7e3f0;
  background: rgba(255, 255, 255, .74);
  color: #39506e;
  padding: 7px 10px;
  font-size: 12px;
}

.hero-stats {
  max-width: 590px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid #d7e3f0;
}

.hero-stats span {
  min-height: 70px;
  border-left: 0;
  border-right: 1px solid #d7e3f0;
  padding: 13px 14px 8px 0;
  color: #5b6d86;
  font-size: 11px;
}

.hero-stats span + span {
  padding-left: 14px;
}

.hero-stats span:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: #0b2548;
  font-size: 16px;
}

.hero-carousel {
  max-width: 700px;
  justify-self: end;
  margin-bottom: 110px;
}

.carousel-track {
  inset: 0 0 72px;
}

.carousel-slide img {
  padding: 14px;
  border-color: #d8e2ef;
  background: white;
  box-shadow: 0 24px 54px rgba(15, 23, 42, .13);
}

.carousel-slide div {
  right: 18px;
  bottom: -66px;
  left: 18px;
  min-height: 56px;
  border-color: #d8e2ef;
  padding: 10px 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.carousel-slide strong {
  font-size: 18px;
}

.carousel-controls {
  bottom: -110px;
}

.category-strip {
  top: 76px;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(247, 249, 252, .96);
  border-bottom: 1px solid #e2e8f0;
}

.category-chip {
  padding: 9px 13px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03);
  font-size: 13px;
}

.section {
  max-width: 1280px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-head,
.family-head {
  gap: 42px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 720px;
  color: #0b2548;
  font-size: 39px;
}

.section-head p,
.family-head p:last-child {
  line-height: 1.6;
}

.flow-section {
  padding-top: 30px;
  padding-bottom: 18px;
}

.flow-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid #d5e0ec;
  border-radius: var(--radius);
  background: #d5e0ec;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}

.flow-card {
  min-height: 198px;
  border-radius: 0;
  padding: 26px;
}

.flow-card::before {
  display: none;
}

.flow-quote { background: #0d2346; }
.flow-order { background: #0b6d52; }

.flow-card h2 {
  font-size: 31px;
}

.financing-section {
  align-items: stretch;
  gap: 20px;
}

.financing-copy {
  padding: 34px;
  background: #0c2041;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.financing-copy h2 {
  font-size: 42px;
}

.financing-points span {
  background: rgba(255, 255, 255, .075);
}

.financing-visual {
  min-height: 100%;
  background: #fff;
}

.mazic-order-section {
  gap: 20px;
  align-items: stretch;
}

.mazic-order-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.mazic-order-copy h2 {
  color: #11234a;
}

.category-panels {
  gap: 12px;
}

.category-panel {
  min-height: 170px;
  grid-template-columns: minmax(0, 1fr) 132px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.category-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.category-panel strong {
  color: #102449;
  font-size: 22px;
}

.category-panel img {
  width: 124px;
  height: 116px;
  padding: 5px;
  background: #fff;
}

.technical-guides {
  padding-top: 36px;
}

.technical-guide {
  min-height: 194px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
}

.shop-toolbar {
  grid-template-columns: minmax(0, 1fr) 212px;
  gap: 16px;
  margin-bottom: 30px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.search-box input {
  border-color: #cbd8e7;
  background: #fbfdff;
}

.shop-count {
  border: 1px solid #dbe5ef;
  background: #f4f8fd;
}

.product-sections {
  gap: 48px;
}

.family-head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #dce6f1;
}

.family-head h3 {
  color: #0b2548;
  font-size: 34px;
}

.brand-title {
  margin: 2px 0 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.brand-title span {
  color: #173863;
}

.scanner-group-stack,
.brand-group-stack {
  gap: 26px;
}

.scanner-group-head {
  align-items: center;
  border-color: #d8e4f2;
  border-radius: var(--radius);
  background: #f2f7fc;
  padding: 15px 18px;
}

.product-grid {
  gap: 16px;
}

.product-card {
  border-color: #dce5ee;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .045);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #9fc0e9;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .1);
}
.product-card:focus-within {
  transform: translateY(-3px);
  border-color: #7baee0;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .1);
}

.product-media {
  background: #f8fafc;
}

.product-media::after {
  inset: 14px;
  border-color: #e5ebf1;
}

.product-media img {
  max-width: 74%;
  max-height: 74%;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  color: #11264a;
  font-size: 20px;
  line-height: 1.22;
}

.product-body p {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-body ul {
  margin-top: auto;
  padding-top: 14px;
}

.product-buy {
  min-height: 96px;
  align-items: end;
  padding: 14px 18px 16px;
  background: #fbfdff;
}

.product-buy strong {
  color: #0e274c;
  font-size: 21px;
}

.product-buy span {
  min-height: 27px;
  line-height: 1.35;
}

.buy-actions small {
  min-height: 14px;
  text-align: right;
}

.buy-actions .btn {
  min-width: 146px;
}

.product-mode,
.product-category {
  min-height: 22px;
  align-items: center;
}

.product-body ul li {
  line-height: 1.32;
}

.pack-card {
  border: 1px solid #0c274f;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .13);
}

.pack-image {
  background: #f8fafc;
}

.margin-panel {
  max-width: 1216px;
  margin-top: 18px;
  margin-bottom: 66px;
  background: #0c2041;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.footer {
  background: #fff;
}

.editorial-page {
  background: #f5f8fc;
}

.editorial-page .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.editorial-hero,
.editorial-summary,
.editorial-grid,
.editorial-faq,
.editorial-contact,
.editorial-toc {
  width: min(1216px, calc(100% - 48px));
  margin-inline: auto;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: 56px;
  align-items: center;
  min-height: 510px;
  padding-block: 72px 60px;
}

.editorial-hero h1 {
  max-width: 640px;
  margin: 10px 0 18px;
  color: #0a2448;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
}

.editorial-hero h1 span {
  color: #1768ec;
}

.editorial-hero > div > p:last-of-type {
  max-width: 600px;
  margin: 0;
  color: #51647e;
  font-size: 17px;
  line-height: 1.7;
}

.editorial-hero img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(23, 43, 77, .12);
}

.editorial-summary {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: end;
  padding: 34px 0;
  border-block: 1px solid #dbe5f1;
}

.editorial-summary h2,
.editorial-faq h2,
.editorial-contact h2 {
  margin: 8px 0 0;
  color: #0b2548;
  font-size: 35px;
  line-height: 1.08;
}

.editorial-summary > p {
  margin: 0;
  color: #536882;
  line-height: 1.7;
}

.editorial-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 30px;
}

.editorial-toc a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid #cad8e8;
  border-radius: 999px;
  background: #fff;
  color: #0b2548;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.editorial-toc a:hover {
  border-color: #1c66df;
  color: #1554ce;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}

.editorial-card {
  min-height: 342px;
  padding: 30px;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 40, 72, .05);
}

.editorial-card-featured {
  border-color: #0d3670;
  background: linear-gradient(135deg, #092758, #10478a);
}

.editorial-card h2 {
  margin: 9px 0 12px;
  color: #0a254a;
  font-size: 27px;
  line-height: 1.14;
}

.editorial-card > p:not(.eyebrow) {
  margin: 0;
  color: #59708c;
  line-height: 1.62;
}

.editorial-card ul {
  display: grid;
  gap: 7px;
  margin: 20px 0 22px;
  padding-left: 20px;
  color: #48617d;
  font-size: 14px;
  line-height: 1.45;
}

.editorial-card-featured h2,
.editorial-card-featured > p:not(.eyebrow),
.editorial-card-featured ul,
.editorial-card-featured .text-link {
  color: #fff;
}

.editorial-card-featured .eyebrow {
  color: #8fc0ff;
}

.editorial-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.editorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.text-link {
  color: #155dd7;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-faq {
  padding-bottom: 60px;
}

.editorial-faq > .eyebrow {
  margin-bottom: 8px;
}

.editorial-faq .store-faq {
  margin-top: 24px;
}

.editorial-contact {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
  padding: 32px;
  border-radius: 8px;
  background: #092758;
}

.editorial-contact h2,
.editorial-contact p {
  color: #fff;
}

.editorial-contact > div > p:last-of-type {
  max-width: 620px;
  margin: 12px 0 0;
  color: #d5e5fb;
  line-height: 1.6;
}

.editorial-contact .eyebrow {
  color: #8fc0ff;
}

.editorial-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1020px) {
  .editorial-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  .editorial-hero img {
    max-width: 680px;
  }

  .editorial-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .editorial-page .nav {
    display: none;
  }

  .editorial-hero,
  .editorial-summary,
  .editorial-grid,
  .editorial-faq,
  .editorial-contact,
  .editorial-toc {
    width: min(100% - 32px, 1216px);
  }

  .editorial-hero {
    padding-block: 42px;
  }

  .editorial-hero h1 {
    font-size: 40px;
  }

  .editorial-summary h2,
  .editorial-faq h2,
  .editorial-contact h2 {
    font-size: 29px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    min-height: 0;
    padding: 24px;
  }

  .editorial-card-wide {
    grid-column: auto;
  }

  .editorial-contact {
    display: grid;
    padding: 24px;
    margin-bottom: 44px;
  }

  .editorial-contact-actions {
    justify-content: flex-start;
  }
}

.store-answers {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 34px;
  border-top: 1px solid #dbe5f1;
  border-bottom: 1px solid #dbe5f1;
}

.store-answers-intro h2 {
  max-width: 650px;
  margin-top: 8px;
  color: #0b2548;
  font-size: 36px;
}

.store-answers-intro > p:last-of-type {
  max-width: 630px;
  margin-top: 15px;
  color: #52657f;
  line-height: 1.7;
}

.store-answers-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.store-answers-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #cad8e8;
  border-radius: 7px;
  background: white;
  color: #0b2548;
  font-size: 13px;
  font-weight: 850;
}

.store-answers-contact a:hover {
  border-color: #2266e3;
  color: #1554ce;
}

.store-faq {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e3ef;
  border-radius: 8px;
  background: #d9e3ef;
}

.store-faq > div {
  padding: 18px 20px;
  background: #fff;
}

.store-faq dt {
  color: #0b2548;
  font-weight: 900;
  line-height: 1.35;
}

.store-faq dd {
  margin: 7px 0 0;
  color: #58708e;
  font-size: 14px;
  line-height: 1.55;
}

.btn:focus-visible,
.category-chip:focus-visible,
.carousel-controls button:focus-visible,
.nav a:focus-visible,
.cart-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .36);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .topbar { padding-inline: 24px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-carousel { justify-self: center; }
  .section-head, .family-head { gap: 14px; }
  .store-answers { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 680px) {
  .topbar { height: 72px; padding-inline: 16px; }
  .brand img { width: 138px; }
  .brand { gap: 9px; }
  .brand-store { padding-left: 9px; }
  .brand-store strong { font-size: 11px; }
  .cart-button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .hero { gap: 26px; padding-top: 34px; padding-bottom: 42px; }
  .hero h1 { font-size: 46px; }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 180px; }
  .hero-contact { padding: 9px; }
  .hero-contact span { width: 100%; }
  .hero-contact a { font-size: 12px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats span,
  .hero-stats span + span { min-height: 56px; padding: 10px 0; border-right: 0; border-bottom: 1px solid #d7e3f0; }
  .hero-stats span:last-child { border-bottom: 0; }
  .hero-carousel { margin-bottom: 116px; }
  .carousel-track { inset-bottom: 76px; }
  .carousel-slide div { right: 0; bottom: -80px; left: 0; min-height: 64px; }
  .carousel-controls { bottom: -114px; }
  .category-strip { top: 72px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-head h2 { font-size: 31px; }
  .flow-grid { gap: 1px; }
  .flow-card { min-height: 174px; padding: 22px; }
  .flow-card h2 { font-size: 27px; }
  .financing-copy, .mazic-order-copy { padding: 24px; }
  .financing-copy h2 { font-size: 33px; }
  .store-answers { padding-top: 30px; padding-bottom: 30px; }
  .store-answers-intro h2 { font-size: 30px; }
  .store-faq > div { padding: 16px; }
  .category-panel { grid-template-columns: minmax(0, 1fr) 112px; }
  .category-panel img { width: 106px; height: 102px; }
  .shop-toolbar { grid-template-columns: 1fr; }
  .family-head { padding-bottom: 14px; }
  .family-head h3 { font-size: 28px; }
  .scanner-group-head { align-items: flex-start; }
  .scanner-group-head small { margin-top: 4px; }
  .product-buy { min-height: 0; }
  .buy-actions small { text-align: left; }
}

/* Conversión y consistencia visual de la tienda. */
.brand-store small {
  font-size: 10px;
}

.cart-button {
  min-height: 44px;
  font-size: 13px;
  font-weight: 850;
}

.flow-card {
  justify-content: flex-start;
}

.flow-card p {
  max-width: 510px;
}

.flow-card .flow-link {
  margin-top: auto;
}

.flow-note {
  position: relative;
  display: block;
  max-width: 460px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.category-panels .category-panel {
  min-height: 194px;
}

.category-panel strong {
  min-height: 2.3em;
}

.product-card:not(.product-card-sheet) .product-media {
  padding: 14px;
  background: linear-gradient(180deg, #fff, #f6f9fd);
}
.product-card-focus { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 4px; }

.product-card[data-category="consumibles"] .product-media,
.product-card[data-category="recambios"] .product-media {
  background: linear-gradient(180deg, #fff, #f3f6fb);
}

.buy-actions small {
  max-width: 160px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .cart-button {
    min-height: 44px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero-actions .btn {
    min-height: 46px;
  }

  .hero-contact a {
    min-height: 36px;
    font-size: 13px;
  }

  .flow-card {
    min-height: 220px;
  }

  .flow-note {
    font-size: 12px;
  }

  .category-panels .category-panel {
    min-height: 170px;
  }

  .category-panel strong {
    min-height: 0;
  }

  .buy-actions small {
    max-width: none;
    font-size: 12px;
  }
}

/* Refinamiento final de fichas: escala visual homogénea y compra más legible. */
.product-card:not(.product-card-sheet) {
  --product-media-width: 72%;
  --product-media-height: 72%;
}

.product-card:not(.product-card-sheet) .product-media {
  aspect-ratio: 1 / .94;
  padding: 18px;
  isolation: isolate;
}

.product-card:not(.product-card-sheet) .product-media img {
  max-width: var(--product-media-width);
  max-height: var(--product-media-height);
  object-position: center;
  transition: transform .25s ease;
}

.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  transform: scale(1.025);
}

.product-card[data-category="consumibles"],
.product-card[data-category="recambios"] {
  --product-media-width: 78%;
  --product-media-height: 78%;
}

.product-card[data-category="clinica"] {
  --product-media-width: 86%;
  --product-media-height: 74%;
}

.product-card[data-category="cadcam"],
.product-card[data-category="diagnostico"],
.product-card[data-category="produccion"],
.product-card[data-category="ceramica"] {
  --product-media-width: 70%;
  --product-media-height: 78%;
}

.product-card[data-category="softwarecam"] {
  --product-media-width: 86%;
  --product-media-height: 80%;
}

.product-card[data-product-id="cingol-x3"] {
  --product-media-width: 90%;
  --product-media-height: 74%;
}

.product-card[data-product-id="lilivis-print"],
.product-card[data-product-id="lilivis-uv"],
.product-card[data-product-id="lilivis-print-uv"] {
  --product-media-width: 66%;
  --product-media-height: 68%;
}

.product-card[data-product-id="lilivis-l-scan"],
.product-card[data-product-id="lilivis-l-scan-escaneo"],
.product-card[data-product-id="lilivis-mill"] {
  --product-media-width: 70%;
  --product-media-height: 74%;
}

.product-card[data-product-id="pionext-mini"],
.product-card[data-product-id="pionext-ultra"],
.product-card[data-product-id="shining-elite"],
.product-card[data-product-id="shining-elite-wireless"] {
  --product-media-width: 72%;
  --product-media-height: 74%;
}

.product-card[data-product-id="deprag-s7"],
.product-card[data-product-id="kdf-zircom-standard"],
.product-card[data-product-id="kdf-zircom-speed"] {
  --product-media-width: 64%;
  --product-media-height: 80%;
}

.product-card[data-product-id="kdf-zircom-plus"] {
  --product-media-width: 64%;
  --product-media-height: 84%;
}

.product-card[data-product-id="duotron-t3200"] {
  --product-media-width: 66%;
  --product-media-height: 76%;
}

.product-card[data-product-id="oferta-mazic-horno-duotron"] {
  --product-media-width: 84%;
  --product-media-height: 78%;
}

.product-body h3 {
  min-height: 2.44em;
}

.product-body ul {
  min-height: 62px;
  align-content: start;
}

.product-buy {
  min-height: 112px;
}

.product-buy > div:first-child {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-buy span {
  width: fit-content;
}

.buy-actions {
  min-width: 146px;
}

@media (max-width: 680px) {
  .product-card:not(.product-card-sheet) .product-media {
    aspect-ratio: 1 / .9;
    padding: 16px;
  }

  .product-body h3,
  .product-body ul {
    min-height: 0;
  }

  .product-body ul {
    margin-top: 14px;
  }

  .product-buy {
    min-height: 0;
  }

  .buy-actions {
    min-width: 0;
  }
}
