/* ============================================
   BIG ROCK EQUIPMENT — SHARED STYLESHEET
   Base, nav, footer, buttons, typography, modals
============================================ */

/* ----- RESET & BASE ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2e7bc4;
  --blue-dark: #1a4f7a;
  --blue-bg: #e8f0f8;
  --dark: #0d1b2a;
  --coal: #141c28;
  --slate: #4a5a6e;
  --fog: #8a9aaa;
  --light: #e8edf2;
  --gray: #6a7a8e;
  --sans: "Barlow", Arial, Helvetica, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Share Tech Mono", "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--dark);
  background: #f5f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ----- CONTAINERS ----- */
.section {
  padding: 64px 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-white {
  background: #ffffff;
}

.section-off {
  background: #f5f7fa;
}

.section-dark {
  background: var(--coal);
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--cond);
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: #fff;
}

.section-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 680px;
  line-height: 1.7;
}

.rule {
  width: 60px;
  height: 3px;
  background: var(--blue);
  margin: 18px 0 32px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-white:hover {
  background: var(--light);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
}

/* ----- TAGS ----- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 2px;
}

.tag-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.tag-amber {
  background: #fef3d0;
  color: #b7791f;
}

.tag-gray {
  background: #e8ecf0;
  color: var(--gray);
}

/* ----- NAV ----- */
.nav {
  background: var(--dark);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--blue);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ----- NUEVO LOGO CON IMAGEN ----- */
.nav-logo-with-img {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.nav-logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-big {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-big span {
  color: var(--blue);
}

.logo-sub {
  font-family: var(--cond);
  font-size: 10px;
  font-weight: 400;
  color: var(--fog);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links li a {
  padding: 6px 14px;
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fog);
  letter-spacing: 0.8px;
  transition: color 0.15s;
  text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #fff;
}

.nav-links li a.active {
  border-bottom: 2px solid var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 6px 18px !important;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--fog);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s;
}

.lang-btn:hover,
.lang-btn.active {
  color: #fff;
}

.lang-sep {
  color: #333;
  font-size: 10px;
}

/* ----- PAGE HEADER ----- */
.page-header {
  background: var(--coal);
  padding: 48px 2rem 56px;
  border-bottom: 3px solid var(--blue);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-header-title {
  font-family: var(--cond);
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
}

.page-header-sub {
  font-size: 15px;
  color: var(--fog);
  max-width: 640px;
  line-height: 1.7;
}

/* ----- CTA BAND ----- */
.cta-band {
  background: var(--blue);
  padding: 40px 2rem;
}

.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-band-label {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cta-band-title {
  font-family: var(--cond);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
}

.cta-band-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--dark);
  padding: 48px 2rem 24px;
  border-top: 2px solid #1a2a3a;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 32px;
  border-bottom: 1px solid #1a2a3a;
}

.footer-brand {
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--blue);
}

.footer-loc {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--fog);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-desc {
  font-size: 12px;
  color: var(--gray);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links li a {
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: #333;
}

.footer-disclaimer,
.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  color: #2a3a4a;
  letter-spacing: 0.5px;
}

/* ----- MODAL ----- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px;
  position: relative;
  border-top: 4px solid var(--blue);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.15s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--cond);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.1;
  margin-top: 4px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--slate);
  margin-top: 4px;
}

.modal-body {
  margin-bottom: 28px;
}

.modal-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 18px;
}

.modal-section-title {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.modal-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.modal-app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--slate);
  padding: 6px 10px;
  background: var(--blue-bg);
  border-radius: 2px;
}

.modal-app-item i {
  color: var(--blue);
  font-size: 14px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}

.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--light);
}

.spec-table td:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--gray);
  text-transform: uppercase;
  width: 30%;
}

.spec-table td:last-child {
  color: var(--dark);
  font-weight: 500;
}

.modal-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--light);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links li a:not(.nav-cta) {
    display: none;
  }
  .nav-links li:has(.lang-toggle) {
    display: block;
  }
  .nav-inner {
    height: 60px;
  }
  .nav-logo-img {
    height: 35px;
  }
  .logo-big {
    font-size: 16px;
  }
  .logo-sub {
    font-size: 8px;
    letter-spacing: 2px;
  }
}

@media (max-width: 680px) {
  .section-title {
    font-size: 28px;
  }
  .page-header-title {
    font-size: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .cta-band-title {
    font-size: 20px;
  }
  .modal-apps {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav-logo-img {
    height: 28px;
  }
  .logo-big {
    font-size: 13px;
  }
  .logo-sub {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .nav-logo-with-img {
    gap: 6px;
  }
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* ── Equipment Dropdown (desktop hover) ── */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel { display: block !important; }
.nav-drop-panel { display: none; }

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE — Android & iPhone
   ══════════════════════════════════════════════ */

/* ── Touch targets mínimos (WCAG / iOS HIG: 44×44px) ── */
.btn, .nav-cta, .nav-links li a, .mobile-cta {
  min-height: 44px;
}

/* ── Evitar zoom en inputs iOS (font-size mínimo 16px) ── */
input, select, textarea {
  font-size: 16px !important;
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Lang button (siempre visible, se mueve fuera de nav-links en móvil) ── */
#langSelectorSlot {
  position: relative;
  list-style: none;
}
#aiLangBtn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 36px;
}

/* ── Mobile menu overlay ── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  z-index: 999;
  flex-direction: column;
  padding: 72px 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-menu.open {
  display: flex;
}
.nav-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fog);
  letter-spacing: 1px;
  border-bottom: 1px solid #1a2a3a;
  text-decoration: none;
  transition: color 0.15s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-menu a:active { color: #fff; }
.nav-mobile-menu a.active { color: #fff; }

.nav-mobile-menu .mobile-cta {
  margin-top: 24px;
  background: var(--blue);
  color: #fff !important;
  text-align: center;
  padding: 16px !important;
  border: none;
  border-radius: 2px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-mobile-menu .mobile-cta:active { background: var(--blue-dark) !important; }

.nav-mobile-menu .mobile-lang {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #1a2a3a;
}
.nav-mobile-menu .mobile-section {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 20px 0 8px;
}

/* Sub-items Equipment en móvil */
.nav-mobile-sub a {
  padding: 12px 0 12px 20px !important;
  font-size: 16px !important;
  color: var(--slate) !important;
  border-bottom: 1px solid #0d1520 !important;
  min-height: 44px !important;
}
.nav-mobile-sub a:active { color: #fff !important; }

/* ── Acordeón Equipment en menú móvil ── */
.mobile-accordion {
  border-bottom: 1px solid #1a2a3a;
}
.mobile-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fog);
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.mobile-accordion-btn:active { color: #fff; }
.mobile-accord-arrow {
  font-size: 14px;
  transition: transform 0.25s ease;
  display: inline-block;
  opacity: 0.6;
}
.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  background: #0a1420;
  border-top: 1px solid #1a2a3a;
  padding: 4px 0 8px;
}
.mobile-accordion-panel.open {
  display: flex;
}
.mobile-accordion-panel a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 0 11px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--slate) !important;
  border-bottom: 1px solid #0d1520 !important;
  letter-spacing: 0.5px !important;
  min-height: 44px !important;
  -webkit-tap-highlight-color: transparent;
}
.mobile-accordion-panel a:active { color: #fff !important; }
.mobile-accordion-panel a i {
  color: var(--blue);
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Grids usados: clases reales en lugar de selectores [style*=] ── */
.used-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light);
  border: 1px solid var(--light);
}

/* ════════════════════════════
   BREAKPOINT: Tablet (≤ 820px)
   ════════════════════════════ */
@media (max-width: 820px) {

  /* Ocultar nav desktop, mostrar hamburger */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }

  /* El botón de idioma se coloca antes del hamburger */
  .nav-inner {
    height: 60px;
    justify-content: space-between;
  }
  /* Mostrar lang slot fuera del nav-links */
  #langSelectorSlot {
    display: flex !important;
    align-items: center;
    order: 2;
  }
  /* Wrap para logo + lang + hamburger */
  .nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
  }
  /* Logo */
  .logo-img, .nav-logo-img { height: 36px; }
  .logo-container { flex: 1; }

  /* ── Hero ── */
  .hero-bigrock { padding: 3rem 1.25rem 2.5rem; }
  .hero-bigrock h1 { font-size: 2.4rem; line-height: 1.1; }
  .hero-bigrock p { font-size: 1rem; }
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-group .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* ── Sections ── */
  .section { padding: 40px 1.25rem; }
  .section-title { font-size: 26px; }
  .page-header { padding: 32px 1.25rem 40px; }
  .page-header-title { font-size: 30px; line-height: 1.05; }
  .page-header-sub { font-size: 14px; }

  /* ── Grids de contenido ── */
  .industries-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
  #clientsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
  .used-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .eq-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── CTA band ── */
  .cta-band { padding: 28px 1.25rem; }
  .cta-band-inner { flex-direction: column; text-align: center; gap: 16px; }
  .cta-band-title { font-size: 22px; }
  .cta-band-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .cta-band-btns .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* ── Footer ── */
  .footer { padding: 32px 1.25rem 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* ── Contact form ── */
  .contact-layout { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .contact-info-block, .form-card { padding: 24px 20px; }
}

/* ════════════════════════════
   BREAKPOINT: Móvil (≤ 480px)
   ════════════════════════════ */
@media (max-width: 480px) {

  /* Nav */
  .nav-inner { height: 56px; }
  .logo-img, .nav-logo-img { height: 32px; }

  /* Hero */
  .hero-bigrock h1 { font-size: 1.9rem; }
  .hero-bigrock { padding: 2.5rem 1rem 2rem; }

  /* Sections */
  .section { padding: 32px 1rem; }
  .section-title { font-size: 24px; }
  .page-header { padding: 28px 1rem 32px; }
  .page-header-title { font-size: 26px; }
  .page-header-label { font-size: 9px; }

  /* Grids → 1 columna en pantallas muy pequeñas */
  .industries-grid { grid-template-columns: 1fr !important; }
  .used-grid { grid-template-columns: 1fr !important; }
  .eq-grid { grid-template-columns: 1fr !important; }
  #clientsGrid { grid-template-columns: repeat(2, 1fr) !important; }

  /* CTA band */
  .cta-band-title { font-size: 20px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-desc { max-width: 100%; }

  /* Modal */
  .modal { padding: 20px 16px; }
  .modal-title { font-size: 22px; }
  .modal-apps { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; justify-content: center; }

  /* Botones: full width en acciones principales */
  .btn-group .btn { min-height: 52px; font-size: 14px; }
}

/* ════════════════════════════
   BREAKPOINT: Extra pequeño (≤ 360px)
   — Galaxy S8, iPhone SE 1ª gen
   ════════════════════════════ */
@media (max-width: 360px) {
  .page-header-title { font-size: 22px; }
  .section-title { font-size: 20px; }
  .cta-band-title { font-size: 18px; }
  .nav-mobile-menu a { font-size: 19px; }
  #aiLangBtn { font-size: 9px; padding: 4px 8px; }
}


/* ── Mobile table scroll ─────────────────────────────── */
.table-scroll-wrap{
    position:relative;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:4px;
    border:1px solid rgba(0,0,0,.08);
}
.table-scroll-hint{
    display:none;
    font-family:var(--mono);
    font-size:10px;
    letter-spacing:1px;
    color:var(--slate);
    text-align:center;
    padding:6px 0 2px;
    opacity:.7;
}
.table-scroll-wrap table{
    width:100%;
    border-collapse:collapse;
    min-width:660px;
}
@media(max-width:720px){
    .table-scroll-hint{ display:block; }
    .table-scroll-wrap{
        box-shadow:inset -8px 0 12px -8px rgba(0,0,0,.12);
    }
}

/* ══════════════════════════════════════════════
   PARTS & LINERS — PHOTO GALLERY
   ══════════════════════════════════════════════ */
.parts-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.parts-gallery-card {
  background: #fff;
  border: 1px solid var(--light);
  border-bottom: 3px solid var(--blue);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
}
.parts-gallery-card:hover {
  box-shadow: 0 6px 24px rgba(46,123,196,.18);
  transform: translateY(-2px);
}
.parts-gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.parts-gallery-card:hover img { transform: scale(1.04); }
.parts-gallery-card-caption {
  padding: 10px 12px;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--slate);
}
/* Lightbox */
.parts-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,12,20,.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.parts-lightbox.open { display: flex; }
.parts-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid rgba(46,123,196,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.parts-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.parts-lightbox-close:hover { opacity: 1; }
.parts-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 26px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s;
  min-height: 44px;
}
.parts-lightbox-nav:hover { background: rgba(46,123,196,.4); }
.parts-lightbox-prev { left: 12px; }
.parts-lightbox-next { right: 12px; }
.parts-lightbox-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: 1px;
}
@media (max-width: 820px) {
  .parts-gallery { grid-template-columns: repeat(2, 1fr); }
  .parts-gallery-card img { height: 160px; }
}
@media (max-width: 480px) {
  .parts-gallery { grid-template-columns: 1fr; }
  .parts-gallery-card img { height: 200px; }
}
