/* ==========================================================================
   DBS · Distribuidora de Baleros del Sureste
   Sistema visual: plano técnico + acero. Tipografía D-DIN (la familia de la marca).
   ========================================================================== */

@font-face { font-family: "DIN"; src: url("../fonts/D-DIN.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN"; src: url("../fonts/D-DIN-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DIN Cond"; src: url("../fonts/D-DINCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DIN Cond"; src: url("../fonts/D-DINCondensed.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN Exp"; src: url("../fonts/D-DINExp.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Acero */
  --steel-950: #08111d;
  --steel-900: #0e1a2b;
  --steel-800: #16263b;
  --steel-700: #22364f;
  --steel-500: #5b6b7f;
  --steel-300: #aab7c4;
  --steel-200: #cfd8e1;
  /* Marca */
  --blue: #1d8bcb;
  --blue-600: #1573ab;
  --blue-700: #0f5d8c;
  --blue-300: #7cc4ee;
  --blue-50: #e8f4fb;
  /* Papel técnico */
  --paper: #eef2f5;
  --white: #ffffff;
  --ink: #14202e;
  --muted: #55657a;
  --line: #d5dde5;
  --line-dark: rgba(255, 255, 255, .12);
  /* Señal */
  --signal: #f2a93b;
  --wa: #1fae5b;
  --wa-600: #178a48;
  --danger: #c43d3d;

  --font: "DIN", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "DIN Cond", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-exp: "DIN Exp", "DIN", Arial, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-cond); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.005em; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipos ---------- */
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead, .page-hero .lead { color: var(--steel-300); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--blue); font-size: 1.2rem; color: var(--steel-700); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6em .5em; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--r); }

/* ---------- Botones ---------- */
.btn { --bg: var(--blue); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.35em; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { --bg: var(--blue-600); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: .55em 1em; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.0625rem; }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { --bg: var(--wa-600); }
.btn--light { --bg: #fff; --fg: var(--steel-900); }
.btn--light:hover { --bg: var(--paper); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg: rgba(127, 127, 127, .12); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--line:hover { --bg: var(--paper); }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--blue-600); }
.link .ico { transition: transform .2s var(--ease); }
.link:hover .ico { transform: translateX(3px); }
.section--dark .link { color: var(--blue-300); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn--line { border: 1px solid var(--line-dark); }
.tag { display: inline-block; padding: .2em .6em; border-radius: var(--r-sm); background: var(--blue-50); color: var(--blue-700); font-size: .8125rem; font-weight: 700; text-decoration: none; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--steel-950); color: var(--steel-200); font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar__msg { gap: .6em !important; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(31, 174, 91, .6); animation: live 2.4s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(31, 174, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 174, 91, 0); } }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--steel-900); color: #fff; border-bottom: 1px solid var(--line-dark); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: 170px; height: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: block; white-space: nowrap; padding: 10px 12px; color: var(--steel-200); text-decoration: none; font-weight: 700; font-size: .98rem; border-radius: var(--r-sm); }
.nav__list > li > a:hover, .nav__list > li > a[aria-current] { color: #fff; }
.nav__list > li > a[aria-current] { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav__toggle { display: none; }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__cta { white-space: nowrap; }
.nav-burger { display: none; }
/* Selector de idioma ES / EN */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line-dark); border-radius: 999px; font: 700 .8125rem/1 var(--font); letter-spacing: .04em; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--steel-300); text-decoration: none; transition: color .15s, background-color .15s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { background: var(--steel-700); color: #fff; }
.lang-switch a:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 1px; }
.nav-burger .ico-close { display: none; }

/* Mega menú */
.mega { position: absolute; top: 100%; left: -24px; width: min(720px, 80vw); padding-top: 12px; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__in { display: grid; grid-template-columns: 1.6fr 1fr; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(8, 17, 29, .45); overflow: hidden; }
.mega__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 16px; }
.mega__list a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.mega__list a:hover { background: var(--paper); color: var(--blue-700); }
.mega__aside { background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.mega__aside p { margin: 0; }

/* Búsqueda */
.searchbar { background: var(--steel-800); border-top: 1px solid var(--line-dark); }
.searchbar__in { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.searchbar__in > .ico { width: 22px; height: 22px; color: var(--steel-300); }
.searchbar input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1.15rem; }
.searchbar input:focus { outline: none; }
.searchbar input::placeholder { color: var(--steel-300); }

/* ---------- Avisos ---------- */
.notice { margin: 20px 0; padding: 14px 18px; border-radius: var(--r); border: 1px solid; }
.notice--ok, .notice--success { background: #e9f8ef; border-color: #a6dfbd; color: #135c32; }
.notice--error { background: #fdeeee; border-color: #f1b7b7; color: #8a2323; }
.notice--info { background: var(--blue-50); border-color: #b9dcf1; color: var(--blue-700); }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; background: var(--steel-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(124, 196, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 196, 238, .07) 1px, transparent 1px), linear-gradient(rgba(124, 196, 238, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 196, 238, .035) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; mask-image: radial-gradient(ellipse 90% 80% at 70% 45%, #000 40%, transparent 85%); }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; z-index: -1; background: radial-gradient(closest-side, rgba(29, 139, 203, .28), transparent); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: clamp(28px, 4vh, 56px); }
.hero__title { font-size: clamp(2.6rem, min(5vw, 9vh), 5.2rem); line-height: .95; letter-spacing: -.012em; margin-bottom: .3em; max-width: 12ch; text-wrap: balance; }
.hero__text { font-size: clamp(1.0625rem, min(1.3vw, 2.4vh), 1.25rem); color: var(--steel-200); max-width: 52ch; margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__search { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 6px 6px 6px 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); border-radius: var(--r); }
.hero__search:focus-within { border-color: var(--blue-300); }
.hero__search > .ico { color: var(--steel-300); }
.hero__search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: #fff; font: inherit; }
.hero__search input:focus { outline: none; }
.hero__search input::placeholder { color: var(--steel-300); }

/* Rodamiento animado */
.bearing { position: relative; width: 100%; aspect-ratio: 800 / 640; }
.bearing__svg { width: 100%; height: 100%; overflow: visible; }
.bearing__guides line, .bearing__guides circle { fill: none; stroke: rgba(124, 196, 238, .35); stroke-width: 1; }
.bearing__guides .dash { stroke-dasharray: 3 6; }
.bearing__ticks line { stroke: rgba(124, 196, 238, .45); stroke-width: 1.2; }
.e-hi { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 1.4; }
.e-lo { fill: none; stroke: #0b1220; stroke-opacity: .22; stroke-width: 1.2; }
.e-dark { fill: none; stroke: #05090f; stroke-opacity: .65; stroke-width: 2.2; }
.bearing__engrave { font: 700 17px var(--font-exp); letter-spacing: .22em; fill: rgba(30, 40, 52, .5); paint-order: stroke; stroke: rgba(255, 255, 255, .35); stroke-width: .6px; }
.bearing__engrave--sm { font-size: 11.5px; font-weight: 400; letter-spacing: .16em; }
.bearing__inner { transform-origin: 400px 320px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bearing__leaders polyline { fill: none; stroke: var(--blue-300); stroke-width: 1.4; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .5s var(--ease) forwards; }
.bearing__leaders circle { fill: var(--steel-900); stroke: var(--blue-300); stroke-width: 1.6; opacity: 0; animation: fade .3s .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.bearing__facts { list-style: none; }
.fact { position: absolute; width: 22%; opacity: 0; animation: factIn .6s 1.25s var(--ease) forwards; }
.fact strong { display: block; font: 700 clamp(1.8rem, 3.3vw, 2.9rem)/1 var(--font-cond); color: #fff; }
.fact span { display: block; font-size: clamp(.78rem, .95vw, .9rem); line-height: 1.3; color: var(--steel-300); margin-top: 4px; }
.fact--0 { left: 2.5%; top: 15%; transform: translateY(calc(-100% - 6px)); }
.fact--1 { right: 2.5%; top: 15%; transform: translateY(calc(-100% - 6px)); text-align: right; }
.fact--2 { left: 2.5%; top: 85%; margin-top: 8px; }
.fact--3 { right: 2.5%; top: 85%; margin-top: 8px; text-align: right; }
@keyframes factIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Promociones ---------- */
.promos { background: var(--paper); padding-block: 28px; }
.promos__track { position: relative; display: grid; }
.promo { grid-area: 1 / 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; min-height: 220px; padding: 28px clamp(20px, 4vw, 48px) 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.promo.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; z-index: 1; }
.promo__copy { transform: translateY(10px); transition: transform .7s var(--ease); }
.promo.is-active .promo__copy { transform: none; }
.promo__img { transform: translateX(24px) scale(.97); transition: transform .9s var(--ease); }
.promo.is-active .promo__img { transform: none; }
.promo__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .3em; }
.promo p { color: var(--muted); }
.promo__img { justify-self: end; max-height: 220px; width: auto; object-fit: contain; }
.promos__nav { position: absolute; z-index: 2; left: clamp(20px, 4vw, 48px); bottom: 14px; display: flex; align-items: center; gap: 8px; }
.promos__dot { position: relative; width: 36px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; overflow: hidden; }
.promos__dot::before { content: ""; position: absolute; inset: -10px 0; }
.promos__dot span { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.promos__dot[aria-current] span { animation: promoFill var(--promo-ms, 5000ms) linear forwards; }
.promos__track.is-paused .promos__dot[aria-current] span { animation-play-state: paused; }
.promos__track.is-static .promos__dot[aria-current] span { animation: none; transform: none; }
@keyframes promoFill { to { transform: scaleX(1); } }
.promos__pause { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--steel-700); cursor: pointer; }
.promos__pause svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promos__pause .i-play { display: none; fill: currentColor; stroke: none; }
.promos__track.is-stopped .promos__pause .i-pause { display: none; }
.promos__track.is-stopped .promos__pause .i-play { display: block; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--steel-900); color: #fff; }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.section__head .lead { margin-bottom: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row .h2 { margin-bottom: .2em; }

/* Líneas de producto (índice de catálogo) */
.lines { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.line { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.line a { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; height: 100%; padding: 22px 20px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.line img { grid-row: span 2; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease); }
.line__name { font: 700 1.35rem/1.1 var(--font-cond); align-self: center; margin-top: 4px; }
.line__text { font-size: .9rem; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.line a:hover { background: var(--paper); }
.line a:hover img { transform: rotate(-12deg) scale(1.04); }
.line a:hover .line__name { color: var(--blue-700); }
.line--all a { background: var(--steel-900); color: #fff; }
.line--all a:hover { background: var(--steel-800); }
.line--all a:hover .line__name { color: #fff; }
.line--all .line__text { color: var(--steel-300); }
.line__ico { grid-row: span 2; width: 76px; height: 76px; padding: 20px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--blue-300); stroke-width: 1.4; }

/* Pilares */
.pillars { background: var(--steel-800); color: #fff; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 40px 32px 40px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.pillar__ico { width: 34px; height: 34px; color: var(--blue-300); stroke-width: 1.5; margin-bottom: 16px; }
.pillar h3 { font-size: 1.6rem; margin-bottom: .3em; }
.pillar p { margin: 0; color: var(--steel-300); }

/* Tarjeta de producto */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pgrid--4 { grid-template-columns: repeat(4, 1fr); }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.pcard:hover { border-color: var(--steel-300); box-shadow: 0 18px 40px -24px rgba(14, 26, 43, .35); }
.pcard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pcard__img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 8%; border-bottom: 1px solid var(--line); }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { padding: 16px 18px 20px; }
.pcard__brand { display: block; font-size: .8125rem; font-weight: 700; color: var(--blue-600); margin-bottom: 4px; }
.pcard__title { font-size: 1.3rem; margin-bottom: .3em; }
.pcard__text { font-size: .925rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Muro de marcas */
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall a { display: grid; place-items: center; height: 100px; padding: 18px 22px; }
.logo-wall img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.logo-wall a:hover img { filter: none; opacity: 1; }

/* Industrias (carrusel horizontal) */
.ind-scroller { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 24vw, 310px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: thin; scrollbar-color: var(--steel-700) transparent; }
.ind-card { scroll-snap-align: start; }
.ind-card a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--steel-800); }
.ind-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ind-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 17, 29, 0) 35%, rgba(8, 17, 29, .92)); }
.ind-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.ind-card__name { display: block; font: 700 1.75rem/1 var(--font-cond); margin-bottom: 6px; }
.ind-card__text { display: block; font-size: .9rem; line-height: 1.4; color: var(--steel-200); }
.ind-card a:hover img { transform: scale(1.05); }
.scroller-ctrl { display: flex; gap: 8px; }

/* Banda catálogo */
.catalog-band { background: linear-gradient(90deg, var(--paper) 0 55%, var(--blue-50) 55%); overflow: hidden; }
.catalog-band__in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.catalog-band img { justify-self: center; max-height: 420px; width: auto; filter: drop-shadow(0 30px 30px rgba(14, 26, 43, .25)); }

/* Blog */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card__img { display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--paper); margin-bottom: 16px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.post-card__title { font-size: 1.55rem; margin-bottom: .35em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--blue-700); }
.post-card__text { color: var(--muted); font-size: .975rem; margin: 0; }
.post-card--lg { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-card--lg .post-card__img { margin: 0; }
.post-card--lg .post-card__title { font-size: clamp(2rem, 3.2vw, 2.75rem); }

/* Franja de sucursales */
.branch-strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.branch-strip li { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.branch-strip__name { font: 700 1.35rem/1.1 var(--font-cond); color: var(--ink); text-decoration: none; }
.branch-strip__name:hover { color: var(--blue-700); }
.branch-strip__state { font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.branch-strip__tel { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; margin-top: auto; }

/* ---------- Banda CTA + pie ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 44px; }
.cta-band h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: .2em; }
.cta-band p { margin: 0; color: #e6f3fb; max-width: 56ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--steel-950); color: var(--steel-300); font-size: .95rem; padding-top: 64px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 190px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__h { font: 700 1.2rem/1 var(--font-cond); color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__branches li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-dark); padding-bottom: 7px; }
.site-footer__branches .tel { color: var(--steel-300); white-space: nowrap; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); }
.social a:hover { background: var(--steel-800); text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; font-size: .875rem; position: relative; }
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }
.site-footer__bottom p { margin: 0; display: flex; gap: 18px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 28px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(10, 60, 30, .6); transition: background-color .2s, transform .2s var(--ease); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { background: var(--wa-600); color: #fff; transform: translateY(-2px); }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; background: var(--steel-900); color: #fff; padding-block: clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(124, 196, 238, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 196, 238, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: .2em; max-width: 20ch; text-wrap: balance; }
.page-hero .lead { margin: 0; }
.page-hero--img { padding-block: clamp(64px, 9vw, 120px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--steel-300); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--steel-200); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs--light ol { color: var(--muted); }
.crumbs--light a { color: var(--blue-600); }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
.filters__group + .filters__group { margin-top: 28px; }
.filters__h { font: 700 1.15rem/1 var(--font-cond); margin-bottom: 10px; }
.filters ul { list-style: none; display: grid; gap: 1px; }
.filters a:not(.btn) { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .975rem; }
.filters a:not(.btn):hover { background: var(--paper); }
.filters a[aria-current] { background: var(--steel-900); color: #fff; }
.filters a small { color: var(--muted); font-size: .8125rem; }
.filters a[aria-current] small { color: var(--steel-300); }
.filters select { width: 100%; }
.filters__toggle { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar form { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.cat-intro { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: center; margin-bottom: 32px; padding: 28px; background: var(--paper); border-radius: var(--r); }
.cat-intro img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.cat-intro .prose { font-size: 1rem; }
.cat-intro .prose p:last-child { margin: 0; }
.cat-intro .prose p { margin-bottom: .6em; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 1.6rem; }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .9375rem; }
.field small { color: var(--muted); font-size: .85rem; }
.input, .field input, .field select, .field textarea, .toolbar input, .filters select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 139, 203, .2); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--row .field { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.errors { margin: 0 0 18px; padding: 12px 16px 12px 34px; background: #fdeeee; border: 1px solid #f1b7b7; color: #8a2323; border-radius: var(--r); }

/* Producto */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery__main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; padding: 6%; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { list-style: none; display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.gallery__thumbs button[aria-current] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29, 139, 203, .25); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; text-decoration: none; }
.product__brand img { height: 30px; width: auto; }
.product h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: .3em; }
.product__sku { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.product__summary { font-size: 1.15rem; color: var(--steel-700); }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.product__assure { list-style: none; display: grid; gap: 8px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.product__assure li { display: flex; gap: 10px; align-items: center; }
.product__assure .ico { color: var(--wa); }
.specs { width: 100%; border-collapse: collapse; font-size: .975rem; }
.specs th, .specs td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 400; }
.specs tr:nth-child(odd) { background: var(--paper); }
.product-tabs { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }

/* Conócenos */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-intro img { width: 100%; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--steel-700); }
.timeline li { position: relative; padding: 28px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--steel-900); border: 2px solid var(--blue-300); }
.timeline strong { display: block; font: 700 2.6rem/1 var(--font-cond); color: #fff; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--steel-300); font-size: .975rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__item { position: relative; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-lg); background: #fff; }
.mv__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); }
.mv__icon .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mv__item h3 { font-size: 1.8rem; }
.mv__item p { margin: 0; font-size: 1.1rem; color: var(--steel-700); }
/* Versión en franja oscura (cuando la línea del tiempo está oculta) */
.section--mv.section--dark .mv__item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); border-top-color: var(--blue); }
.section--mv.section--dark .mv__icon { background: rgba(29,139,203,.16); color: var(--blue-300); }
.section--mv.section--dark .mv__item h3 { color: #fff; }
.section--mv.section--dark .mv__item p { color: var(--steel-300); }
.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.values h3 { font-size: 1.4rem; margin-bottom: .3em; }
.values p { color: var(--muted); margin: 0; font-size: .975rem; }
.values .ico { width: 28px; height: 28px; color: var(--blue); margin-bottom: 12px; }
.certs { display: flex; flex-wrap: wrap; gap: 12px; }
.cert { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: 700 1.3rem/1 var(--font-cond); }
.cert .ico { color: var(--blue); width: 26px; height: 26px; }

/* Marcas e industrias */
.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-grid a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 18px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; height: 100%; }
.brand-grid a:hover { border-color: var(--steel-300); box-shadow: 0 18px 40px -26px rgba(14, 26, 43, .4); }
.brand-grid img { height: 54px; width: auto; max-width: 80%; object-fit: contain; }
.brand-grid span { font-weight: 700; }
.brand-grid small { color: var(--muted); }
.ind-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-grid .ind-card a { aspect-ratio: 4 / 3; }

/* Sucursales */
.branches { display: grid; gap: 24px; }
.branch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; scroll-margin-top: calc(var(--header-h) + 20px); }
.branch__info { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.branch__info h2 { font-size: 2rem; margin: 0; }
.branch__main { display: inline-block; align-self: flex-start; }
.branch__row { display: flex; gap: 10px; align-items: flex-start; color: var(--steel-700); }
.branch__row .ico { margin-top: 4px; color: var(--blue); }
.branch__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.branch__map { min-height: 300px; background: var(--paper); }
.branch__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.branch-index { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.branch-index a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 20px; color: #fff; text-decoration: none; font-size: .95rem; }
.branch-index a:hover { background: var(--steel-800); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-aside { display: grid; gap: 16px; }
.contact-box { padding: 24px; border-radius: var(--r-lg); background: var(--paper); }
.contact-box h2 { font-size: 1.5rem; }
.contact-box p { margin: 0 0 .5em; }
.contact-box--wa { background: #e9f8ef; }

/* Artículo */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article__cover { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--steel-300); font-size: .95rem; margin-top: 12px; }
.article .prose { font-size: 1.125rem; line-height: 1.7; }
.share { display: flex; gap: 8px; align-items: center; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--steel-700); }
.share a:hover { background: var(--paper); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.sidebar__box { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.sidebar__box h2 { font-size: 1.35rem; }
.sidebar__box ul { list-style: none; display: grid; gap: 8px; }
.sidebar__box a { text-decoration: none; }
.sidebar__box--dark { background: var(--steel-900); color: #fff; border: 0; }
.sidebar__box--dark p { color: var(--steel-300); }
.cat-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cat-pills a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.cat-pills a:hover { border-color: var(--steel-300); }
.cat-pills a[aria-current] { background: var(--steel-900); border-color: var(--steel-900); color: #fff; }

/* Búsqueda */
.results { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results a { font: 700 1.35rem/1.2 var(--font-cond); text-decoration: none; }
.results p { margin: 4px 0 0; color: var(--muted); }
.results small { color: var(--blue-700); font-weight: 700; }

/* Paginación */
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager a:hover { background: var(--paper); }
.pager span[aria-current] { background: var(--steel-900); border-color: var(--steel-900); color: #fff; }
.pager__gap { align-self: center; color: var(--muted); }

/* 404 / gracias */
.center-page { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.center-page .big { font: 700 clamp(5rem, 14vw, 10rem)/1 var(--font-cond); color: var(--blue); margin-bottom: .1em; }
.center-page .lead { margin-inline: auto; }
.center-page .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav__list > li > a { padding: 10px 9px; font-size: .94rem; }
  .brand img { width: 150px; }
  .site-header__in { gap: 16px; }
  .lines { grid-template-columns: repeat(3, 1fr); }
}

/* El menú de productos no debe salirse de la pantalla en anchos medianos */
@media (max-width: 1320px) and (min-width: 1025px) {
  .mega { left: -170px; }
}

@media (max-width: 1100px) and (min-width: 1025px) {
  .nav__list > li > a { padding: 10px 7px; font-size: .9rem; }
  .brand img { width: 132px; }
  .site-header__actions { gap: 6px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav-burger { display: inline-grid; }
  .site-header__cta { display: none; }
  .nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; margin: 0; background: var(--steel-900); padding: 12px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .nav-open .nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-open .nav-burger .ico-open { display: none; }
  .nav-open .nav-burger .ico-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .nav__list > li > a { flex: 1; padding: 16px 4px; font-size: 1.25rem; font-family: var(--font-cond); }
  .nav__list > li > a[aria-current] { box-shadow: none; color: var(--blue-300); }
  .nav__toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer; }
  .nav__toggle .ico { transition: transform .2s; }
  .has-mega.open .nav__toggle .ico { transform: rotate(180deg); }
  .mega { position: static; width: 100%; padding: 0 0 12px; display: none; visibility: visible; opacity: 1; transform: none; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.open .mega { display: block; }
  .mega__in { grid-template-columns: 1fr; background: transparent; box-shadow: none; color: #fff; }
  .mega__list { padding: 0; grid-template-columns: 1fr 1fr; }
  .mega__list a { color: var(--steel-200); font-weight: 400; }
  .mega__list a:hover { background: var(--steel-800); color: #fff; }
  .mega__aside { display: none; }
  .nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
  .nav__mobile-extra .btn { color: #fff; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__title { max-width: 16ch; }
  .hero__visual { max-width: 720px; width: 100%; margin-inline: auto; }
  .pgrid--4 { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; }
  .filters__panel { display: none; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
  .filters.open .filters__panel { display: block; }
  .product-tabs, .article { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .branch-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-dark); }
  .pgrid, .pgrid--4, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-band { background: var(--paper); }
  .catalog-band__in, .about-intro, .product, .contact, .branch, .post-card--lg, .cat-intro { grid-template-columns: 1fr; }
  .cat-intro img { display: none; }
  .promo { grid-template-columns: 1fr; padding-bottom: 52px; }
  .promo__img { justify-self: center; max-height: 160px; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .mv { grid-template-columns: 1fr; }
  .branch__map { order: -1; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .topbar__links { display: none; }
  .topbar__msg { font-size: .8125rem; }
  .brand img { width: 136px; }
  .bearing { aspect-ratio: auto; }
  .bearing__svg { aspect-ratio: 800 / 640; height: auto; }
  .bearing__leaders { display: none; }
  .bearing__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 8px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
  .fact { position: static; width: auto; transform: none !important; text-align: left !important; margin: 0 !important; padding: 14px; background: var(--steel-900); }
  .fact strong { font-size: 2rem; }
  .fact span { font-size: .85rem; }
  .lines { grid-template-columns: 1fr; }
  .line a { padding: 16px 12px; }
  .pgrid, .pgrid--4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__body { padding: 12px; }
  .pcard__title { font-size: 1.1rem; }
  .pcard__text { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .logo-wall a { height: 68px; padding: 10px 8px; }
  .branch-strip, .ind-grid, .values, .timeline { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .field--row .field { margin-bottom: 16px; }
  .wa-float { height: 52px; padding: 0 14px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .scroller-ctrl { display: none; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .bearing__inner { animation: none; }
  .promos__dot[aria-current] span { animation: none !important; transform: none; }
  .bearing__leaders polyline { stroke-dashoffset: 0; }
  .bearing__leaders circle, .fact { opacity: 1; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .wa-float, .filters { display: none !important; }
}
.center-page .big .ico { width: 1em; height: 1em; margin: 0 auto; stroke-width: 2.2; }

/* Aviso de versión de prueba */
.beta-ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 300; padding: 6px 12px; border-radius: 4px; background: var(--signal); color: var(--steel-900); font-size: .8125rem; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); pointer-events: none; }

/* Catálogo: estado de carga al filtrar sin recargar */
[data-swap="results"] { transition: opacity .15s; }
.catalog__main.is-loading [data-swap="results"] { opacity: .5; }
/* Menú de filtros fijo en escritorio; si es más alto que la pantalla, se desplaza por dentro */
@media (min-width: 1025px) {
  /* Menú fijo: solo la lista de categorías se desplaza si no cabe; marca y WhatsApp siempre visibles */
  .filters__panel { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 40px); }
  .filters__group--cats { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .filters__group--cats ul { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; min-height: 120px; }
  .filters__panel > [data-swap="brands"], .filters__help { flex: none; }
}

/* Catálogo: cabecera y descripción de alto fijo (la lista no se mueve al cambiar de categoría) */
.page-hero--fixed .crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.page-hero--fixed h1 { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-hero--fixed .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: calc(2em * 1.6); line-height: 1.6; }
.cat-intro img { object-fit: cover; }
.cat-intro__text { font-size: 1rem; line-height: 1.6; height: calc(6 * 1.6em); overflow: hidden; position: relative; }
.cat-intro__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(rgba(238, 242, 245, 0), var(--paper)); opacity: 0; transition: opacity .2s; }
.cat-intro.is-clamped .cat-intro__text::after { opacity: 1; }
.cat-intro.is-open .cat-intro__text { height: auto; }
.cat-intro.is-open .cat-intro__text::after { opacity: 0; }
.cat-intro__more { margin-top: 8px; padding: 0; border: 0; background: none; font: 700 .9375rem var(--font); cursor: pointer; height: 1.4em; visibility: hidden; }
.cat-intro.is-clamped .cat-intro__more { visibility: visible; }
@media (max-width: 680px) {
  .page-hero--fixed h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: calc(2 * 1.05em); line-height: 1.05; }
  .page-hero--fixed .lead { -webkit-line-clamp: 3; height: calc(3em * 1.6); }
}
@media (min-width: 1025px) { [data-swap="results"] { min-height: 560px; } }

/* Inicio: la cabecera principal cabe completa en la pantalla al cargar (escritorio) */
:root { --chrome: var(--header-h); }
.has-topbar { --chrome: calc(var(--header-h) + 38px); }
@media (min-width: 1025px) {
  .hero__in { min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); }
  .hero__visual { display: flex; align-items: center; justify-content: center; }
  .hero__visual .bearing { width: min(100%, 800px, calc((100svh - var(--chrome) - 2 * clamp(28px, 4vh, 56px)) * 1.25)); }
}
/* Páginas internas: cabecera más compacta */
.page-hero { padding-block: clamp(28px, 4vw, 48px); }

/* Recuadro de descarga del catálogo (inicio): mismo formato que las demás líneas */
.lines { grid-auto-rows: 1fr; }
.line--all .dl-tile { grid-template-rows: auto auto 1fr; background: radial-gradient(120% 120% at 0% 0%, #1b3150 0%, var(--steel-900) 70%); }
.line--all .dl-tile:hover { background: radial-gradient(120% 120% at 0% 0%, #22406a 0%, var(--steel-800) 70%); }
.dl-tile__icon { grid-row: span 3; width: 76px; height: 76px; padding: 12px 14px 10px 10px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--line-dark); overflow: visible; }
.dl-tile__arrow { transition: transform .3s var(--ease); }
.dl-tile:hover .dl-tile__arrow, .dl-tile:focus-visible .dl-tile__arrow { transform: translateY(3px); }
.dl-tile__btn { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--blue); color: #fff; font-weight: 700; font-size: .875rem; line-height: 1; white-space: nowrap; transition: background-color .2s; }
.dl-tile__btn .ico { width: 1em; height: 1em; }
.dl-tile__btn small { font-weight: 400; color: #cfe7f6; font-size: .75rem; }
.dl-tile:hover .dl-tile__btn { background: var(--blue-600); }

.filters__help { padding: 16px; border-radius: var(--r); background: #e9f8ef; text-align: center; }
.filters__help p { margin: 0 0 10px; font-size: .9rem; line-height: 1.4; color: #135c32; }
.filters__help .btn { font-size: .875rem; padding-inline: 10px; gap: .45em; white-space: nowrap; text-align: center; }
.filters [data-swap="brands"] .filters__group { margin-top: 24px; }
.filters [data-swap="brands"] + .filters__group { margin-top: 20px; }

/* Subcategorías en el menú del catálogo */
.filters .filters__sub { display: grid; gap: 1px; margin: 2px 0 6px 12px; padding: 0 0 0 10px; border-left: 2px solid var(--line); overflow: visible; min-height: 0; }
.filters .filters__sub a:not(.btn) { padding: 5px 10px; font-size: .9rem; color: var(--muted); }
.filters .filters__sub a[aria-current] { color: #fff; }
.filters .has-sub { position: relative; }
.filters .has-sub > a { padding-right: 34px; }
.filters .has-sub:not(.is-open) > .filters__sub { display: none; }
.filters__tog { position: absolute; top: 0; right: 0; width: 32px; height: 36px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); }
.filters__tog::before { content: ""; position: absolute; top: 13px; left: 12px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.filters__tog[aria-expanded="true"]::before { transform: rotate(45deg); top: 11px; }
.filters__tog:hover { color: var(--blue-700); }
.filters .has-sub > a[aria-current] + .filters__tog { color: #fff; }

/* Aliados comerciales */
.partners { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partners li > a, .partners li > span { display: grid; place-items: center; height: 104px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.partners li > a:hover, .partners li > span:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 30px -18px rgba(8, 17, 29, .45); }
.partners img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1100px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .partners { grid-template-columns: repeat(2, 1fr); gap: 10px; } .partners li > a, .partners li > span { height: 84px; padding: 12px 14px; } .partners img { max-height: 46px; } }

/* Línea del tiempo con más momentos: cada fila conserva su línea */
.timeline { border-top: 0; row-gap: 44px; }
.timeline li { border-top: 2px solid var(--steel-700); }
@media (min-width: 1025px) { .timeline:has(> li:nth-child(5)) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) and (min-width: 861px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
.filters a[aria-current]:not(.btn), .filters a[aria-current]:not(.btn):hover { background: var(--steel-900); color: #fff; }

/* Conócenos: foto del CEDIS */
.about-photo { margin: 0; position: relative; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(8, 17, 29, .5); }
.about-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: var(--r-sm); background: rgba(14, 26, 43, .82); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .01em; backdrop-filter: blur(4px); }

/* ---------- Mapa de cobertura (inicio) ---------- */
.coverage { background: var(--steel-900); color: #fff; overflow: hidden; }
.coverage__in { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.coverage .h2 { color: #fff; }
.coverage .lead { color: var(--steel-300); }
.coverage__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; padding: 0; list-style: none; }
.coverage__list a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dfe6ee; font-size: .92rem; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.coverage__list a:hover, .coverage__list a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.coverage__map { position: relative; }
.coverage__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.state { fill: #1d2f45; stroke: #3d5878; stroke-width: 1; stroke-linejoin: round; cursor: pointer; transition: fill .2s; }
.state--branch { fill: #1f4466; }
.state.is-under { fill: #0b1522; }
.state--lift { pointer-events: none; fill: #2a74ad; stroke: #9fd3f3; stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(0,0,0,.5)); animation: state-hop .55s cubic-bezier(.3,1.6,.5,1) forwards; }
.state--lift.state--branch { fill: var(--blue); }
.state--lift.is-drop { animation: state-drop .22s ease-in forwards; }
@keyframes state-hop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-12px) scale(1.04); } 100% { transform: translateY(-7px) scale(1.025); } }
@keyframes state-drop { from { transform: translateY(-7px) scale(1.025); } to { transform: translateY(0) scale(1); opacity: .2; } }
.brg-pin { cursor: pointer; outline: none; }
.brg-pin__icon { transform-box: fill-box; transform-origin: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.brg-pin .brg__balls { transform-origin: 0 0; }
.brg-pin:hover .brg-pin__icon, .brg-pin:focus-visible .brg-pin__icon, .brg-pin.is-active .brg-pin__icon { transform: scale(1.22); }
.brg-pin:hover .brg__balls, .brg-pin.is-active .brg__balls { animation: brg-spin 1.6s linear infinite; }
.brg-pin__pulse { fill: none; stroke: var(--blue-300); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: brg-pulse 2.6s ease-out infinite; }
.brg-pin:nth-child(2n) .brg-pin__pulse { animation-delay: .9s; }
.brg-pin:nth-child(3n) .brg-pin__pulse { animation-delay: 1.7s; }
.brg-pin:focus-visible .brg-pin__pulse { opacity: 1; animation: none; stroke-width: 3; }
@keyframes brg-pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes brg-spin { to { transform: rotate(360deg); } }
.coverage__tip { position: absolute; z-index: 2; pointer-events: none; padding: 6px 10px; border-radius: 6px; background: #fff; color: var(--steel-900); font-size: .88rem; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); transform: translate(-50%, calc(-100% - 14px)); }
.coverage__tip small { display: block; font-weight: 500; color: var(--steel-700); }
@media (max-width: 1024px) { .coverage__in { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .brg-pin__icon { transform: scale(1.35); } .brg-pin:hover .brg-pin__icon { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .state--lift, .state--lift.is-drop, .brg-pin__pulse, .brg-pin:hover .brg__balls { animation: none; }
  .state--lift { transform: translateY(-4px); }
}
