/* ==========================================================================
   RODASA — Hoja de estilos principal
   Rodamientos S.A. de C.V. · https://www.rodasasv.com
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0a497b;
  --navy-900: #052c4a;
  --navy-800: #073a5e;
  --teal: #00a6c0;
  --teal-700: #0b7f95;
  --green: #8dc63f;
  --green-700: #6fa529;
  --red: #ba3b2d;

  --ink: #12222e;
  --ink-soft: #33475a;
  --muted: #5c6f7d;
  --line: #e1e9ef;
  --bg: #f5f8fa;
  --bg-2: #eef4f7;
  --white: #fff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(6, 44, 74, .06);
  --shadow: 0 18px 40px -26px rgba(6, 44, 74, .45);
  --shadow-lg: 0 28px 60px -28px rgba(6, 44, 74, .5);

  --font: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::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-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
iframe { max-width: 100%; }

img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy-900);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green); color: var(--navy-900); }

/* ---------- Utilidades ---------- */
.container {
  width: min(1200px, 100% - 44px);
  margin-inline: auto;
}

.container--narrow { width: min(860px, 100% - 44px); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--alt { background: var(--bg); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; text-decoration: none; }

main { display: block; }
main:focus { outline: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head--row > div { flex: 1 1 520px; max-width: 720px; }
.section-head--row > .link-arrow { flex: 0 0 auto; padding-bottom: 4px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: none; color: var(--teal-700); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green);
  color: var(--navy-900);
  box-shadow: 0 12px 24px -14px rgba(111, 165, 41, .9);
}
.btn--primary:hover { background: #9ad34c; }

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover { background: var(--navy-800); }

.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}
.btn--outline:hover { border-color: var(--navy); }

.btn--block { width: 100%; }

.btn svg { flex: none; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}
.topbar__group {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .88);
}
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar svg { color: var(--green); }
.topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
}
.topbar__badge span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(6, 44, 74, .45);
  border-color: transparent;
}
.header__in {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { width: 116px; height: auto; }
.logo:hover { text-decoration: none; }

.nav { margin-left: auto; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > ul > li { position: relative; }
.nav a,
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav a:hover,
.nav__toggle:hover { color: var(--navy); background: var(--bg-2); text-decoration: none; }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}
.nav__toggle svg { transition: transform .25s var(--ease); }
.nav li.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__contact { display: none; }

/* Submenú de productos */
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.submenu a:hover { background: var(--bg-2); color: var(--navy); }
.nav li.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (hover: hover) and (min-width: 1000px) {
  .nav li.has-sub:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.header__cta { flex: none; padding: 12px 22px; font-size: .88rem; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: background-color .2s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-900) 0%, #063a5f 46%, var(--teal-700) 120%);
  color: #fff;
  padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 84px);
}
.hero::before {
  content: "";
  position: absolute;
  right: -14%;
  top: -38%;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 166, 192, .55), rgba(0, 166, 192, 0) 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -58%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(141, 198, 63, .22), rgba(141, 198, 63, 0) 66%);
  pointer-events: none;
}
.hero__rings {
  position: absolute;
  right: max(-90px, -6vw);
  top: 50%;
  width: min(560px, 52vw);
  transform: translateY(-50%);
  opacity: .22;
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: #b8e56f;
}
.hero .eyebrow { color: #bff0ff; }
.hero .eyebrow::before { background: var(--green); }
.hero .lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__stats strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #fff;
}
.hero__stats span {
  font-size: .82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .68);
  display: block;
  margin-top: 4px;
}

.hero__card {
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero__card img { display: block; width: 100%; max-width: 170px; height: auto; margin: 0 auto 18px; }
.hero__card h2 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.hero__card p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero__card .btn { width: 100%; }
.hero__card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.hero__card-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero__card-note svg { color: var(--green-700); flex: none; margin-top: 2px; }

/* ---------- Banda de marcas ---------- */
.brands {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.brands__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.brands__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 38px;
}
.brands__list li {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #9aa9b4;
  transition: color .2s;
}
.brands__list li:hover { color: var(--navy); }
.brands__list img { height: 26px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.brands__list img:hover { filter: none; opacity: 1; }

/* ---------- Tarjetas ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfe0ea;
}
.product-card__media {
  display: grid;
  height: 210px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card h3 {
  font-size: 1.04rem;
  margin: 0;
}
.product-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.product-card__link {
  margin-top: auto;
  padding-top: 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card:hover .product-card__link { color: var(--teal-700); }
.product-card:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.product-card > a.card-hit {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
  overflow: hidden;
}
.product-card > a.card-hit:focus-visible { outline: none; }

/* Tarjeta editorial con foto */
.photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  isolation: isolate;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s var(--ease);
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 44, 74, .05) 20%, rgba(5, 28, 48, .92) 100%);
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card:hover { text-decoration: none; }
.photo-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.photo-card p {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  margin-bottom: 14px;
}
.photo-card .link-arrow { color: #cdf29a; }

/* ---------- Estadísticas ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats div {
  background: #fff;
  padding: 26px 22px;
}
.stats strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: var(--navy);
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Split (texto + imagen) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.split__media--offset::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 45%;
  height: 45%;
  border-radius: var(--radius-lg);
  background: var(--green);
  opacity: .16;
  z-index: -1;
}
.split h2 { margin-bottom: .45em; }
.split .lead { color: var(--ink-soft); }
.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--ink-soft);
}
.checklist svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-700);
}

/* ---------- Cita ---------- */
.quote {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy-900);
}
.quote::before {
  content: "“";
  display: block;
  font-size: 4.5rem;
  line-height: .6;
  color: var(--green);
  margin-bottom: 10px;
}
.quote figcaption {
  margin-top: 18px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- Sucursales ---------- */
.branches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.branch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.branch__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}
.branch__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.branch__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}
.branch h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.branch__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 10px;
}
.branch p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.branch__links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 2px;
}
.branch__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .92rem;
}
.branch__links a svg { flex: 0 0 auto; }
.branch__map { color: var(--teal-700); }
.branch__map:hover { text-decoration: underline; }
.branch__fax {
  margin: 10px 0 0;
  font-size: .8rem;
}
@media (hover: hover) and (pointer: fine) {
  .branch:hover .branch__media img { transform: scale(1.045); }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--teal-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 46px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 52ch; }
.cta > div:first-child { flex: 1 1 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; flex: 0 0 auto; }

/* ---------- Encabezado de página interior ---------- */
.pagehead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), #06436b 70%, #0a5c7c);
  color: #fff;
  padding: clamp(38px, 5vw, 64px) 0 clamp(42px, 5vw, 66px);
}
.pagehead::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 42px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}
.pagehead h1 {
  color: #fff;
  margin-bottom: 12px;
  max-width: 24ch;
}
.pagehead .lead {
  color: rgba(255, 255, 255, .8);
  max-width: 66ch;
  margin: 0;
  font-size: 1.05rem;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumb [aria-current] { color: #d7f0a8; }

/* ---------- Prosa ---------- */
.prose { max-width: 70ch; }
.prose > p { color: var(--ink-soft); }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul {
  display: grid;
  gap: 8px;
  margin: 0 0 1.2em;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Páginas legales (privacidad y términos) */
.legal { margin-inline: auto; }
.legal-meta {
  display: inline-block;
  margin-bottom: 1.4em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(141, 198, 63, .16);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
}
.legal-back { margin-top: 2.6em; }
.legal h2:first-of-type { margin-top: .6em; }

/* Reductor / motoreductor: comparativa dentro de la ficha de producto */
.types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 2.2em 0 0;
}
.types__item {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.types__item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.types__item p {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .types { grid-template-columns: 1fr; }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.tags li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.gallery button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.gallery button:hover {
  box-shadow: var(--shadow);
  border-color: #cfe0ea;
  transform: translateY(-2px);
}
.gallery img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 22, 36, .88);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  width: min(400px, 82vw);
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Layout con sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.side-nav a:hover { background: var(--bg-2); color: var(--navy); text-decoration: none; }
.side-nav a[aria-current] {
  background: var(--navy);
  color: #fff;
}
.panel--cta {
  background: linear-gradient(150deg, var(--navy-900), var(--navy) 70%, var(--teal-700));
  border: 0;
  color: #fff;
}
.panel--cta h2 { color: rgba(255, 255, 255, .75); }
.panel--cta p { color: rgba(255, 255, 255, .85); font-size: .92rem; margin-bottom: 16px; }
.panel--cta .btn { width: 100%; }
.panel--cta a.panel-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.panel--cta a.panel-tel svg { color: var(--green); }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
}
.callout h2 { font-size: 1.15rem; margin-bottom: 4px; }
.callout p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .94rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.field label .req { color: var(--red); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 166, 192, .12);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-hint {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.field-hint--warn {
  color: var(--red);
  font-weight: 600;
}
.field--checkbox {
  margin-top: 8px;
  margin-bottom: 22px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .88rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.45;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.checkbox-label a:hover {
  color: var(--red);
}
.rod-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.form-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}
.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #eef7e2; color: #3f6410; border: 1px solid #cfe6ab; }
.form-status.is-error { background: #fdeeec; color: #8c2b20; border: 1px solid #f2c9c4; }

.contact-info { display: grid; gap: 26px; }
.contact-info__lead p { color: var(--ink-soft); }
.info-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-block__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--navy);
}
.info-block strong { display: block; font-size: .95rem; }
.info-block a,
.info-block span { font-size: .93rem; color: var(--muted); }
.info-block a:hover { color: var(--navy); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  padding: clamp(48px, 6vw, 72px) 0 0;
  font-size: .9rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 54px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
}
.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 42px;
}
.footer__brand img { width: 118px; margin-bottom: 16px; }
.footer__brand p { max-width: 30ch; margin-bottom: 18px; color: rgba(255, 255, 255, .66); }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .2s, color .2s, transform .2s;
}
.social a:hover,
.social a:focus-visible {
  background: var(--green);
  color: var(--navy-900);
  transform: translateY(-2px);
  text-decoration: none;
}
.social svg { display: block; }

/* Variante compacta para la barra superior */
.social--sm { gap: 4px; }
.social--sm a {
  width: 26px;
  height: 26px;
  background: transparent;
  color: var(--green);
}
.social--sm a:hover,
.social--sm a:focus-visible {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transform: none;
}
.social--sm a:hover svg,
.social--sm a:focus-visible svg { color: #fff; }

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer__links a:hover { color: #fff; text-decoration: none; }

.footer__contact { display: grid; gap: 12px; }
.footer__contact a,
.footer__contact p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  margin: 0;
  line-height: 1.5;
}
.footer__contact svg { color: var(--green); flex: none; margin-top: 3px; }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 84px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__bottom a { color: rgba(255, 255, 255, .6); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(6, 48, 27, .28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.wa-float:hover {
  background: #1eb957;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(6, 48, 27, .34);
}
.wa-float:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.wa-float svg { width: 25px; height: 25px; flex: none; }

/* ---------- Nieve navideña (diciembre) ---------- */
.rodasa-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  animation: rodasa-snow-in 1.6s ease-out forwards;
}
@keyframes rodasa-snow-in {
  to { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .hero__rings { opacity: .12; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid--4,
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .branches { grid-template-columns: 1fr; }

  /* Catálogo: dos líneas por fila para comparar sin scroll infinito */
  .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--products .product-card__media { height: 128px; padding: 10px; }
  .grid--products .product-card__body { padding: 12px 12px 15px; gap: 4px; }
  .grid--products .product-card h3 { font-size: .9rem; line-height: 1.3; }
  .grid--products .product-card p {
    font-size: .78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grid--products .product-card__link { padding-top: 10px; font-size: .7rem; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery button { padding: 10px; }

  .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .header__cta { display: none; }
  .burger { display: inline-flex; }

  .topbar { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    padding: 12px 22px 32px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav a,
  .nav__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--ink);
  }
  .nav a.is-active { background: var(--bg-2); }
  .nav a.is-active::after { display: none; }
  .submenu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0 0 8px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: transparent;
  }
  .nav li.is-open .submenu { display: grid; transform: none; }
  .submenu a { padding: 12px 24px; }

  .nav__contact {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav__contact a { font-size: .92rem; color: var(--muted); }

  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }

  .topbar__group--hide-sm { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container,
  .container--narrow { width: calc(100% - 32px); }

  .topbar__in { min-height: 38px; }
  .topbar__group { gap: 14px; }
  .topbar__badge { display: none; }
  .topbar { display: none; }

  .hero { padding-top: 40px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero__stats li:last-child { grid-column: 1 / -1; }

  .section-head--row { align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  .cta__actions { flex: 1 1 100%; width: 100%; }
  .cta__actions .btn { width: 100%; }
  .photo-card { min-height: 260px; }
  .pagehead h1 { max-width: none; }

  .wa-float {
    width: 54px;
    min-height: 0;
    height: 54px;
    padding: 0;
    justify-content: center;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .rodasa-snow { display: none !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta, .sidebar, .skip-link, .wa-float { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .pagehead { background: none !important; color: #000; }
  .hero h1, .pagehead h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
/* Solo le damos contexto de posición al contenedor principal sin tocar sus tamaños */
.hero {
  position: relative;
  z-index: 1;
}

/* El contenedor del fondo ocupa exactamente el espacio disponible sin empujar elementos */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  overflow: hidden;
}

/* El video se centra y recorta automáticamente (cover) respetando el tamaño de su padre */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Capa para mantener la legibilidad de las letras blancas */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 73, 123, 0.7); 
}
/* ==========================================================================
   Animaciones de entrada (2026)
   Solo transform y opacity: no disparan recálculo de layout.
   ========================================================================== */

/* ---------- Hero: el texto entra desde la izquierda ---------- */
.hero__copy > .eyebrow,
.hero__copy > .lead,
.hero__actions,
.hero__stats {
  animation: heroFromLeft .8s cubic-bezier(.22, .61, .36, 1) both;
}
.hero__copy > .eyebrow { animation-delay: .05s; }
.hero__copy > .lead { animation-delay: .5s; }
.hero__actions { animation-delay: .62s; }
.hero__stats { animation-delay: .74s; }

.hero h1 .w {
  display: inline-block;
  animation: heroWord .85s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(.16s + var(--i, 0) * 70ms);
}

/* ---------- Hero: el recuadro baja desde arriba ---------- */
.hero__card {
  animation: heroFromTop .95s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: .18s;
}

@keyframes heroFromLeft {
  from { opacity: 0; transform: translate3d(-30px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes heroWord {
  from { opacity: 0; transform: translate3d(-26px, 0, 0) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFromTop {
  from { opacity: 0; transform: translate3d(0, -44px, 0) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Rodamientos: el balero se arma al entrar en pantalla ---------- */
.bearing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: clamp(22px, 3.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 12% 15%, rgba(10, 73, 123, .10), rgba(10, 73, 123, 0) 60%),
    linear-gradient(135deg, #f7fbfd, #ffffff 55%);
  overflow: hidden;
}
.bearing-stage { display: grid; place-items: center; }
.bearing { display: block; width: 100%; max-width: 300px; height: auto; }
.bearing-copy h3 { margin: 6px 0 10px; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.bearing-copy p { margin: 0; color: var(--muted); max-width: 56ch; }
.bearing-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.bearing-parts li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Piezas ocultas hasta que el JS marca la sección */
.js [data-bearing] .bez-inner,
.js [data-bearing] .bez-outer,
.js [data-bearing] .bez-cage,
.js [data-bearing] .bez-ball { opacity: 0; }

.bez-inner,
.bez-outer { transform-box: view-box; transform-origin: 50% 50%; }
.bez-ball { transform-box: fill-box; transform-origin: center; }
.bez-live { transform-box: view-box; transform-origin: 50% 50%; }

.js [data-bearing].is-on .bez-inner {
  animation: bezScale .75s cubic-bezier(.22, .61, .36, 1) both;
}
.js [data-bearing].is-on .bez-ball {
  animation: bezPop .5s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: calc(.4s + var(--i, 0) * 75ms);
}
.js [data-bearing].is-on .bez-cage {
  animation: bezFade .45s ease-out both .98s;
}
.js [data-bearing].is-on .bez-outer {
  animation: bezDrop .8s cubic-bezier(.22, .61, .36, 1) both 1.08s;
}
.js [data-bearing].is-on .bez-live {
  animation: bezSpin 34s linear infinite 1.95s;
}

@keyframes bezScale {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bezPop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bezFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bezDrop {
  from { opacity: 0; transform: translate3d(0, -38px, 0) scale(1.06); }
  to { opacity: 1; transform: none; }
}
@keyframes bezSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .bearing-showcase { grid-template-columns: 1fr; text-align: center; }
  .bearing { max-width: 240px; }
  .bearing-parts { justify-content: center; }
  .bearing-copy p { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > .eyebrow,
  .hero__copy > .lead,
  .hero__actions,
  .hero__stats,
  .hero__card,
  .hero h1 .w {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .js [data-bearing] .bez-inner,
  .js [data-bearing] .bez-outer,
  .js [data-bearing] .bez-cage,
  .js [data-bearing] .bez-ball {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .js [data-bearing].is-on .bez-live { animation: none !important; }
}

/* ==========================================================================
   Pasos del proceso (01–04) — nuestros-servicios.html
   Tarjetas amplias y legibles (antes reutilizaban .branch, que ahora es
   una tarjeta con foto y padding 0).
   ========================================================================== */
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 34px) clamp(22px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--teal));
}
.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(141, 198, 63, .14);
  color: var(--green-700);
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
}
.step-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.2vw, 1.02rem);
  line-height: 1.6;
}
@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    border-color: rgba(141, 198, 63, .55);
    box-shadow: var(--shadow);
  }
}

/* ==========================================================================
   Reel vertical (9:16) junto al texto — nuestros-servicios.html
   ========================================================================== */
.split__media--reel {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: var(--navy-900);
  box-shadow: 0 30px 60px -30px rgba(6, 44, 74, .55);
}
.split__media--reel video,
.split__media--reel img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  background: var(--navy-900);
}
@media (max-width: 640px) {
  .split__media--reel { max-width: 320px; border-radius: 22px; }
}

/* ==========================================================================
   Edad de la empresa en el encabezado (automática desde 17-06-2000)
   ========================================================================== */
.topbar__years {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  letter-spacing: .01em;
}
.topbar__years::before {
  content: "";
  width: 1px;
  height: 15px;
  margin-right: 4px;
  background: rgba(255, 255, 255, .2);
}
.topbar__years strong {
  color: var(--green);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 980px) {
  .topbar__years { display: none; }
}

/* Versión compacta en el header para tablet y móvil */
.header__age {
  display: none;
  max-width: 320px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
  letter-spacing: .005em;
  white-space: nowrap;
}
.header__age strong {
  color: var(--green-700);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1;
}
.header__age-short { display: none; }

@media (max-width: 980px) {
  .header__age { display: block; }
}
@media (max-width: 560px) {
  .header__age { max-width: 165px; font-size: .68rem; }
  .header__age-full { display: none; }
  .header__age-short { display: inline; }
}
@media (max-width: 340px) {
  .header__age { display: none; }
}

/* ==========================================================================
   Borde giratorio con los colores de RODASA
   ========================================================================== */
@property --rodasa-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.rotating-border { position: relative; }

.rotating-border::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--rodasa-angle),
    var(--navy) 0deg,
    var(--teal) 70deg,
    var(--green) 140deg,
    var(--green-700) 195deg,
    var(--teal) 260deg,
    var(--navy) 330deg,
    var(--navy) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .7;
  animation: rodasa-border-spin 8s linear infinite;
  animation-delay: var(--rodasa-delay, 0s);
  transition: opacity .3s var(--ease);
}

.rotating-border:hover::after { opacity: 1; }

@keyframes rodasa-border-spin {
  to { --rodasa-angle: 360deg; }
}

/* ==========================================================================
   Detalles animados que antes eran estáticos
   ========================================================================== */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.32em;
  width: 62px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s var(--ease) .12s;
}
.section-head.is-in h2::after,
.section-head:not(.reveal) h2::after { transform: scaleX(1); }
.section-head--center h2::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}
.section-head--center.is-in h2::after,
.section-head--center:not(.reveal) h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* Brillo que recorre los botones */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -70%;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-140%) rotate(10deg);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(420%) rotate(10deg); }

/* Marcas, etiquetas y datos de contacto */
.brands__list li {
  transition: color .2s, transform .25s var(--ease);
}
.brands__list li:hover { transform: translateY(-2px); }
.brands__list img {
  transition: filter .25s, opacity .25s, transform .25s var(--ease);
}
.brands__list li:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

.tags li {
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.tags li:hover { transform: translateY(-2px); }

.info-block__icon {
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.info-block:hover .info-block__icon {
  transform: translateY(-2px);
  background: rgba(0, 166, 192, .12);
  color: var(--teal-700);
}

@media (max-width: 760px) {
  .rotating-border::after {
    animation-duration: 14s;
    opacity: .55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-border::after { animation: none !important; opacity: .55; }
  .btn::before { display: none; }
  .section-head h2::after { transition: none; transform: none; }
  .section-head--center h2::after { transform: translateX(-50%); }
  .brands__list li:hover,
  .tags li:hover,
  .info-block:hover .info-block__icon { transform: none; }
}
/* ==========================================================================
   Microanimaciones de estado (punto SKF y botón de WhatsApp)
   ========================================================================== */
.topbar__badge span {
  animation: rodasa-dot-pulse 2.6s ease-out infinite;
}

@keyframes rodasa-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 198, 63, .55); }
  55% { box-shadow: 0 0 0 6px rgba(141, 198, 63, 0); }
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: rodasa-wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rodasa-wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  80%, 100% { transform: scale(1.28); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__badge span,
  .wa-float::after { animation: none !important; }
}
/* Ajuste fino del encabezado en el rango donde reaparece el CTA de escritorio */
@media (min-width: 981px) and (max-width: 1040px) {
  .header__in { gap: 16px; }
  .nav > ul { gap: 2px; }
  .nav a,
  .nav__toggle { padding-inline: 10px; font-size: .9rem; }
  .header__cta { padding-inline: 16px; }
}