/* ─── TOKENS ───────────────────────────────── */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --black: #000000;
  --near-black: #0a0a0a;
  --surface: #111111;
  --surface2: #181818;
  --border: rgba(255,255,255,0.08);
  --muted: #555555;
  --white: #ffffff;
  --maxw: 1200px;
  --ease: cubic-bezier(.2,.9,.25,1);

  /* Accents por marca */
  --mit: #e60000;
  --sta: #c41e3a;
  --mah: #0066cc;
  --ins: #009944;
}

html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: clip;
}

/* ─── REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── HERO PRINCIPAL ────────────────────────── */
.hero-dist {
  min-height: 80vh;
  background: transparent !important;
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
  --border: rgba(0,0,0,0.08);
}

.hero-dist::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red-600);
}

.hero-dist h1 {
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0a0a0a;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-dist h1 span { color: var(--color-red-600); font-weight: 400; }

.hero-dist p {
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* Logos en hero */
.hero-brands {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-brand-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.hero-brand-btn img {
  height: 28px;
  width: auto;
  filter: none;         /* colores originales de cada logo */
  opacity: 0.85;
  transition: opacity 0.35s, transform 0.35s;
}

.hero-brand-btn:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}
.hero-brand-btn:hover img { opacity: 1; transform: scale(1.05); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #0a0a0a;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─── STICKY TABS — base ───────────────────── */
.brand-tabs-spacer { display: none; }
.brand-tabs {
  position: relative;
  top: auto;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* transición suave entre temas de color por marca */
  transition: background 0.8s ease, border-bottom-color 0.8s ease;
}

.brand-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease;
  white-space: nowrap;
}

.brand-tab img {
  height: 20px;
  width: auto;
  filter: none;         /* colores originales de cada logo */
  opacity: 0.45;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.brand-tab:hover { color: rgba(255,255,255,0.72); }
.brand-tab:hover img { opacity: 0.75; }

/* ─── TEMA MITUTOYO: fondo blanco, texto negro/gris ── */
body[data-brand="mit"] .brand-tabs {
  background: rgba(252,252,252,0.97);
  border-bottom-color: rgba(0,0,0,0.1);
}
body[data-brand="mit"] .brand-tab        { color: rgba(0,0,0,0.38); }
body[data-brand="mit"] .brand-tab img    { opacity: 0.55; }
body[data-brand="mit"] .brand-tab:hover  { color: rgba(0,0,0,0.72); }
body[data-brand="mit"] .brand-tab:hover img { opacity: 0.9; }
body[data-brand="mit"] .brand-tab.active--mit {
  color: #0a0a0a;
  border-bottom-color: var(--mit);
}
body[data-brand="mit"] .brand-tab.active--mit img  { opacity: 1; }

/* ─── TEMA STARRETT: fondo negro, texto gris → blanco ── */
body[data-brand="sta"] .brand-tabs {
  background: rgba(8,8,8,0.97);
  border-bottom-color: rgba(255,255,255,0.06);
}
body[data-brand="sta"] .brand-tab        { color: rgba(255,255,255,0.30); }
body[data-brand="sta"] .brand-tab img    { opacity: 0.42; }
body[data-brand="sta"] .brand-tab:hover  { color: rgba(255,255,255,0.70); }
body[data-brand="sta"] .brand-tab:hover img { opacity: 0.78; }
body[data-brand="sta"] .brand-tab.active--sta {
  color: #efefef;
  border-bottom-color: var(--sta);
}
body[data-brand="sta"] .brand-tab.active--sta img { opacity: 1; }

/* ─── TEMA MAHR: fondo negro, texto gris → blanco ── */
body[data-brand="mah"] .brand-tabs {
  background: rgba(5,5,10,0.97);
  border-bottom-color: rgba(0,102,204,0.22);
}
body[data-brand="mah"] .brand-tab        { color: rgba(255,255,255,0.30); }
body[data-brand="mah"] .brand-tab img    { opacity: 0.42; }
body[data-brand="mah"] .brand-tab:hover  { color: rgba(255,255,255,0.70); }
body[data-brand="mah"] .brand-tab:hover img { opacity: 0.78; }
body[data-brand="mah"] .brand-tab.active--mah {
  color: #dce9f8;
  border-bottom-color: var(--mah);
}
body[data-brand="mah"] .brand-tab.active--mah img { opacity: 1; }

/* ─── BRAND SECTION ─────────────────────────── */
.brand-section {
  background: transparent;
}

/* Divisor entre marcas */
.brand-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  height: 1px;
  background: var(--border);
  position: relative;
}

/* ─── BRAND HERO ─────────────────────────────── */
.brand-hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 40px;
  gap: 60px;
}

.brand-logo-large {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 40px;
  display: block;
}

.brand-hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.brand-hero h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.brand-hero h2 em {
  font-style: normal;
  color: var(--muted);
}

.brand-hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: #aaaaaa;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.brand-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.brand-hero-cta:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
}

.brand-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-hero-image img {
  width: 100%;
  max-width: 480px;
  height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
  transition: transform 0.6s var(--ease);
}

.brand-hero-image:hover img {
  transform: translateY(-12px) scale(1.02);
}

/* ─── FEATURES ──────────────────────────────── */
.features-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-strip-item {
  padding: 16px 32px 16px 0;
  border-right: 1px solid var(--border);
}
.feature-strip-item:last-child { border-right: none; }

.feature-strip-item h4 {
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.feature-strip-item p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ─── PRODUCTOS GRID ────────────────────────── */
.productos-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 40px;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-header h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--white);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: transparent;
  border: 1px solid var(--border);
}

.producto-card {
  background: var(--near-black);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.producto-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--mit));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.producto-card:hover { background: var(--surface); }
.producto-card:hover::before { transform: scaleX(1); }

.producto-card img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.producto-card h4 {
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.producto-card p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
}

.btn-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  margin-top: auto;
}
.btn-cotizar::after { content: '→'; }
.btn-cotizar:hover { opacity: 1; }

/* ─── GALERÍA ────────────────────────────────── */
.galeria-section {
  padding: 80px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.galeria-grid {
  columns: 3 280px;
  column-gap: 12px;
}

.galeria-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  background: var(--surface2);
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease), opacity 0.3s;
  opacity: 0.85;
}

.galeria-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

/* placeholder vacío para futuras imágenes */
.galeria-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface2);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.galeria-placeholder i { font-size: 24px; }

/* ─── CATÁLOGO ───────────────────────────────── */
.catalogo-section {
  padding: 80px 40px 120px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.catalogo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}

.catalogo-title-block .section-label { margin-bottom: 12px; }

.catalogo-title-block h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--white);
}

.catalogo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn-dl:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
}

.btn-dl.primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-dl.primary:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.pdf-frame-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.pdf-frame-wrapper iframe {
  width: 100%;
  height: 720px;
  display: block;
  border: none;
  background: var(--surface);
}

/* ─── BRAND DIVIDER ──────────────────────────── */
.section-brand-divider {
  height: 1px;
  background: var(--border);
  position: relative;
  margin: 0;
}

.section-brand-divider::after {
  content: attr(data-brand);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--near-black);
  padding: 0 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ─── CTA FIJO ───────────────────────────────── */
.fab-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
  pointer-events: none;
}
.fab-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-cta:hover { background: #e8e8e8; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .brand-hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 80px 32px;
    text-align: center;
  }
  .brand-hero-desc { max-width: 100%; }
  .brand-hero-image img { max-width: 320px; height: 320px; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip-item:nth-child(2) { border-right: none; }
  .feature-strip-item:nth-child(3) { border-right: 1px solid var(--border); padding-top: 32px; border-top: 1px solid var(--border); }
  .feature-strip-item:last-child { border-top: 1px solid var(--border); padding-top: 32px; }
  .galeria-grid { columns: 2 220px; }
}

@media (max-width: 768px) {
  .brand-tabs { justify-content: flex-start; overflow-x: auto; padding: 0 8px; }
  .brand-tab { padding: 18px 20px; font-size: 10px; }
  .brand-tab img { display: none; }

  .features-strip { grid-template-columns: 1fr; }
  .feature-strip-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .feature-strip-item:last-child { border-bottom: none; }
  .catalogo-header { flex-direction: column; align-items: flex-start; }
  .pdf-frame-wrapper iframe { height: 480px; }
  .galeria-grid { columns: 1; }
  .hero-brands { flex-direction: column; gap: 16px; }
  .productos-section, .galeria-section, .catalogo-section { padding: 60px 24px; }
  .brand-hero { padding: 60px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   EFFECT 2 — BARRA DE PROGRESO POR SECCIÓN
═══════════════════════════════════════════════════════════ */
/* position:sticky (definido arriba) también actúa como contenedor
   para la barra de progreso con position:absolute */

.tab-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
  z-index: 10;
}

.tab-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mit);
  transition: background-color 0.7s ease;
  will-change: width;
}

/* ═══════════════════════════════════════════════════════════
   EFFECT 4 — FONDOS SÓLIDOS POR MARCA
═══════════════════════════════════════════════════════════ */

/* ── MITUTOYO — fondo blanco ──────────────────────────── */
#mitutoyo,
#mitutoyo .brand-hero,
#mitutoyo .brand-hero-text,
#mitutoyo .brand-hero-image,
#mitutoyo .features-strip,
#mitutoyo .productos-section,
#mitutoyo .galeria-section,
#mitutoyo .catalogo-section       { background: #ffffff !important; }

#mitutoyo .producto-card          { background: #f0f0f0 !important; color: #0a0a0a !important; }
#mitutoyo .producto-card:hover    { background: #e0e0e0 !important; }
#mitutoyo .producto-card h4       { color: #0a0a0a !important; }
#mitutoyo .producto-card p        { color: #555555 !important; }
#mitutoyo .galeria-item           { background: #e8e8e8 !important; }
#mitutoyo .galeria-placeholder    { background: #e8e8e8 !important; border-color: rgba(0,0,0,0.1) !important; }
#mitutoyo .catalogo-header        { border-bottom-color: rgba(0,0,0,0.1) !important; }
#mitutoyo .pdf-frame-wrapper      { background: #f0f0f0 !important; }
#mitutoyo .brand-logo-large       { filter: none !important; opacity: 1 !important; }
#mitutoyo .brand-hero h2          { color: #0a0a0a !important; }
#mitutoyo .brand-hero-eyebrow     { color: #777777 !important; }
#mitutoyo .brand-hero-desc        { color: #555555 !important; }
#mitutoyo .brand-hero-cta         { color: #0a0a0a !important; border-color: rgba(0,0,0,0.22) !important; }
#mitutoyo .section-header h3      { color: #0a0a0a !important; }
#mitutoyo .section-label          { color: #e60000 !important; }
#mitutoyo .catalogo-header h3     { color: #0a0a0a !important; }
#mitutoyo .btn-dl                 { color: #0a0a0a !important; border-color: rgba(0,0,0,0.2) !important; }
#mitutoyo .btn-dl.primary         { background: #0a0a0a !important; color: #fff !important; }
#mitutoyo .features-strip         { border-color: rgba(0,0,0,0.08) !important; }
#mitutoyo .features-strip .feature-strip-item h4 { color: #0a0a0a !important; }
#mitutoyo .features-strip .feature-strip-item p  { color: #666666 !important; }
#mitutoyo .features-strip .feature-strip-item    { border-right-color: rgba(0,0,0,0.08) !important; }

/* ── STARRETT — fondo negro ───────────────────────────── */
#starrett,
#starrett .brand-hero,
#starrett .brand-hero-text,
#starrett .brand-hero-image,
#starrett .features-strip,
#starrett .productos-section,
#starrett .galeria-section,
#starrett .catalogo-section       { background: #111111 !important; }

/* ── MAHR — fondo blanco ──────────────────────────────── */
#mahr,
#mahr .brand-hero,
#mahr .brand-hero-text,
#mahr .brand-hero-image,
#mahr .features-strip,
#mahr .productos-section,
#mahr .galeria-section,
#mahr .catalogo-section           { background: #ffffff !important; }

#mahr .producto-card              { background: #f0f0f0 !important; color: #0a0a0a !important; }
#mahr .produto-card:hover         { background: #e0e0e0 !important; }
#mahr .producto-card h4           { color: #0a0a0a !important; }
#mahr .producto-card p            { color: #555555 !important; }
#mahr .galeria-item               { background: #e8e8e8 !important; }
#mahr .galeria-placeholder        { background: #e8e8e8 !important; border-color: rgba(0,0,0,0.1) !important; }
#mahr .catalogo-header            { border-bottom-color: rgba(0,0,0,0.1) !important; }
#mahr .pdf-frame-wrapper          { background: #f0f0f0 !important; }
#mahr .brand-logo-large           { filter: none !important; opacity: 1 !important; }
#mahr .brand-hero h2              { color: #0a0a0a !important; }
#mahr .brand-hero h2 em           { color: #555555 !important; }
#mahr .brand-hero-eyebrow         { color: #777777 !important; }
#mahr .brand-hero-desc            { color: #444444 !important; }
#mahr .brand-hero-cta             { color: #0a0a0a !important; border-color: rgba(0,0,0,0.22) !important; }
#mahr .section-header h3          { color: #0a0a0a !important; }
#mahr .section-label              { color: #0066cc !important; }
#mahr .catalogo-header h3         { color: #0a0a0a !important; }
#mahr .btn-dl                     { color: #0a0a0a !important; border-color: rgba(0,0,0,0.2) !important; }
#mahr .btn-dl.primary             { background: #0a0a0a !important; color: #fff !important; }
#mahr .features-strip             { border-color: rgba(0,0,0,0.08) !important; }
#mahr .features-strip .feature-strip-item h4 { color: #0a0a0a !important; }
#mahr .features-strip .feature-strip-item p  { color: #666666 !important; }
#mahr .features-strip .feature-strip-item    { border-right-color: rgba(0,0,0,0.08) !important; }

/* Línea de acento en el borde superior de cada sección */
.brand-section {
  border-top: 1px solid var(--border);
  transition: border-top-color 0.8s ease;
}

body[data-brand="mit"] #mitutoyo { border-top-color: rgba(230,0,0,0.35); }
body[data-brand="sta"] #starrett  { border-top-color: rgba(196,30,58,0.35); }
body[data-brand="mah"] #mahr      { border-top-color: rgba(0,102,204,0.35); }

/* ── INSIZE ────────────────────────────────── */
body[data-brand="ins"] .brand-tabs { background: rgba(0,0,0,0.95); }
body[data-brand="ins"] .brand-tab        { color: rgba(255,255,255,0.30); }
body[data-brand="ins"] .brand-tab img    { opacity: 0.42; filter: brightness(0) invert(1); }
body[data-brand="ins"] .brand-tab:hover  { color: rgba(255,255,255,0.70); }
body[data-brand="ins"] .brand-tab:hover img { opacity: 0.78; }
body[data-brand="ins"] .brand-tab.active--ins { border-bottom-color: var(--ins); color: var(--white); background: rgba(255,255,255,0.06); }
body[data-brand="ins"] .brand-tab.active--ins img { opacity: 1; }
body[data-brand="ins"] #insize  { border-top-color: rgba(0, 153, 68, 0.35); }

/* Modo scroll tipo index: el color lo pinta el body, no los wrappers de sección */
body.scroll-bg-active #mitutoyo,
body.scroll-bg-active #mitutoyo .brand-hero,
body.scroll-bg-active #mitutoyo .brand-hero-text,
body.scroll-bg-active #mitutoyo .brand-hero-image,
body.scroll-bg-active #mitutoyo .features-strip,
body.scroll-bg-active #mitutoyo .productos-section,
body.scroll-bg-active #mitutoyo .galeria-section,
body.scroll-bg-active #mitutoyo .catalogo-section,
body.scroll-bg-active #starrett,
body.scroll-bg-active #starrett .brand-hero,
body.scroll-bg-active #starrett .brand-hero-text,
body.scroll-bg-active #starrett .brand-hero-image,
body.scroll-bg-active #starrett .features-strip,
body.scroll-bg-active #starrett .productos-section,
body.scroll-bg-active #starrett .galeria-section,
body.scroll-bg-active #starrett .catalogo-section,
body.scroll-bg-active #mahr,
body.scroll-bg-active #mahr .brand-hero,
body.scroll-bg-active #mahr .brand-hero-text,
body.scroll-bg-active #mahr .brand-hero-image,
body.scroll-bg-active #mahr .features-strip,
body.scroll-bg-active #mahr .productos-section,
body.scroll-bg-active #mahr .galeria-section,
body.scroll-bg-active #mahr .catalogo-section,
body.scroll-bg-active #insize,
body.scroll-bg-active #insize .brand-hero,
body.scroll-bg-active #insize .brand-hero-text,
body.scroll-bg-active #insize .brand-hero-image,
body.scroll-bg-active #insize .features-strip,
body.scroll-bg-active #insize .productos-section,
body.scroll-bg-active #insize .galeria-section,
body.scroll-bg-active #insize .catalogo-section {
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   STARRETT — TEMA OSCURO (fondo negro)
═══════════════════════════════════════════════════════════ */
#starrett .brand-hero-eyebrow              { color: #888888; }
#starrett .brand-hero h2                   { color: #ffffff; }
#starrett .brand-hero h2 em                { color: #888888; }
#starrett .brand-hero-desc                 { color: #aaaaaa; }
#starrett .brand-logo-large                { filter: brightness(0) invert(1); opacity: 0.9; height: 36px !important; max-width: 140px !important; }
#starrett .brand-hero-cta                  { color: #ffffff; border-color: rgba(255,255,255,0.3); }
#starrett .brand-hero-cta:hover            { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* Features strip invertida: negra sobre el fondo blanco — contraste máximo */
#starrett .features-strip {
  background: #0a0a0a;
  border-color: transparent;
  max-width: 100%;
  padding-left: 12%;
  padding-right: 12%;
}
#starrett .features-strip .feature-strip-item    { border-right-color: rgba(255,255,255,0.08); }
#starrett .features-strip .feature-strip-item h4  { color: #ffffff; }
#starrett .features-strip .feature-strip-item p   { color: #888888; }
#starrett .features-strip--numbered .feature-strip-item::before { color: rgba(255,255,255,0.06); }

/* Secciones internas — oscuro */
#starrett .section-header .section-label   { color: #c41e3a; }
#starrett .section-header h3               { color: #ffffff; }
#starrett .productos-section,
#starrett .galeria-section,
#starrett .catalogo-section                { background: transparent; }
#starrett .producto-card                   { background: #1a1a1a !important; border-color: rgba(255,255,255,0.08); }
#starrett .producto-card h4                { color: #ffffff !important; }
#starrett .producto-card p                 { color: #888888 !important; }
#starrett .btn-cotizar                     { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
#starrett .btn-cotizar:hover               { background: transparent; color: #ffffff; }
#starrett .galeria-placeholder             { background: #1a1a1a; border-color: rgba(255,255,255,0.08); color: #555555; }
#starrett .galeria-placeholder i           { color: #444444; }
#starrett .catalogo-header h3              { color: #ffffff; }
#starrett .catalogo-header .section-label  { color: #c41e3a; }
#starrett .btn-dl                          { color: #ffffff; border-color: rgba(255,255,255,0.2); }
#starrett .btn-dl.primary                  { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
#starrett .btn-dl.primary:hover            { background: #c41e3a; border-color: #c41e3a; color: #ffffff; }

/* ═══════════════════════════════════════════════════════════
   EFFECT 5 — SPLIT-TEXT WORD REVEAL
═══════════════════════════════════════════════════════════ */
.split-title {
  overflow: visible;
}

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* slight clip to hide text before reveal */
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.6s ease;
}

.split-title.words-visible .split-word-inner {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   VARIACIONES DE LAYOUT POR MARCA
═══════════════════════════════════════════════════════════ */
/* STARRETT — hero invertido: imagen izquierda, texto derecha */
.brand-hero--reverse .brand-hero-text { order: 2; }
.brand-hero--reverse .brand-hero-image { order: 1; }

/* STARRETT — features con numeración editorial grande */
.features-strip--numbered {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.features-strip--numbered .feature-strip-item {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.features-strip--numbered .feature-strip-item:last-child { border-right: none; }
.features-strip--numbered .feature-strip-item::before {
  content: attr(data-num);
  display: block;
  font-size: 56px;
  font-weight: 200;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}
.features-strip--numbered .feature-strip-item h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.features-strip--numbered .feature-strip-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* MAHR — hero cinemático: texto izquierda, imagen grande fantasma al fondo */
.brand-hero--cinematic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  max-width: 100%;
  padding: 120px 12% 120px;
  gap: 0;
}
.brand-hero--cinematic .brand-hero-text {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.brand-hero--cinematic .brand-hero-desc { max-width: 520px; }
.brand-hero--cinematic .brand-hero-image {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
}
.brand-hero--cinematic .brand-hero-image img {
  max-width: 560px;
  height: 560px;
  filter: drop-shadow(0 0 80px rgba(0,102,204,0.2));
}

/* MAHR — features en cuadrícula 2×2 con borde izquierdo azul */
.features-strip--stacked {
  grid-template-columns: repeat(2, 1fr);
}
.features-strip--stacked .feature-strip-item {
  border-right: none;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid rgba(0,102,204,0.3);
  padding: 36px 40px 36px 28px;
  transition: border-left-color 0.35s ease;
}
.features-strip--stacked .feature-strip-item:hover {
  border-left-color: rgba(0,102,204,0.8);
}
.features-strip--stacked .feature-strip-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.features-strip--stacked .feature-strip-item:nth-child(3),
.features-strip--stacked .feature-strip-item:nth-child(4) {
  border-bottom: none;
}
.features-strip--stacked .feature-strip-item h4 {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}
.features-strip--stacked .feature-strip-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   GALERÍAS DIFERENCIADAS POR MARCA (ELEGANTE + MINIMAL)
═══════════════════════════════════════════════════════════ */
#mitutoyo .brand-hero {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: unset;
  max-width: 980px;
  padding: 120px 40px 70px;
  gap: 26px;
}
#mitutoyo .brand-hero-text {
  max-width: 760px;
}
#mitutoyo .brand-hero-image {
  justify-content: flex-start;
}
#mitutoyo .brand-hero-image img {
  max-width: 620px;
  height: 340px;
}
#mitutoyo .productos-grid {
  grid-template-columns: 1.2fr 1fr;
}
#mitutoyo .producto-card:nth-child(1) {
  grid-row: span 2;
  padding: 40px 34px;
}
#mitutoyo .producto-card:nth-child(1) img {
  height: 320px;
}
#mitutoyo .producto-card img {
  height: 260px;
}

#starrett .brand-hero {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 72vh;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  padding: 0;
}
#starrett .brand-hero-text {
  padding: 58px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #111111;
}
#starrett .brand-hero-image {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#starrett .brand-hero-image img {
  max-width: 80%;
  width: 80%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  filter: none;
}
#starrett .productos-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
}
#starrett .producto-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 1px solid #dedad4;
}
#starrett .producto-card img {
  height: 130px;
  margin: 0;
}
#starrett .producto-card h4,
#starrett .producto-card p {
  margin: 0;
}
#starrett .producto-card p {
  flex: initial;
}
#starrett .producto-card .btn-cotizar {
  margin-top: 0;
  justify-self: end;
}

#mahr .productos-section {
  padding-top: 96px;
}
#mahr .productos-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: none;
}
#mahr .producto-card {
  border: 1px solid rgba(0,102,204,0.28);
  background: linear-gradient(180deg, rgba(0,102,204,0.13) 0%, rgba(17,17,17,1) 80%);
}
#mahr .producto-card:nth-child(2) {
  transform: translateY(26px);
}
#mahr .producto-card:nth-child(3) {
  transform: translateY(52px);
}

#mitutoyo .galeria-grid {
  columns: 3 220px;
  column-gap: 14px;
}
#mitutoyo .galeria-item {
  border: 1px solid rgba(255,255,255,0.08);
  background: #101010;
}

#starrett .starrett-gallery-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: -20px 0 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#starrett .galeria-grid--starrett {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 520px;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18));
  overflow: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#starrett .galeria-grid--starrett::-webkit-scrollbar {
  display: none;
}
#starrett .galeria-grid--starrett .galeria-item {
  flex: 0.7;
  min-width: 60px;
  margin-bottom: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: #0f1118;
  overflow: hidden;
  transition: flex 0.45s cubic-bezier(0.25, 0.9, 0.25, 1), border-radius 0.45s ease;
  cursor: pointer;
}
#starrett .galeria-grid--starrett .galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.45s ease, opacity 0.35s ease;
}
#starrett .galeria-grid--starrett .galeria-item:first-child {
  flex: 3.5;
  border-radius: 24px;
}
#starrett .galeria-grid--starrett:hover .galeria-item {
  flex: 0.55;
  border-radius: 999px;
}
#starrett .galeria-grid--starrett:hover .galeria-item:hover {
  flex: 4.2;
  border-radius: 24px;
}
#starrett .galeria-grid--starrett:hover .galeria-item:hover img {
  transform: scale(1.04);
  opacity: 1;
}

#mahr .galeria-grid {
  columns: initial;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 210px;
  gap: 12px;
}
#mahr .galeria-item {
  margin-bottom: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1117;
}
#mahr .galeria-item img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
#mahr .galeria-item:nth-child(1) {
  grid-row: span 2;
}
#mahr .galeria-item:nth-child(5) {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  #mitutoyo .brand-hero {
    padding: 80px 32px 56px;
  }
  #mitutoyo .brand-hero-image img {
    max-width: 420px;
    height: 280px;
  }
  #mitutoyo .productos-grid {
    grid-template-columns: 1fr;
  }
  #mitutoyo .producto-card:nth-child(1) {
    grid-row: auto;
    padding: 32px 28px;
  }
  #mitutoyo .producto-card:nth-child(1) img {
    height: 200px;
  }

  #starrett .brand-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  #starrett .brand-hero-text {
    padding: 42px 36px;
  }
  #starrett .brand-hero-image {
    min-height: 320px;
  }
  #starrett .producto-card {
    grid-template-columns: 180px 1fr;
    gap: 18px;
  }
  #starrett .producto-card .btn-cotizar {
    grid-column: 2;
    justify-self: start;
  }

  #mahr .productos-grid {
    grid-template-columns: 1fr 1fr;
  }
  #mahr .producto-card:nth-child(2),
  #mahr .producto-card:nth-child(3) {
    transform: none;
  }

  .brand-hero--cinematic { padding: 80px 40px; }
  .brand-hero--cinematic .brand-hero-image { opacity: 0.07; }
  .features-strip--numbered { grid-template-columns: repeat(2, 1fr); }
  .features-strip--numbered .feature-strip-item:nth-child(2) { border-right: none; }
  .features-strip--numbered .feature-strip-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); padding-top: 32px; }
  .features-strip--stacked { grid-template-columns: 1fr; }
  .features-strip--stacked .feature-strip-item:nth-child(odd) { border-right: none; }
  .features-strip--stacked .feature-strip-item:nth-child(3) { border-bottom: 1px solid var(--border); }
  .features-strip--stacked .feature-strip-item:last-child { border-bottom: none; }

  #starrett .galeria-grid--starrett {
    height: 360px;
  }

  #mahr .galeria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
  #mahr .galeria-item:nth-child(1),
  #mahr .galeria-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 768px) {
  #mitutoyo .brand-hero {
    padding: 60px 24px 48px;
  }
  #mitutoyo .brand-hero-image img {
    max-width: 100%;
    height: 230px;
  }

  #starrett .brand-hero-text {
    padding: 32px 22px;
  }
  #starrett .brand-hero-image {
    min-height: 220px;
  }
  #starrett .producto-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #starrett .producto-card .btn-cotizar {
    grid-column: auto;
  }

  #mahr .productos-grid {
    grid-template-columns: 1fr;
  }

  .brand-hero--cinematic { min-height: unset; padding: 60px 24px 80px; }
  .brand-hero--cinematic .brand-hero-image { display: none; }
  .features-strip--numbered { grid-template-columns: 1fr; }
  .features-strip--numbered .feature-strip-item { border-right: none; border-bottom: 1px solid var(--border); }
  .features-strip--numbered .feature-strip-item:last-child { border-bottom: none; }
  .features-strip--stacked { grid-template-columns: 1fr; }

  #starrett .galeria-grid--starrett {
    height: 320px;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
  }
  #starrett .galeria-grid--starrett .galeria-item,
  #starrett .galeria-grid--starrett:hover .galeria-item {
    flex: 0 0 64px;
    border-radius: 999px;
  }
  #starrett .galeria-grid--starrett .galeria-item:first-child,
  #starrett .galeria-grid--starrett:hover .galeria-item:first-child {
    flex: 0 0 56%;
    border-radius: 20px;
  }

  #mahr .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  #mahr .galeria-item:nth-child(1),
  #mahr .galeria-item:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}


/* ─── CARRUSEL MITUTOYO ─────────────────────── */
#mitutoyo .carousel-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  padding: 18px 0;
}
#mitutoyo .carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 12px;
  width: 100%;
  height: 360px;
  /* Curva cóncava circular suave (sin pico al centro) */
  clip-path: polygon(
    0% 0%, 5% 2.4%, 10% 4.6%, 15% 6.8%, 20% 8.8%, 25% 10.6%, 30% 12.1%, 35% 13.4%, 40% 14.3%, 45% 14.8%, 50% 15%,
    55% 14.8%, 60% 14.3%, 65% 13.4%, 70% 12.1%, 75% 10.6%, 80% 8.8%, 85% 6.8%, 90% 4.6%, 95% 2.4%, 100% 0%,
    100% 100%, 95% 97.6%, 90% 95.4%, 85% 93.2%, 80% 91.2%, 75% 89.4%, 70% 87.9%, 65% 86.6%, 60% 85.7%, 55% 85.2%, 50% 85%,
    45% 85.2%, 40% 85.7%, 35% 86.6%, 30% 87.9%, 25% 89.4%, 20% 91.2%, 15% 93.2%, 10% 95.4%, 5% 97.6%, 0% 100%
  );
}
#mitutoyo .carousel-track::-webkit-scrollbar {
  display: none;
}
#mitutoyo .carousel-track .galeria-item {
  flex: 0 0 calc(25% - 9px);
  scroll-snap-align: start;
  break-inside: auto;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  background: #ececec;
}
#mitutoyo .carousel-track .galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  #mitutoyo .carousel-track {
    padding: 0 8px;
    height: 250px;
    clip-path: polygon(
      0% 0%, 5% 2%, 10% 4%, 15% 5.9%, 20% 7.6%, 25% 9.2%, 30% 10.5%, 35% 11.6%, 40% 12.4%, 45% 12.8%, 50% 13%,
      55% 12.8%, 60% 12.4%, 65% 11.6%, 70% 10.5%, 75% 9.2%, 80% 7.6%, 85% 5.9%, 90% 4%, 95% 2%, 100% 0%,
      100% 100%, 95% 98%, 90% 96%, 85% 94.1%, 80% 92.4%, 75% 90.8%, 70% 89.5%, 65% 88.4%, 60% 87.6%, 55% 87.2%, 50% 87%,
      45% 87.2%, 40% 87.6%, 35% 88.4%, 30% 89.5%, 25% 90.8%, 20% 92.4%, 15% 94.1%, 10% 96%, 5% 98%, 0% 100%
    );
  }
  #mitutoyo .carousel-track .galeria-item {
    flex: 0 0 calc(70% - 6px);
    height: 100%;
  }
  #mitutoyo .carousel-btn { display: none; } /* En móviles deslizan con el dedo */
}
#mitutoyo .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.8);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
#mitutoyo .carousel-btn:hover {
  background: var(--mit);
  border-color: var(--mit);
}
#mitutoyo .prev-btn { left: 18px; }
#mitutoyo .next-btn { right: 18px; }

/* ─── MITUTOYO EDITORIAL CAROUSEL ────────────────── */
.mit-editorial-wrap {
  background: #ffffff;
  padding: 100px 20px 60px;
  color: #111;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mit-editorial-title {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #111;
  letter-spacing: -0.02em;
}

.mit-editorial-subtitle {
  font-size: 15px;
  color: #666;
  max-width: 540px;
  margin: 0 auto 60px;
  line-height: 1.6;
  font-weight: 300;
}

.mit-lens-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* The magic ellipse mask to create the eye/lens shape from the reference */
  clip-path: ellipse(65% 50% at 50% 50%);
  background: #f8f8f8;
}

.mit-lens-track {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 500px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
}

.mit-lens-track::-webkit-scrollbar {
  display: none;
}

.mit-lens-item {
  flex: 0 0 calc(33.333% - 11px);
  height: 100%;
  background: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mit-lens-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mit-editorial-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 20px;
}

.mit-reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.mit-avatars {
  display: flex;
}

.mit-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -12px;
  object-fit: cover;
}
.mit-avatars img:first-child { margin-left: 0; }

.mit-reviews-text h5 {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 0 0 2px;
}
.mit-reviews-text p {
  font-size: 11px;
  color: #888;
  margin: 0;
}

.mit-explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(-20px);
}
.mit-explore span {
  font-size: 13px;
  font-weight: 500;
  color: #111;
}
.mit-explore button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #111;
  transition: all 0.3s;
}
.mit-explore button:hover {
  background: #111;
  color: #fff;
}

.mit-badge {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.mit-badge svg {
  width: 100%;
  height: 100%;
  fill: #111;
}

.mit-badge-inner {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
}

@media(max-width: 900px) {
  .mit-lens-track { height: 350px; }
  .mit-lens-item { flex: 0 0 calc(50% - 8px); }
  .mit-editorial-bottom { flex-wrap: wrap; justify-content: center; gap: 30px; }
  .mit-explore { transform: none; order: 3; width: 100%; }
}
@media(max-width: 600px) {
  .mit-lens-track { height: 300px; }
  .mit-lens-item { flex: 0 0 100%; }
  .mit-lens-carousel { clip-path: ellipse(90% 50% at 50% 50%); }
}

/* To mask the background from Mitutoyo section making it black, we must enforce white just for this block */
#mitutoyo .mit-editorial-wrap {
  background: #ffffff !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* BRAND GRID */
.brands{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.brand-tile{
  padding:clamp(24px,3vw,44px) clamp(20px,2.5vw,36px);
  display:flex;flex-direction:column;gap:clamp(14px,2vh,24px);
  cursor:pointer;
  transition:background .25s ease;
  position:relative;
  overflow:hidden;
 justify-content:center; align-items:center; }
.brand-tile::after{
  content:'';
  position:absolute;bottom:0;left:0;right:0;
  height:3px;
  background:var(--accent,#131313);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .38s cubic-bezier(.16,1,.3,1);
}
.brand-tile:hover{background:rgba(0,0,0,.03)}
.brand-tile:hover::after{transform:scaleX(1)}
.brand-num{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.brand-name{font-size:clamp(1.1rem,2vw,1.5rem);font-weight:500;letter-spacing:-.01em}
.brand-desc{font-size:.88rem;color:var(--muted);line-height:1.55;font-weight:300}
.brand-tile .brand-name img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.brand-tile:hover .brand-name img {
  transform: scale(1.15) translateY(-4px);
}

/* ─── CATÁLOGOS LIBROS ─── */
.catalogos-section { background: #ffffff; color: #000; padding: 60px 40px 60px; width: 100%; }
.catalogos-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.catalogos-section .section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; padding-bottom: 24px; border-bottom: none; gap: 24px; flex-wrap: wrap; }
.catalogos-section .section-label { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--color-red-600); margin-bottom: 10px; display: block; }
.section-label-dot { display: inline-flex; align-items: center; gap: 8px; }
.section-label-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-red-600); box-shadow: 0 0 6px rgba(220,38,38,.6); }
.catalogos-section .section-header h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 200; letter-spacing: -.025em; color: #000; line-height: 1.1; margin:0;}
.catalogos-section .section-header p { font-size: 14px; color: rgba(0,0,0,.85); font-weight: 400; margin-top: 10px; line-height: 1.65; max-width: 460px; margin-bottom:0;}
.btn-solicitar { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #000; text-decoration: none; border-bottom: 1px solid #000; padding-bottom: 3px; white-space: nowrap; flex-shrink: 0; transition: gap .3s, opacity .3s; }
.btn-solicitar:hover { gap: 14px; opacity: .7; }
.books-row { display: flex; align-items: flex-end; justify-content: center; gap: 48px; flex-wrap: wrap; }
.book-item { display: flex; flex-direction: column; align-items: center; gap: 18px; cursor: pointer; text-decoration: none; color: inherit; }

.pdf-card { position: relative; width: 160px; height: 220px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); border: 1px solid rgba(0,0,0,0.05); }
.pdf-card img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform 0.4s var(--ease); }
.pdf-badge { position: absolute; top: 12px; right: 12px; background: var(--color-red-600); color: #fff; font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 10; letter-spacing: 0.05em; }
.book-item:hover .pdf-card { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); border-color: rgba(0,0,0,0.1); }
.book-item:hover .pdf-card img { transform: scale(1.05); }

.book-info { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.book-brand { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #000; transition: color .3s; }
.book-item:hover .book-brand { color: var(--accent, var(--color-red-600)); }
.book-sub { font-size: 11px; color: rgba(0,0,0,.75); font-weight: 400; letter-spacing: .04em; }
.book-actions { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.book-item:hover .book-actions { opacity: 1; transform: translateY(0); }
.btn-book-ver { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #000; border: 1px solid #000; padding: 6px 14px; text-decoration: none; transition: background .25s; border-radius: 2px; }
.btn-book-ver:hover { background: #333; }
.btn-book-dl { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(0,0,0,.2); color: #000; text-decoration: none; transition: background .25s, color .25s; border-radius: 2px; }
.btn-book-dl:hover { background: #000; color: #fff; }
.btn-book-dl svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.catalogos-footer { margin-top: 48px; padding-top: 28px; border-top: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(0,0,0,.8); font-weight: 400; line-height: 1.5; max-width: 480px; margin:0;}
.footer-note::before { content: 'ℹ'; font-size: 13px; color: rgba(0,0,0,.7); flex-shrink: 0; }
@media (max-width: 900px) { .books-row { gap: 32px; } .pdf-card { width: 140px; height: 195px; } }
@media (max-width: 600px) { .catalogos-section { padding: 40px 20px 60px; } .books-row { gap: 20px; } .pdf-card { width: 120px; height: 165px; } .catalogos-section .section-header { flex-direction: column; align-items: flex-start; } .catalogos-footer { flex-direction: column; align-items: flex-start; } }

/* ─── IDEA 2 (Features) ─── */
.idea2-section { background: transparent; padding: 60px 40px 20px; color: #0a0a0a; width: 100vw; margin-left: calc(-50vw + 50%); margin-bottom: 0; }
.idea2-wrap { max-width: 1200px; margin: 0 auto; background: transparent; padding: 0; border: none; text-align: left; }
.idea2-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 24px; border-bottom: none; }
.idea2-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--color-red-600); margin-bottom: 12px; display: block; }
.idea2-header h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 200; letter-spacing: -.025em; color: #0a0a0a; margin: 0; }
.idea2-link { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #0a0a0a; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.idea2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border: none; }
.idea2-col { padding: 20px 0; position: relative; border-right: none; transition: transform .3s ease; }
.idea2-col:last-child { border-right: none; }
.idea2-col:hover { background: transparent; transform: translateY(-5px); }
.idea2-icon { font-size: 24px; color: #0a0a0a; margin-bottom: 18px; display: block; }
.idea2-col h3 { font-size: 18px; font-weight: 500; color: #0a0a0a; margin-bottom: 12px; }
.idea2-col p { font-size: 13px; color: #444; font-weight: 400; line-height: 1.7; margin: 0; }
.idea2-badge { margin-top: 28px; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #333; background: rgba(0,0,0,.06); padding: 5px 10px; }
.idea2-badge i { font-size: 9px; }
@media (max-width: 900px) {
  .idea2-section { padding: 40px 24px 20px; }
  .idea2-wrap { padding: 0; }
  .idea2-grid { grid-template-columns: 1fr; gap: 40px; }
  .idea2-col { border-right: none; border-bottom: none; padding: 0; }
  .idea2-col:last-child { border-bottom: none; }
}