/* ================================================================
   IMDA GROUP — DESIGN SYSTEM v2
   Industrial Diesel Engineering Aesthetic
   ================================================================ */

:root {
  --imda-red:        #DA291C;
  --imda-red-deep:   #b01c12;
  --imda-red-soft:   rgba(218, 41, 28, .10);
  --imda-yellow:     #FFC72C;
  --imda-yellow-dk:  #e0a900;
  --imda-yellow-soft: rgba(255, 199, 44, .14);
  --imda-black:      #2D2926;
  --imda-black-2:    #1a1614;
  --imda-black-3:    #14110f;
  --white:    #ffffff;
  --paper:    #fafaf7;
  --steel-50: #f5f5f3;
  --steel-100:#ebebe7;
  --steel-200:#d9d9d3;
  --steel-300:#b8b8b0;
  --steel-400:#878780;
  --steel-500:#5e5e58;
  --steel-600:#3a3a36;
  --font-display: 'Anton', 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:    'Ubuntu', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', monospace;
  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow:    0 12px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --shadow-red:0 14px 35px rgba(218,41,28,.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--imda-black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* TIPOGRAFÍA */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--imda-red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--imda-red);
}
.eyebrow.on-dark { color: var(--imda-yellow); }
.eyebrow.on-dark::before { background: var(--imda-yellow); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--imda-black);
  margin: 0 0 22px;
}
.section-title .accent { color: var(--imda-red); }
.section-title.on-dark { color: var(--white); }

.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--steel-500);
  max-width: 720px;
  margin: 0;
}
.section-sub.on-dark { color: rgba(255,255,255,.75); }

.section-head { margin-bottom: 56px; }
.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 17px 32px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--imda-red);
  color: var(--white);
  border-color: var(--imda-red);
  box-shadow: 0 8px 20px rgba(218,41,28,.25);
}
.btn-primary:hover {
  background: var(--imda-red-deep);
  border-color: var(--imda-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(218,41,28,.35);
}
.btn-yellow {
  background: var(--imda-yellow);
  color: var(--imda-black);
  border-color: var(--imda-yellow);
}
.btn-yellow:hover {
  background: var(--imda-yellow-dk);
  border-color: var(--imda-yellow-dk);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--imda-red);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--imda-yellow);
  border-color: var(--imda-yellow);
  color: var(--imda-black);
}
.btn-ghost {
  background: transparent;
  color: var(--imda-black);
  border-color: var(--imda-black);
}
.btn-ghost:hover {
  background: var(--imda-black);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--imda-red);
  border-color: var(--white);
}

/* TOPBAR */
.topbar {
  background: var(--imda-black);
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--imda-red);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar a {
  color: rgba(255,255,255,.85);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover { color: var(--imda-yellow); }
.topbar i { color: var(--imda-red); }
.topbar-social {
  display: flex; gap: 14px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.topbar-social a i { color: rgba(255,255,255,.7); font-size: 13px; }
.topbar-social a:hover i { color: var(--imda-yellow); }
@media (max-width: 760px) { .topbar { display: none; } }

/* HEADER */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--steel-100);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--imda-red); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo { height: 56px; width: auto; flex-shrink: 0; display: block; }
.footer .brand-logo { height: 64px; }
.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--imda-black);
  text-transform: uppercase;
  font-weight: 400;
}
.brand-text strong span { color: var(--imda-red); margin-left: 2px; }
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--steel-400);
  text-transform: uppercase;
  margin-top: 2px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-500);
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--imda-red);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--imda-red); }
.nav-link.active::after, .nav-link:hover::after { width: calc(100% - 32px); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--imda-black);
  transition: all .3s;
}
@media (max-width: 1100px) { .brand-text { display: none; } }
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--imda-black);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 6px;
    transition: right .3s ease;
    z-index: 110;
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--imda-yellow); }
  .main-nav .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
}

/* HERO */
.hero {
  position: relative;
  background:
    /* Gradient overlay reforzado: protege más zona del título (especialmente DIÉSEL) */
    linear-gradient(
      90deg,
      rgba(20,17,15,.96) 0%,
      rgba(20,17,15,.94) 35%,
      rgba(20,17,15,.78) 52%,
      rgba(20,17,15,.40) 72%,
      rgba(20,17,15,.10) 88%,
      rgba(20,17,15,0)   100%
    ),
    /* Foto del hero */
    url('heromecanic.webp') no-repeat right center / cover,
    /* Fallback color */
    var(--imda-black);
  color: var(--white);
  padding: 0;
  overflow: hidden;
  border-bottom: 4px solid var(--imda-red);
  min-height: 640px;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Solo aparece sutil sobre la zona oscura del texto */
  mask-image: linear-gradient(90deg, black 0%, black 35%, transparent 65%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 35%, transparent 65%);
  pointer-events: none;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(218,41,28,.18), transparent 70%);
  top: -120px; right: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,199,44,.10), transparent 70%);
  bottom: -100px; left: -50px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px var(--gutter) 100px;
  display: block;
}
.hero-left {
  max-width: 620px;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(255,199,44,.10);
  border: 1px solid rgba(255,199,44,.4);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--imda-yellow);
  margin-bottom: 30px;
}
.hero-tagline .blink {
  width: 8px; height: 8px;
  background: var(--imda-yellow);
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,199,44,.6); }
  50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(255,199,44,0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0,0,0,.55);
}
.hero-title .word-red { color: var(--imda-red); }
.hero-title .word-yellow { color: var(--imda-yellow); }
.hero-title .word-stroke { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  margin: 0 0 38px;
  max-width: 560px;
  text-shadow: 0 1px 14px rgba(0,0,0,.7);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
}
.hero-stat {
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--imda-yellow);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-bg {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
  backdrop-filter: blur(8px);
}
.hero-visual-bg::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 18px;
}
.hero-gear {
  position: absolute;
  width: 70%;
  opacity: .92;
  animation: spin-slow 60s linear infinite;
  filter: drop-shadow(0 30px 60px rgba(218,41,28,.4));
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hud-card {
  position: absolute;
  background: rgba(20, 17, 15, .92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,199,44,.3);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hud-card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.hud-card-2 { bottom: 22%; right: -10%; animation-delay: 1.5s; }
.hud-card-3 { bottom: 5%; left: 8%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hud-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.hud-card-1 .hud-icon { background: rgba(255,199,44,.2); color: var(--imda-yellow); }
.hud-card-2 .hud-icon { background: rgba(218,41,28,.25); color: var(--imda-red); }
.hud-card-3 .hud-icon { background: rgba(255,255,255,.10); color: var(--white); }
.hud-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
}
.hud-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.hud-value .hud-tag {
  display: inline-block;
  padding: 1px 6px;
  background: var(--imda-red);
  color: var(--white);
  font-size: 9px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.hero-ticker {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
}
.ticker-item .dot {
  width: 8px; height: 8px;
  background: var(--imda-red);
  transform: rotate(45deg);
}
@media (max-width: 980px) {
  .hero {
    /* En tablet: foto centrada, gradient vertical más oscuro arriba */
    background:
      linear-gradient(
        180deg,
        rgba(20,17,15,.92) 0%,
        rgba(20,17,15,.78) 35%,
        rgba(20,17,15,.85) 100%
      ),
      url('heromecanic.webp') no-repeat center center / cover,
      var(--imda-black);
    min-height: auto;
  }
  .hero-left { max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .hero-stat { border-right: none; padding-right: 0; }
  .hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.10); padding-right: 20px; }
}
@media (max-width: 600px) {
  .hero {
    /* En mobile: gradient aún más oscuro porque el texto compite por espacio */
    background:
      linear-gradient(
        180deg,
        rgba(20,17,15,.95) 0%,
        rgba(20,17,15,.86) 40%,
        rgba(20,17,15,.92) 100%
      ),
      url('heromecanic.webp') no-repeat 65% center / cover,
      var(--imda-black);
  }
  .hero-inner { padding: 50px var(--gutter) 70px; }
}

/* BENEFITS STRIP */
.benefits-strip {
  background: var(--imda-yellow);
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.benefits-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(45,41,38,.04) 0 2px,
    transparent 2px 14px);
  pointer-events: none;
}
.benefits-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid rgba(45,41,38,.18);
  padding-right: 30px;
}
.benefit-item:last-child { border-right: none; padding-right: 0; }
.benefit-icon {
  width: 44px; height: 44px;
  background: var(--imda-black);
  color: var(--imda-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.benefit-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--imda-black);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}
.benefit-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--imda-black);
  opacity: 0.7;
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .benefit-item:nth-child(2) { border-right: none; }
}
@media (max-width: 540px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item { border-right: none; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid rgba(45,41,38,.18); }
  .benefit-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* SECTION DEFAULTS */
.section { padding: 100px 0; position: relative; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); }
.section-dark {
  background: linear-gradient(180deg, var(--imda-black) 0%, var(--imda-black-3) 100%);
  color: var(--white);
  border-top: 4px solid var(--imda-red);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,.7); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-grid > * { min-width: 0; }
.about-grid.flipped { grid-template-columns: 1.05fr 1fr; }
.about-content { min-width: 0; }
.about-content .section-title { margin-bottom: 24px; word-wrap: break-word; overflow-wrap: break-word; }
.about-content .lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--imda-black);
  line-height: 1.65;
  margin-bottom: 18px;
}
.about-content p {
  color: var(--steel-500);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 2px dashed var(--steel-200);
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--imda-red);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.about-stat span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-500);
}
.about-visual {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
}
.about-visual-card {
  position: relative;
  width: 100%; height: 100%;
  min-width: 0;
  background: linear-gradient(135deg, var(--imda-black) 0%, var(--imda-black-3) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.about-engine-svg {
  position: relative;
  width: 70%;
  filter: drop-shadow(0 30px 60px rgba(218,41,28,.4));
  animation: spin-slow 80s linear infinite;
}
.about-badge {
  position: absolute;
  background: var(--imda-yellow);
  color: var(--imda-black);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  z-index: 2;
}
.about-badge-1 { top: 20px; left: 20px; }
.about-badge-2 { bottom: 20px; right: 20px; background: var(--imda-red); color: var(--white); }
.about-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 2px;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 70px;
}
.mvv-card {
  background: var(--white);
  border: 2px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  transition: all .3s ease;
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--imda-red);
  border-radius: 14px 14px 0 0;
}
.mvv-card.vision::before { background: var(--imda-yellow); }
.mvv-card.values::before { background: var(--imda-black); }
.mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.mvv-icon {
  width: 56px; height: 56px;
  background: var(--imda-red-soft);
  color: var(--imda-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.mvv-card.vision .mvv-icon { background: var(--imda-yellow-soft); color: var(--imda-yellow-dk); }
.mvv-card.values .mvv-icon { background: rgba(45,41,38,.10); color: var(--imda-black); }
.mvv-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 400;
}
.mvv-card p {
  color: var(--steel-500);
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}
@media (max-width: 980px) {
  .about-grid, .about-grid.flipped { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: min(500px, 100%); margin: 0 auto; }
  .mvv-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 540px) {
  /* Stats compactos en mobile pequeño - 3 cols apretadas pero respetan viewport */
  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .about-stat { min-width: 0; }
  .about-stat strong { font-size: 32px; }
  .about-stat span {
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1.3;
    display: block;
  }
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 4px;
  background: var(--imda-red);
  transition: width .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-num {
  position: absolute;
  top: 16px; right: 22px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--steel-100);
  letter-spacing: 1px;
  transition: color .3s;
}
.service-card:hover .service-num { color: var(--imda-yellow); }
.service-icon {
  width: 64px; height: 64px;
  background: var(--imda-red-soft);
  color: var(--imda-red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all .3s ease;
}
.service-card:hover .service-icon {
  background: var(--imda-red);
  color: var(--white);
  transform: rotate(-6deg);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--imda-black);
  position: relative;
  z-index: 2;
}
.service-card > p {
  font-size: 14.5px;
  color: var(--steel-500);
  margin: 0 0 20px;
  line-height: 1.65;
}
.service-tags {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--steel-50);
  color: var(--steel-500);
  border-radius: 30px;
  border: 1px solid var(--steel-100);
}
.service-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.service-points li {
  font-size: 13.5px;
  color: var(--steel-600);
  padding: 7px 0 7px 26px;
  position: relative;
  border-bottom: 1px dashed var(--steel-100);
}
.service-points li:last-child { border-bottom: none; }
.service-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 14px; height: 2px;
  background: var(--imda-red);
}
.service-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.service-link i { transition: transform .25s ease; font-size: 9px; }
.service-link:hover i { transform: translateX(4px); }
.service-card.featured {
  background: linear-gradient(145deg, var(--imda-black) 0%, var(--imda-black-3) 100%);
  border: none;
  color: var(--white);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured > p { color: rgba(255,255,255,.7); }
.service-card.featured .service-num { color: rgba(255,255,255,.06); }
.service-card.featured .service-icon { background: var(--imda-red); color: var(--white); }
.service-card.featured .service-tag { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
.service-card.featured .service-points li { color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.08); }
.service-card.featured .service-points li::before { background: var(--imda-yellow); }
.service-card.featured .service-link { color: var(--imda-yellow); }
.service-card.featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-red); }
.service-card.featured:hover::before { background: var(--imda-yellow); }
.service-card.warning .service-icon { background: var(--imda-yellow-soft); color: var(--imda-yellow-dk); }
.service-card.warning:hover .service-icon { background: var(--imda-yellow); color: var(--imda-black); transform: rotate(0) scale(1.05); }
.service-badge {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--imda-yellow);
  color: var(--imda-black);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 30px;
  z-index: 3;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* BRANDS GRID */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.brand-cell {
  aspect-ratio: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--steel-100);
  border-bottom: 1px solid var(--steel-100);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--steel-400);
  background: var(--white);
  transition: all .3s ease;
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
}
.brand-cell:hover {
  background: var(--imda-black);
  color: var(--imda-yellow);
  transform: scale(1.04);
  z-index: 2;
  box-shadow: var(--shadow);
}
.brand-cell:nth-child(8n) { border-right: none; }
.brand-cell:nth-child(n+9) { border-bottom: none; }
@media (max-width: 1000px) {
  .brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-cell:nth-child(8n) { border-right: 1px solid var(--steel-100); }
  .brand-cell:nth-child(4n) { border-right: none; }
  .brand-cell:nth-child(n+9) { border-bottom: 1px solid var(--steel-100); }
  .brand-cell:nth-last-child(-n+4) { border-bottom: none; }
}
@media (max-width: 600px) {
  .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-cell { border-right: 1px solid var(--steel-100) !important; }
  .brand-cell:nth-child(2n) { border-right: none !important; }
}

/* SECTORS */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sector-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.sector-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(255,199,44,.15) 50%);
  opacity: 0;
  transition: opacity .3s;
}
.sector-card:hover {
  background: rgba(218,41,28,.08);
  border-color: var(--imda-red);
  transform: translateY(-4px);
}
.sector-card:hover::after { opacity: 1; }
.sector-icon {
  font-size: 30px;
  color: var(--imda-yellow);
  margin-bottom: 18px;
}
.sector-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--white);
}
.sector-card p {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 980px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sectors-grid { grid-template-columns: 1fr; } }

/* PROCESS */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-top: 60px;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 36px; left: 0; right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--imda-red) 0 12px, transparent 12px 22px);
}
.process-step {
  text-align: center;
  padding: 0 14px;
  position: relative;
}
.process-step-num {
  width: 72px; height: 72px;
  background: var(--white);
  color: var(--imda-red);
  border: 3px solid var(--imda-red);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 2;
  transition: all .3s ease;
}
.process-step:hover .process-step-num {
  background: var(--imda-red);
  color: var(--white);
  transform: scale(1.05) rotate(-5deg);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--imda-black);
}
.process-step p {
  font-size: 13px;
  color: var(--steel-500);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-track::before { display: none; }
}
@media (max-width: 480px) { .process-track { grid-template-columns: 1fr; } }

/* CASES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--imda-red);
  background: var(--imda-red-soft);
  padding: 4px 10px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.case-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.case-card p {
  font-size: 14px;
  color: var(--steel-500);
  line-height: 1.65;
  margin: 0 0 22px;
}
.case-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--steel-200);
}
.case-metric strong {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--imda-red);
  letter-spacing: 1px;
}
.case-metric span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--steel-500);
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, var(--imda-red) 0%, var(--imda-red-deep) 100%);
  padding: 70px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,.04) 0 2px,
    transparent 2px 14px);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,199,44,.25), transparent 70%);
  top: -150px; right: -100px;
  filter: blur(50px);
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1;
}
.cta-band p {
  margin: 0;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  font-size: 15px;
  line-height: 1.6;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .25s;
}
.faq-item.open {
  border-color: var(--imda-red);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--imda-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--imda-red);
  transition: transform .25s;
  line-height: 1;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--steel-500);
  line-height: 1.75;
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -12px; left: 22px;
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--imda-red);
  line-height: 1;
}
.testimonial-stars {
  color: var(--imda-yellow);
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: 2px;
}
.testimonial p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--steel-600);
  margin: 0 0 22px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--steel-200);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--imda-red-soft);
  color: var(--imda-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--imda-black);
}
.testimonial-author span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-400);
  letter-spacing: 0.8px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* FOOTER */
.footer {
  background: var(--imda-black-3);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--imda-red) 0 33%,
    var(--imda-yellow) 33% 66%,
    var(--imda-black) 66% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; margin: 0 0 24px; }
.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all .25s;
}
.footer-social a:hover {
  background: var(--imda-red);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--imda-yellow);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--imda-yellow);
  padding-left: 4px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.footer-contact i {
  color: var(--imda-red);
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* FLOATING */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-ring 2s infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.back-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  background: var(--white);
  color: var(--imda-black);
  border: 2px solid var(--imda-black);
  border-radius: 50%;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .25s;
  z-index: 89;
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--imda-red); color: var(--white); border-color: var(--imda-red); }

/* SCROLL REVEAL — progressive enhancement.
   Por default todo es visible. JS añade .reveal-ready al <html> sólo si carga
   correctamente; sólo entonces se aplica el efecto fade-in. Esto garantiza que
   el contenido siempre se vea aunque el JS falle/se cachee/se bloquee. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* PAGE HERO */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--imda-black-2) 0%, var(--imda-black) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  overflow: hidden;
  border-bottom: 4px solid var(--imda-red);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,41,28,.30), transparent 70%);
  top: -100px; right: -100px;
  filter: blur(50px);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 26px;
}
.breadcrumbs a { color: var(--imda-yellow); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs i { font-size: 8px; color: rgba(255,255,255,.4); }
.breadcrumbs span { color: var(--white); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--white);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-hero h1 .accent { color: var(--imda-red); word-wrap: break-word; overflow-wrap: break-word; }
.page-hero p.lead {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
  margin: 0;
}

/* PRODUCTOS */
.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 50px;
}
.filter-chip {
  padding: 9px 18px;
  background: var(--white);
  border: 1.5px solid var(--steel-100);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel-500);
  cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--imda-red); color: var(--imda-red); }
.filter-chip.active {
  background: var(--imda-red);
  border-color: var(--imda-red);
  color: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.product-img {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--steel-50), var(--steel-100));
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
  color: var(--steel-300);
}
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--imda-red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 30px;
}
.product-tag.tag-yellow { background: var(--imda-yellow); color: var(--imda-black); }
.product-tag.tag-dark   { background: var(--imda-black); color: var(--imda-yellow); }
.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--imda-black);
}
.product-body > p {
  font-size: 13.5px;
  color: var(--steel-500);
  margin: 0 0 18px;
  line-height: 1.6;
  flex: 1;
}
.product-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--imda-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}
.product-cta i { transition: transform .25s; font-size: 9px; }
.product-cta:hover i { transform: translateX(4px); }
.product-card.fade-out { opacity: 0; transform: scale(.95); display: none; }
.products-footer-note {
  margin-top: 50px;
  text-align: center;
  font-size: 14px;
  color: var(--steel-500);
}
.products-footer-note i { color: var(--imda-red); margin-right: 6px; }
.products-footer-note a { color: var(--imda-red); font-weight: 700; }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .products-grid { grid-template-columns: 1fr; } }

/* DPF */
.dpf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.dpf-card {
  background: var(--white);
  border: 1.5px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .3s;
}
.dpf-card:hover {
  border-color: var(--imda-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.dpf-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--imda-red), var(--imda-red-deep));
  color: var(--white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.dpf-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.dpf-card > p {
  color: var(--steel-500);
  line-height: 1.65;
  margin-bottom: 22px;
}
.dpf-card h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-red);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--steel-200);
}
.dpf-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--steel-600);
}
.dpf-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--imda-red);
  font-weight: 700;
}
@media (max-width: 900px) { .dpf-grid { grid-template-columns: 1fr; } }

.emissions-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.eb-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s;
}
.eb-tile:hover {
  background: rgba(255,199,44,.06);
  border-color: var(--imda-yellow);
  transform: translateY(-4px);
}
.eb-tile i {
  font-size: 32px;
  color: var(--imda-yellow);
  margin-bottom: 14px;
}
.eb-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1;
}
.eb-tile span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: block;
  margin-bottom: 12px;
}
.eb-tile p { color: rgba(255,255,255,.7); margin: 0; font-size: 13.5px; line-height: 1.6; }
@media (max-width: 900px) { .emissions-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .emissions-benefits { grid-template-columns: 1fr; } }

.legal-note {
  margin-top: 50px;
  padding: 22px 26px;
  background: rgba(255,199,44,.08);
  border-left: 4px solid var(--imda-yellow);
  border-radius: 4px;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}
.legal-note i { color: var(--imda-yellow); margin-right: 8px; }
.legal-note strong { color: var(--imda-yellow); }

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(160deg, var(--imda-black) 0%, var(--imda-black-2) 100%);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(218,41,28,.3), transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.contact-info-card > * { position: relative; z-index: 2; }
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--white);
  line-height: 1;
}
.contact-info-card > p {
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 15px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-list li > div { flex: 1; min-width: 0; }
.contact-info-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--imda-red);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex: 0 0 44px;
}
.contact-info-list strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-yellow);
  margin-bottom: 4px;
}
.contact-info-list span {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  line-height: 1.55;
}
.contact-info-list a { color: rgba(255,255,255,.85); }
.contact-info-list a:hover { color: var(--imda-yellow); }
.contact-social {
  display: flex; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.contact-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.contact-social a:hover { background: var(--imda-red); transform: translateY(-3px); }

.contact-form-card {
  background: var(--white);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-100);
}
.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--steel-500);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  border: 2px solid var(--steel-100);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--imda-black);
  transition: all .2s;
  letter-spacing: 0;
  text-transform: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--imda-red);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 11px; color: var(--steel-400); text-align: center; margin: 0; font-family: var(--font-mono); letter-spacing: 0.5px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }
  .contact-info-card { padding: 36px 28px; }
}

/* EQUIPMENT */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.equipment-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all .3s;
}
.equipment-card:hover {
  background: rgba(255,199,44,.06);
  border-color: var(--imda-yellow);
  transform: translateY(-4px);
}
.equipment-card i {
  font-size: 36px;
  color: var(--imda-yellow);
  margin-bottom: 16px;
}
.equipment-card h5 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 6px;
}
.equipment-card p {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.55;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}
@media (max-width: 900px) { .equipment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .equipment-grid { grid-template-columns: 1fr; } }

/* PROBLEMS */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--white);
  border-left: 4px solid var(--imda-red);
  border-radius: var(--radius);
  transition: all .25s;
}
.problem-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.problem-item i {
  color: var(--imda-red);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.problem-item strong {
  display: block;
  font-size: 15px;
  color: var(--imda-black);
  margin-bottom: 4px;
}
.problem-item span {
  font-size: 13.5px;
  color: var(--steel-500);
  line-height: 1.55;
}
@media (max-width: 700px) { .problems-grid { grid-template-columns: 1fr; } }

/* ================================================================
   SUB-MARKS (logos secundarios por servicio/sección)
   ================================================================ */

/* Sub-marca dentro de una sección (servicios, productos)
   Pequeña, sin caja, con línea sutil debajo como acento. */
.submark {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 0 0 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid var(--imda-red);
}
.submark img {
  height: 38px;
  width: auto;
  max-height: 38px;
  max-width: 220px;
  display: block;
  object-fit: contain;
}
.submark.compact img { height: 30px; max-height: 30px; max-width: 180px; }

/* Sub-marca en page-hero (sobre fondo oscuro)
   Logo pequeño, sin caja, con línea amarilla sutil debajo. */
.page-hero-mark {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 0 0 14px 0;
  background: none;
  border: none;
  border-bottom: 2px solid var(--imda-yellow);
}
.page-hero-mark img {
  height: 96px;
  width: auto;
  max-height: 96px;
  max-width: 460px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
@media (max-width: 700px) {
  .submark img { height: 32px; }
  .page-hero-mark img { height: 64px; max-height: 64px; max-width: 280px; }
}

/* Sección dedicada de capacitación */
.training-band {
  background: var(--imda-yellow);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.training-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(45,41,38,.04) 0 2px,
    transparent 2px 14px);
  pointer-events: none;
}
.training-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}
.training-mark img {
  max-height: 90px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.training-content h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--imda-black);
  margin: 0 0 14px;
  line-height: 1;
}
.training-content p {
  color: var(--imda-black);
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 600px;
}
.training-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.training-actions .btn-primary {
  background: var(--imda-black);
  border-color: var(--imda-black);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.training-actions .btn-primary:hover {
  background: var(--imda-red);
  border-color: var(--imda-red);
}

@media (max-width: 800px) {
  .training-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .training-actions { justify-content: center; }
  .training-mark img { max-height: 70px; margin: 0 auto; }
}

/* Mini-mark para categorías de productos (en filtros o headers de grupo) */
.category-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border-left: 4px solid var(--imda-red);
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.category-mark img {
  height: 44px;
  width: auto;
}
.category-mark span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--imda-black);
}

/* ================================================================
   PÁGINA MÓDULOS ECM — chip mocks + grid por marca
   ================================================================ */

/* Banda intro con stats por marca */
.ecm-intro {
  background: var(--imda-black);
  padding: 50px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.ecm-intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.ecm-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.ecm-intro-stat {
  border-left: 1px solid rgba(255,255,255,.1);
  padding: 6px 12px;
}
.ecm-intro-stat:first-child { border-left: none; }
.ecm-intro-stat .num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--imda-yellow);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.ecm-intro-stat .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
@media (max-width: 800px) {
  .ecm-intro-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .ecm-intro-stat { border-left: none; }
  .ecm-intro-stat .num { font-size: 34px; }
}

/* Sección de marca */
.brand-section {
  padding: 80px 0;
  position: relative;
}
.brand-section.section-light { background: var(--paper); }
.brand-section.section-dark  { background: var(--imda-black); color: var(--white); }

.brand-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid currentColor;
  border-image: linear-gradient(to right, currentColor 0%, transparent 100%) 1;
  position: relative;
}
.brand-header::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 80px; height: 3px;
  background: var(--imda-red);
}
.section-dark .brand-header { border-bottom-color: rgba(255,255,255,.15); }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--imda-red);
  display: block;
  margin-bottom: 6px;
}
.section-dark .brand-tag { color: var(--imda-yellow); }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  color: var(--imda-black);
}
.section-dark .brand-name { color: var(--white); }
.brand-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(45,41,38,.55);
  margin-left: auto;
  text-transform: uppercase;
}
.section-dark .brand-count { color: rgba(255,255,255,.55); }
@media (max-width: 600px) {
  .brand-header { flex-wrap: wrap; gap: 14px; }
  .brand-count { margin-left: 0; width: 100%; }
}

/* Grid de familias */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .modules-grid { grid-template-columns: 1fr; } }

/* Card de módulo */
.module-card {
  background: var(--white);
  border: 1px solid rgba(45,41,38,.10);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.section-dark .module-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--imda-red);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
.section-dark .module-card:hover {
  background: rgba(218,41,28,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}

/* Chip mock visual */
.chip-stage {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(0,0,0,.18), transparent 65%),
    linear-gradient(180deg, #f4f1ec 0%, #e6e1da 100%);
  border-radius: 8px;
  padding: 26px 18px 18px;
  margin: -10px -10px 18px;
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.section-dark .chip-stage {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(0,0,0,.5), transparent 65%),
    linear-gradient(180deg, #1f1b18 0%, #14110f 100%);
}
.chip-stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}
.section-dark .chip-stage::before {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}

/* El módulo en sí */
.chip {
  --chip-base: #b5b5b5;
  --chip-edge: #7d7d7d;
  --chip-label: #fff;
  --chip-text: #2D2926;
  position: relative;
  width: 150px;
  height: 86px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.18)),
    linear-gradient(180deg, var(--chip-base), color-mix(in srgb, var(--chip-base) 80%, #000));
  box-shadow:
    0 2px 0 var(--chip-edge),
    0 4px 12px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tornillos en las 4 esquinas */
.chip::before, .chip::after,
.chip > .chip-screw {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ddd, #555 70%, #2a2a2a);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.4);
}
.chip::before { top: 6px; left: 6px; content: ''; }
.chip::after  { top: 6px; right: 6px; content: ''; }
.chip .chip-screw.bl { bottom: 6px; left: 6px; }
.chip .chip-screw.br { bottom: 6px; right: 6px; }

/* Conectores en el "lateral inferior" del módulo */
.chip-connectors {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1;
}
.chip-connector {
  width: 38px;
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.55) 0 2px,
      rgba(255,255,255,.10) 2px 4px),
    linear-gradient(180deg, #2a2a2a, #111);
  border-radius: 0 0 3px 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 2px 4px rgba(0,0,0,.4);
}

/* Label/etiqueta del módulo */
.chip-label {
  background: var(--chip-label);
  color: var(--chip-text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}

/* LED indicador */
.chip-led {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #00d77a;
  box-shadow: 0 0 6px #00d77a, 0 0 2px #00ffaa;
  animation: led-pulse 2.5s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* Variantes por marca (refleja color real del módulo) */
.chip--cummins  { --chip-base: #c11313; --chip-edge: #6e0808; --chip-label: #fff;     --chip-text: #2D2926; }
.chip--detroit  { --chip-base: #c0c4c8; --chip-edge: #74797d; --chip-label: #1a1a1a;  --chip-text: #fff;    }
.chip--cat      { --chip-base: #ffc20e; --chip-edge: #b88200; --chip-label: #1a1a1a;  --chip-text: #fff;    }
.chip--navistar { --chip-base: #4a4a4a; --chip-edge: #1f1f1f; --chip-label: #ff6a13;  --chip-text: #fff;    }
.chip--mercedes { --chip-base: #d6d8db; --chip-edge: #8a8d90; --chip-label: #1f2937;  --chip-text: #fff;    }

/* Cuerpo del card */
.module-family {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--imda-black);
  line-height: 1.1;
}
.section-dark .module-family { color: var(--white); }
.module-family-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-red);
  margin: 0 0 14px;
}
.section-dark .module-family-sub { color: var(--imda-yellow); }

.module-meta {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(45,41,38,.78);
  margin: 0 0 6px;
}
.section-dark .module-meta { color: rgba(255,255,255,.72); }
.module-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(45,41,38,.5);
  margin-bottom: 2px;
}
.section-dark .module-meta strong { color: rgba(255,255,255,.45); }

.module-cta {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-red);
  text-decoration: none;
  align-self: flex-start;
  transition: gap .2s ease, color .2s ease;
}
.section-dark .module-cta { color: var(--imda-yellow); }
.module-cta:hover { gap: 14px; }
.module-cta i { font-size: 9px; }

/* En mobile, el grid de marcas dentro de about-visual-card queda mejor en 2 cols */
@media (max-width: 540px) {
  .about-visual-card > div[style*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .about-visual-card > div[style*="grid"] > div {
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* Mobile: cards .about-visual-card con inline aspect-ratio:1 que rompen layout */
@media (max-width: 980px) {
  .about-visual-card[style*="aspect-ratio"] {
    aspect-ratio: auto !important;
    height: auto !important;
    padding: 30px 18px !important;
  }
  /* Sub-cards Common Rail / Unit Injector / HEUI / UIS - achicar texto */
  .about-visual-card strong[style*="font-size:22px"] {
    font-size: clamp(15px, 4vw, 22px) !important;
    letter-spacing: 0.5px !important;
  }
  .about-visual-card h3[style*="font-size:32px"] {
    font-size: clamp(20px, 5.5vw, 32px) !important;
    letter-spacing: 0.5px !important;
    word-wrap: break-word;
  }
}

/* Mobile: botones grandes y CTAs deben apilarse y respetar viewport */
@media (max-width: 540px) {
  .cta-actions, .cta-buttons, .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn,
  .cta-buttons .btn,
  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .btn-lg { padding: 14px 18px; font-size: 13px; }
}

/* ================================================================
   IMÁGENES INTEGRADAS — secciones de contenido
   ================================================================ */

/* INDEX > sección "Marcas con las que trabajamos" — imagen reemplaza grid */
.brands-image {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: var(--radius-lg);
  padding: 36px 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  position: relative;
}
.brands-image::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 80px; height: 3px;
  background: var(--imda-red);
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
}
.brands-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
@media (max-width: 720px) {
  .brands-image { padding: 24px 22px; border-radius: var(--radius); }
}
@media (max-width: 480px) {
  .brands-image { padding: 18px 16px; }
}

/* PRODUCTOS > "Biblioteca técnica" — banner horizontal con imagen + texto */
.library-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--imda-black-2), var(--imda-black));
  border: 1px solid rgba(218,41,28,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 280px;
  position: relative;
}
.library-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--imda-red), var(--imda-yellow));
}
.library-banner-img {
  position: relative;
  overflow: hidden;
}
.library-banner-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.library-banner-text {
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}
.library-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--imda-yellow);
  margin-bottom: 10px;
  display: block;
}
.library-banner-text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  line-height: 1.1;
  text-transform: uppercase;
}
.library-banner-text p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  font-size: 14px;
}
@media (max-width: 800px) {
  .library-banner { grid-template-columns: 1fr; }
  .library-banner-img { aspect-ratio: 16/10; }
  .library-banner-text { padding: 28px 24px; }
}

/* NOSOTROS > "Equipamiento profesional" — banner foto antes del grid */
.equipment-banner {
  margin: 0 auto 50px;
  max-width: 1100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
}
.equipment-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,17,15,.4) 100%);
  pointer-events: none;
}
.equipment-banner img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .equipment-banner { margin: 0 auto 30px; border-radius: var(--radius); }
}

/* SERVICIOS > visual-photo (reemplaza about-visual-card con foto real) */
.visual-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  border: 1px solid var(--steel-100);
  background: var(--imda-black);
  aspect-ratio: 4/3;
}
.visual-photo-square {
  aspect-ratio: 1;
}
.visual-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.visual-photo:hover img {
  transform: scale(1.03);
}
.visual-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(20,17,15,.92) 60%);
  color: var(--white);
}
.visual-photo-caption .cap-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--imda-yellow);
  margin-bottom: 4px;
}
.visual-photo-caption .cap-text {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .visual-photo { aspect-ratio: 4/3; }
  .visual-photo-square { aspect-ratio: 1; }
  .visual-photo-caption { padding: 14px 14px 12px; }
  .visual-photo-caption .cap-text { font-size: 12px; }
}

/* SERVICIOS > sección 06 Diagnóstico — banner foto antes del grid de cards */
.diagnostico-banner {
  margin: 0 auto 40px;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  border: 1px solid var(--steel-100);
  position: relative;
}
.diagnostico-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 100px; height: 4px;
  background: var(--imda-red);
  transform: translateX(-50%);
  z-index: 2;
}
.diagnostico-banner img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .diagnostico-banner { margin: 0 auto 28px; border-radius: var(--radius); }
}

/* ================================================================
   MAP SECTION — contacto.html (Google Maps Embed)
   ================================================================ */
.map-section {
  background: var(--imda-black);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
.map-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,41,28,.18), transparent 70%);
  top: -150px; right: -100px;
  filter: blur(70px);
  pointer-events: none;
}
.map-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.map-sub {
  margin: 14px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
}
.map-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,199,44,.15);
  background: #1a1a1a;
}
.map-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 100px; height: 4px;
  background: var(--imda-red);
  transform: translateX(-50%);
  z-index: 2;
  border-radius: 0 0 4px 4px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: contrast(1.05) saturate(.95);
}
.map-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .map-section { padding: 60px 0; }
  .map-frame { aspect-ratio: 4/5; border-radius: var(--radius); }
  .map-head { margin: 0 auto 28px; }
}
