/* ==========================================================================
   ROVICEJO E.I.R.L. — Hoja de estilos
   Paleta oficial (manual de marca): #9C2E1B · #7B1A1D · #471212
   Tipografía de marca: ZT Nature → equivalente web: Plus Jakarta Sans
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Marca */
  --brand: #9c2e1b;
  --brand-dark: #7b1a1d;
  --brand-deep: #471212;

  /* Neutros cálidos derivados de la marca */
  --ink: #241615;
  --muted: #6b5c59;
  --line: #e7dfdb;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --on-brand: #ffffff;

  /* Tipografía */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Espaciado y medidas */
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  --container: 1200px;
  --header-h: 76px;
  --radius: 10px;
  --radius-inner: 6px; /* elementos anidados dentro de un contenedor redondeado */
  --ease: all 0.3s ease;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: var(--fw-regular);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: var(--fw-medium);
}
.skip-link:focus { top: 12px; }

/* 3. Utilidades de layout -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

h1, h2, h3 {
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: var(--fw-light);
  line-height: 1.7;
  color: var(--muted);
}

.section-head .lead { margin-top: 20px; }

/* 4. Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--on-brand);
  background: var(--brand);
  cursor: pointer;
  transition: var(--ease);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn--ghost {
  color: var(--brand-deep);
  background: transparent;
  border-color: var(--brand-deep);
}
.btn--ghost:hover { color: var(--on-brand); background: var(--brand-deep); border-color: var(--brand-deep); }

.btn--sm { padding: 12px 22px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--brand);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--brand-deep); }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand img { height: 34px; width: auto; }

.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list > li { display: flex; align-items: center; }
.nav__list > li > a {
  position: relative;
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  color: var(--ink);
  padding-block: 6px;
}
.nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.nav__list > li > a:hover,
.nav__list > li > a.is-active { color: var(--brand); }
.nav__list > li > a:hover::after,
.nav__list > li > a.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--brand-deep);
  transition: var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil desplegado */
.nav.is-open {
  display: block;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.nav.is-open .nav__list > li:not(.has-mega) { display: block; }
.nav.is-open .nav__list > li > a::after { display: none; }
.nav.is-open .nav__list > li > a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.nav.is-open .nav__cta { display: inline-flex; margin-top: 24px; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero .lead { margin-top: 28px; max-width: 540px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero__facts strong { color: var(--brand-deep); font-weight: var(--fw-bold); }

.hero__media {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--bg);
}
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero__media figcaption {
  padding: 14px 4px 2px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 7. Nosotros -------------------------------------------------------------- */
.about__grid { display: grid; gap: 48px; }

.about__intro h2 { max-width: 460px; }

.about__body p + p { margin-top: 20px; }
.about__body .lead { color: var(--ink); font-weight: var(--fw-light); }

.mv {
  display: grid;
  margin-top: 48px;
}
.mv > div { padding: clamp(28px, 3.5vw, 40px); color: var(--on-brand); }
.mv > div:first-child { background: var(--brand-deep); }
.mv > div:last-child { background: var(--brand-dark); }
.mv h3 { margin-bottom: 14px; font-size: 1.05rem; color: var(--on-brand); }
.mv p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

.values { margin-top: 48px; display: grid; gap: 0; }
.values li {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { font-weight: var(--fw-bold); color: var(--brand-deep); }
.values span { font-size: 0.95rem; color: var(--muted); }

/* 8. Servicios ------------------------------------------------------------- */
.cards { display: grid; gap: 0; border: 1px solid var(--line); background: var(--bg); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  transition: var(--ease);
}
.card + .card { border-top: 1px solid var(--line); }
.card:hover { background: var(--bg-soft); }

.card__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 48px;
  color: var(--brand);
}
.card h3 { margin-bottom: 16px; }
.card p { font-size: 0.95rem; color: var(--muted); }

.card__list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.card__list li { padding-block: 5px; padding-left: 18px; position: relative; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--brand);
}

.callout {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--brand);
  color: var(--on-brand);
}
.callout h3 { font-size: 1rem; color: rgba(255, 255, 255, 0.78); }
.callout p { max-width: 760px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: var(--fw-light); line-height: 1.6; }

/* 9. Catálogo -------------------------------------------------------------- */
.catalog-head {
  display: grid;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.catalog-head .section-head { margin-bottom: 0; }

.grid-cat { display: grid; gap: 28px; }

.cat { display: flex; flex-direction: column; }
.cat__img {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.cat__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat:hover .cat__img img { transform: scale(1.03); }
.cat h3 { margin-top: 22px; font-size: 1.15rem; }
.cat p { margin-top: 8px; margin-bottom: 18px; font-size: 0.92rem; color: var(--muted); }

/* 10. Protección especializada (ArcTex) ------------------------------------ */
.spec__grid { display: grid; gap: 48px; }

.spec__text p + p { margin-top: 18px; }
.spec__text .lead { margin-top: 20px; }

.hrc {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.hrc div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.hrc dt { font-weight: var(--fw-bold); color: var(--brand-deep); }
.hrc dd { color: var(--muted); }

.norms {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--muted);
}
.norms strong { color: var(--brand-deep); font-weight: var(--fw-bold); }

.products {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.product { background: var(--bg); padding: 16px 12px 22px; }
.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product h3 {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
}

/* 11. Extintores ----------------------------------------------------------- */
.ext { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); }
.ext__img { background: var(--bg-soft); padding: 24px; }
.ext__img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.ext__body { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.ext h3 { margin-bottom: 8px; }
.ext__use { font-size: 0.92rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--brand-deep);
}
.ext__note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  font-weight: var(--fw-medium);
}

/* 12. Clientes / prueba social --------------------------------------------- */
.metrics {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  position: relative;
  display: block;
  width: 100%;
  padding: 32px 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.metric + .metric,
.metric-panel + .metric { border-top: 1px solid var(--line); }
/* Línea de acento que se dibuja al aparecer en pantalla */
.metric::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--brand);
}
.metric__icon { display: block; width: 28px; height: 28px; margin-bottom: 20px; color: var(--brand); transition: transform 0.3s ease; }
.metric[aria-expanded="true"] .metric__icon { color: var(--brand-deep); }
.metric strong {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.1rem);
  font-weight: var(--fw-light);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-deep);
}
.metric__label { display: block; margin-top: 10px; max-width: 220px; font-size: 0.9rem; color: var(--muted); }
.metric__chevron {
  position: absolute;
  right: 4px;
  bottom: 32px;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.metric:hover .metric__chevron { color: var(--brand); }
.metric[aria-expanded="true"] .metric__chevron { color: var(--brand); transform: rotate(180deg); }

/* Panel expandible bajo cada dato */
.metric-panel[hidden] { display: none; }
.metric-panel__inner {
  padding-block: 8px 32px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.metric-panel.is-in .metric-panel__inner { opacity: 1; transform: none; }
.metric-panel p { max-width: 480px; font-size: 0.92rem; color: var(--muted); }

.timeline { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.timeline__year { font-size: 0.78rem; font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.timeline__track { position: relative; flex: 1; height: 2px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; width: 0; background: var(--brand); transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.metric-panel.is-in .timeline__fill { width: 100%; }
.timeline__track::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(50%, -50%);
  background: var(--brand);
  border-radius: 50%;
}

.chips--sectors { padding-top: 4px; }

.metric-lines { display: grid; gap: 1px; max-width: 480px; padding-top: 4px; background: var(--line); border: 1px solid var(--line); }
.metric-lines li { background: var(--bg); }
.metric-lines a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: var(--fw-medium);
  color: var(--brand-deep);
  transition: var(--ease);
}
.metric-lines a:hover { color: var(--brand); background: var(--bg-soft); }
.metric-lines__icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: var(--brand); }
.metric-lines__icon svg { width: 20px; height: 20px; }

.clients { margin-top: clamp(48px, 7vw, 88px); }
.clients__title {
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Carrusel infinito de logotipos (CSS puro) */
.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(180px, 22vw, 260px);
  height: 104px;
  padding-inline: 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: var(--ease);
}
.logo:hover { color: var(--brand); }
.logo img {
  max-height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--ease);
}
.logo:hover img { filter: none; opacity: 1; }

@keyframes marquee { to { transform: translateX(-100%); } }

/* 13. Contacto ------------------------------------------------------------- */
.contact__grid { display: grid; gap: 56px; }

.contact__info h2 { margin-bottom: 20px; }

.details { margin-top: 40px; border-top: 1px solid var(--line); }
.details > div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.details dd { font-size: 0.98rem; }
.details a:hover { color: var(--brand); }
.details small { display: block; color: var(--muted); font-size: 0.85rem; }

.form {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  background: var(--bg);
}
.form__row { display: grid; gap: 24px; }

.field { display: grid; gap: 8px; }
/* Honeypot antispam: invisible para personas, presente para bots que autocompletan todo. */
.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.field label {
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  transition: var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-deep) 50%), linear-gradient(135deg, var(--brand-deep) 50%, transparent 50%);
  background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a99b97; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--brand); }

.form .btn { justify-self: start; }
.form__note { font-size: 0.8rem; color: var(--muted); }

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(56px, 8vw, 88px) 32px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-deep);
  font-size: 0.9rem;
}
.footer__grid { display: grid; gap: 40px; }
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 320px; line-height: 1.65; }

.site-footer h4 {
  margin-bottom: 16px;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-brand);
}
.site-footer li { padding-block: 4px; }
.site-footer a:hover { color: var(--on-brand); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* 15. Breakpoints (mobile-first) ------------------------------------------- */
@media (min-width: 640px) {
  .products { grid-template-columns: repeat(4, 1fr); }
  .grid-cat { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric { padding: 40px 40px; }
  .metrics > button.metric:nth-of-type(1) { grid-column: 1; grid-row: 1; padding-left: 0; }
  .metrics > button.metric:nth-of-type(2) { grid-column: 2; grid-row: 1; border-left: 1px solid var(--line); }
  .metrics > button.metric:nth-of-type(2)::before { left: 41px; }
  .metrics > button.metric:nth-of-type(3) { grid-column: 3; grid-row: 1; padding-right: 0; border-left: 1px solid var(--line); }
  .metrics > button.metric:nth-of-type(3)::before { left: 41px; }
  .metric-panel { grid-column: 1 / -1; grid-row: 2; }
  .metric-panel + .metric,
  .metric + .metric { border-top: 0; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .site-header .btn { display: inline-flex; }
  .nav__cta { display: none !important; }

  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }

  .about__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 112px); }
  .about__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .mv { grid-template-columns: 1fr 1fr; }
  .values li { grid-template-columns: 180px 1fr; gap: 24px; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .card + .card { border-top: 0; border-left: 1px solid var(--line); }
  .callout { grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; }

  .catalog-head { grid-template-columns: 1fr auto; }
  .grid-cat { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }

  .spec__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 96px); align-items: start; }

  .ext-grid { grid-template-columns: repeat(3, 1fr); }

  .contact__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 112px); }
  .details > div { grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; }

  .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 48px; }
}

.ext-grid { display: grid; gap: 28px; }

/* 16. Microinteracciones y efectos de scroll ------------------------------ */

/* Header compacto al desplazarse */
.site-header__inner { transition: height 0.3s ease; }
.brand img { transition: height 0.3s ease; }
.site-header { box-shadow: 0 6px 18px -14px rgba(71, 18, 18, 0.32); transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(71, 18, 18, 0.42); }
.site-header.is-scrolled .site-header__inner { height: 64px; }
.site-header.is-scrolled .brand img { height: 30px; }

/* Aparición al hacer scroll (solo con JS activo) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

/* Hero: marco con recorte para el parallax */
.hero__frame { overflow: hidden; }
.hero__frame img { will-change: transform; transform: scale(1.08); }

/* Botones */
.btn { position: relative; }
.btn:active { transform: scale(0.98); }
.btn__arrow { display: inline-block; transition: transform 0.3s ease; }
.btn:hover .btn__arrow { transform: translateX(5px); }

.link-arrow span { display: inline-block; transition: transform 0.3s ease; }
.link-arrow:hover span { transform: translateX(5px); }

/* Tarjetas de servicio */
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.card:hover::before { transform: scaleX(1); }
.card__icon { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card__icon { transform: translateY(-5px); }

/* Categorías del catálogo */
.cat h3 { transition: color 0.3s ease; }
.cat:hover h3 { color: var(--brand); }
.cat__img { transition: border-color 0.3s ease; }
.cat:hover .cat__img { border-color: var(--brand); }

/* Productos y extintores */
.product { overflow: hidden; }
.product img,
.ext__img img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product:hover img,
.ext:hover .ext__img img { transform: scale(1.06); }
.product h3 { transition: color 0.3s ease; }
.product:hover h3 { color: var(--brand); }
.ext { transition: border-color 0.3s ease; }
.ext:hover { border-color: var(--brand); }
.chips li { transition: var(--ease); }
.chips li:hover { color: var(--on-brand); background: var(--brand-deep); border-color: var(--brand-deep); }

/* Métricas y filas */
.metric strong { font-variant-numeric: tabular-nums; }
.details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s ease, color 0.3s ease; }
.details a:hover { background-size: 100% 1px; }

/* Formulario */
.field { position: relative; }
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.field:focus-within::after { transform: scaleX(1); }
.field label { transition: color 0.3s ease; }
.field:focus-within label { color: var(--brand); }

/* Footer */
.site-footer li a { display: inline-block; transition: var(--ease); }
.site-footer li a:hover { transform: translateX(4px); }

/* Volver arriba */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--brand-deep);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }

/* 17. Catálogo: listado, categorías y ficha de producto ------------------- */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Enlaces "estirados": toda la tarjeta es clicable en la portada */
.cat, .product, .ext { position: relative; }
.cat__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  color: var(--brand);
}
.cat__more::after,
.card-link::after { content: ""; position: absolute; inset: 0; }
.cat__more span { display: inline-block; transition: transform 0.3s ease; }
.cat:hover .cat__more { color: var(--brand-deep); }
.cat:hover .cat__more span { transform: translateX(5px); }
.card-link:hover { color: var(--brand); }
.spec__more { margin-top: 36px; }
.catalog-head__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Botones extra */
.btn .ico { flex-shrink: 0; }
.btn--light { color: var(--brand-deep); background: var(--on-brand); border-color: var(--on-brand); }
.btn--light:hover { color: var(--brand-deep); background: var(--bg-soft); border-color: var(--bg-soft); }
.btn--outline-light { color: var(--on-brand); background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { color: var(--brand-deep); background: var(--on-brand); border-color: var(--on-brand); }

/* Migas de pan */
.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 0.82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: #c9bdb9; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--brand-deep); font-weight: var(--fw-medium); }

/* Listado */
.shop-head {
  padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 52px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.shop-head h1 { max-width: 820px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.shop-head .lead { max-width: 640px; margin-top: 18px; }
.search { margin-top: 32px; max-width: 560px; }
.search input {
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23471212' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--ease);
}
.search input::placeholder { color: #a99b97; }
.search input:focus { outline: none; border-color: var(--brand); }

.shop { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.shop__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.shop__grid > * { min-width: 0; }
.shop__nav h2 {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop__nav ul { display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
.shop__nav ul::-webkit-scrollbar { display: none; }
.shop__nav li { flex: 0 0 auto; }
.shop__nav li a {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.shop__nav li a span { color: var(--muted); font-weight: var(--fw-regular); }
.shop__nav li a:hover { border-color: var(--brand); color: var(--brand); }
.shop__nav li a.is-current { color: var(--on-brand); background: var(--brand-deep); border-color: var(--brand-deep); }
.shop__nav li a.is-current span { color: rgba(255, 255, 255, 0.7); }
.shop__pdf { display: none; margin-top: 28px; }
.shop__count { margin-bottom: 20px; font-size: 0.88rem; color: var(--muted); }
.shop__count span { color: var(--brand-deep); font-weight: var(--fw-bold); }
.shop__empty { padding: 48px 0; color: var(--muted); }

.pgrid2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pcard { display: flex; }
.pcard__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: var(--ease);
}
.pcard__link:hover { border-color: var(--brand); }
.pcard__img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.pcard__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pcard__link:hover .pcard__img img { transform: scale(1.06); }
.pcard__img--empty img { width: 64px; height: auto; opacity: 0.14; }
.pcard__link > :not(.pcard__img) { margin-inline: 20px; }
.pcard__cat { margin-top: 18px; font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.pcard h3 { margin-top: 8px; font-size: 1.02rem; line-height: 1.35; transition: color 0.3s ease; }
.pcard__link:hover h3 { color: var(--brand); }
.pcard p {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.pcard__cta { margin-top: auto; margin-bottom: 20px; padding-top: 18px; font-size: 0.86rem; font-weight: var(--fw-medium); color: var(--brand); }
.pcard__cta span { display: inline-block; transition: transform 0.3s ease; }
.pcard__link:hover .pcard__cta span { transform: translateX(5px); }

/* Franja de contacto */
.band { padding-block: clamp(48px, 7vw, 80px); color: var(--on-brand); background: var(--brand); }
.band__inner { display: grid; gap: 28px; align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--on-brand); }
.band p { margin-top: 10px; color: rgba(255, 255, 255, 0.85); }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ficha de producto */
.pdp-head { padding-top: 28px; }
.pdp-head .crumbs { margin-bottom: 0; }
.pdp { padding-block: 24px clamp(56px, 8vw, 96px); }
.pdp__grid { display: grid; gap: 36px; align-items: start; }
.pdp__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: clamp(20px, 4vw, 40px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__stage--empty { align-content: center; justify-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.pdp__stage--empty img { width: 72px; height: auto; opacity: 0.16; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp__thumbs button {
  display: block;
  width: 84px;
  height: 84px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: var(--ease);
}
.pdp__thumbs button:hover,
.pdp__thumbs button[aria-current] { border-color: var(--brand); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pdp__info h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.pdp__info .lead { margin-top: 20px; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pdp__meta { margin-top: 36px; border-top: 1px solid var(--line); }
.pdp__meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.pdp__meta dt { font-size: 0.72rem; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); padding-top: 2px; }
.pdp__meta a { color: var(--brand-deep); border-bottom: 1px solid var(--line); }
.pdp__meta a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.pdp-details { padding-bottom: clamp(56px, 8vw, 96px); }
.pdp-details__grid { display: grid; gap: 48px; }
.pdp-details__grid--single .pdp__block { max-width: 860px; }
.pdp__block h2 { margin-bottom: 20px; font-size: 1.25rem; letter-spacing: -0.01em; }
.ticks { border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 10px; height: 1px; background: var(--brand); }
.spec-table { border-top: 1px solid var(--line); }
.spec-table > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-size: 0.72rem; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.spec-table dd { font-size: 0.95rem; line-height: 1.6; }

.quote__grid { display: grid; gap: 48px; }
.quote__info .lead { margin: 20px 0 32px; }
.quote__product { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.quote__product img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.quote__product span { display: block; font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.quote__product strong { display: block; margin-top: 4px; font-size: 0.98rem; line-height: 1.35; color: var(--brand-deep); }

.related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.related__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* WhatsApp flotante */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 41;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--on-brand);
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  transition: var(--ease);
}
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); }
.to-top { bottom: calc(clamp(16px, 3vw, 32px) + 58px); }

@media (min-width: 520px) {
  .pgrid2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 560px) {
  .spec-table > div { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (min-width: 900px) {
  .shop__grid { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .shop__nav { position: sticky; top: calc(var(--header-h) + 24px); }
  .shop__nav ul { flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; border-top: 1px solid var(--line); }
  .shop__nav li a { justify-content: space-between; padding: 13px 0 13px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; border-radius: 0; white-space: normal; }
  .shop__nav li a:hover { border-color: var(--line); border-left-color: var(--brand); }
  .shop__nav li a.is-current { color: var(--brand); background: transparent; border-bottom-color: var(--line); border-left-color: var(--brand); }
  .shop__nav li a.is-current span { color: var(--muted); }
  .shop__pdf { display: inline-flex; }
  .pgrid2 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pgrid2--4 { grid-template-columns: repeat(4, 1fr); }
  .pdp__grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
  .pdp__gallery { position: sticky; top: calc(var(--header-h) + 24px); }
  .pdp-details__grid:not(.pdp-details__grid--single) { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .quote__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 112px); align-items: start; }
  .band__inner { grid-template-columns: 1fr auto; }
}

/* 18. Megamenú «Catálogo» ------------------------------------------------- */
.has-mega { display: flex; align-items: center; }
.mega-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  transition: var(--ease);
}
.mega-toggle svg { transition: transform 0.3s ease; }
.mega-toggle:hover { color: var(--brand); }
.has-mega.is-open .mega-toggle { color: var(--brand); }
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }

/* Puente invisible entre el enlace y el panel para que el hover no se pierda */
.has-mega > a::before { content: ""; position: absolute; left: -12px; right: -40px; top: 100%; height: 40px; }

.mega { display: none; }

.mega__item { display: flex; align-items: center; gap: 16px; padding: 10px 12px; transition: background 0.3s ease; }
.mega__item:hover { background: var(--bg-soft); }
.mega__img { flex: 0 0 96px; display: block; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color 0.3s ease; }
.mega__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mega__text { display: block; min-width: 0; }
.mega__name { display: block; font-size: 0.95rem; font-weight: var(--fw-bold); line-height: 1.3; color: var(--brand-deep); transition: color 0.3s ease; }
.mega__item:hover .mega__img { border-color: var(--brand); }
.mega__item:hover .mega__img img { transform: scale(1.06); }
.mega__item:hover .mega__name { color: var(--brand); }

.mega__all { display: flex; flex-direction: column; gap: 14px; }
.mega__all > a:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 24px;
  color: var(--on-brand);
  background: var(--brand);
  transition: var(--ease);
}
.mega__all > a:first-child:hover { background: var(--brand-dark); }
.mega__all-title { font-size: 1.25rem; font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1.2; }
.mega__all-text { font-size: 0.88rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.mega__all-cta { margin-top: auto; padding-top: 16px; font-size: 0.88rem; font-weight: var(--fw-medium); }
.mega__all-cta span { display: inline-block; transition: transform 0.3s ease; }
.mega__all > a:first-child:hover .mega__all-cta span { transform: translateX(5px); }
.mega__pdf { font-size: 0.85rem; font-weight: var(--fw-medium); color: var(--brand); }
.mega__pdf:hover { color: var(--brand-deep); }

/* Móvil: acordeón dentro del menú */
@media (max-width: 899px) {
  .nav.is-open .has-mega { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__list > li.has-mega > a { flex: 1; border-bottom: 0; }
  .nav.is-open .mega-toggle { width: 44px; height: 44px; }
  .mega.is-open-m,
  .has-mega.is-open .mega { display: block; flex-basis: 100%; padding-bottom: 12px; }
  .mega__grid { display: grid; gap: 4px; }
  .mega__item { gap: 14px; padding: 8px 0; }
  .mega__item:hover { background: none; }
  .mega__img { flex: 0 0 76px; }
  .mega__name { font-size: 0.92rem; }
    .mega__all { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 8px 0 4px; }
  .mega__all > a:first-child { flex: 0 0 auto; padding: 12px 18px; }
  .mega__all-text { display: none; }
  .mega__all-title { font-size: 0.92rem; }
  .mega__all-cta { display: none; }
}

/* Escritorio: panel a ancho completo bajo el header */
@media (min-width: 900px) {
  .has-mega > a { display: inline-block; }
  .mega {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding-block: 28px 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -32px rgba(71, 18, 18, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 14px;
    background: linear-gradient(rgba(71, 18, 18, 0.1), rgba(71, 18, 18, 0));
    pointer-events: none;
  }
  .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
  .mega__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 300px;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 4px 32px;
  }
  .mega__all { grid-column: 3; grid-row: 1 / span 4; }
  html.mega-open body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(36, 22, 21, 0.28);
    animation: mega-fade 0.25s ease;
  }
}
@keyframes mega-fade { from { opacity: 0; } }

/* 19. Radio de bordes ------------------------------------------------------ */
/* Contenedores con borde: recorte para que imágenes y fondos respeten la esquina */
.hero__media,
.cards,
.mv,
.callout,
.cat__img,
.products,
.ext,
.form,
.pcard__link,
.pdp__stage,
.quote__product,
.mega__img,
.mega__all > a:first-child { border-radius: var(--radius); overflow: hidden; }

.hero__frame,
.pdp__thumbs button { border-radius: var(--radius-inner); }
.pdp__thumbs button { overflow: hidden; }
.mega__item { border-radius: var(--radius); }

@media (max-width: 899px) {
  .mega__item { border-radius: 0; }
}

/* 20. Tarjetas de categoría (portada) ---------------------------------------- */
.cat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.cat:hover {
  transform: translateY(-5px);
  border-color: rgba(156, 46, 27, 0.35);
  box-shadow: 0 22px 34px -24px rgba(71, 18, 18, 0.45);
}
/* Línea de acento que recorre la base al pasar el mouse */
.cat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.cat:hover::before { transform: scaleX(1); }

.cat .cat__img { position: relative; border: 0; border-radius: 0; }
.cat:hover .cat__img { border: 0; }
/* Degradado suave para dar profundidad a la foto */
.cat__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 22, 21, 0.34), rgba(36, 22, 21, 0) 48%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cat:hover .cat__img::after { opacity: 1; }

.cat__go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
}
.cat:hover .cat__go { opacity: 1; transform: none; }
@media (hover: none) { .cat__go { opacity: 1; transform: none; } }

.cat > :not(.cat__img) { margin-inline: 24px; }
.cat h3 { margin-top: 22px; }
.cat .cat__more { margin-bottom: 24px; }

/* Tarjetas de producto: elevación sutil al pasar el mouse */
.pcard__link:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -24px rgba(71, 18, 18, 0.4); }
.pcard__link { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease; }

/* 21. Tarjetas de extintores: mismo efecto hover que las categorías -------- */
.ext {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.ext:hover {
  transform: translateY(-5px);
  border-color: rgba(156, 46, 27, 0.35);
  box-shadow: 0 22px 34px -24px rgba(71, 18, 18, 0.45);
}
.ext::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.ext:hover::before { transform: scaleX(1); }
.ext__img { position: relative; }
.ext:hover .cat__go { opacity: 1; transform: none; }
.ext:hover h3 a { color: var(--brand); }

/* 22. Hero con video de fondo ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 82vh, 780px);
  padding-block: clamp(56px, 8vw, 104px);
  overflow: hidden;
  color: var(--on-brand);
  background: var(--brand-deep) url("assets/video/hero-poster.webp") center / cover no-repeat;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Velo burdeos: legibilidad del texto a la izquierda, video más visible a la derecha */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(71, 18, 18, 0.9) 0%, rgba(71, 18, 18, 0.74) 42%, rgba(71, 18, 18, 0.32) 100%);
}
.hero__grid { display: block; position: relative; }
.hero__text { max-width: 700px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero h1 { color: var(--on-brand); }
.hero .lead { color: rgba(255, 255, 255, 0.86); }
.hero__facts { color: rgba(255, 255, 255, 0.78); border-top-color: rgba(255, 255, 255, 0.24); }
.hero__facts strong { color: var(--on-brand); }

@media (max-width: 899px) {
  .hero__overlay { background: linear-gradient(180deg, rgba(71, 18, 18, 0.82), rgba(71, 18, 18, 0.7)); }
}

/* 23. Contacto (portada): foto de fondo con filtro oscuro ------------------ */
.contact-cta {
  position: relative;
  isolation: isolate;
  background: #0d1118 url("assets/img/band-bombero.webp") center 32% / cover no-repeat;
}
/* Filtro que oscurece la foto para mantener legible el texto */
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 10, 10, 0.66);
}
.contact-cta .eyebrow { color: rgba(255, 255, 255, 0.85); }
.contact-cta h2 { color: var(--on-brand); }
.contact-cta .lead { color: rgba(255, 255, 255, 0.82); }
.contact-cta .details { border-top-color: rgba(255, 255, 255, 0.22); }
.contact-cta .details > div { border-bottom-color: rgba(255, 255, 255, 0.22); }
.contact-cta .details dt { color: rgba(255, 255, 255, 0.85); }
.contact-cta .details dd { color: var(--on-brand); }
.contact-cta .details dd a:hover { color: rgba(255, 255, 255, 0.75); }
.contact-cta .details small { color: rgba(255, 255, 255, 0.65); }
.contact-cta .details small a { color: var(--on-brand); border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-cta .form {
  background: var(--bg);
  box-shadow: 0 40px 60px -32px rgba(13, 10, 10, 0.55);
}

/* 24. Página de agradecimiento ---------------------------------------------- */
.thanks { padding-block: clamp(72px, 10vw, 120px); }
.thanks__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.thanks__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 50%;
}
.thanks h1 { margin-top: 6px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.thanks .lead { margin-top: 18px; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.thanks__alt { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.thanks__details { max-width: 320px; margin: 20px auto 0; text-align: left; }
.thanks__details > div { grid-template-columns: 90px 1fr; }
.thanks__back { display: inline-flex; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden] { display: none; }
  .hero__frame img { transform: none; }
  .hero__video { display: none; }
}
