/* ─── 2M Soluciones Integrales · Sistema visual ─── */

:root {
  /* Brand palette */
  --c-navy: #2F508C;
  --c-navy-900: #1d3461;
  --c-navy-50: #eef3fb;
  --c-navy-100: #dde6f4;
  --c-cyan: #0797C2;
  --c-cyan-700: #066d8e;
  --c-cyan-50: #e5f5fb;
  --c-cyan-100: #c8e9f3;
  --c-red: #CD2A21;
  --c-red-50: #fdebea;
  --c-orange: #E67705;
  --c-orange-50: #fdf0e2;

  /* Surfaces */
  --bg: #fafbfd;
  --bg-soft: #f3f5f9;
  --surface: #ffffff;
  --ink: #0e1a2e;
  --ink-2: #3a4761;
  --ink-3: #6c778c;
  --line: #e4e9f2;
  --line-strong: #ccd3e0;

  /* Primary follows tweak (defaults to navy) */
  --primary: var(--c-navy);
  --primary-fg: #ffffff;
  --accent: var(--c-red);
  --accent-2: var(--c-cyan);

  /* Radii (overridden by tweak) */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 56px; --sp-10: 80px; --sp-11: 112px;

  /* Type */
  --ff: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --fw-heavy: 800;
  --fw-bold: 700;
  --fw-med: 500;
  --fw-reg: 400;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(20,30,55,.05), 0 1px 1px rgba(20,30,55,.04);
  --sh-md: 0 6px 18px -8px rgba(20,30,55,.18), 0 2px 4px rgba(20,30,55,.05);
  --sh-lg: 0 24px 60px -28px rgba(20,30,55,.4), 0 6px 12px -6px rgba(20,30,55,.08);
  --sh-cyan: 0 16px 40px -16px rgba(7,151,194,.45);
  --sh-navy: 0 16px 40px -16px rgba(47,80,140,.5);

  /* Layout */
  --content-w: 1240px;
  --content-px: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  font-weight: var(--fw-reg);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ─── Direction modes ─── */
body[data-dir="refinado"] {
  --bg: #fafbfd;
  --bg-soft: #f3f5f9;
}
body[data-dir="velocidad"] {
  --bg: #0b1428;
  --bg-soft: #111d3a;
  --surface: #15233f;
  --ink: #f5f8ff;
  --ink-2: #c6d0e6;
  --ink-3: #8896b3;
  --line: #1f2e4f;
  --line-strong: #2c3e66;
}
body[data-dir="cercano"] {
  --bg: #fbf7f1;
  --bg-soft: #f3ebde;
  --surface: #ffffff;
  --ink: #1a2238;
  --ink-2: #4a5168;
  --ink-3: #7a8195;
  --line: #ece2d0;
  --line-strong: #d9caaf;
}

/* Density */
body[data-density="compacto"] { --sp-pad: 14px; --sec-py: 56px; }
body[data-density="regular"]  { --sp-pad: 20px; --sec-py: 80px; }
body[data-density="amplio"]   { --sp-pad: 28px; --sec-py: 112px; }

/* Radii style */
body[data-radius="square"]  { --r-sm: 2px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; }
body[data-radius="soft"]    { --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; }
body[data-radius="round"]   { --r-sm: 14px; --r-md: 22px; --r-lg: 28px; --r-xl: 40px; }

/* ─── Utility shell ─── */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--content-px); }
.section { padding: var(--sec-py, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: var(--fw-bold);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

h1, h2, h3, h4 { font-weight: var(--fw-heavy); letter-spacing: -0.018em; line-height: 1.08; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.028em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.022em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: var(--fw-bold); }
h4 { font-size: 17px; font-weight: var(--fw-bold); }
p  { margin: 0; color: var(--ink-2); }

.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-md);
  font-weight: var(--fw-bold); font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: var(--sh-navy);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 50px -20px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn-cyan { background: var(--c-cyan); color: white; box-shadow: var(--sh-cyan); }
.btn-cyan:hover { transform: translateY(-1px); }
.btn-orange { background: var(--c-orange); color: white; }
.btn-red { background: var(--c-red); color: white; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-pad, 20px);
}
.card-bare {
  background: var(--surface);
  border-radius: var(--r-lg);
}

/* Plan card variants */
.plancard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plancard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.plancard.featured {
  background: linear-gradient(160deg, var(--c-navy-900), var(--c-navy));
  color: white;
  border-color: transparent;
  box-shadow: var(--sh-lg);
}
.plancard.featured h3, .plancard.featured .price { color: white; }
.plancard.featured .tag-popular {
  position: absolute; top: -12px; left: 28px;
  background: var(--c-orange); color: white;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: var(--fw-heavy); letter-spacing: .12em; text-transform: uppercase;
}

.price {
  display: flex; align-items: baseline; gap: 6px;
  font-weight: var(--fw-heavy); letter-spacing: -0.03em;
}
.price .num { font-size: 56px; line-height: 1; }
.price .cur { font-size: 22px; opacity: .65; }
.price .per { font-size: 14px; opacity: .55; font-weight: var(--fw-med); }

/* Feature row */
.feat-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.feat-row .check {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.feat-row .check svg { width: 10px; height: 10px; }

/* Header */
.site-hd {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.hd-row { display: flex; align-items: center; gap: 24px; padding: 16px 0; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--primary); color: white;
  display: grid; place-items: center;
  font-weight: var(--fw-heavy); font-size: 17px;
  letter-spacing: -0.04em;
}
.brand-name {
  font-weight: var(--fw-heavy); font-size: 15.5px; letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name .sub { display: block; font-weight: var(--fw-med); font-size: 11px; color: var(--ink-3); letter-spacing: .01em; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; justify-content: center; }
.nav button {
  background: none; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: var(--r-md);
  font-weight: var(--fw-med); font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap;
}
.nav button:hover { background: var(--bg-soft); color: var(--ink); }
.nav button.active { color: var(--ink); font-weight: var(--fw-bold); background: var(--bg-soft); }
.hd-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Stripe / divider */
.stripe {
  height: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-navy), var(--c-cyan) 50%, var(--c-orange) 80%, var(--c-red));
}

/* Photo placeholder */
.photo {
  background: var(--bg-soft);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--c-red) 12%, transparent), color-mix(in srgb, var(--c-navy) 18%, transparent));
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.photo .label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.4);
  padding: 4px 8px; border-radius: 4px;
  letter-spacing: .04em;
}

/* Speed gauge */
.gauge {
  display: flex; align-items: center; gap: 14px;
}
.gauge .num {
  font-weight: var(--fw-heavy); font-size: 44px; line-height: 1; letter-spacing: -.03em;
  color: var(--c-cyan);
  font-variant-numeric: tabular-nums;
}
.gauge .unit { font-size: 13px; color: var(--ink-3); font-weight: var(--fw-med); }
.gauge .bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.gauge .fill { height: 100%; background: linear-gradient(90deg, var(--c-cyan), var(--c-navy)); border-radius: 999px; }

/* Footer */
.site-ft {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.ft-col h5 {
  font-size: 11px; font-weight: var(--fw-heavy); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.ft-col a {
  display: block; padding: 6px 0; color: var(--ink-2);
  text-decoration: none; font-size: 14px;
}
.ft-col a:hover { color: var(--ink); }
.ft-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13px;
}

/* Misc */
.kicker {
  font-size: 12px; font-weight: var(--fw-heavy); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--ink-3); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Velocidad direction tweaks */
body[data-dir="velocidad"] .card,
body[data-dir="velocidad"] .plancard {
  background: var(--surface);
  border-color: var(--line);
}
body[data-dir="velocidad"] .site-hd {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
body[data-dir="velocidad"] .photo {
  background-image: linear-gradient(135deg, rgba(205,42,33,.22), rgba(47,80,140,.4));
}

/* Cercano direction tweaks */
body[data-dir="cercano"] .photo {
  background-image: linear-gradient(135deg, rgba(205,42,33,.14), rgba(47,80,140,.12));
}

/* Animations */
@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-in { animation: slide-in-up .5s cubic-bezier(.2,.7,.2,1) both; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 0%, transparent); }
}
.pulse { animation: pulse-dot 1.8s ease-in-out infinite; }

/* Page transitions */
.page-enter { animation: slide-in-up .35s cubic-bezier(.2,.7,.2,1) both; }

/* ─── RESPONSIVE ─── */

/* Pantallas grandes (≥ 1500px) — monitores 1920×1080 y mayores */
@media (min-width: 1500px) {
  :root {
    --content-w: 1480px;
    --content-px: 40px;
  }
}

/* Pantallas extra-grandes (≥ 1900px) — monitores QHD/4K */
@media (min-width: 1900px) {
  :root {
    --content-w: 1640px;
    --content-px: 48px;
  }
}

/* Tablet (≤ 980px) */
@media (max-width: 980px) {
  :root { --content-px: 24px; }
  body[data-density="regular"]  { --sec-py: 60px; }
  body[data-density="compacto"] { --sec-py: 40px; }
  body[data-density="amplio"]   { --sec-py: 80px; }

  h1 { font-size: clamp(34px, 6vw, 52px); }
  h2 { font-size: clamp(26px, 4.5vw, 38px); }

  /* Hide central nav, show hamburger; keep CTAs */
  .site-hd .nav { display: none !important; }
  .site-hd .hd-burger { display: grid !important; }
  .hd-row { gap: 12px; }

  /* Standard grid helpers */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* All 2-col container grids → stack — match BOTH .container itself
     (most heros use container as the grid) AND nested children. */
  .container[style*="grid-template-columns: 1.05fr"],
  .container[style*="grid-template-columns: 1fr 1fr"],
  .container[style*="grid-template-columns: 0.9fr"],
  .container[style*="grid-template-columns: 1fr 1.4fr"],
  .container[style*="grid-template-columns: 1fr 1.2fr"],
  .container[style*="grid-template-columns: 1fr auto"],
  .container > div[style*="grid-template-columns: 1.05fr"],
  .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns: 0.9fr"],
  .container > div[style*="grid-template-columns: 1fr 1.4fr"],
  .container > div[style*="grid-template-columns: 1fr 1.2fr"],
  .container > div[style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Inline grids inside sections */
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1.1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Empresarial product tiles 1fr 1fr → stack */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 24"] {
    grid-template-columns: 1fr !important;
  }

  /* Coverage map (1fr 320px) → stack vertically with fixed-ish map height */
  .card[style*="grid-template-columns"][style*="320px"],
  .card[style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
    grid-template-rows: auto auto;
  }
  .card[style*="grid-template-columns"][style*="320px"] > div:first-child {
    aspect-ratio: 4 / 3;
    height: auto !important;
    min-height: 320px;
  }
  /* Hero section paddings */
  section[style*="padding: '60px 0 30px'"],
  section[style*="padding: 60px 0 30px"],
  section[style*="padding: '60px 0 40px'"],
  section[style*="padding: 60px 0 40px"],
  section[style*="padding: '60px 0'"],
  section[style*="padding: 60px 0"] {
    padding: 36px 0 24px !important;
  }
  .container[style*="padding: '60px 0"] {
    padding-top: 36px !important;
    padding-bottom: 24px !important;
  }

  /* Plan cards row stays 2-up but tighter */
  div[style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 16"] {
    gap: 12px !important;
  }

  /* Plan card padding */
  .plancard { padding: 20px !important; }

  /* Hide floating absolute cards on hero (decorative overflow) */
  [style*="bottom: -28"][style*="left: -32"],
  [style*="bottom: -24"][style*="left: -24"],
  [style*="top: 24"][style*="right: -16"],
  [style*="top: 24"][style*="right: -24"] {
    display: none !important;
  }

  /* Residencial hero collage 540px height → auto stack */
  div[style*="height: 540"] {
    height: auto !important;
    min-height: 0;
  }
  div[style*="height: 540"] > div[style*="position: absolute"][style*="top: 0"] {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    top: auto !important;
    right: auto !important;
    margin-bottom: 12px;
  }
  div[style*="height: 540"] > div[style*="position: absolute"][style*="bottom: 0"] {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    bottom: auto !important;
    left: auto !important;
  }
  div[style*="height: 540"] > div[style*="z-index: 2"] {
    display: none !important;
  }

  /* Footer 4-col → 2x2 */
  .ft-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .ft-bottom { flex-wrap: wrap; gap: 10px; }

  /* Featured plan inner padding */
  div[style*="padding: 48px 48px"] { padding: 32px !important; }

  /* Empresarial form container padding */
  div[style*="padding: 56px"][style*="border-radius: var(--r-xl)"] {
    padding: 32px !important;
  }

  /* Big card paddings */
  div[style*="padding: '48px 56px'"], div[style*="padding: 48px 56px"] { padding: 32px !important; }

  /* Testimonial-style card */
  .card[style*="padding: '40px 48px'"], .card[style*="padding: 40px 48px"] {
    padding: 28px !important;
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  :root { --content-px: 16px; }
  body[data-density="regular"]  { --sec-py: 44px; }
  body[data-density="compacto"] { --sec-py: 28px; }
  body[data-density="amplio"]   { --sec-py: 56px; }

  h1 { font-size: clamp(28px, 8.5vw, 40px) !important; letter-spacing: -0.02em; }
  h2 { font-size: clamp(22px, 6.5vw, 30px) !important; }
  h3 { font-size: 18px !important; }
  .lede { font-size: 16px; }

  /* All multi-col grids → single col */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Plan cards (inside comparator) → single col */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Hero stat strip (48h-72h / El mejor / Soporte) — text size down */
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="border-top"] > div > div:first-child {
    font-size: 18px !important;
    word-break: break-word;
  }
  div[style*="grid-template-columns: repeat(3, 1fr)"][style*="border-top"] {
    gap: 10px !important;
  }

  /* Eyebrow chip: allow wrap so it doesn't overflow */
  .eyebrow {
    flex-wrap: wrap;
    line-height: 1.4;
    text-align: left;
  }

  /* In mobile, hide header CTAs (they move into the burger panel) */
  .site-hd .hd-cta-test,
  .site-hd .hd-cta-account { display: none !important; }
  .hd-row { padding: 10px 0 !important; gap: 8px !important; }

  /* Coverage map: even shorter on phones */
  .card[style*="grid-template-columns"][style*="320px"] > div:first-child {
    aspect-ratio: 1 / 1;
    min-height: 260px !important;
  }

  /* Hero photo (Photo with absolute img) — limit width when stacked under text */
  section[style*="overflow"] .container[style*="grid-template-columns"] > div:nth-child(2) {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
  /* Residencial collage container should be full width when stacked */
  div[style*="height: 540"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Section heads center on mobile (eyebrow + h2 + lede look better centered) */
  /* Keep left-aligned by default — only adjust spacing */

  /* CTAStrip bottom strip on home — input row */
  .card[style*="padding: 40px 48px"] {
    padding: 24px !important;
  }
  .card[style*="padding: 40px 48px"] > div:last-child > input {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Plan comparator: billing toggle (mensual/anual) on its own line */
  div[style*="padding: 4"][style*="border-radius: 999"][style*="background: var(--bg-soft)"] {
    width: 100%;
    justify-content: stretch;
  }

  /* Reduce wide table on empresarial: enable horizontal scroll */
  .card > table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Floating data card on residencial hero collage (the wifi/devices one) */
  div[style*="width: 220"][style*="top: 45%"] {
    display: none !important;
  }

  /* Make logo smaller in header */
  .site-hd img[alt="2M Internet"] { height: 36px !important; }

  /* Buttons: full-width in hero rows */
  .row { gap: 8px; flex-direction: column; align-items: stretch; }
  .row > .btn { width: 100%; }

  /* Footer collapse single col */
  .ft-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Plan comparator detail panel: remove sticky */
  .card[style*="position: sticky"] { position: static !important; }

  /* Featured plan min-height off */
  div[style*="min-height: 380"] { min-height: 0 !important; }
  div[style*="padding: 48px 48px"] { padding: 24px !important; }

  /* SpeedDial smaller */
  svg[width="260"][height="260"] { width: 200px !important; height: 200px !important; }

  /* Big inner card padding (test velocidad gauge) */
  .card[style*="padding: 48"] { padding: 24px !important; }

  /* Soporte tabs: horizontal scroll on phone */
  section[style*="position: sticky"][style*="top: 76"] > .container {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  section[style*="position: sticky"][style*="top: 76"] > .container::-webkit-scrollbar { display: none; }
  section[style*="position: sticky"][style*="top: 76"] > .container > button { flex-shrink: 0; }

  /* Empresarial form: stack input rows */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* CTA Strip inputs: full width */
  .card[style*="padding: 40px 48px"] input[type="email"] { min-width: 0 !important; width: 100%; }
  .card[style*="padding: 40px 48px"] > div:last-child { width: 100%; flex-direction: column; }

  /* Section padding overrides */
  .section { padding: 44px 0 !important; }

  /* Hero data card chip (Degollado disponible) — keep small */
  /* (already hidden by tablet rules at right: -16) */

  /* Soporte hero quick-actions 2x2 minWidth */
  div[style*="minWidth: 360"], div[style*="min-width: 360"] {
    min-width: 0 !important;
  }

  /* Tables: scroll horizontally if needed (comparison table in empresarial) */
  .card > table { font-size: 12.5px; }
}

/* Very small phones (≤ 380px) */
@media (max-width: 380px) {
  :root { --content-px: 12px; }
  h1 { font-size: 28px !important; }
  .price .num { font-size: 44px !important; }
  .plancard { padding: 16px !important; }
}
