/* ===== Codesin — Industrial Technical Design System ===== */

:root {
  /* Brand */
  --c-red: #EC1A25;
  --c-red-deep: #B91C1C;
  --c-amber: #FFB020;

  /* Surfaces (LIGHT MODE) */
  --bg-0: #FFFFFF;
  --bg-1: #F7F7F7;
  --bg-2: #EFEFEF;
  --bg-3: #E5E5E5;
  --line: rgba(0,0,0,0.10);
  --line-soft: rgba(0,0,0,0.06);
  --line-strong: rgba(0,0,0,0.18);

  --ink-0: #0A0A0A;
  --ink-1: #2B2B2B;
  --ink-2: #6B6B6B;
  --ink-3: #9A9A9A;

  /* Dark surface for hero/contrast accents */
  --bg-dark: #0A0A0A;
  --ink-on-dark: #F5F5F5;

  /* Type */
  --f-sans: 'Rubik', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1440px;
  --pad-x: clamp(20px, 4vw, 56px);
  --gut: 24px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg-0);
  color: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--c-red); border-radius: 50%;
  display: inline-block;
}

.display {
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-size: clamp(48px, 7.5vw, 112px);
  margin: 0;
}
.h1 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
.h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
.h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.005em; line-height: 1.2; margin: 0; }

.lead {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--ink-1);
  max-width: 60ch;
}
.body { font-size: 15px; line-height: 1.65; color: var(--ink-1); }
.small { font-size: 13px; color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "ss01" 1; }

.text-red { color: var(--c-red); }
.text-amber { color: var(--c-amber); }
.text-ink2 { color: var(--ink-2); }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-0);
  transition: all .25s var(--ease);
  position: relative;
  cursor: pointer;
}
.btn:hover { border-color: var(--ink-0); transform: translateY(-1px); }
.btn .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
  transition: width .25s var(--ease);
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

.btn-primary {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
}
.btn-primary:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); }

.btn-ghost { border-color: var(--line); }

/* ===== Section ===== */
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section.compact { padding: clamp(48px, 6vw, 90px) 0; }

.section-meta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-meta .center { color: var(--ink-0); }
.section-meta .right { text-align: right; }

/* ===== Grid helpers ===== */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gut); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gut); }

/* ===== Tag / chip ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--line); color: var(--ink-1);
}
.tag.red { color: var(--c-red); border-color: rgba(236,26,37,.4); background: rgba(236,26,37,.05); }
.tag.amber { color: var(--c-amber); border-color: rgba(255,176,32,.35); background: rgba(255,176,32,.06); }

/* ===== Corner ticks (CAD style) ===== */
.tick-frame { position: relative; }
.tick-frame::before, .tick-frame::after,
.tick-frame > .tl, .tick-frame > .tr, .tick-frame > .bl, .tick-frame > .br {
  content: ''; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.tick-frame .tl { top: -1px; left: -1px; border-top: 1px solid var(--c-red); border-left: 1px solid var(--c-red); }
.tick-frame .tr { top: -1px; right: -1px; border-top: 1px solid var(--c-red); border-right: 1px solid var(--c-red); }
.tick-frame .bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--c-red); border-left: 1px solid var(--c-red); }
.tick-frame .br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--c-red); border-right: 1px solid var(--c-red); }

/* ===== Background patterns ===== */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grid-bg-fine {
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.site-header.scrolled { background: rgba(255,255,255,0.94); }
.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-sans); font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo-lg {
  height: 64px;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.brand-footer .brand-text {
  border-left-color: rgba(255,255,255,0.18);
}
.brand-text .sa {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-footer .brand-text .sa {
  color: rgba(255,255,255,0.55);
}
@media (max-width: 720px) {
  .brand-logo { height: 36px; }
  .brand-text { display: none; }
}

.nav-links {
  display: flex; gap: 4px; justify-content: center;
}
.nav-links a {
  font-size: 13px;
  padding: 10px 14px;
  color: var(--ink-1);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-0); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--c-red); border-radius: 50%;
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line);
}
.lang-switch span.on { color: var(--ink-0); }

/* ===== Status bar (top of header) ===== */
.status-bar {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.status-row {
  display: flex; justify-content: space-between; align-items: center; height: 28px; gap: 20px;
}
.status-row .live {
  display: inline-flex; align-items: center; gap: 8px;
}
.status-row .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
.status-row .seg { display: flex; gap: 18px; }

/* ===== Footer (dark accent — industrial) ===== */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.site-footer .small { color: rgba(245,245,245,0.55); }
.site-footer .brand-text .name { color: var(--ink-on-dark); }
.site-footer .brand-text .sa { color: rgba(245,245,245,0.5); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-grid h6 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(245,245,245,0.5); margin: 0 0 18px; font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: rgba(245,245,245,0.78); transition: color .2s; }
.footer-grid a:hover { color: var(--c-red); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ===== Animations ===== */
/* Reveal renders content in place — no fade-in, robust to background tabs / hidden iframes */
.reveal { opacity: 1; }

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== Image frame with overlay (real photos) ===== */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.img-frame .ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}
.img-frame .ov-side {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0) 100%);
  pointer-events: none;
}
.img-frame .ov-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mix-blend-mode: screen;
}
.img-frame .ov-corners::before,
.img-frame .ov-corners::after,
.img-frame .ov-corners > i:nth-of-type(1),
.img-frame .ov-corners > i:nth-of-type(2) {
  content: ''; position: absolute; width: 14px; height: 14px;
}
.img-frame .ov-corners::before { top: 8px; left: 8px; border-top: 1px solid var(--c-red); border-left: 1px solid var(--c-red); }
.img-frame .ov-corners::after { top: 8px; right: 8px; border-top: 1px solid var(--c-red); border-right: 1px solid var(--c-red); }
.img-frame .ov-corners > i:nth-of-type(1) { bottom: 8px; left: 8px; border-bottom: 1px solid var(--c-red); border-left: 1px solid var(--c-red); }
.img-frame .ov-corners > i:nth-of-type(2) { bottom: 8px; right: 8px; border-bottom: 1px solid var(--c-red); border-right: 1px solid var(--c-red); }

.img-frame .img-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
}
.img-frame .img-tag::before {
  content: ''; width: 6px; height: 6px; background: var(--c-red); border-radius: 50%;
}
.img-frame .img-coords {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
}
.img-frame .img-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  z-index: 2;
}

/* ===== Service carousel ===== */
.srv-track-wrap {
  width: 100%;
  overflow: hidden;
}
.srv-track {
  display: flex;
  gap: 24px;
  padding: 4px max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x))) 4px max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x)));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.srv-track::-webkit-scrollbar { display: none; }
.srv-card {
  flex: 0 0 620px;
  max-width: 620px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-height: 720px;
}
@media (max-width: 768px) {
  .srv-card { flex: 0 0 88vw; min-height: auto; }
}
.carousel-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s var(--ease);
  color: var(--ink-0);
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--c-red);
  color: var(--c-red);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===== Page hero (interior pages) ===== */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* ===== Responsive base ===== */
@media (max-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .grid-12, .grid-6, .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .status-row .seg { display: none; }
  .nav-row { grid-template-columns: auto 1fr; }
  .nav-cta .btn { display: none; }
}

/* ===== Utility: scroll-margin for anchors ===== */
.section { scroll-margin-top: 100px; }

/* Selection */
::selection { background: var(--c-red); color: #fff; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ===== Mobile menu (burger + drawer) ===== */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-burger-bars { position: relative; width: 18px; height: 12px; }
.nav-burger-bars > span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: var(--ink-0);
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .15s var(--ease);
}
.nav-burger-bars > span:nth-child(1) { top: 0; }
.nav-burger-bars > span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger-bars > span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.nav-burger.is-open .nav-burger-bars > span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-burger.is-open .nav-burger-bars > span:nth-child(2) { opacity: 0; }
.nav-burger.is-open .nav-burger-bars > span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateY(0); visibility: visible; }
.nav-drawer-inner {
  padding: 110px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-drawer a {
  display: block;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-family: var(--f-sans);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink-on-dark);
  transition: color .2s var(--ease);
}
.nav-drawer a:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.10); }
.nav-drawer a:hover { color: var(--c-red); }
.nav-drawer a.active { color: var(--c-red); }
.nav-drawer .drawer-cta {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--c-red);
  color: #fff;
  font-size: 14px;
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--c-red);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  text-decoration: none;
}
.nav-drawer .drawer-cta:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); color: #fff; }
.nav-drawer .drawer-cta .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
}
.nav-drawer .drawer-cta .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.nav-drawer .drawer-meta {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
body.no-scroll { overflow: hidden; }

@media (max-width: 1024px) {
  .nav-burger { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }
}
@media (min-width: 1025px) {
  .nav-drawer { display: none; }
}

/* ===== Defensive responsive for inline grids =====
   Many components use inline-style grids which don't collapse via class-based
   media queries. These rules force them to adapt universally. */

/* Prevent horizontal overflow at ALL viewports */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 1024px) {
  /* UNIVERSAL: cualquier inline grid colapsa a 1 columna en tablet/mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Reducir gaps grandes inline */
  [style*="gap: 80"] { gap: 32px !important; }
  [style*="gap: 64"] { gap: 28px !important; }
  [style*="gap: 56"] { gap: 24px !important; }
  [style*="gap: 48"] { gap: 24px !important; }
  /* Reducir paddings excesivos inline */
  [style*="paddingTop: 110"] { padding-top: 56px !important; }
  [style*="padding-top: 110"] { padding-top: 56px !important; }
  [style*="paddingTop: 80"] { padding-top: 40px !important; }
  [style*="padding-top: 80"] { padding-top: 40px !important; }
  [style*="paddingBottom: 60"] { padding-bottom: 40px !important; }
  [style*="paddingBottom: 56"] { padding-bottom: 36px !important; }
  /* Reducir min-heights altos */
  [style*="min-height: 460"], [style*="min-height: 480"], [style*="min-height: 420"],
  [style*="min-height: 380"], [style*="min-height: 360"], [style*="min-height: 320"] {
    min-height: auto !important;
  }
  /* Hero image height — reducir min(620px, 70vh) */
  [style*="min(620px"] { height: 280px !important; }
  /* Stats can keep 2 cols on tablet but 1 col on mobile */
}
@media (min-width: 721px) and (max-width: 1024px) {
  /* Tablet: stats 4-col → 2-col */
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 720px) {
  /* MOBILE: ocultar HUD overlays absolutos del hero (waveform, meters) */
  .img-frame [style*="position: absolute"][style*="right: 24"],
  .img-frame [style*="position: absolute"][style*="right: 14"],
  .img-frame [style*="position:absolute"][style*="right: 24"],
  .img-frame [style*="position:absolute"][style*="right: 14"] {
    display: none !important;
  }
  /* Mobile: stats 4-col → 1-col (siempre) */
  /* Ya cubierto por la regla universal de arriba */
  /* Reducir tamaños tipográficos display en mobile */
  .display { font-size: clamp(36px, 9vw, 56px) !important; }
  /* Container con padding chico */
  .container { padding: 0 16px !important; }
  /* Asegurar que botones envuelvan ok */
  .btn { padding: 12px 16px !important; font-size: 12px !important; }
  /* Service rows: el grid 5-col del servicios index */
  [style*="grid-template-columns: 80px 320px"],
  [style*="grid-template-columns: 60px 220px"],
  [style*="grid-template-columns: 60px 200px"] {
    gap: 12px !important;
  }
  /* Hero image más bajo en mobile */
  .img-frame, [class*="img-frame"] { height: 220px !important; }
  /* Reducir margins grandes */
  [style*="marginTop: 60"], [style*="margin-top: 60"] { margin-top: 32px !important; }
  [style*="marginTop: 56"], [style*="margin-top: 56"] { margin-top: 28px !important; }
  [style*="marginBottom: 56"], [style*="margin-bottom: 56"] { margin-bottom: 28px !important; }
  [style*="marginBottom: 64"], [style*="margin-bottom: 64"] { margin-bottom: 32px !important; }
  /* Padding interno de cards */
  [style*="padding: '32px 28px'"], [style*="padding: 32px 28px"] { padding: 20px 16px !important; }
  [style*="padding: 28"] { padding: 16px !important; }
}
