/* SERVITECSA v9 - capa aditiva responsive y rendimiento. No cambia branding ni contenido. */
html { scroll-padding-top: 100px; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
/* Las secciones lejanas se rasterizan cuando entran a pantalla. */
@supports (content-visibility: auto) {
  #clientes, #cobertura, #contacto, #faq { content-visibility: auto; contain-intrinsic-size: auto 700px; }
}
@media (max-width: 1023px) {
  html { scroll-padding-top: 82px; }
  nav.fixed > .container, nav.fixed > div.container { min-width: 0; gap: 8px; }
  nav.fixed .brand-entrance { min-width: 0; max-width: min(54vw, 270px); }
  nav.fixed .brand-entrance img { max-width: 100%; max-height: 69px; width: auto; object-fit: contain; }
  nav.fixed .nav-actions { margin-left: auto; gap: 6px; }
  nav.fixed .nav-actions .nav-btn { white-space: nowrap; }
  #mobileMenu { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
  header.hero-gradient, header[class*="hero-gradient"] { min-height: auto; padding-top: 118px; padding-bottom: 68px; }
  header.hero-gradient > .container, header[class*="hero-gradient"] > .container { gap: 32px; min-width: 0; }
  header.hero-gradient h1 { font-size: clamp(2.45rem, 8.5vw, 4.5rem); line-height: 1.09; overflow-wrap: normal; }
  header.hero-gradient p { font-size: clamp(1rem, 3.5vw, 1.25rem); }
  header.hero-gradient img.hero-img-fx { height: clamp(240px, 52vw, 470px); object-fit: cover; }
  header.hero-gradient .hero-blob { pointer-events: none; }
  section, article, .container { min-width: 0; }
}
@media (max-width: 640px) {
  nav.fixed { padding-top: 8px; padding-bottom: 8px; }
  nav.fixed .brand-entrance { max-width: min(49vw, 210px); }
  nav.fixed .nav-actions .nav-btn { font-size: 10px; padding-inline: 9px; }
  nav.fixed .mode-toggle { flex-shrink: 0; }
  header.hero-gradient { padding-top: 104px; }
  header.hero-gradient > .container { padding-inline: 18px; gap: 26px; }
  header.hero-gradient h1 { margin-bottom: 18px; }
  header.hero-gradient img.hero-img-fx { height: 260px; border-radius: 22px; }
  header.hero-gradient .absolute.-bottom-6 { position: relative; right: auto; bottom: auto; margin: -18px auto 0; width: max-content; max-width: 100%; border-radius: 22px; }
  #catalogo, #proyectos { overflow-x: clip; }
  .modal-card, .modal-card.modal-wide { max-width: calc(100vw - 24px) !important; width: 100%; }
  .modal-content-scroll { max-width: 100%; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img-fx, .hero-blob, .marquee-track, .brand-entrance, .logo-entrance { animation: none !important; }
  html:focus-within { scroll-behavior: auto; }
}
