@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600;1,700;1,800&display=swap");

:root {
  --sonic-red: #d81f37;
  --sonic-red-dark: #b8172c;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #5f5f5f;
  --line: #e2e2e2;
  --line-strong: #cfcfcf;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --charcoal: #111111;
  --charcoal-mid: #1c1c1c;
  --danger: #b42318;
  --ok: #1a7f4b;
  --radius: 0.25rem;
  --radius-sm: 0.2rem;
  --radius-pill: 999px; /* badges / counts only — not CTAs */
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: "Mulish", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
  --product-bg: #f3f3f3;
  --media-placeholder: #e4e4e4;
  --sonic-red-soft: rgba(216, 31, 55, 0.12);
  --sonic-red-ring: rgba(216, 31, 55, 0.18);
  --sonic-red-focus: rgba(216, 31, 55, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sonic-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— Header (Sonic-style white bar) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo img[src$=".svg"],
.footer-logo[src$=".svg"] {
  /* Keep vector logos crisp; avoid accidental bitmap scaling artifacts */
  image-rendering: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav > a:not(.btn):not(.icon-count) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.15rem;
  transition: color 0.15s ease;
}

.nav > a:not(.btn):not(.icon-count):hover,
.nav > a:not(.btn):not(.icon-count).is-active {
  color: var(--sonic-red);
}

.nav-dropdown {
  position: relative;
  --nav-gold: #c9a227;
  --nav-drop-bar: #2a3342;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  max-width: none;
  padding: 0.35rem 0.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.is-active,
.nav-dropdown.is-open .nav-dropdown__toggle {
  color: var(--sonic-red);
  background: transparent;
}

.nav-dropdown__toggle span:first-child {
  white-space: nowrap;
}

.nav-dropdown__chevron {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.15s ease;
  opacity: 0.75;
}

.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 15.5rem;
  max-height: min(70vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Padding bridges the gap so the pointer can reach the options without closing. */
  padding-top: 0.45rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-dropdown__menu[hidden] {
  display: none !important;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  background: var(--white);
}

.nav-dropdown__menu a:first-child {
  box-shadow: var(--shadow-soft);
}

.nav-dropdown__menu a:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: var(--off-white);
  color: var(--sonic-red);
  outline: none;
}

.nav-dropdown__all {
  font-weight: 750 !important;
  letter-spacing: 0.02em;
}

.nav-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav > a:hover .nav-ico,
.nav > a.is-active .nav-ico {
  opacity: 1;
  color: var(--sonic-red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav a:focus-visible,
.nav-dropdown__toggle:focus-visible,
.nav-toggle:focus-visible,
.icon-count:focus-visible,
.filter-chip:focus-visible,
.brand-pill:focus-visible,
.solutions-tab:focus-visible,
.qty-row button:focus-visible,
.video-poster__load:focus-visible,
.industry-tile:focus-visible {
  outline: 3px solid var(--sonic-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--sonic-red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--sonic-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sonic-red-dark);
}

/* Grupo de botones principales para repuestos */
.action-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.action-buttons-group .btn {
  width: 100%;
  min-width: 0;
}

/* Botón Comprar (Verde) */
.btn-success,
.btn-buy {
  background-color: #16a34a;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.55rem 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-success:hover,
.btn-buy:hover {
  background-color: #15803d;
}

/* Botón Cotizar primario (equipos) */
.btn-quote,
.btn-quote-primary {
  letter-spacing: 0.03em;
  background: var(--sonic-red);
  color: var(--white);
  border-color: var(--sonic-red);
}

.btn-quote-primary:hover,
.btn-quote:hover {
  background: var(--sonic-red-dark);
  border-color: var(--sonic-red-dark);
  color: var(--white);
}

/* Botón Cotizar secundario para repuestos */
.btn-quote-secondary {
  background-color: #ffffff;
  color: #dc2626;
  border: 1px solid #dc2626;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.55rem 0.25rem;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-quote-secondary:hover {
  background-color: #fee2e2;
}

/* Botón Ficha Técnica unificado */
.btn-outline-spec {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.45rem;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-outline-spec:hover {
  background-color: #f1f5f9;
}


.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* CTA hierarchy: primary conversion action first / stronger */
.btn-cta-primary {
  box-shadow: 0 8px 22px rgba(196, 30, 58, 0.35);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-actions .btn-cta-primary {
  min-width: min(100%, 14rem);
}

.hero-actions .btn-cta-secondary {
  opacity: 0.95;
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    gap: 0.75rem;
  }

  .hero-actions .btn-cta-primary {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .hero-actions .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-actions {
    display: grid;
    gap: 0.75rem;
  }

  .section-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--sonic-red);
  color: var(--sonic-red);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--sonic-red);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.stack-sm {
  margin-top: 0.75rem;
}

.stack-lg {
  margin-top: 2rem;
}

.stack-xl {
  margin-top: 2.5rem;
}

.mb-lg {
  margin-bottom: 2rem;
}

.content-note {
  margin: 0;
  padding: 1rem 1.15rem;
  max-width: 52ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--off-white);
  border-left: 3px solid var(--sonic-red);
}

.content-note a {
  color: var(--sonic-red);
  font-weight: 650;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.icon-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.icon-count .nav-ico {
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.85;
}

.icon-count:hover {
  color: var(--sonic-red);
}

.icon-count:hover .nav-ico {
  opacity: 1;
  color: var(--sonic-red);
}

.icon-count .badge {
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  padding: 0 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--sonic-red);
  color: var(--white);
  font-size: 0.68rem;
}

.icon-count .badge[hidden] {
  display: none !important;
}

@media (min-width: 901px) {
  .icon-count-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--sonic-red);
  color: var(--sonic-red);
}

body.nav-open {
  overflow: hidden;
}

/* ——— Hero ——— */
.hero,
.hero-banner {
  position: relative;
  /* Use svh (stable), never dvh — dynamic viewport fights mobile scroll gestures. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  min-height: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  color: #ffffff;
  overflow: hidden;
  background-color: #0d0d0d;
  /* Fallback si las slides no cargan: imagen de fondo funcional */
  background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../img/hero-bg.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Diapositivas: visibles vía .is-active (JS carousel); img nunca queda en opacity 0 permanente */
.hero-media__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-media__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  opacity: 1;
  transform: none;
}

.hero-media__slide:nth-child(2) img {
  object-position: center 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.25rem) 1.25rem clamp(2rem, 4vw, 3rem);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  display: block;
  height: clamp(2.6rem, 5.2vw, 3.4rem);
  width: auto;
  margin: 0 0 1.35rem;
  /* Prefer logo-white.png — avoid CSS invert (distorts mark + yellow accent). */
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
  animation: fadeUp 0.8s ease both;
}

.hero-brand {
  margin: 0 0 1.2rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.8s ease both;
}

.hero-brand__name {
  display: block;
  font-size: clamp(2.05rem, 5vw, 3rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-brand__tag {
  display: block;
  margin-top: 0.4rem;
  max-width: 28ch;
  font-size: clamp(0.72rem, 1.45vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  animation: fadeUp 0.8s ease 0.04s both;
}

.hero h1,
.hero-title {
  margin: 0 0 0.9rem;
  max-width: none;
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.85s ease 0.08s both;
}

.hero-title__line {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.hero h1 .accent,
.hero-title__line--accent {
  color: #fff;
  font-style: italic;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Desktop: exactly 2 lines + red highlight strip behind the second line */
@media (min-width: 901px) {
  .hero-title__line {
    white-space: nowrap;
  }

  .hero-title__line--accent {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: linear-gradient(
      transparent 68%,
      rgba(216, 31, 55, 0.95) 68%,
      rgba(216, 31, 55, 0.95) 92%,
      transparent 92%
    );
    padding: 0 0.08em;
    border-bottom: none;
  }
}

.hero-lead {
  margin: 0 0 1.4rem;
  max-width: 32ch;
  font-size: 1.08rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  animation: fadeUp 0.85s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.85s ease 0.24s both;
}

@keyframes heroZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.1);
  }
}

/* ~7s visible each, ~1.5s crossfade */
@keyframes heroCrossfadeA {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroCrossfadeB {
  0%,
  42% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  /* Transform reveals shift perceived scroll position on mobile. */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media__slide {
    transition: none;
  }
}

/* ——— Trust / partner band (inside hero) ——— */
.trust-band {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
  backdrop-filter: blur(4px);
}

.trust-band--in-hero {
  margin-top: auto;
  flex-shrink: 0;
}

.trust-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.trust-band img {
  height: 36px;
  width: auto;
  background: var(--white);
  padding: 0.3rem 0.55rem;
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.trust-band p {
  margin: 0;
  max-width: 54ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.trust-band strong {
  color: var(--white);
  font-weight: 700;
}

/* Compact Sonic proof under hero CTAs (mobile); desktop uses bottom band */
.trust-inline {
  display: none;
}

/* ——— Sections ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem;
}

.section-band {
  background: var(--off-white);
}

.section-band > .section {
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.section-head {
  margin-bottom: 1.75rem;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head.is-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.section-head h2 .accent {
  color: var(--sonic-red);
}

.section-head p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.02rem;
}

.section-head.is-left p {
  margin: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
}

.section-actions.is-start {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

/* ——— Solutions tabs (Sonic product switcher) ——— */
.solutions-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-bottom: 3px solid var(--sonic-red);
  margin-bottom: 0;
}

.solutions-tab {
  min-width: 0;
  width: 100%;
  padding: 0.95rem 0.85rem;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.solutions-tab:hover {
  color: var(--sonic-red);
}

.solutions-tab.is-active {
  background: var(--sonic-red);
  color: var(--white);
}

.solutions-tab.is-active:hover {
  color: var(--white);
}

.solutions-panels {
  overflow-anchor: none;
}

#soluciones {
  overflow-anchor: none;
}

.solutions-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  align-items: center;
  min-height: 0;
}

.solutions-panel.is-active {
  display: grid;
}

.solutions-panel[hidden] {
  display: none !important;
}

.solutions-media,
.solutions-panel-media {
  min-height: 0;
  overflow: hidden;
}

.solutions-media img,
.solutions-panel-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.solutions-body,
.solutions-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.solutions-body h3,
.solutions-panel-content h3 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  font-weight: 800;
  font-style: italic;
}

/* Lista de características */
.solutions-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.solutions-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
}

.solutions-list .bullet {
  color: #dc2626;
  font-weight: bold;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .solutions-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-panel,
  .solutions-panel.is-active {
    grid-template-columns: 1fr;
  }
}

/* ——— Brand strip ——— */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}


/* ——— Marcas: estructura limpia (intro + contenido + productos) ——— */
.brand-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.brand-intro {
  margin: 0 0 2.5rem;
}

.brand-intro-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

.brand-intro-logo {
  flex: 0 0 min(280px, 34%);
  max-width: 280px;
  text-align: center;
}

.brand-intro-logo .brand-logo,
.brand-intro-logo #brandHeroLogo,
.brand-logo.img-fluid {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

.brand-intro-text {
  flex: 1;
  min-width: 0;
}

.brand-intro-text .h2,
.brand-intro-text #brandTitle {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink, #0f172a);
}

.brand-intro-text .lead,
.brand-intro-text #brandShortDesc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #64748b);
  max-width: 46rem;
}

.brand-content {
  margin-bottom: 2.5rem;
}

.brand-products {
  margin-top: 2.5rem;
}

.brand-products .section-header {
  margin-bottom: 1.25rem;
}

.brand-products .h4,
.brand-products #brandEquiposTitle {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
}

.brand-products-grid,
#brandProductsGrid.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-5 { margin-top: 2.5rem; }
.text-center { text-align: center; }
.font-weight-bold { font-weight: 800; }
.align-items-center { align-items: center; }
.img-fluid {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .brand-intro-row {
    flex-direction: column;
    text-align: center;
  }

  .brand-intro-logo {
    flex-basis: auto;
    max-width: 220px;
    width: 100%;
  }

  .brand-intro-text .lead,
  .brand-intro-text #brandShortDesc {
    margin-inline: auto;
  }
}

/* Estilos blindados para la vista de Marcas (legacy hero, si se usa) */
.brand-hero {
  background-color: #0d0d0d !important;
  color: #ffffff;
  padding: clamp(2.25rem, 4vw, 3rem) 1.5rem;
  width: 100%;
}

.brand-hero-flex,
.brand-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.brand-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
}

.brand-hero-text {
  flex: 1;
  min-width: 0;
}

/* Badge de representación oficial: oculto en ficha de marca */
.brand-hero .badge-representacion {
  display: none !important;
}

.brand-hero__title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #ffffff;
  line-height: 1.15;
}

.brand-hero__description {
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

/* Caja del Logo en el Hero */
.brand-hero-logo-box {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  width: 100%;
  flex: 0 0 auto;
}

.brand-hero-logo-box img,
#brandHeroLogo {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .brand-hero-flex {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
    padding: 1.75rem 0;
  }

  .brand-hero__description {
    margin-inline: auto;
  }

  .brand-hero-logo-box {
    margin: 0 auto;
  }
}

.brand-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.brand-selector-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 2rem !important;
  width: 100%;
}

.brand-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-card-item img {
  max-width: 85%;
  max-height: 38px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-card-item:hover img,
.brand-card-item.is-active img {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-card-item:hover {
  border-color: #cbd5e1;
}

.brand-card-item.is-active {
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}

/* Contenedor estable en páginas de marcas (plantilla independiente de la API) */
.brand-hero__inner.container,
.brand-content-wrapper.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.brand-selector-grid:empty::before {
  content: "Cargando marcas…";
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}


/* Secciones de catálogo por marca */
.brand-catalog-section {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.badge-count {
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

.brand-catalog-actions {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

/* --- SECCIÓN DE PRODUCTOS / EQUIPOS (legacy) --- */
.brand-products-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.brand-products-section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.brand-products-section #brandProductsTitle {
  font-weight: 800;
}

.no-products {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.brand-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-pill img {
  max-height: 2.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-pill:hover {
  border-color: var(--sonic-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.brand-pill.is-active {
  border-color: var(--sonic-red);
  box-shadow: 0 0 0 2px var(--sonic-red-ring);
}

.brand-catalog-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.brand-catalog-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 0.5rem;
  flex-shrink: 0;
}

.brand-catalog-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-style: italic;
}

.brand-catalog-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.brand-catalog-body {
  color: var(--ink-soft);
  line-height: 1.6;
  overflow: hidden;
}

.brand-catalog-body::after {
  content: "";
  display: table;
  clear: both;
}

.brand-catalog-body h2,
.brand-catalog-body h3 {
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
}

.brand-catalog-body .brand-section {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand-catalog-body .brand-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.brand-catalog-body .brand-section > h3:first-child {
  margin-top: 0;
}

.brand-catalog-body iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 220px;
  border: 0;
  margin: 0.75rem 0 1.25rem;
}

.brand-catalog-body p {
  margin: 0 0 0.85rem;
}

.brand-catalog-body ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.brand-catalog-body li {
  margin-bottom: 0.35rem;
}

.brand-catalog-body img {
  max-width: min(100%, 720px);
  height: auto;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--line);
}

.brand-catalog-body .alignleft,
.brand-catalog-body .alignright,
.brand-catalog-body .aligncenter {
  float: none;
  display: block;
  margin: 0.75rem 0 1.25rem;
}

.brand-catalog-body video,
.brand-catalog-body .ql-html5video,
.brand-catalog-body .ql-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0.75rem 0 1.25rem;
  background: #000;
}

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.brand-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--off-white);
}

.brand-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.brand-gallery-item:hover img {
  transform: scale(1.05);
}

/* ——— Industry tiles ——— */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

/* ——— Industry tiles ——— */
/* Layout adaptativo para hasta 8 tarjetas de industria */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.industry-card {
  position: relative;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.industry-card:focus-visible {
  outline: 3px solid var(--sonic-red);
  outline-offset: 2px;
}

.industry-card__media {
  position: absolute;
  inset: 0;
}

.industry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.industry-card__overlay h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.industry-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-tile:hover,
.industry-tile:focus-visible {
  outline: 3px solid var(--sonic-red);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.industry-tile:focus:not(:focus-visible) {
  outline: none;
}

/* Novedades page: same tile grid, a bit taller for article titles */
#articulos .industry-tile {
  min-height: 260px;
}

.industry-tile-bg,
.industry-tile-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
  z-index: 0;
}

.industry-tile-media picture,
.industry-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.industry-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.industry-tile:hover .industry-tile-bg,
.industry-tile:hover .industry-tile-media,
.industry-tile:focus-visible .industry-tile-media {
  transform: scale(1.04);
}

.industry-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  align-items: flex-end;
  font-size: 1.15rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
}

.badge-datasheet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.55rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(196, 30, 58, 0.35);
  background: rgba(196, 30, 58, 0.08);
  color: var(--sonic-red-dark, #8f1529);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.badge-datasheet:hover,
.badge-datasheet:focus-visible {
  background: rgba(196, 30, 58, 0.14);
  border-color: var(--sonic-red);
}

.badge-datasheet__icon {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  padding: 0.12rem 0.28rem;
  background: var(--sonic-red);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ——— Value props ——— */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-item {
  padding: 1.35rem 1.15rem;
  border-top: 3px solid var(--sonic-red);
  background: var(--white);
}

.value-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-style: italic;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}


/* --- SECCIÓN CTA INFERIOR --- */
.about-cta-section {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

.about-cta-section .container {
  max-width: var(--max);
  margin: 0 auto;
}

.about-cta-section .text-center {
  text-align: center;
}

.about-cta-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.about-cta-section p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0 auto 1.5rem;
  max-width: 46ch;
}

.about-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.about-cta-section .btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: clamp(2.75rem, 6vw, 4rem) 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  font-style: italic;
}

.cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .actions-row {
  justify-content: center;
}

/* ——— Categories / products ——— */
.cat-grid,
.product-grid {
  display: grid;
  gap: 1rem;
}

.cat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cat-tile {
  display: block;
  padding: 1.35rem 1.25rem;
  background: var(--charcoal);
  color: var(--white);
  min-height: 9.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cat-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transition: transform 0.5s ease, opacity 0.35s ease;
  z-index: 0;
}

.cat-tile:hover .cat-tile-bg {
  transform: scale(1.06);
  opacity: 0.55;
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.28));
  z-index: 1;
}

.cat-tile h3,
.cat-tile p {
  position: relative;
  z-index: 2;
}

.cat-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
}

.cat-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.product-card,
.repuesto-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.product-card__media,
.product-card-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--product-bg);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.product-card__media img,
.product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img,
.product-card:hover .product-card-visual img {
  transform: scale(1.03);
}

/* Badge flotante de tipo de venta */
.badge-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-type--cotizar {
  background-color: #fee2e2;
  color: #dc2626;
}

.badge-type--comprar {
  background-color: #dcfce7;
  color: #16a34a;
}

.product-card-actions,
.catalog-card-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto; /* Empuja el bloque de CTAs al fondo de la tarjeta */
  justify-items: stretch;
  width: 100%;
}

.product-card-actions .btn,
.catalog-card-actions .btn,
.product-card .btn-cotizar,
.repuesto-card .btn-cotizar,
.repuesto-card-body > .btn {
  width: 100%;
}

/* Limpieza de botones CTA en tarjetas (outline / cotizar primario) */
.product-card .btn-outline,
.product-card .btn-quote,
.product-card .btn-quote-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap; /* Evita saltos de línea raros en el texto */
}




.product-card-body,
.repuesto-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
  flex-grow: 1;
}

.product-card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.25;
}

.product-card-body h3 a:hover {
  color: var(--sonic-red);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.badge-mode {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0.15rem;
}

.badge-buy {
  background: rgba(26, 127, 75, 0.12);
  color: var(--ok);
}

.badge-quote {
  background: var(--sonic-red-soft);
  color: var(--sonic-red);
}

.badge-stock {
  font-size: 0.78rem;
  color: var(--muted);
}

.product-price {
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.25rem;
}

/* Ocultar texto auxiliar técnico */
.catalog-debug-info {
  display: none !important;
}

.product-card-link {
  display: inline-block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product-card-link:hover {
  color: var(--sonic-red);
}

.skeleton-card {
  pointer-events: none;
  border-color: var(--line);
}

.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, #e4e4e4 20%, #f2f2f2 45%, #e4e4e4 70%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.1s ease-in-out infinite;
}

.skeleton-block {
  min-height: 160px;
}

.skeleton-line {
  height: 0.85rem;
  border-radius: 0.2rem;
  margin-bottom: 0.55rem;
}

.skeleton-line.short {
  width: 45%;
}

.skeleton-line.btn {
  height: 2.2rem;
  margin-top: 0.75rem;
  width: 100%;
}

.catalog-loading {
  min-height: 22rem;
}

.catalog-loading-label {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}

.catalog-loader {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.75rem;
}

.catalog-loader[hidden],
.catalog-loader[aria-hidden="true"] {
  display: none !important;
}

.catalog-outage {
  max-width: 36rem;
  margin: 1.5rem auto;
  padding: 1.5rem 1.25rem;
  border: 1px dashed var(--line-strong);
  background: var(--off-white);
  text-align: center;
}

.catalog-outage .empty-actions {
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes skeleton-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.brands-compact .section-head {
  margin-bottom: 0.75rem;
}

.brands-compact .section-head h2 {
  font-size: 1.25rem;
}

.brands-compact .section-head p {
  margin: 0;
}

.contact-fast .contact-sla {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-fast .btn-block {
  margin-bottom: 0.25rem;
}

.contact-direct {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.contact-direct a {
  font-weight: 650;
}

/* ——— About / news ——— */
.page-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.about-grid h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  font-style: italic;
}

.about-grid h2 .accent,
.section-head h2 .accent {
  color: var(--sonic-red);
}

/* --- FICHA DATOS DE LA EMPRESA --- */
.company-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.company-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 0.4rem;
  display: inline-block;
}

.company-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.company-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.85rem;
}

.company-card__list label {
  font-weight: 700;
  color: #475569;
  cursor: default;
}

.company-card__list span,
.company-card__list a {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  overflow-wrap: anywhere;
}

.company-card__list a:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* Botón LinkedIn */
.btn-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background-color: #0a66c2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-linkedin:hover {
  background-color: #084e96;
  color: #ffffff;
}

.btn-linkedin svg {
  flex-shrink: 0;
}

.specialty-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.specialty-grid li {
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 650;
  color: var(--ink-soft);
}

.news-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.news-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--media-placeholder);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
}

.news-card-body h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
}

.news-card-body h2 a:hover {
  color: var(--sonic-red);
}

.news-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-meta {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-meta a {
  color: var(--sonic-red);
}

.prose {
  max-width: 720px;
}

.prose h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
}

.prose .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose img {
  width: 100%;
  height: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose .video-embed {
  margin: 1.5rem 0 2rem;
}

/* LinkedIn / external video embeds */
.video-embed {
  margin: 0;
  background: var(--off-white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.video-embed__frame {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: #0f0f0f;
}

.video-embed__frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  height: 560px;
  border: 0;
  background: #0f0f0f;
}

.video-embed figcaption,
.video-embed__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.video-card {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.video-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-style: italic;
}

.video-card p {
  margin: 0;
  color: var(--muted);
}

.video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  display: block;
}

.video-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.35)
  );
}

.prose .video-poster {
  margin: 1.5rem 0 2rem;
}

@media (min-width: 900px) {
  .video-embed__frame,
  .video-embed__frame iframe {
    min-height: 520px;
    height: 640px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }


  .video-embed__frame,
  .video-embed__frame iframe {
    min-height: 360px;
    height: 480px;
  }
}

/* ——— Inner page hero (compact recipe for all utility pages) ——— */
.page-hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: 1.75rem 1.25rem 1.5rem;
  overflow: hidden;
}

.page-hero.has-media {
  min-height: 140px;
  display: grid;
  align-items: end;
}

.page-hero--compact {
  padding: 1.75rem 1.25rem 1.5rem;
}

.page-hero--compact.has-media,
.page-hero.has-media {
  min-height: 140px;
}

.page-hero h1,
.page-hero--compact h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
}

.page-hero p {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .hero-description {
  margin: 0.75rem 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .news-meta {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.68);
}

.page-hero .news-meta a {
  color: rgba(255, 255, 255, 0.92);
}

.content-figure {
  margin: 0 0 1.5rem;
  max-width: 720px;
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.form-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.prose .actions-row {
  margin: 1.75rem 0 1rem;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

/* Cuando hay 3 filtros visibles (industria / categoría / marca) */
.catalog-filters:not(.filters-repuestos) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .catalog-filters:not(.filters-repuestos) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .catalog-filters:not(.filters-repuestos) {
    grid-template-columns: 1fr;
  }
}

.catalog-filters.filters-repuestos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 360px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
  flex: 1 1 180px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  font-size: 0.875rem;
  color: #1e293b;
  outline: none;
  width: 100%;
  min-height: 2.5rem;
  font: inherit;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: #dc2626;
}

.filter-select:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.35);
  outline-offset: 2px;
}

.catalog-toolbar {
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.65rem;
}

.catalog-toolbar .catalog-filters {
  max-width: var(--max);
  margin: 0 auto 0.5rem;
  width: calc(100% - 2.5rem);
}

.catalog-toolbar__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.65rem;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1rem 1.5rem;
  align-items: end;
}

@media (max-width: 700px) {
  .catalog-toolbar__row {
    grid-template-columns: 1fr;
  }
}

.industry-tabs {
  max-width: var(--max);
  margin: 0 auto 0.35rem;
  padding: 0 1.25rem 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.industry-tab {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.industry-tab:hover {
  border-color: var(--sonic-red);
  color: var(--sonic-red);
}

.industry-tab.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.industry-tab:focus-visible,
.catalog-select:focus-visible,
.catalog-pager .btn:focus-visible,
.catalog-card .btn:focus-visible {
  outline: 3px solid var(--sonic-red);
  outline-offset: 2px;
}

.catalog-select {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

.catalog-brand-field .catalog-mode-label {
  padding-left: 0;
  padding-right: 0;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  background: rgba(20, 28, 40, 0.08);
  color: var(--charcoal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-sku {
  margin: 0.15rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-sku__label {
  display: inline-block;
  margin-right: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.catalog-card-actions {
  display: grid;
  gap: 0.45rem;
}

.catalog-card-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.catalog-pager {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.catalog-pager__status {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.datasheet-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  max-width: min(520px, calc(100vw - 2rem));
  width: 100%;
}

.datasheet-dialog::backdrop {
  background: rgba(10, 14, 20, 0.55);
}

.datasheet-dialog .dialog-body {
  padding: 1.25rem 1.25rem 1rem;
}

.datasheet-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0 1.25rem 1.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-toolbar .filters {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.5rem;
}

.filters--compact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .filters--compact {
    grid-template-columns: 1fr;
  }
}

.filter-chips {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.catalog-mode-label {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.15rem 1.25rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-chips--mode {
  padding-top: 0;
  padding-bottom: 0.65rem;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.filter-chips--mode .filter-chip {
  font-size: 0.78rem;
  border: none;
  border-right: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
}

.filter-chips--mode .filter-chip:last-child {
  border-right: none;
}

.filter-chips--mode .filter-chip:hover {
  background: var(--off-white);
  border-color: transparent;
  color: var(--sonic-red);
}

.filter-chips--mode .filter-chip.is-active {
  background: var(--charcoal);
  border-color: transparent;
  color: var(--white);
}

.filter-chips--mode .filter-chip.is-active:hover {
  background: var(--charcoal-mid);
  color: var(--white);
}

@media (max-width: 700px) {
  .filter-chips:not(.filter-chips--mode) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.85rem;
  }

  .filter-chips:not(.filter-chips--mode) .filter-chip {
    flex-shrink: 0;
  }

  .filter-chips--mode {
    width: 100%;
    max-width: none;
  }

  .filter-chips--mode .filter-chip {
    flex: 1 1 0;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--sonic-red);
  color: var(--sonic-red);
}

.filter-chip.is-active {
  background: var(--sonic-red);
  border-color: var(--sonic-red);
  color: var(--white);
}

.catalog-hint {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.catalog-hint strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.catalog-count {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.15rem 1.25rem 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
}

.section--catalog {
  padding-top: 0.4rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.filters input,
.filters select,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.filters input:focus,
.filters select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--sonic-red-focus);
  border-color: var(--sonic-red);
}

.filters input,
.filters select {
  width: auto;
  min-width: 170px;
  flex: 1 1 160px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--sonic-red);
}

.breadcrumb-sep {
  color: var(--line-strong);
  font-weight: 500;
}

#crumbCurrent {
  color: var(--ink);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}

.detail-layout h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.detail-layout #productDesc {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.detail-visual {
  aspect-ratio: 1 / 1;
  background: var(--product-bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  padding: 1rem;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qty-row {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0.75rem 0;
}

.qty-row button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: var(--off-white);
  cursor: pointer;
}

.qty-row span {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 700;
}

.cart-layout,
.quote-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.3fr 0.9fr;
}

.cart-list,
.quote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cart-item,
.quote-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.cart-item-top,
.quote-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-style: italic;
  font-size: 1.3rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-msg {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.form-msg.is-ok {
  color: var(--ok);
}

.form-msg.is-error {
  color: var(--danger);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.75rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.45fr 1fr 1fr;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.65rem;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a:hover {
  color: var(--sonic-red);
}

.footer-logo {
  display: block;
  height: 42px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 1.25rem 1.35rem;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--charcoal-mid);
  color: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease,
    color 0.15s ease;
  animation: waPop 0.45s ease 0.35s both;
  -webkit-tap-highlight-color: transparent;
}

.wa-float:hover {
  transform: translateY(-2px);
  background: #252525;
  color: #3de07a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.wa-float:focus-visible {
  outline: 2px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.wa-float svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.wa-float-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wa-float[hidden] {
  display: none !important;
}

@keyframes waPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  z-index: 60;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--sonic-red);
  box-shadow: var(--shadow);
  max-width: min(90vw, 320px);
}

.toast[hidden] {
  display: none !important;
}

.empty-state {
  padding: 1.75rem;
  background: var(--off-white);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .solutions-panel.is-active {
    grid-template-columns: 1fr;
  }

  .solutions-media,
  .solutions-media img {
    min-height: 200px;
  }

  .industry-grid,
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4rem;
  }

  .logo img {
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(85vh, 640px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    padding: 0.35rem 1.25rem 1.15rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav > a:not(.btn):not(.icon-count) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
    margin: 0;
    padding: 0.9rem 0;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    color: var(--ink-soft);
    border-radius: 0;
  }

  .nav-dropdown__toggle:hover,
  .nav-dropdown__toggle.is-active,
  .nav-dropdown.is-open .nav-dropdown__toggle {
    color: var(--sonic-red);
    background: transparent;
  }

  .nav-dropdown__toggle span:first-child {
    white-space: normal;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .nav-dropdown__chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    opacity: 0.7;
    margin-right: 0.15rem;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: block !important;
  }

  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin: 0 0 0.35rem;
    padding-top: 0;
    border: none;
    border-top: 1px solid var(--line);
    background: var(--off-white);
    box-shadow: none;
  }

  .nav-dropdown__menu a {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    border: none;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown__menu a:first-child {
    box-shadow: none;
  }

  .nav-dropdown__menu a:last-child {
    border-bottom: none;
  }

  .nav-dropdown__menu a:hover,
  .nav-dropdown__menu a:focus-visible {
    color: var(--sonic-red);
    background: rgba(0, 0, 0, 0.03);
  }

  .nav-cta {
    padding-top: 0.85rem;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .icon-count-label {
    display: inline;
  }

  .page-hero--compact.has-media {
    min-height: 120px;
  }

  .detail-layout,
  .cart-layout,
  .quote-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-title {
    max-width: none;
  }

  .filters {
    gap: 0.65rem;
  }

  .filters input,
  .filters select {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .brand-strip {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .hero-inner,
  .trust-band-inner,
  .footer-inner,
  .footer-bottom {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .page-hero--compact.has-media {
    min-height: 110px;
  }

  .page-hero--compact h1 {
    font-size: 1.55rem;
  }

  .catalog-toolbar .filters {
    padding: 1.1rem 1.25rem 0.75rem;
    gap: 0.75rem;
  }

  .filter-chips {
    padding: 0.25rem 1.25rem 0.55rem;
    gap: 0.5rem;
  }

  .filter-chips--mode {
    padding-bottom: 0.25rem;
  }

  .catalog-count {
    padding: 0.35rem 1.25rem 0.15rem;
  }

  .section--catalog {
    padding-top: 0.25rem;
  }

  .hero {
    /* Fill first screen so Soluciones only appears after scroll.
       Keep svh only — dvh resizes with the browser chrome and fights upward scroll. */
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .trust-band--in-hero {
    display: none;
  }

  .trust-inline {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 5.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
  }

  .trust-inline img {
    height: 28px;
    width: auto;
    background: var(--white);
    padding: 0.2rem 0.4rem;
    border-radius: 0.15rem;
    flex-shrink: 0;
  }

  .trust-inline p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
  }

  .trust-inline strong {
    color: var(--white);
    font-weight: 700;
  }

  .hero-inner {
    padding-top: clamp(1.75rem, 5vh, 2.5rem);
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
    justify-content: center;
    gap: 0;
  }

  .hero-kicker {
    margin-bottom: 1rem;
  }

  .hero-brand {
    margin-bottom: 1rem;
  }

  .hero-brand__name {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
    letter-spacing: 0.05em;
  }

  .hero-brand__tag {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    max-width: none;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(1.65rem, 6.8vw, 2.1rem);
    margin-bottom: 1rem;
    max-width: none;
    letter-spacing: -0.02em;
  }

  .hero-title__line {
    white-space: nowrap;
  }

  .hero-title__line--accent {
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: linear-gradient(
      transparent 68%,
      rgba(216, 31, 55, 0.92) 68%,
      rgba(216, 31, 55, 0.92) 92%,
      transparent 92%
    );
    padding: 0 0.06em;
    border-bottom: none;
  }

  @media (max-width: 380px) {
    .hero h1,
    .hero-title {
      font-size: 1.48rem;
    }
  }

  .hero-lead {
    font-size: 0.9rem;
    max-width: none;
    margin-bottom: 1.75rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
    padding-top: 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

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

  .industry-tile {
    min-height: 9.5rem;
  }

  .solutions-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
    border-bottom: 3px solid var(--sonic-red);
  }

  .solutions-tab {
    min-width: 0;
    width: 100%;
    padding: 0.9rem 0.75rem;
    border: none;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .solutions-panel {
    border: 1px solid var(--line-strong);
    border-top: none;
    min-height: 0;
  }

  .solutions-panels {
    min-height: 22rem;
    overflow-anchor: none;
  }

  .solutions-panel.is-active {
    display: flex;
    flex-direction: column;
  }

  .solutions-media,
  .solutions-media img {
    min-height: 180px;
    max-height: 220px;
  }

  .solutions-media img {
    object-fit: cover;
    object-position: center;
  }

  .solutions-body {
    padding: 1.15rem 1rem 1.25rem;
  }

  .solutions-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
  }

  .solutions-list {
    gap: 0.4rem;
    margin: 0 0 1rem;
  }

  .solutions-list li {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .solutions-list .bullet {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.62rem;
  }

  .solutions-body > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ink-soft);
  }

  .solutions-body .btn {
    align-self: flex-start;
    margin-top: 0.1rem;
  }

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

  .brand-strip {
    grid-template-columns: 1fr 1fr;
  }

  .cart-item-top,
  .quote-item-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1,
  .section-head h2 {
    overflow-wrap: anywhere;
  }

  .wa-float {
    width: 2.85rem;
    height: 2.85rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .btn {
    letter-spacing: 0.04em;
  }
}

/* --- Ficha técnica / Nosotros B2B --- */
.company-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.company-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 0.4rem;
  display: inline-block;
}

.company-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.company-card__list li {
  display: grid;
  grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.4fr);
  gap: 0.65rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.85rem;
  align-items: start;
}

.company-card__list label {
  font-weight: 700;
  color: #475569;
  cursor: default;
}

.company-card__list span,
.company-card__list a {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  overflow-wrap: anywhere;
}

.company-card__list a:hover {
  color: #dc2626;
  text-decoration: underline;
}

.link-linkedin-secondary {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-linkedin-secondary:hover {
  color: #0a66c2;
}

.link-linkedin-secondary--on-dark {
  color: rgba(255, 255, 255, 0.72);
}

.link-linkedin-secondary--on-dark:hover {
  color: #ffffff;
}

.page-hero--about.has-media {
  min-height: 280px;
  align-items: end;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.page-hero-actions .btn {
  min-height: 2.6rem;
}

.page-hero-actions__outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.page-hero-actions__outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.about-cta-section {
  background-color: #0d0d0d;
  color: #ffffff;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

.about-cta-section .container {
  max-width: var(--max);
  margin: 0 auto;
}

.about-cta-section .text-center {
  text-align: center;
}

.about-cta-section h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.about-cta-section p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0 auto 1.5rem;
  max-width: 48ch;
}

.about-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-cta-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.about-cta-section .btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.about-cta-secondary {
  margin: 1.25rem 0 0 !important;
}

@media (max-width: 560px) {
  .company-card__list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .company-card__list span,
  .company-card__list a {
    text-align: left;
  }

  .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Contacto B2B --- */
.contact-direct {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-direct a {
  font-weight: 650;
}

.contact-direct li {
  display: grid;
  gap: 0.15rem;
}

.contact-direct__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-direct__value {
  font-weight: 550;
  color: var(--ink);
  line-height: 1.4;
}

.contact-direct a[href^="tel:"],
.contact-direct a[href^="mailto:"] {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-direct a[href^="tel:"]:hover,
.contact-direct a[href^="mailto:"]:hover {
  color: var(--sonic-red);
  text-decoration: underline;
}

.btn-whatsapp {
  background: #128c7e;
  border-color: #128c7e;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #0e6f64;
  border-color: #0e6f64;
  color: #ffffff;
}

.link-catalogo {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--sonic-red);
  text-decoration: none;
}

.link-catalogo:hover {
  text-decoration: underline;
}

.page-hero--contact .contact-sla-banner {
  margin: 0.85rem 0 0;
  max-width: 52ch;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero--contact:not(.has-media) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  color: #ffffff;
}

.page-hero--contact:not(.has-media) h1,
.page-hero--contact:not(.has-media) .hero-description {
  color: #ffffff;
}

.page-hero--contact:not(.has-media) .hero-description {
  color: rgba(255, 255, 255, 0.86);
}

.contact-privacy,
.text-muted.contact-privacy {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-form-panel h2 {
  margin-top: 0;
}

.contact-trust {
  padding-top: 0.25rem;
}

.contact-trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-trust-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
}

.contact-trust-card__icon {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  line-height: 1;
}

.contact-trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.contact-trust-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .contact-layout.quote-layout {
    grid-template-columns: 1fr;
  }

  .contact-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .btn-whatsapp,
  .contact-form-panel .btn-block {
    min-height: 3rem;
  }

  .contact-direct a[href^="tel:"] {
    font-size: 1.05rem;
  }
}


/* ——— Repuestos B2B ——— */
.badge-type {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-type--repuesto {
  background: #15803d;
  color: #ffffff;
}

.page-hero--repuestos.has-media {
  min-height: 300px;
  align-items: end;
}

.repuesto-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  max-width: 44rem;
}

.repuesto-search input {
  flex: 1 1 16rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font: inherit;
}

.repuesto-search input:focus {
  outline: 3px solid rgba(220, 38, 38, 0.45);
  outline-offset: 1px;
}

.repuesto-search .btn {
  min-height: 2.75rem;
  white-space: nowrap;
}

.repuestos-toolbar .repuestos-filters {
  max-width: var(--max);
  margin: 0 auto 0.5rem;
  width: calc(100% - 2.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.repuesto-compat {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.repuesto-compat__label {
  font-weight: 700;
  color: var(--ink-soft, #334155);
}

.repuesto-stock {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.repuesto-stock.is-stock {
  background: #dcfce7;
  color: #166534;
}

.repuesto-stock.is-request {
  background: #ffedd5;
  color: #9a3412;
}

.repuesto-help {
  padding-top: 0.5rem;
}

.repuesto-help-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.repuesto-help-card__copy {
  flex: 1 1 18rem;
}

.repuesto-help-card h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 800;
}

.repuesto-help-card p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .repuestos-toolbar .repuestos-filters {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 560px) {
  .repuesto-search {
    flex-direction: column;
  }

  .repuesto-search .btn,
  .repuesto-help-card .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   Alineación inferior de botones en tarjetas de catálogo / repuestos
   ========================================================================== */
.catalog-grid > .product-card,
.catalog-grid > .repuesto-card,
.product-card.catalog-card,
.product-card.repuesto-card {
  height: 100%;
}

.product-card-body,
.repuesto-card-body {
  flex-grow: 1;
}

.product-card-actions,
.repuesto-card .product-card-actions,
.catalog-card-actions {
  margin-top: auto;
  width: 100%;
}

.product-card .btn-cotizar,
.repuesto-card .btn-cotizar,
.repuesto-card .product-card-actions .btn {
  width: 100%;
}
