/* ============================================================
   Central Industrial Bearings S.A.S. — styles.css
   Identidad: Rojo #ED2047 · Azul #1278BE · Azul noche #0A1930
   ============================================================ */

:root {
  --red: #ED2047;
  --red-dark: #C41036;
  --blue: #1278BE;
  --blue-dark: #0E5C94;
  --navy: #0A1930;
  --navy-2: #0E2444;
  --gray-bg: #F4F6F9;
  --text: #1B2734;
  --gray-mid: #5B6B7C;
  --white: #FFFFFF;
  --green: #1FA85C;
  --amber: #E8A020;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 25, 48, .07);
  --shadow-md: 0 10px 30px rgba(10, 25, 48, .10);
  --shadow-lg: 0 24px 60px rgba(10, 25, 48, .18);
  --font-title: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 136px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; color: var(--navy); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(18, 120, 190, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

.section { padding: 88px 0; }
.section--gray { background: var(--gray-bg); }
.section--navy { background: var(--navy); color: #DCE6F2; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--gray-mid); margin-top: 14px; font-size: 1.05rem; }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: #A9BDD4; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(237, 32, 71, .35); }
.btn--red:hover { background: var(--red-dark); color: #fff; box-shadow: 0 12px 28px rgba(237, 32, 71, .45); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(18, 120, 190, .35); }
.btn--blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid #C9D5E1; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 9px 18px; font-size: .82rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.header--scrolled { background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 14px; width: min(1400px, 96%); margin: 0 auto; }

.logo-badge {
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 14px 24px; border-radius: 999px;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.logo-badge img { height: 96px; width: auto; }
.logo-badge .logo-tag { font-family: var(--font-title); font-weight: 800; font-size: 1.22rem; color: var(--navy); line-height: 1.15; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--font-title); font-weight: 600; font-size: .92rem;
  color: #E8EEF6; padding: 9px 9px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.header--scrolled .nav a { color: var(--navy); }
.nav a:hover { color: var(--red); background: rgba(237, 32, 71, .08); }
.header .btn--cta { margin-left: 6px; flex-shrink: 0; font-size: .98rem; padding: 11px 20px; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 1102;
}
.hamburger span {
  display: block; width: 26px; height: 3px; margin: 5px auto;
  background: #fff; border-radius: 3px; transition: .3s;
}
.header--scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger.open span { background: var(--navy); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: rgba(255, 255, 255, .99);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--navy); padding: 10px 20px; }
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 60px) 0 0;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(112deg, rgba(10, 25, 48, .96) 20%, rgba(14, 36, 68, .82) 55%, rgba(10, 25, 48, .55) 100%);
}
.hero__content { max-width: 780px; }
.hero .kicker { color: #8FC6EC; font-family: var(--font-title); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; }
.hero h1 {
  color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; margin: 16px 0 10px;
}
.hero h1 .accent { color: var(--red); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: rgba(237, 32, 71, .28); z-index: -1; border-radius: 4px;
}
.hero__slogan { font-size: clamp(1rem, 2vw, 1.25rem); color: #C4D6E8; max-width: 560px; }
.hero__slogan strong { color: #fff; }

.hero-search {
  display: flex; gap: 0; margin: 34px 0 26px; max-width: 640px;
  background: #fff; border-radius: 999px; padding: 7px;
  box-shadow: var(--shadow-lg);
}
.hero-search svg { flex-shrink: 0; align-self: center; margin-left: 16px; }
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 1.02rem; padding: 12px 14px;
  border-radius: 999px; font-family: var(--font-body); color: var(--text); min-width: 0;
  background: transparent;
}
.hero-search .btn { flex-shrink: 0; }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__promises {
  margin-top: 72px;
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.hero__promises .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0;
}
.promise { display: flex; align-items: center; gap: 14px; }
.promise .promise__icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(237, 32, 71, .25), rgba(18, 120, 190, .25));
  border: 1px solid rgba(255, 255, 255, .2);
}
.promise strong { display: block; font-family: var(--font-title); font-size: .92rem; color: #fff; }
.promise span { font-size: .8rem; color: #A9BDD4; }

/* ---------- Categorías ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 24px 18px;
  box-shadow: var(--shadow-sm); text-align: center; cursor: pointer;
  border: 1px solid #EAEFF5; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(18, 120, 190, .35); }
.cat-card__img { height: 92px; display: grid; place-items: center; margin-bottom: 14px; background: #EDF1F6; border-radius: 10px; padding: 6px; }
.cat-card__img img { max-height: 80px; width: auto; transition: transform .3s; }
.cat-card:hover .cat-card__img img { transform: scale(1.1) rotate(-2deg); }
.cat-card h3 { font-size: .95rem; font-weight: 700; }
.cat-card p { font-size: .74rem; color: var(--gray-mid); margin-top: 6px; line-height: 1.45; }
.cat-card .cat-card__go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .78rem; font-weight: 700; color: var(--blue); font-family: var(--font-title);
}

/* ---------- Tienda ---------- */
.shop-toolbar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid #EAEFF5; padding: 22px; margin-bottom: 30px;
}
.shop-toolbar__row { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-toolbar input[type="search"], .shop-toolbar select, .shop-toolbar input[type="number"] {
  font-family: var(--font-body); font-size: .92rem; color: var(--text);
  border: 1.5px solid #D7E0EA; border-radius: var(--radius-sm);
  padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.shop-toolbar input:focus, .shop-toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 120, 190, .12); }
.shop-toolbar .search-wrap { flex: 2 1 260px; position: relative; }
.shop-toolbar .search-wrap input { width: 100%; padding-left: 42px; }
.shop-toolbar .search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.shop-toolbar select { flex: 1 1 170px; cursor: pointer; }

.dims-filter { margin-top: 14px; border-top: 1px dashed #E2E9F1; padding-top: 14px; }
.dims-filter summary {
  cursor: pointer; font-family: var(--font-title); font-weight: 700; font-size: .88rem;
  color: var(--blue); list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.dims-filter summary::before { content: "▸"; transition: transform .2s; }
.dims-filter[open] summary::before { transform: rotate(90deg); }
.dims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.dims-group { background: var(--gray-bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.dims-group label { font-size: .76rem; font-weight: 700; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 8px; }
.dims-group .range { display: flex; gap: 8px; align-items: center; }
.dims-group input { width: 100%; padding: 8px 10px !important; font-size: .85rem !important; }
.dims-group .range span { color: var(--gray-mid); font-size: .8rem; }

.shop-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-meta .count { font-family: var(--font-title); font-weight: 700; color: var(--gray-mid); font-size: .9rem; }
.shop-meta .count strong { color: var(--red); }
.btn-clear { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; font-size: .85rem; font-family: var(--font-title); }
.btn-clear:hover { text-decoration: underline; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  background: #fff; border-radius: var(--radius); border: 1px solid #EAEFF5;
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card__img { background: linear-gradient(180deg, #F8FAFD, #EEF3F8); padding: 22px; height: 190px; display: grid; place-items: center; cursor: pointer; }
.product-card__img img { max-height: 145px; width: auto; transition: transform .3s; }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__brand { display: flex; align-items: center; gap: 8px; height: 22px; margin-bottom: 8px; }
.product-card__brand img { max-height: 20px; max-width: 74px; width: auto; }
.product-card__brand img[src*="skf.png"] { max-height: 30px; max-width: 110px; }
.product-card__brand:has(img[src*="skf.png"]) { height: 32px; }
.brand-badge {
  font-family: var(--font-title); font-weight: 800; font-size: .62rem; letter-spacing: .05em;
  background: var(--navy); color: #fff; padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}
.product-card__ref { font-family: var(--font-title); font-weight: 800; font-size: 1.02rem; color: var(--navy); cursor: pointer; }
.product-card__ref:hover { color: var(--red); }
.product-card__name { font-size: .8rem; color: var(--gray-mid); margin: 4px 0 8px; flex: 0 0 auto; min-height: 2.4em; }
.product-card__dims { font-size: .76rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; font-family: var(--font-title); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__price { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.product-card__price small { display: block; font-size: .62rem; font-weight: 600; color: var(--gray-mid); }
.stock-pill { font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-title); }
.stock-pill--in { background: rgba(31, 168, 92, .12); color: var(--green); }
.stock-pill--out { background: rgba(232, 160, 32, .14); color: #B57A0A; }
.product-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.product-card__actions .btn { flex: 1; }
.btn-add { background: var(--blue); color: #fff; }
.btn-add:hover { background: var(--blue-dark); color: #fff; }
.btn-add.added { background: var(--green); }

.shop-note {
  margin-top: 30px; background: #FFF7E8; border: 1px solid #F2DFB5; border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: .85rem; color: #8A6A1F; display: flex; gap: 10px; align-items: flex-start;
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-mid); grid-column: 1 / -1; }
.empty-state h3 { margin: 14px 0 6px; }

/* ---------- Modal producto ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1400; background: rgba(10, 25, 48, .62);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: 20px; max-width: 860px; width: 100%; max-height: 88vh;
  overflow-y: auto; position: relative; transform: translateY(24px) scale(.98); transition: transform .25s;
}
.modal-backdrop.open .modal { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: var(--gray-bg); cursor: pointer;
  font-size: 1.15rem; color: var(--navy); font-weight: 700; transition: background .2s, transform .2s;
}
.modal__close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.modal__grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 32px; }
.modal__img { background: linear-gradient(180deg, #F8FAFD, #EDF2F8); border-radius: var(--radius); display: grid; place-items: center; padding: 26px; align-self: start; }
.modal__img img { max-height: 220px; width: auto; }
.modal__ref { font-size: 1.5rem; font-weight: 800; }
.modal__name { color: var(--gray-mid); margin: 6px 0 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: .88rem; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #EDF1F6; }
.spec-table th { color: var(--gray-mid); font-weight: 600; width: 45%; }
.spec-table td { font-weight: 700; font-family: var(--font-title); }
.aka-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.aka-chip { background: var(--gray-bg); border: 1px solid #E0E7EF; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.modal__suffixes { background: #F0F7FD; border: 1px solid #D5E8F7; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; }
.modal__suffixes h4 { font-size: .85rem; color: var(--blue-dark); margin-bottom: 8px; }
.modal__suffixes ul { list-style: none; font-size: .82rem; }
.modal__suffixes li { padding: 4px 0; }
.modal__suffixes code { background: #fff; border: 1px solid #C8DFF2; padding: 1px 7px; border-radius: 6px; font-weight: 700; color: var(--red); margin-right: 6px; }
.modal__buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.modal__price { font-family: var(--font-title); font-size: 1.6rem; font-weight: 800; }
.modal__price small { display: block; font-size: .68rem; color: var(--gray-mid); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #D7E0EA; border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: none; background: var(--gray-bg); cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.qty button:hover { background: var(--blue); color: #fff; }
.qty input { width: 52px; text-align: center; border: none; outline: none; font-size: 1rem; font-weight: 700; font-family: var(--font-title); }

/* ---------- Carrito (drawer) ---------- */
.cart-fab {
  position: fixed; right: 24px; bottom: 96px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.cart-fab:hover { transform: scale(1.08); background: var(--blue-dark); }
.cart-fab .cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  background: var(--red); border-radius: 999px; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; padding: 0 5px; font-family: var(--font-title);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); z-index: 1500;
  background: #fff; box-shadow: -18px 0 50px rgba(10, 25, 48, .25);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.22, .8, .3, 1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #EDF1F6; }
.cart-drawer__head h3 { font-size: 1.1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F4F8; align-items: center; }
.cart-item__img { background: var(--gray-bg); border-radius: 10px; padding: 8px; display: grid; place-items: center; }
.cart-item__img img { max-height: 44px; width: auto; }
.cart-item__ref { font-family: var(--font-title); font-weight: 800; font-size: .86rem; }
.cart-item__price { font-size: .76rem; color: var(--gray-mid); }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .qty { transform: scale(.82); transform-origin: right; }
.cart-item__remove { background: none; border: none; color: var(--red); font-size: .72rem; cursor: pointer; font-weight: 700; }
.cart-empty { text-align: center; color: var(--gray-mid); padding: 60px 10px; }
.cart-drawer__foot { border-top: 1px solid #EDF1F6; padding: 18px 22px 22px; background: #FBFCFE; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-title); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.cart-note { font-size: .72rem; color: var(--gray-mid); margin-bottom: 14px; }
.cart-drawer__foot .btn { width: 100%; margin-bottom: 10px; }
.cart-overlay { position: fixed; inset: 0; z-index: 1450; background: rgba(10, 25, 48, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Form cotización dentro del drawer */
.quote-form { display: none; border-top: 1px dashed #E2E9F1; margin-top: 8px; padding-top: 14px; }
.quote-form.show { display: block; }
.quote-form h4 { font-size: .9rem; margin-bottom: 10px; }
.quote-form input {
  width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1.5px solid #D7E0EA;
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .88rem; outline: none;
}
.quote-form input:focus { border-color: var(--blue); }

/* ---------- Herramienta: buscador dimensiones + decodificador ---------- */
.tool-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 24px; padding: 46px; color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.tool-wrap::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(237, 32, 71, .25), transparent 70%);
}
.tool-block h3 { color: #fff; font-size: 1.35rem; margin-bottom: 8px; }
.tool-block p { color: #A9BDD4; font-size: .9rem; margin-bottom: 18px; }
.tool-block .tool-row { display: flex; gap: 10px; }
.tool-block input {
  flex: 1; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; border-radius: var(--radius-sm); padding: 13px 16px; font-size: 1rem; outline: none;
  font-family: var(--font-title); font-weight: 600; letter-spacing: .04em; min-width: 0;
}
.tool-block input::placeholder { color: #7E93AC; font-weight: 400; }
.tool-block input:focus { border-color: var(--red); }
.tool-dims-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.tool-dims-inputs label { font-size: .7rem; color: #8FC6EC; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 5px; }
.tool-result {
  margin-top: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: .86rem; min-height: 60px;
}
.tool-result ul { list-style: none; }
.tool-result li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tool-result li:last-child { border: none; }
.tool-result code { background: rgba(237, 32, 71, .2); color: #FF8FA6; padding: 1px 8px; border-radius: 6px; font-weight: 800; margin-right: 8px; }
.tool-result .tool-link { display: inline-block; margin-top: 10px; color: #8FC6EC; font-weight: 700; }
.tool-result .tool-link:hover { color: #fff; }
.tool-matches { color: #C4D6E8; }
.tool-matches button {
  display: inline-block; margin: 4px 6px 0 0; background: rgba(18, 120, 190, .25); color: #fff;
  border: 1px solid rgba(142, 198, 236, .4); padding: 4px 12px; border-radius: 999px;
  cursor: pointer; font-size: .78rem; font-weight: 700; font-family: var(--font-title);
}
.tool-matches button:hover { background: var(--blue); }

/* ---------- Marcas ---------- */
.brands-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 46px; }
.brand-hero {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid #EAEFF5; padding: 30px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  transition: transform .25s, box-shadow .25s;
}
.brand-hero:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-hero img { height: 54px; width: auto; flex-shrink: 0; }
/* El logo SKF es más cuadrado: se agranda para igualar el tamaño visual de FAG */
.brand-hero img[src*="skf.png"] { height: 82px; }
.brand-hero h3 { font-size: 1.15rem; }
.brand-hero p { font-size: .84rem; color: var(--gray-mid); margin: 6px 0 12px; }
.brand-hero .links { display: flex; gap: 14px; font-size: .8rem; font-weight: 700; font-family: var(--font-title); }

.brands-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-cell {
  background: #fff; border: 1px solid #EAEFF5; border-radius: var(--radius-sm);
  height: 86px; display: grid; place-items: center; padding: 14px;
  filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s, box-shadow .3s;
}
.brand-cell:hover { filter: none; opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.brand-cell img { max-height: 44px; max-width: 100%; width: auto; }
.brand-cell img[src*="skf.png"] { max-height: 66px; }

/* ---------- Catálogos ---------- */
.catalogs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.catalog-card {
  background: #fff; border-radius: var(--radius); border: 1px solid #EAEFF5;
  box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.catalog-card__logo { height: 46px; display: flex; align-items: center; margin-bottom: 14px; }
.catalog-card__logo:has(img[src*="skf.png"]) { height: 62px; }
.catalog-card__logo img { max-height: 40px; max-width: 130px; width: auto; }
.catalog-card__logo img[src*="skf.png"] { max-height: 60px; }
.catalog-card h3 { font-size: 1rem; margin-bottom: 6px; }
.catalog-card p { font-size: .8rem; color: var(--gray-mid); flex: 1; margin-bottom: 16px; }
.catalog-card .btn { align-self: flex-start; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.services-img { position: relative; }
.services-img img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.services-img::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px; z-index: -1;
  border-radius: 24px; background: linear-gradient(135deg, var(--red), var(--blue));
  opacity: .16;
}
.service-item { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid #EAF0F6; }
.service-item:last-of-type { border: none; }
.service-item__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(237, 32, 71, .1), rgba(18, 120, 190, .1));
  display: grid; place-items: center;
}
.service-item h3 { font-size: 1rem; }
.service-item p { font-size: .85rem; color: var(--gray-mid); margin-top: 3px; }

.mapro-strip { margin-top: 56px; }
.mapro-strip .scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 16px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.mapro-item { background: #fff; border: 1px solid #EAEFF5; border-radius: var(--radius-sm); padding: 16px; text-align: center; scroll-snap-align: start; }
.mapro-item img { max-height: 74px; width: auto; margin: 0 auto 10px; }
.mapro-item span { font-size: .74rem; font-weight: 700; font-family: var(--font-title); color: var(--navy); line-height: 1.3; display: block; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-grid .about-img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.about-text p { color: var(--gray-mid); margin-bottom: 14px; }
.about-text strong { color: var(--navy); }
.about-nit { display: inline-block; margin-top: 8px; background: var(--gray-bg); border-radius: 999px; padding: 8px 18px; font-size: .8rem; font-weight: 700; color: var(--gray-mid); font-family: var(--font-title); }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.counter-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
}
.counter-card .counter-num { font-family: var(--font-title); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.counter-card .counter-num .plus { color: var(--red); }
.counter-card p { color: #A9BDD4; font-size: .85rem; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #EAEFF5; border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 19px 24px;
  font-family: var(--font-title); font-weight: 700; font-size: .98rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--red); font-weight: 400;
  transition: transform .25s; flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--gray-mid); font-size: .9rem; }
.faq-item .faq-body strong { color: var(--navy); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: #fff; border: 1px solid #EAEFF5; border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; gap: 18px; align-items: center;
}
.contact-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.1rem;
}
.contact-card h3 { font-size: 1rem; }
.contact-card .role { font-size: .76rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-card .info { font-size: .82rem; color: var(--gray-mid); margin: 4px 0 8px; }
.contact-card .btn { padding: 7px 16px; font-size: .76rem; }
.contact-address {
  background: var(--navy); color: #DCE6F2; border-radius: var(--radius); padding: 22px;
}
.contact-address h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.contact-address p { font-size: .86rem; }
.contact-address .nit { display: block; margin-top: 8px; font-size: .76rem; color: #8FA6BF; }

/* ---------- Redes sociales ---------- */
.contact-social {
  background: #fff; border-radius: var(--radius); border: 1px solid #EAEFF5;
  box-shadow: var(--shadow-sm); padding: 22px; margin-top: 16px;
}
.contact-social h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-social p { font-size: .84rem; color: var(--gray-mid); margin-bottom: 14px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-link--linkedin { background: #0A66C2; }
.social-link--instagram { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.social-link--facebook { background: #1877F2; }
.social-links--footer { margin-top: 16px; }
.social-links--footer a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #DCE6F2; transition: background .2s ease, transform .2s ease;
}
.social-links--footer a:hover { background: var(--red, #ED2047); color: #fff; transform: translateY(-2px); }

.contact-form { background: #fff; border-radius: var(--radius); border: 1px solid #EAEFF5; box-shadow: var(--shadow-sm); padding: 30px; }
.contact-form h3 { margin-bottom: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 14px; padding: 13px 15px; border: 1.5px solid #D7E0EA;
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .92rem; outline: none;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 120, 190, .12); }

.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid #EAEFF5; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #A9BDD4; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 46px; width: auto; background: #fff; border-radius: 999px; padding: 8px 18px; margin-bottom: 16px; }
.footer__brand p { font-size: .86rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: .92rem; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: #A9BDD4; font-size: .86rem; }
.footer ul a:hover { color: #fff; }
.footer__contact p { font-size: .84rem; margin-bottom: 8px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: #7E93AC;
}

/* ---------- WhatsApp flotante ---------- */
.wa-widget {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.wa-fab {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.1); }
.wa-fab::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5); animation: waPulse 2s infinite;
}
@keyframes waPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* Ventana de chat de WhatsApp */
.wa-popup {
  width: 302px; max-width: calc(100vw - 48px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(4, 12, 24, .35);
  transform-origin: bottom right;
  transform: scale(.55) translateY(24px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.wa-popup.open { transform: none; opacity: 1; pointer-events: auto; }
.wa-popup__head {
  background: #25D366; color: #fff; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.wa-popup__title { flex: 1; line-height: 1.3; }
.wa-popup__title strong { display: block; font-family: var(--font-title); font-size: 1rem; }
.wa-popup__title span { font-size: .74rem; opacity: .95; }
.wa-popup__close {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .28); color: #fff; font-size: 1.15rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.wa-popup__close:hover { background: rgba(0, 0, 0, .45); }
.wa-popup__body { background: #E9F3EE; padding: 16px 14px 12px; min-height: 86px; }
.wa-popup__msg {
  background: #fff; border-radius: 12px 12px 12px 3px;
  padding: 11px 13px; font-size: .87rem; color: #1d2b3a; line-height: 1.45;
  box-shadow: 0 1px 2px rgba(10, 20, 35, .14); max-width: 94%;
}
.wa-popup__time { font-size: .68rem; color: #7c8b99; margin-top: 7px; }
.wa-popup__foot { padding: 12px 14px 14px; background: #fff; }
.wa-popup__cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .93rem;
  padding: 12px; border-radius: 999px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.wa-popup__cta:hover { background: #1eb856; transform: translateY(-1px); }

/* ---------- Animaciones scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-fab::before { animation: none; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 80px);
  background: var(--navy); color: #fff; padding: 13px 26px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: .88rem; z-index: 1600;
  opacity: 0; transition: transform .3s, opacity .3s; box-shadow: var(--shadow-lg);
  pointer-events: none; max-width: 90%; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast--ok { background: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .catalogs-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-wall { grid-template-columns: repeat(5, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tool-wrap { grid-template-columns: 1fr; padding: 36px; }
}

/* Pantallas medianas: compactar logo y menú para que quepa todo */
@media (min-width: 861px) and (max-width: 1240px) {
  .logo-badge img { height: 72px; }
  .logo-badge .logo-tag { font-size: .98rem; }
  .logo-badge { padding: 10px 18px; gap: 10px; }
  .nav a { font-size: .88rem; padding: 8px 7px; }
  .header .btn--cta { font-size: .9rem; padding: 10px 16px; }
}

@media (max-width: 860px) {
  .nav, .header .btn--cta { display: none; }
  .hamburger { display: block; }
  .hero__promises .container { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogs-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-featured { grid-template-columns: 1fr; }
  .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .modal__grid { grid-template-columns: 1fr; padding: 24px; }
  .dims-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-wall { grid-template-columns: repeat(3, 1fr); }
  .hero__promises .container { grid-template-columns: 1fr; gap: 12px; }
  .hero-search { flex-wrap: wrap; border-radius: 22px; }
  .hero-search .btn { width: 100%; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-fab { bottom: 158px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__actions { flex-direction: column; }
}

/* ---------- Zona privada: body con header fijo blanco ---------- */
.shop-body { padding-top: var(--header-h); background: var(--gray-bg); }

/* Nav siempre visible en las páginas privadas (sin hamburguesa) */
@media (max-width: 860px) {
  .nav--always { display: flex; }
  .nav--always a { padding: 8px 10px; font-size: .78rem; }
}

/* Badge de usuario en el header privado */
.user-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue); flex-shrink: 0;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(18, 120, 190, .08);
  border: 1px solid rgba(18, 120, 190, .18);
}
.user-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.user-badge strong { font-family: var(--font-title); font-size: .76rem; font-weight: 700; color: var(--navy); }
.user-badge small { font-size: .64rem; color: var(--gray-mid); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .user-badge small { display: none; }
  .user-badge strong { font-size: .68rem; max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-badge { padding: 5px 9px; }
}

/* ---------- Tarjeta de acceso a la tienda (home público) ---------- */
.access-card {
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(10, 25, 48, .10);
  padding: 56px 48px 48px; text-align: center;
  border-top: 4px solid var(--red);
}
.access-card__lock {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(237, 32, 71, .10), rgba(18, 120, 190, .10));
  border: 1.5px solid rgba(237, 32, 71, .22);
  margin-bottom: 20px;
}
.access-card .kicker {
  display: inline-block;
  font-family: var(--font-title); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.access-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; }
.access-card p { color: var(--gray-mid); font-size: 1rem; line-height: 1.65; margin-bottom: 28px; }
.access-card__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .access-card { padding: 40px 24px 32px; }
  .access-card__actions { flex-direction: column; }
  .access-card__actions .btn { width: 100%; }
}


/* ============================================================
   RODAMIENTO 3D DEL HERO (CSS puro, sin librerías)
   ============================================================ */
.hero-bearing {
  position: absolute;
  right: 5%;
  top: 46%;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
  perspective: 1000px;
  pointer-events: none;
  z-index: 2;
  animation: bearing-slide 7s ease-in-out infinite alternate;
}
@keyframes bearing-slide {
  from { transform: translateY(-50%) translateX(-55px); }
  to   { transform: translateY(-50%) translateX(55px); }
}

.hero-bearing__img {
  width: 100%;
  height: auto;
  display: block;
  animation: bearing-spin-img 8s linear infinite;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .55));
}
@keyframes bearing-spin-img {
  to { transform: rotate(360deg); }
}

/* Sombra proyectada en el "piso" */
.hero-bearing__shadow {
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: 62%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%);
  animation: bearing-shadow 7s ease-in-out infinite alternate;
}
@keyframes bearing-shadow {
  from { transform: translateX(-65%) scaleX(.9); opacity: .8; }
  to   { transform: translateX(-35%) scaleX(1.1); opacity: 1; }
}

/* Responsivo: ocultar en pantallas donde taparía el texto */
@media (max-width: 1200px) {
  .hero-bearing { width: 230px; height: 230px; right: 3%; }
}
@media (max-width: 900px) {
  .hero-bearing { display: none; }
}

/* Accesibilidad: respetar usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .hero-bearing, .hero-bearing__img, .hero-bearing__shadow { animation: none; }
}

/* ============================================================
   Visor de líneas de producto (modal + lightbox)
   ============================================================ */

body.modal-open { overflow: hidden; }

/* ---------- Modal de línea ---------- */
.line-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px;
}
.line-modal.open { display: flex; }
.line-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 25, 48, .62);
  backdrop-filter: blur(3px);
  animation: lm-fade .25s ease;
}
.line-modal__panel {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: lm-pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

.line-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 28px 16px;
  border-bottom: 1px solid #E5EBF2;
}
.line-modal__kicker {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
}
.line-modal__title { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.line-modal__close {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid #D7E0EA; background: var(--white);
  color: var(--navy); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: all .2s;
}
.line-modal__close:hover { background: var(--red); border-color: var(--red); color: #fff; }

.line-modal__body { padding: 22px 28px; overflow-y: auto; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* ---------- Tarjeta de tipo ---------- */
.type-card {
  background: var(--white);
  border: 1.5px solid #E5EBF2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(18, 120, 190, .35);
}
.type-card__imgbtn {
  position: relative; display: block; width: 100%;
  border: 0; padding: 0; cursor: zoom-in;
  background: #EDF1F6; aspect-ratio: 4 / 3; overflow: hidden;
}
.type-card__imgbtn img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 14px; transition: transform .3s;
}
.type-card:hover .type-card__imgbtn img { transform: scale(1.06); }
.type-card__imgbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.type-card__zoom {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(10, 25, 48, .82); color: #fff;
  font-size: .66rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.type-card__imgbtn:hover .type-card__zoom,
.type-card__imgbtn:focus-visible .type-card__zoom { opacity: 1; transform: none; }

.type-card__info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.type-card__info h4 { font-size: .92rem; font-weight: 700; }
.type-card__info p { font-size: .76rem; color: var(--gray-mid); line-height: 1.5; flex: 1; }
.type-card__wa {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.type-card__wa:hover { color: var(--red); border-color: var(--red); }

.line-modal__foot {
  padding: 14px 28px 18px;
  border-top: 1px solid #E5EBF2;
  text-align: center;
}
.line-modal__store-link {
  font-size: .74rem; color: var(--gray-mid);
  text-decoration: none; border-bottom: 1px dotted #B7C3D1;
  transition: color .2s, border-color .2s;
}
.line-modal__store-link:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1300;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 14, 26, .88);
  animation: lm-fade .2s ease;
}
.lightbox__figure {
  position: relative; z-index: 1;
  max-width: min(94vw, 1024px); max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: lm-pop .25s ease;
}
.lightbox__img {
  max-width: 100%; max-height: 82vh;
  object-fit: contain;
  background: #EDF1F6;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  color: #DCE6F2; font-size: .85rem; font-weight: 600;
  text-align: center;
}
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--red); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-md); transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: var(--red-dark); transform: scale(1.08); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox__nav:hover { background: var(--blue); }
.lightbox__nav--prev { left: -60px; }
.lightbox__nav--next { right: -60px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .line-modal { padding: 12px; }
  .line-modal__panel { max-height: calc(100vh - 24px); }
  .line-modal__head { padding: 16px 18px 12px; }
  .line-modal__body { padding: 16px 18px; }
  .line-modal__title { font-size: 1.2rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: -10px; right: 0; }
}
@media (max-width: 560px) {
  .types-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lightbox__nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .line-modal__backdrop, .line-modal__panel, .lightbox__backdrop, .lightbox__figure { animation: none; }
  .type-card, .type-card__imgbtn img { transition: none; }
}
