/* ===== Variables ===== */
:root {
  --color-primary: #007bc1;
  --color-primary-dark: #006aa6;
  --color-primary-hover-light: #c6d3da;
  --color-accent-blue: #046bc5;
  --color-accent-orange: #e2831f;
  --color-dark: #000000;
  --color-text: #000000;
  --color-text-light: #666666;
  --color-bg-gray: #f7f7f7;
  --color-border: #dcdcdc;
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --header-height: 90px;
  --header-height-shrink: 83px;
  --content-offset: 136px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.5;
  background: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; overflow-x: clip; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #fff;
  transition: height 0.3s ease;
}
.site-header.is-shrink { height: var(--header-height-shrink); }
.header-inner {
  position: relative;
  height: 100%;
}

.header-logo {
  position: absolute;
  left: 15px;
  top: 17px;
  transition: left 0.3s ease, top 0.3s ease;
}
.header-logo img {
  height: 68px;
  width: auto;
  transition: height 0.3s ease;
}
.site-header.is-shrink .header-logo { left: 55px; top: 19px; }
.site-header.is-shrink .header-logo img { height: 45px; }

.main-nav {
  position: absolute;
  top: 0;
  right: 238px;
  height: 83px;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  height: 100%;
}
.main-nav li { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 55px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }
.nav-sep {
  display: block;
  width: 4px;
  text-align: center;
  color: var(--color-primary);
  font-size: 15px;
}
.nav-chevron { width: 10px; height: 10px; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 30px;
  min-width: 140px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  padding: 8px 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li { height: auto; display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--color-primary);
}
.nav-dropdown-menu li a:hover { background: var(--color-bg-gray); }

.header-contact {
  position: absolute;
  top: 0;
  right: 0;
  width: 238px;
  height: 100%;
  background: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 27px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: 15px;
  transition: background 0.2s, padding-top 0.3s ease;
}
.site-header.is-shrink .header-contact { padding-top: 33px; }
.header-contact:hover { background: var(--color-primary-hover-light); color: var(--color-primary); }

.header-spacer { height: var(--content-offset); }

/* ===== Inner pages (fixed 1440 canvas, scaled down on narrower screens) ===== */
.ip-hero {
  position: relative;
  margin-top: var(--content-offset);
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ip-hero-inner { position: relative; width: 1440px; height: 100%; margin: 0 auto; }
.ip-hero-inner h1 { color: #fff; }
.canvas { position: relative; width: 1440px; margin: 0 auto; }
.canvas .t, .ip-hero-inner .t { position: absolute; margin: 0; font-family: Arial, Helvetica, sans-serif; }
.canvas .abs { position: absolute; }
.canvas img.abs { object-fit: cover; max-width: none; }
.canvas h2.t { color: #000; }
.rule { position: absolute; height: 4px; border-top: 2px solid #808080; }
.fld { border: none; background: var(--color-primary-hover-light); padding: 0 10px; font-size: 16px; }
.btn-send { border: none; background: var(--color-primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.btn-send:hover { background: var(--color-primary-hover-light); color: var(--color-primary); }
.map-embed { display: block; width: 100%; height: 299px; border: none; }
.canvas .product-slider-wrap { width: 1200px; height: 353px; max-width: none; overflow: hidden; }
.canvas .product-slider-track-wrap { height: 353px; }
.canvas .product-slider-track img { width: 1200px; height: 353px; max-height: none; object-fit: cover; flex-shrink: 0; }
.canvas .slider-arrow { top: 161px; transform: none; }
.canvas .slider-arrow.prev { left: 10px; }
.canvas .slider-arrow.next { right: 10px; left: auto; }

/* ===== Home hero ===== */
.home-hero {
  margin-top: var(--content-offset);
  height: 557px;
  background: url('../assets/images/aerosoles-familia_WEB.jpg') center / cover no-repeat;
}
.home-hero-inner {
  position: relative;
  height: 100%;
  max-width: 1440px;
}
.hero-logo-text {
  position: absolute;
  left: 110px;
  top: 34px;
  width: 368px;
}
.hero-title {
  position: absolute;
  left: 86px;
  top: 398px;
  width: 405px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}

/* ===== Lubricacion industria (3 hover images) ===== */
.industry-section {
  padding: 116px 20px 70px;
  text-align: center;
}
.industry-section h2 {
  font-size: 36px;
  line-height: 42px;
  text-transform: uppercase;
}
.industry-subtitle {
  color: var(--color-primary);
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 40px;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-item {
  position: relative;
  height: 224px;
  overflow: hidden;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease;
}
.industry-item.in-view {
  transform: scale(1);
  opacity: 1;
}
.industry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.industry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.industry-item .industry-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.industry-item:hover::after { opacity: 1; }
.industry-item:hover .industry-label { opacity: 1; }

/* ===== Beneficios ===== */
.benefits-section { text-align: center; }
.benefits-section h2 {
  font-size: 36px;
  line-height: 42px;
  margin-bottom: 64px;
}
.benefits-band {
  background: var(--color-primary);
  height: 236px;
  padding: 42px 0 0;
  overflow: hidden;
}
.benefits-list {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 200px;
  row-gap: 30px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 24px;
}
.benefits-list li {
  color: #fff;
  font-size: 24px;
  line-height: 24px;
  font-weight: 300;
  text-align: left;
  list-style: none;
  position: relative;
}
.benefits-list li::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ===== Institucional ===== */
.institutional-section {
  position: relative;
  max-width: 1440px;
  height: 347px;
  margin: 0 auto;
}
.institutional-section img {
  position: absolute;
  left: 298px;
  top: 46px;
  width: 292px;
}
.institutional-section p {
  position: absolute;
  left: 720px;
  top: 79px;
  width: 378px;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
}

/* ===== Banner CTA (mantenimiento preventivo) ===== */
.cta-banner {
  position: relative;
  height: 599px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(34, 37, 39);
  opacity: 0.72;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  width: 841px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 172px;
}
.cta-banner-content h2 {
  color: #fff;
  font-size: 30px;
  line-height: 34px;
}
.cta-banner-content p {
  color: var(--color-accent-blue);
  font-size: 24px;
  line-height: 28px;
  font-weight: 300;
  margin-bottom: 102px;
}
.btn-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta-banner .btn-rounded {
  position: relative;
  left: -15px;
  width: 240px;
  height: 59px;
  border-radius: 30px;
}
.btn-rounded:hover { background: var(--color-primary-hover-light); color: var(--color-primary); }

/* ===== Testimonios carrusel ===== */
.testimonial-section {
  height: 238px;
  padding-top: 25px;
  text-align: center;
}
.testimonial-slider {
  position: relative;
  width: 1200px;
  max-width: 100%;
  height: 213px;
  margin: 0 auto;
}
.testimonial-slide {
  display: none;
  width: 840px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 45px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.testimonial-slide p.quote {
  font-size: 24px;
  line-height: 28px;
  color: #000;
}
.testimonial-slide .author {
  font-size: 18px;
  font-style: italic;
  color: var(--color-primary);
}
.testimonial-slide .author b { font-weight: 700; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  font-size: 40px;
  line-height: 30px;
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.testimonial-slider:hover .slider-arrow,
.product-slider-wrap:hover .slider-arrow { opacity: 1; }
.testimonial-slider .slider-arrow { top: 84px; transform: none; }
.testimonial-slider .slider-arrow.prev { left: -50px; }
.testimonial-slider .slider-arrow.next { right: -50px; }

/* ===== Mercados lubricación ===== */
.markets-section {
  background: var(--color-primary-hover-light);
  height: 961px;
  padding-top: 49px;
  text-align: center;
}
.markets-section h2 {
  width: 624px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 30px;
  line-height: 37px;
  color: var(--color-primary);
}
.markets-section .markets-list {
  width: 624px;
  max-width: 100%;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 21px;
  font-weight: 300;
}
.markets-grid {
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.markets-grid .market-cell {
  padding: 10px;
  overflow: hidden;
}
.markets-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.markets-grid .market-cell:hover img { transform: scale(1.08); }

/* ===== Pedidos especiales ===== */
.special-orders {
  width: 726px;
  max-width: 100%;
  margin: 0 auto;
  padding: 31px 0 41px;
}
.special-orders h2 {
  font-size: 30px;
  line-height: 34px;
  margin-bottom: 35px;
}
.special-orders form {
  padding: 0 17px;
  display: flex;
  flex-direction: column;
}
.special-orders label {
  font-size: 18px;
  line-height: 21px;
  font-weight: 300;
  color: #000;
  margin-bottom: 3px;
}
.special-orders input[type="email"] {
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  border: none;
  background: var(--color-primary-hover-light);
}
.special-orders button {
  align-self: flex-end;
  width: 82px;
  height: 36px;
  margin-top: 50px;
  margin-right: -3px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
}

/* ===== New products slider block ===== */
.new-products-section {
  padding: 50px 24px 10px;
  text-align: center;
}
.new-products-section h2 {
  font-size: 20px;
  margin-bottom: 26px;
}
.product-slider-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.product-slider-track-wrap { overflow: hidden; }
.product-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}
.product-slider-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  max-height: 340px;
}

/* ===== Footer ===== */
.site-footer {
  background: #000;
  color: #fff;
  height: 95px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 21px;
  font-weight: 300;
  padding-top: 10px;
}
.site-footer .social-icons a {
  display: flex;
  color: #fff;
}
.site-footer .social-icons svg { width: 32px; height: 32px; fill: currentColor; }

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  padding: 10px 20px;
  cursor: pointer;
}

@media (max-width: 1320px) {
  .testimonial-slider .slider-arrow.prev { left: 10px; }
  .testimonial-slider .slider-arrow.next { right: 10px; }
}

.main-nav li.nav-contact-link, .nav-close, .nav-info, .nav-overlay { display: none; }

/* ===== Responsive (tablet <=1024, phone <=640) ===== */
@media (max-width: 1024px) {
  :root { --content-offset: 72px; }
  .site-header, .site-header.is-shrink { height: 72px; }
  .header-logo, .site-header.is-shrink .header-logo { left: 14px; top: 14px; }
  .header-logo img, .site-header.is-shrink .header-logo img { height: 44px; }
  .header-contact { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; padding: 0; color: #000; z-index: 2; }
  .nav-toggle svg { width: 26px; height: 26px; }
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 340px; max-width: 86vw; height: auto;
    display: flex; flex-direction: column;
    padding: 96px 40px 36px 50px;
    background: var(--color-primary);
    overflow-y: auto;
    z-index: 1002;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .32s ease, visibility .32s;
  }
  .site-header.nav-open .main-nav { visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; height: auto; }
  .main-nav li, .main-nav li.nav-contact-link { display: block; height: auto; width: 100%; }
  .main-nav > ul > li > a { display: inline-flex; height: auto; padding: 13px 0; font-size: 22px; color: rgba(255,255,255,.72); transition: color .2s; }
  .main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: #fff; }
  .main-nav > ul > li > a::after { left: 0; right: 0; top: auto; bottom: 6px; background: #fff; }
  .main-nav > ul > li > a:hover::after { transform: scaleX(0); }
  .main-nav > ul > li.active > a::after { transform: scaleX(1); }
  .nav-sep { display: none; }
  .nav-chevron { width: 13px; height: 13px; transition: transform .2s; }
  .nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
  .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 8px 18px; min-width: 0; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a { padding: 8px 0; font-size: 18px; color: rgba(255,255,255,.8); }
  .nav-dropdown-menu li a:hover { background: none; color: #fff; }
  .nav-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; background: none; border: 0; color: #fff; cursor: pointer; }
  .nav-close svg { width: 28px; height: 28px; }
  .nav-info { display: block; margin-top: auto; padding-top: 40px; color: #fff; font-size: 14px; line-height: 19px; }
  .nav-info a { color: #fff; }
  .nav-info-title { display: block; font-size: 21px; font-weight: 700; margin-bottom: 20px; }
  .nav-info p { margin-bottom: 18px; }
  .nav-mail { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--color-primary) !important; }
  .nav-mail svg { width: 21px; height: 21px; }
  .site-header.nav-open ~ .nav-overlay { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.45); }
  body.nav-locked { overflow: hidden; }

  /* Inicio */
  .home-hero { height: 620px; background-color: #f5f5f5; background-size: auto 470px; background-position: 82% 100%; background-repeat: no-repeat; }
  .home-hero-inner { zoom: 1 !important; max-width: none; }
  .hero-logo-text { left: 40px; top: 30px; width: 250px; }
  .hero-title { left: 30px; top: 268px; width: 330px; font-size: 44px; }
  .industry-section { padding: 56px 20px 48px; }
  .industry-section h2 { font-size: 28px; line-height: 34px; }
  .industry-subtitle { font-size: 20px; margin-bottom: 28px; }
  .industry-grid { gap: 14px; }
  .industry-item { height: 200px; }
  .industry-item .industry-label { opacity: 1; inset: auto 0 0 0; height: 48px; background: rgba(0,123,193,.88); font-size: 18px; }
  .benefits-section h2 { font-size: 28px; line-height: 34px; margin: 0 20px 36px; }
  .benefits-band { height: auto; padding: 36px 24px; }
  .benefits-list { padding-left: 24px; grid-template-columns: auto auto; column-gap: 50px; row-gap: 22px; }
  .benefits-list li { font-size: 20px; line-height: 26px; }
  .benefits-list li::before { top: 10px; left: -22px; }
  .institutional-section { height: auto; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 44px 24px; }
  .institutional-section img { position: static; width: 240px; }
  .institutional-section p { position: static; width: auto; max-width: 560px; text-align: center; }
  .cta-banner { height: auto; padding: 70px 24px 80px; }
  .cta-banner-content { padding-top: 0; }
  .cta-banner-content h2 { font-size: 26px; line-height: 32px; }
  .cta-banner-content p { font-size: 20px; margin-bottom: 40px; }
  .cta-banner .btn-rounded { left: 0; }
  .testimonial-section { height: auto; padding: 36px 24px 30px; }
  .testimonial-slider { height: auto; }
  .testimonial-slide { padding-top: 0; }
  .testimonial-slide p.quote { font-size: 22px; line-height: 28px; margin-bottom: 10px; }
  .testimonial-slider .slider-arrow { display: none; }
  .markets-section { height: auto; padding: 44px 16px 36px; }
  .markets-section h2 { font-size: 26px; line-height: 32px; }
  .markets-section .markets-list { margin-bottom: 24px; }
  .special-orders { padding: 40px 24px 50px; }
  .special-orders form { padding: 0; }
  .special-orders button { margin-right: 0; }
  .site-footer { height: auto; min-height: 95px; padding: 22px 24px 18px; gap: 16px; flex-wrap: wrap; }

  /* Páginas internas (canvas reacomodado por JS) */
  .ip-hero { height: auto !important; min-height: 150px; display: flex; align-items: center; }
  .ip-hero-inner { zoom: 1 !important; width: 100%; height: auto; padding: 44px 24px; }
  .ip-hero-inner .t { position: static; width: auto !important; max-width: 640px; margin: 0 auto 12px; white-space: normal !important; text-align: center !important; }
  .ip-hero.dim .ip-hero-inner h1 { font-size: 40px !important; line-height: 46px !important; }
  .ip-hero:not(.dim) .ip-hero-inner h1 { font-size: 26px !important; line-height: 32px !important; margin-bottom: 4px; }
  .ip-hero:not(.dim) .ip-hero-inner p.t { font-size: 18px !important; line-height: 28px !important; }
  .canvas.m-flow { zoom: 1 !important; width: 100%; height: auto !important; max-width: 980px; padding: 28px 24px 40px; }
  .m-flow .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 34px; margin-bottom: 40px; align-items: start; }
  .m-flow .m-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
  .m-flow .m-card { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
  .m-flow .m-media { flex: 0 0 34%; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .m-flow .m-media img.abs { position: static; width: 100% !important; height: auto; max-width: 100%; object-fit: contain; }
  .m-flow .m-body { flex: 1; min-width: 0; }
  .m-flow .m-body .t { position: static; width: auto !important; white-space: normal !important; text-align: left !important; margin: 0 0 10px; }
  .m-flow .m-img-only .m-media { flex: 1; max-width: none; }
  .m-flow .m-img-only .m-media img.abs { object-fit: cover; }
  .m-flow .m-grid:has(> .m-img-only) { align-items: center; }
  .m-flow .m-grid:has(> .m-img-only) .m-img-only .m-media img.abs { aspect-ratio: 6 / 5 !important; }
  .m-flow .m-text-only .t[style*="font-weight: 700"] { font-size: 24px !important; line-height: 30px !important; margin-bottom: 8px; }
  .m-flow .m-text-only .t[style*="font-weight: 700"]:not(:first-child) { margin-top: 26px; }
  .m-flow .m-text-only .t { font-size: max(13px, 1em); }
  .m-flow .cols-3 .t[style*="font-weight: 700"] { font-size: 21px !important; line-height: 26px !important; }
  .m-flow .cols-3 .t[style*="font-weight: 700"]::after { content: ''; display: block; width: 36px; height: 3px; background: var(--color-primary); margin-top: 12px; }
  .m-flow .cols-3 .t:not([style*="font-weight: 700"]) { font-size: 16px !important; line-height: 25px !important; }
  .m-flow > .t, .m-flow > .abs, .m-flow > .rule { position: static; width: auto !important; max-width: 100%; white-space: normal !important; margin: 0 auto 18px; text-align: center !important; }
  .m-flow > img.abs { max-width: 100%; width: 100%; height: auto; max-height: 360px; object-fit: cover; margin: 0 auto 24px; }
  .m-flow > p.t { line-height: 1.35 !important; }
  .m-flow > .rule { height: 0; border-top: 2px solid #808080; margin: 10px 0 30px; }
  .m-flow > .product-slider-wrap { height: auto; width: 100% !important; max-width: 760px; margin-bottom: 34px; }
  .m-flow .product-slider-track-wrap { height: auto; }
  .m-flow .product-slider-track img { width: 100%; height: auto !important; aspect-ratio: 1200 / 353; min-height: 130px; }
  .m-flow .slider-arrow { top: 50%; transform: translateY(-50%); }
  .m-flow > form { max-width: 520px; margin: 0 auto 10px; display: flex; flex-direction: column; align-items: flex-end; }
  .m-flow form .abs { position: static; }
  .m-flow form .fld { width: 100%; height: 40px; margin-bottom: 16px; }
  .m-flow form .btn-send { width: 110px; height: 40px; }
  .map-embed { height: 260px; }
  #map.map-embed { margin-top: var(--content-offset) !important; }
  main:has(#map) { display: flex; flex-direction: column; }
  main:has(#map) #map { flex: 1 0 260px; height: auto; }
  main:has(#map) .canvas.m-flow { flex: 0 0 auto; padding-top: 40px; padding-bottom: 50px; }
}
/* Tablet only: closer to the original tablet layout of the product pages */
@media (min-width: 641px) and (max-width: 1024px) {
  .ip-hero:not(.dim) { min-height: 64vw; }
  .ip-hero:not(.dim) .ip-hero-inner .t { max-width: 380px; }
  .ip-hero:not(.dim) .ip-hero-inner h1 { font-size: 22px !important; line-height: 26px !important; margin-bottom: 0; }
  .ip-hero:not(.dim) .ip-hero-inner h1 + p.t { margin-top: 20px; }
  .ip-hero:not(.dim) .ip-hero-inner p.t { font-size: 15px !important; line-height: 30px !important; margin-bottom: 0; }
  .m-flow .m-grid:has(> .m-img-only) { max-width: 590px; margin: 90px auto 40px; gap: 34px; }
  .m-flow .m-grid:has(> .m-img-only) { grid-template-columns: 1fr 1.15fr; }
  .m-flow .m-grid:has(> .m-img-only) .m-img-only .m-media { flex: 1 1 auto; max-width: none; }
  .m-flow .m-grid:has(> .m-img-only) .m-img-only .m-media img.abs { aspect-ratio: 1 / 1 !important; }
  .m-flow .m-grid:has(> .m-img-only) .m-text-only .t[style*="font-weight: 700"] { font-size: 20px !important; line-height: 22px !important; margin: 0 0 2px; }
  .m-flow .m-grid:has(> .m-img-only) .m-text-only .t[style*="font-weight: 700"]:not(:first-child) { margin-top: 8px; }
  .m-flow .m-grid:has(> .m-img-only) .m-text-only .t:not([style*="font-weight: 700"]) { font-size: 10px !important; line-height: 16px !important; margin: 0; }
  .ip-hero.dim { min-height: 52vw; }
  .ip-hero.dim .ip-hero-inner h1 { font-size: 40px !important; line-height: 46px !important; }
  .m-flow > p.t[style*="font-size: 24px"] { font-size: 18px !important; line-height: 23px !important; margin-bottom: 12px; }
  .m-flow > p.t[style*="font-size: 18px"][style*="font-weight: 700"] { font-size: 14px !important; line-height: 18px !important; }
  .m-flow > .rule:first-child, .m-flow > p.t + .rule { margin-bottom: 70px; }
  .m-flow .m-grid { gap: 56px 40px; }
  .canvas.m-flow { max-width: 860px; padding-left: 40px; padding-right: 40px; }
  .m-flow .m-card:not(.m-text-only):not(.m-img-only) { align-items: center; gap: 20px; }
  .m-flow .m-card:not(.m-text-only) .m-media { flex-basis: 38%; max-width: 140px; }
  .m-flow .m-card:not(.m-text-only) .m-body .t[style*="font-weight: 700"] { font-size: 14px !important; line-height: 17px !important; margin-bottom: 10px; }
  .m-flow .m-card:not(.m-text-only) .m-body .t:not([style*="font-weight: 700"]) { font-size: 11px !important; line-height: 14px !important; margin-bottom: 11px; }
}

@media (max-width: 640px) {
  .nav-toggle { right: 8px; }
  .main-nav {
    top: 72px; bottom: auto;
    width: 230px; max-width: calc(100vw - 24px); max-height: calc(100vh - 84px);
    padding: 14px 26px 16px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
  .site-header.nav-open .main-nav { opacity: 1; }
  .main-nav > ul > li > a { font-size: 16px; padding: 10px 0; color: #fff; }
  .main-nav > ul > li > a::after { bottom: 5px; }
  .nav-dropdown-menu li a { font-size: 15px; padding: 7px 0; }
  .nav-close, .nav-info { display: none; }
  .site-header.nav-open ~ .nav-overlay { background: transparent; }
  .header-logo img, .site-header.is-shrink .header-logo img { height: 38px; }
  .home-hero { height: 500px; background-size: auto 290px; background-position: 80% 100%; }
  .hero-logo-text { left: 20px; top: 22px; width: 190px; }
  .hero-title { left: 14px; top: 196px; font-size: 32px; width: 250px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-section h2, .benefits-section h2 { font-size: 24px; line-height: 30px; }
  .benefits-list { grid-template-columns: auto; padding-left: 22px; }
  .benefits-list li { font-size: 18px; line-height: 24px; }
  .benefits-list li::before { top: 9px; }
  .benefits-band { padding: 30px 20px; }
  .cta-banner-content h2 { font-size: 22px; line-height: 28px; }
  .cta-banner-content p { font-size: 18px; }
  .testimonial-slide p.quote { font-size: 20px; line-height: 26px; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid .market-cell { padding: 6px; }
  .ip-hero.dim .ip-hero-inner h1 { font-size: 32px !important; line-height: 38px !important; }
  .ip-hero.dim { min-height: 98vw; }
  .m-flow > p.t[style*="font-size: 24px"] { font-size: 18px !important; line-height: 23px !important; margin-bottom: 14px; }
  .m-flow > p.t[style*="font-size: 18px"][style*="font-weight: 700"] { font-size: 15px !important; line-height: 19px !important; }
  .m-flow > p.t + .rule { margin: 40px 0 40px; }
  .ip-hero:not(.dim) .ip-hero-inner p.t { font-size: 16px !important; line-height: 24px !important; }
  .m-flow .m-grid, .m-flow .m-grid.cols-3 { grid-template-columns: 1fr; gap: 34px; }
  .m-flow .m-card { gap: 14px; }
  .m-flow .m-grid:has(> .m-img-only) .m-img-only .m-media img.abs { aspect-ratio: 680 / 347 !important; }
  .m-flow .m-media { flex-basis: 32%; max-width: 130px; gap: 10px; }
  .m-flow .m-body .t[style*="font-size: 18px"] { font-size: 16px !important; line-height: 20px !important; }
  .m-flow .m-body .t[style*="font-size: 14px"] { font-size: 13px !important; line-height: 17px !important; }
  .m-flow .m-text-only { justify-content: center; }
  .m-flow .m-text-only .m-body { max-width: 420px; }
  .m-flow .m-text-only .t { text-align: center !important; }
  .m-flow .m-text-only .t[style*="font-weight: 700"] { font-size: 26px !important; line-height: 32px !important; }
  .m-flow .m-text-only .t[style*="font-weight: 700"]:not(:first-child) { margin-top: 48px; }
  .m-flow .m-text-only .t[style*="font-size: 12px"] { font-size: 14px !important; line-height: 22px !important; }
  .m-flow .cols-3 .t[style*="font-weight: 700"]::after { margin: 12px auto 0; }
  .m-flow .cols-3 .t[style*="font-weight: 700"]:not(:first-child) { margin-top: 0; }
  .m-flow .cols-3 .t[style*="font-weight: 700"] { font-size: 22px !important; line-height: 26px !important; }
  .m-flow .cols-3 .m-body .t:not([style*="font-weight: 700"]) { font-size: 16px !important; line-height: 24px !important; }
  main:has(#map) #map { flex-basis: 220px; }
  .canvas.m-flow { padding: 22px 20px 34px; }
  .map-embed { height: 220px; }
  .site-footer { justify-content: center; text-align: center; }
}

.ip-hero.dim::before { content: ''; position: absolute; inset: 0; background: #000; opacity: 0.5; }

.map-pin { background: none; border: none; }
.map-fs { width: 30px; height: 30px; background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 4px; font-size: 18px; cursor: pointer; }
.map-embed.leaflet-container { font-family: Arial, Helvetica, sans-serif; }
