/* =========================================================
   Sumix Insumos · estilos
   Colores corporativos tomados del logo:
     Azul tinta  #031323   Naranja  #FE6001   Brasa  #F42607
     Ámbar       #FFA31A   Acero    #BBBEC2
   ========================================================= */

:root {
  /* Marca (iguales en ambos temas) */
  --fire: #FE6001;
  --ember: #F42607;
  --amber: #FFA31A;
  --steel: #BBBEC2;
  --navy: #031323;
  --grad-fire: linear-gradient(100deg, #F42607 0%, #FE6001 45%, #FFA31A 100%);

  /* Tema claro */
  --bg: #FFFFFF;
  --bg-alt: #EDF0F4;           /* gris de secciones alternas */
  --bg-gray: #E2E7ED;          /* gris más profundo para bandas */
  --bg-ink: #031323;
  --surface: #FFFFFF;
  --surface-2: #F3F5F8;
  --ink: #031323;
  --ink-2: #334152;
  --muted: #5F6B7A;
  --line: #DCE2E9;
  --line-strong: #C3CCD6;
  --dot: rgba(3,19,35,.07);    /* textura de puntos */
  --accent-text: #C44200;       /* naranja legible sobre blanco */
  --ok: #178A55;
  --warn: #D14A00;
  --shadow: 0 1px 2px rgba(3,19,35,.06), 0 12px 32px -12px rgba(3,19,35,.18);
  --topbar-bg: rgba(255,255,255,.82);
  --arc-steel: #C9CDD2;
  --logo-light: block;
  --logo-dark: none;
  --step-bg: #031323;
  --step-border: #031323;
  color-scheme: light;

  /* Tipografía */
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 14px;
  --wrap: 1360px;
  --wrap-wide: 1720px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05080C;
    --bg-alt: #0A0F15;
    --bg-gray: #0E151D;
    --dot: rgba(255,255,255,.05);
    --bg-ink: #0A0F15;
    --surface: #0D141C;
    --surface-2: #111A24;
    --ink: #F2F4F7;
    --ink-2: #BAC3CD;
    --muted: #8391A1;
    --line: #1A2430;
    --line-strong: #283544;
    --accent-text: #FF8A3D;
    --ok: #3CCB86;
    --warn: #FF8A3D;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.7);
    --topbar-bg: rgba(5,8,12,.78);
    --arc-steel: #9EA3AA;
    --logo-light: none;
    --logo-dark: block;
    --step-bg: #111A24;
    --step-border: #283544;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05080C;
  --bg-alt: #0A0F15;
  --bg-gray: #0E151D;
  --dot: rgba(255,255,255,.05);
  --bg-ink: #0A0F15;
  --surface: #0D141C;
  --surface-2: #111A24;
  --ink: #F2F4F7;
  --ink-2: #BAC3CD;
  --muted: #8391A1;
  --line: #1A2430;
  --line-strong: #283544;
  --accent-text: #FF8A3D;
  --ok: #3CCB86;
  --warn: #FF8A3D;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.7);
  --topbar-bg: rgba(5,8,12,.78);
  --arc-steel: #9EA3AA;
  --logo-light: none;
  --logo-dark: block;
  --step-bg: #111A24;
  --step-border: #283544;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--fire); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.logo-on-light { display: var(--logo-light); }
.logo-on-dark { display: var(--logo-dark); }

.eyebrow {
  font: 600 .74rem/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-fire); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--f-body);
  padding: 15px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-fire { background: var(--grad-fire); color: #fff; box-shadow: 0 10px 26px -10px rgba(254,96,1,.7); }
.btn-fire:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(254,96,1,.85); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .logo { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.nav-cta { color: var(--ink); border: 1px solid var(--line-strong); margin-left: 6px; }
.topbar-tools { display: flex; align-items: center; gap: 10px; }

/* Selector de apariencia (pill con luna / sol) */
.theme-pill {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.theme-pill button {
  width: 34px; height: 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.theme-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-pill button[data-set-theme="dark"] svg { fill: currentColor; stroke: none; }
.theme-pill button[aria-pressed="true"] { background: var(--surface); color: var(--fire); box-shadow: 0 1px 3px rgba(0,0,0,.18); }

.menu-btn { display: none; width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); isolation: isolate; }
.hero-arc { position: absolute; z-index: -1; right: -6%; top: -4%; width: 78%; height: 88%; opacity: .95; }
.arc-fire { filter: drop-shadow(0 18px 40px rgba(254,96,1,.25)); }
.arc-steel { fill: var(--arc-steel); opacity: .75; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 20%, transparent 0 40%, var(--bg) 85%);
}
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  margin-top: 20px;
}
.fire { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hero-facts li { padding: 16px 16px 0 0; display: grid; gap: 4px; }
.hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts strong { font: 800 1.15rem/1 var(--f-display); font-variation-settings: "wdth" 115; }
.hero-facts span { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* Panel de inventario de ejemplo */
.panel {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform .5s ease;
}
.panel:hover { transform: none; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dots i:first-child { background: var(--fire); }
.panel-title { font: 600 .85rem/1 var(--f-body); }
.tag-demo { margin-left: auto; font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-strong); padding: 5px 8px; border-radius: 6px; }
.panel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.panel-kpis > div { padding: 14px 16px; display: grid; gap: 4px; }
.panel-kpis > div + div { border-left: 1px solid var(--line); }
.k-label { font-size: .74rem; color: var(--muted); }
.k-val { font: 800 1.5rem/1 var(--f-display); font-variation-settings: "wdth" 110; font-variant-numeric: tabular-nums; }
.k-val.warn { color: var(--warn); }
.stock { width: 100%; border-collapse: collapse; font-size: .83rem; }
.stock th { text-align: left; font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 16px 8px; }
.stock td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.stock td:nth-child(2) { color: var(--ink-2); }
.stock td:last-child { white-space: nowrap; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.stock .mono { font-size: .78rem; }
.stock td:first-child { white-space: nowrap; }
.num { min-width: 42px; text-align: right; }
.abc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 .72rem/1 var(--f-mono); }
.abc.a { background: var(--fire); color: #fff; }
.abc.b { background: color-mix(in srgb, var(--amber) 28%, transparent); color: var(--accent-text); }
.abc.c { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.bar { width: 58px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink-2); border-radius: 6px; opacity: .55; }
.bar.low i { background: var(--warn); opacity: 1; }
.panel-foot { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--ink-2); flex-wrap: wrap; }
.panel-foot strong { color: var(--ink); font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 0 rgba(254,96,1,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(254,96,1,0); } 100% { box-shadow: 0 0 0 0 rgba(254,96,1,0); } }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 760px; }
.sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.06; font-weight: 800;
  font-variation-settings: "wdth" 108; letter-spacing: -0.02em;
}
.sec-lede { color: var(--ink-2); font-size: 1.06rem; max-width: 64ch; }

/* Qué hacemos */
.offer { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.offer-item { background: var(--bg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.offer-main { background: var(--surface-2); position: relative; overflow: hidden; }
.offer-main::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad-fire); }
.offer-main h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-variation-settings: "wdth" 112; }
.offer-item h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 106; }
.offer-item p { color: var(--ink-2); font-size: .97rem; }
.offer-kicker { font-size: .74rem; color: var(--accent-text); letter-spacing: .06em; }
.chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--bg); }
.offer { grid-template-columns: 1.25fr 1fr 1fr; }
.for-whom { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.for-whom span { font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-right: 10px; }

/* Método */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step-n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 800 1.2rem/1 var(--f-display); font-variation-settings: "wdth" 120;
  background: var(--step-bg); color: #fff; border: 1px solid var(--step-border); position: relative;
}
.step:nth-child(4) .step-n, .step:nth-child(5) .step-n { background: var(--grad-fire); border-color: transparent; }
.step h3 { font-size: 1.12rem; font-weight: 700; font-variation-settings: "wdth" 104; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; }
.step-out { display: inline-block; margin-top: 14px; font: 500 .74rem/1.3 var(--f-mono); color: var(--accent-text); padding-top: 10px; border-top: 1px dashed var(--line-strong); }

/* Respaldo (criterios de calidad) */
.criteria-grid, .trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sticky-head { position: sticky; top: 110px; }
.criteria { display: grid; gap: 0; border-top: 1px solid var(--line); }
.crit { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.crit-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.2rem/1 var(--f-display); color: var(--fire);
  border: 2px solid var(--fire);
}
.crit h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 106; }
.crit p { margin-top: 6px; color: var(--ink-2); }

/* Calculadora (sección siempre oscura) */
.sec-ink {
  background: var(--bg-ink); color: #F2F4F7; position: relative; overflow: hidden; isolation: isolate;
  --ink-2: #BAC3CD; --muted: #8391A1; --line: #1E2A37; --line-strong: #2C3A4A; --accent-text: #FF8A3D;
  --surface: #0D1824; --surface-2: #112030;
  color-scheme: dark;
}
.sec-ink::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -380px; bottom: -560px;
  border-radius: 50%; border: 70px solid transparent; border-top-color: rgba(254,96,1,.22); border-left-color: rgba(244,38,7,.12);
  transform: rotate(18deg);
}
/* Contacto */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-data { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-data > div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-data dt { font: 500 .74rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-data dd { margin: 0; font-weight: 500; }
.contact-data a { color: var(--accent-text); text-decoration: none; }
.contact-data a:hover { text-decoration: underline; }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--f-body); padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(254,96,1,.2); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }


/* Propuesta comparativa del hero */
.quote td:first-child { color: var(--ink-2); white-space: normal; }
.quote th, .quote td { padding-inline: 12px; }
.panel-foot { flex-wrap: nowrap; }
.panel-foot .pulse { flex-shrink: 0; }
.quote th.r, .quote td.r { text-align: right; white-space: nowrap; }
.quote td.r { font-size: .82rem; }
.quote td.r:last-child { color: var(--ink); font-weight: 500; }
.stock.quote td:last-child { display: table-cell; }
.old { color: var(--muted) !important; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ember) 70%, transparent); }
.quote-total { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.quote-total > div { padding: 14px 16px; display: grid; gap: 4px; }
.quote-total > div + div { border-left: 1px solid var(--line); }
.quote-total > div:last-child .k-val { color: var(--accent-text); }
.mono-num { font-family: var(--f-mono); font-weight: 500; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.quote-total .old { text-decoration-thickness: 2px; }

/* Problemas que resolvemos */
.pains { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain { display: grid; gap: 16px; align-content: start; padding-top: 22px; border-top: 3px solid var(--line-strong); }
.pain:first-child { border-top-color: var(--fire); }
.pain-q { font: 700 1.2rem/1.25 var(--f-display); font-variation-settings: "wdth" 104; color: var(--ink); text-wrap: balance; }
.pain-a { color: var(--ink-2); font-size: .95rem; }
.pain-a strong { color: var(--accent-text); font-weight: 600; display: block; margin-bottom: 4px; }

/* Modalidades */
.plans { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan h3 { font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 108; }
.plan-for { color: var(--muted); font-size: .93rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-star { border: 2px solid var(--fire); box-shadow: 0 24px 50px -24px rgba(254,96,1,.45); }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--grad-fire); color: #fff; font: 600 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--fire) 16%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--fire); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Cómo empezar */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 .step { grid-template-columns: 1fr; }
.steps-4 .step:nth-child(4) .step-n { background: var(--grad-fire); border-color: transparent; }
.steps-4 .step:nth-child(5) .step-n { background: var(--step-bg); }

/* Diagnóstico gratis (bloque oscuro) */
.diag { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.diag-copy { display: grid; gap: 16px; }
.diag h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.diag-list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 1.02rem; color: #E6EAEE; }
.diag-list li span { color: var(--accent-text); font-size: .8rem; }
.diag-list li.diag-cta { border-bottom: 0; padding-top: 24px; }

/* Preguntas frecuentes */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--f-body); color: var(--fire); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-2); }

.form input[type="file"] { padding: 10px; font-size: .9rem; }
.footer-link { color: var(--accent-text); font-weight: 600; text-decoration: none; font-size: .9rem; }
.footer-link:hover { text-decoration: underline; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding-block: 40px; background: var(--bg); }
.footer .logo { height: 44px; width: auto; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer-small { font-family: var(--f-mono); font-size: .78rem !important; color: var(--muted); }


/* ---------- Menú: estado actual y submenú ---------- */
.nav a[aria-current="page"], .dd-btn[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"]:not(.nav-cta)::after, .dd-btn[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad-fire);
}
.nav > a, .dd-btn { position: relative; }
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 6px; font: 500 .93rem/1 var(--f-body); color: var(--ink-2);
  background: transparent; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer;
}
.dd-btn:hover, .dd.open .dd-btn { color: var(--ink); background: var(--surface-2); }
.dd-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: none; z-index: 60;
}
.dd.open .dd-menu { display: grid; gap: 2px; }
@media (hover: hover) and (min-width: 861px) {
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; gap: 2px; }
  .dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.dd-menu a { display: block; padding: 10px 12px !important; border-radius: 10px; font-size: .93rem; color: var(--ink-2); text-decoration: none; }
.dd-menu a:hover { background: var(--surface-2); color: var(--ink); }
.dd-menu a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.dd-menu a.dd-star { display: grid; gap: 2px; margin-bottom: 4px; border: 1px solid var(--line); background: var(--surface-2); }
.dd-menu a.dd-star small { color: var(--muted); font-size: .78rem; }
.dd-menu a.dd-all { color: var(--accent-text); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.dd-med, .med-mark { font: 800 1rem/1 var(--f-display); font-variation-settings: "wdth" 120; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.dd-med b, .med-mark b { font-weight: 800; background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Marca Sumix-Med ---------- */
.med-mark { display: inline-block; font-size: 1.05rem; }
.med-mark-lg { font-size: 1.5rem; }
.med-mark-xl { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: var(--bg-alt); isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; right: -260px; top: -520px; border-radius: 50%;
  border: 46px solid transparent; border-bottom-color: rgba(254,96,1,.35); border-left-color: rgba(255,163,26,.18); transform: rotate(-12deg);
}
.page-hero-med::before { border-bottom-color: rgba(244,38,7,.4); border-left-color: rgba(254,96,1,.25); }
.page-hero-in { display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -0.025em; max-width: 20ch; }
.page-hero .lede { margin-top: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 .78rem/1 var(--f-mono); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--accent-text); }
.subnav { display: flex; gap: 8px; margin-top: 32px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.subnav a { flex-shrink: 0; text-decoration: none; font-size: .9rem; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--bg); }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a.subnav-med { border-color: var(--fire); color: var(--accent-text); font-weight: 600; }
.sec-tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-tight + .sec-tight { padding-top: 0; }

/* ---------- Inicio: líneas ---------- */
.lines { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 16px; }
.line-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s;
}
.line-card:hover { border-color: var(--fire); transform: translateY(-2px); }
.line-card h3 { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 106; }
.line-card p { color: var(--ink-2); font-size: .94rem; }
.line-card .line-go { margin-top: auto; padding-top: 8px; }
.line-med { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 28px; background: var(--surface-2); position: relative; overflow: hidden; padding: 30px; }
.line-med::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-fire); }
.line-med .med-mark { font-size: 1.7rem; grid-row: span 2; }
.line-med h3 { font-size: 1.4rem; }
.line-med p { grid-column: 2; max-width: 60ch; }
.line-med .line-go { grid-row: 1 / span 2; grid-column: 3; margin: 0; padding: 0; }
.line-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.line-go { color: var(--accent-text); font-weight: 600; font-size: .92rem; text-decoration: none; }
.line-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.line-dot.med { background: var(--fire); }
.line-dot.ofi { background: var(--steel); }
.line-dot.ase { background: var(--amber); }
.line-dot.seg { background: var(--ember); }
.line-dot.emb { background: var(--ink-2); }

.sectors { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.sectors li { display: grid; gap: 6px; padding: 22px 20px 0 0; }
.sectors li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.sectors strong { font: 700 1.1rem/1.2 var(--f-display); font-variation-settings: "wdth" 106; }
.sectors span { color: var(--muted); font-size: .92rem; }

.cta-band { display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 30px solid rgba(254,96,1,.14); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; font-variation-settings: "wdth" 110; margin-bottom: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Sumix-Med ---------- */
.cats { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.cat h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 106; }
.cat p { color: var(--ink-2); font-size: .94rem; }
.cat-cta { border-style: dashed; border-color: var(--fire); background: transparent; }
.doc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc-list strong { display: block; font-weight: 600; }
.doc-list span:not(.doc-ico) { color: var(--ink-2); font-size: .9rem; }
.doc-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: .72rem; font-weight: 500; color: #fff; background: var(--grad-fire); }

/* ---------- Productos ---------- */
.med-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; text-decoration: none; color: inherit;
  padding: clamp(24px, 4vw, 40px); border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); position: relative; overflow: hidden;
}
.med-feature::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad-fire); }
.med-feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; font-variation-settings: "wdth" 108; margin: 10px 0 8px; }
.med-feature p { color: var(--ink-2); max-width: 64ch; }
.med-feature:hover { border-color: var(--fire); }
.prod-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.prod-line { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.prod-line header { display: grid; gap: 10px; grid-row: span 2; }
.prod-line h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; font-variation-settings: "wdth" 108; }
.prod-line p { color: var(--ink-2); max-width: 52ch; }
.prod-line .chips { margin: 0; }
.prod-line .line-go, .prod-line .btn { align-self: end; justify-self: start; }
.prod-line-alt { border-bottom: 0; }

/* ---------- Contacto ---------- */
.contact-tip { margin-top: 28px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 12px; }
.contact-tip h3 { font-size: 1.02rem; font-weight: 700; }

/* ---------- Pie ---------- */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer h4 { font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.footer ul a { color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--ink); }
.footer .footer-small { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }

@media (max-width: 960px) {
  .lines { grid-template-columns: 1fr 1fr; }
  .line-med { grid-template-columns: 1fr; row-gap: 10px; }
  .line-med .med-mark, .line-med p, .line-med .line-go { grid-row: auto; grid-column: auto; }
  .sectors { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .sectors li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cats { grid-template-columns: 1fr 1fr; }
  .doc-grid, .cta-band, .med-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prod-line { grid-template-columns: 1fr; }
  .prod-line header { grid-row: auto; }
}
@media (max-width: 860px) {
  .dd { display: grid; }
  .dd-btn { display: none; }
  .dd-menu { display: grid !important; position: static; box-shadow: none; border: 0; padding: 0 0 6px; min-width: 0; background: transparent; }
  .dd-menu::before { content: "Productos"; font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
}
@media (max-width: 640px) {
  .lines, .cats, .doc-list, .sectors, .footer-grid { grid-template-columns: 1fr; }
  .page-hero::before { width: 420px; height: 420px; right: -220px; top: -330px; border-width: 30px; opacity: .6; }
  .sectors li, .sectors li + li { padding-left: 0; border-left: 0; }
}


/* =========================================================
   Hero con video a todo el ancho (Inicio)
   ========================================================= */
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: clamp(16px, 2.5vw, 32px); }
.vhero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(560px, 88vh, 860px); display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  background: #031323 url('../video/hero-poster.jpg') center / cover no-repeat;
}
.vhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vhero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,19,35,.94) 0%, rgba(3,19,35,.78) 38%, rgba(3,19,35,.25) 72%, rgba(3,19,35,.1) 100%),
    linear-gradient(0deg, rgba(3,19,35,.85) 0%, rgba(3,19,35,0) 35%);
}
.vhero-in { position: relative; display: flex; align-items: center; padding-block: clamp(56px, 9vh, 110px) 40px; }
.vhero-copy { max-width: 760px; min-width: 0; display: grid; gap: 22px; }
.vhero .eyebrow { flex-wrap: wrap; line-height: 1.5; }
.vhero h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; font-weight: 800;
  font-variation-settings: "wdth" 115; letter-spacing: -0.03em; color: #fff; margin-top: 4px;
}
.vhero .lede { color: #D8DEE5; max-width: 58ch; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.vhero .hero-actions { margin-top: 8px; }
.eyebrow-on-dark { color: #FFB070; }
.btn-lg { padding: 18px 28px; font-size: 1.02rem; }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.vhero-pause {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: 24px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(3,19,35,.5); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.vhero-pause svg { width: 16px; height: 16px; fill: currentColor; }
.vhero-pause .i-play { display: none; }
.vhero-pause[data-state="paused"] .i-play { display: block; }
.vhero-pause[data-state="paused"] .i-pause { display: none; }

.vhero-lines { position: relative; background: rgba(3,19,35,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); }
.vhero-lines-in { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); }
.vl {
  display: grid; gap: 4px; align-content: center; padding: 20px 22px; text-decoration: none; color: #fff;
  border-left: 1px solid rgba(255,255,255,.12); position: relative; transition: background .2s;
}
.vl:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.vl::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-fire); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.vl:hover { background: rgba(255,255,255,.06); }
.vl:hover::after, .vl-med::after { transform: scaleX(1); }
.vl strong { font: 700 1.05rem/1.1 var(--f-display); font-variation-settings: "wdth" 110; }
.vl small { color: #AAB6C3; font-size: .84rem; }
.vl .med-mark { color: #fff; font-size: 1.2rem; }

/* Franja de valor */

.valuebar {
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px;
  padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line);
}
.valuebar-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.vb {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(3,19,35,.05), 0 10px 26px -18px rgba(3,19,35,.35);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vb:hover, .vb.open { border-color: var(--fire); box-shadow: 0 18px 36px -20px rgba(254,96,1,.45); }
.vb:hover:not(.open) { transform: translateY(-4px); }
.vb-btn {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 22px; box-sizing: border-box;
  background: transparent; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.vb-btn:focus-visible { outline: 2px solid var(--fire); outline-offset: -4px; border-radius: 14px; }
.vb-txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.vb-ico {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(254,96,1,.14), rgba(255,163,26,.08)); color: var(--fire);
  border: 1px solid rgba(254,96,1,.22); transition: background .25s, color .25s, transform .25s;
}
.vb-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vb:hover .vb-ico, .vb.open .vb-ico { background: var(--grad-fire); color: #fff; transform: rotate(-6deg) scale(1.05); }
.vb strong { font: 700 1.05rem/1.2 var(--f-display); font-variation-settings: "wdth" 108; color: var(--ink); }
.vb-txt > span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.vb-chev {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  position: relative; transition: transform .3s ease, background .25s, border-color .25s;
}
.vb-chev::before, .vb-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; border-radius: 2px; background: var(--muted); transform: translate(-50%, -50%); transition: transform .3s ease, background .25s; }
.vb-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.vb.open .vb-chev { transform: rotate(180deg); background: var(--fire); border-color: var(--fire); }
.vb.open .vb-chev::before, .vb.open .vb-chev::after { background: #fff; }
.vb.open .vb-chev::after { transform: translate(-50%, -50%) rotate(0deg); }
/* Descripción desplegable (animación de altura con grid) */
.vb-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s; visibility: hidden; }
.vb.open .vb-detail { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.vb-detail-in { overflow: hidden; min-height: 0; }
.vb-detail-in p { margin: 0 22px 10px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--ink-2); font-size: .93rem; line-height: 1.55; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.vb.open .vb-detail-in p { opacity: 1; transform: none; transition-delay: .1s; }
.vb-detail-in .line-go { display: inline-block; margin: 0 22px 18px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .vb-detail, .vb.open .vb-detail, .vb-detail-in p { transition: none; } }

/* Encabezado de sección en fila */
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div { display: grid; gap: 16px; max-width: 760px; }

/* Mosaico de líneas con imagen */
.mosaic { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, 30vh); gap: 12px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; text-decoration: none; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 24px;
  background-color: #031323; background-size: cover; background-position: center;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; background-size: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3,19,35,.92) 0%, rgba(3,19,35,.45) 50%, rgba(3,19,35,.1) 100%); transition: background .3s; }
.tile:hover::before { transform: scale(1.06); }
.tile h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 800; font-variation-settings: "wdth" 108; }
.tile p { color: #D8DEE5; max-width: 46ch; }
.tile-kicker { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #FFB070; }
.tile-go { color: #FFB070; font-weight: 600; font-size: .92rem; }
.tile-med { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 40px); }
.tile-med::after { background: linear-gradient(0deg, rgba(3,19,35,.95) 0%, rgba(3,19,35,.7) 45%, rgba(3,19,35,.15) 100%); }
.tile-med h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tile-med .med-mark { color: #fff; font-size: clamp(1.3rem, 2vw, 1.8rem); }

/* Dos columnas */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-copy { display: grid; gap: 18px; }
.split-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.06; font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; }
.split .panel { transform: none; }

/* Banda con imagen de fondo */
.band {
  position: relative; isolation: isolate; color: #F2F4F7; padding-block: clamp(72px, 10vw, 130px);
  background-color: #031323; background-size: cover; background-position: center;
  --ink-2: #C9D2DC; --muted: #9AA8B7; --line-strong: rgba(255,255,255,.18); --accent-text: #FFB070;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,19,35,.95) 0%, rgba(3,19,35,.85) 50%, rgba(3,19,35,.55) 100%); }
.band h2 { color: #fff; }

/* Encabezados internos con imagen */
.page-hero-img {
  background-color: #031323; background-size: cover; background-position: center; border-bottom: 0;
  padding-block: clamp(64px, 10vw, 140px) clamp(48px, 7vw, 96px);
  --ink: #FFFFFF; --ink-2: #D5DCE3; --muted: #A9B4C0; --accent-text: #FFB070; --line-strong: rgba(255,255,255,.3); --bg: rgba(3,19,35,.4);
  color: #fff;
}
.page-hero-img::before { display: none; }
.page-hero-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,19,35,.95) 0%, rgba(3,19,35,.82) 45%, rgba(3,19,35,.35) 100%); }
.page-hero-img .med-mark { color: #fff; }
.page-hero-img .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.page-hero-img .subnav a { backdrop-filter: blur(6px); }

@media (max-width: 1100px) {
  .vhero-lines-in { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(220px, 26vh); }
  .tile-med { grid-column: 1 / -1; grid-row: span 1; min-height: 340px; }
  .valuebar-in { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vhero { min-height: 0; }
  .vhero-in { padding-block: 64px 72px; }
  .vhero-shade { background: linear-gradient(0deg, rgba(3,19,35,.95) 0%, rgba(3,19,35,.78) 60%, rgba(3,19,35,.55) 100%); }
  .vhero .btn-lg { width: 100%; }
  .vhero-lines-in { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: 0; }
  .vl { flex: 0 0 44%; scroll-snap-align: start; padding: 16px; }
  .vl:first-child { flex-basis: 56%; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile { min-height: 190px; }
  .tile-med { min-height: 320px; }
  .valuebar-in { grid-template-columns: 1fr; }
  .vb-btn { padding: 16px 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile::before { transition: none; }
}


/* =========================================================
   Profundidad: grises, texturas y sombras
   ========================================================= */
.sec-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.sec-alt .pain, .sec-alt .step, .sec-alt .plan { background: var(--surface); }
.sec-alt .pain { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); box-shadow: 0 1px 2px rgba(3,19,35,.04); }
.sec-alt .pain:first-child { border-top-color: var(--fire); }
.sec-gray { background: linear-gradient(180deg, var(--bg-gray), var(--bg-alt)); border-block: 1px solid var(--line); }
.step, .cat, .mod, .line-card, .doc-list li, .contact-tip, .form { box-shadow: 0 1px 2px rgba(3,19,35,.05), 0 8px 24px -16px rgba(3,19,35,.25); }
.topbar { box-shadow: 0 1px 0 var(--line), 0 6px 20px -18px rgba(3,19,35,.5); }
.footer { background: var(--bg-alt); }

/* Hover en listados y tarjetas */
.step, .cat, .doc-list li, .pain, .crit { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.step:hover, .cat:hover, .doc-list li:hover { transform: translateY(-4px); border-color: var(--fire); box-shadow: 0 18px 36px -20px rgba(254,96,1,.45); }
.pain:hover { transform: translateY(-3px); }
.crit:hover .crit-ico { background: var(--fire); color: #fff; transform: rotate(-8deg) scale(1.06); }
.crit-ico { transition: background .25s, color .25s, transform .25s; }
.diag-list li { transition: padding-left .25s ease, color .25s; position: relative; }
.diag-list li:not(.diag-cta):hover { padding-left: 10px; color: #fff; }
.diag-list li:not(.diag-cta)::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; background: var(--fire); transform: translateY(-50%); transition: height .25s; }
.diag-list li:not(.diag-cta):hover::before { height: 60%; }
.chips li { transition: transform .2s, border-color .2s, color .2s; }
.chips li:hover { transform: translateY(-2px); border-color: var(--fire); color: var(--ink); }
.sectors li { transition: background .25s; border-radius: 10px; }
.sectors li:hover strong { color: var(--accent-text); }

/* Video más visible y barrido de luz */
.vhero-shade {
  background:
    linear-gradient(90deg, rgba(3,19,35,.86) 0%, rgba(3,19,35,.6) 36%, rgba(3,19,35,.12) 70%, rgba(3,19,35,0) 100%),
    linear-gradient(0deg, rgba(3,19,35,.8) 0%, rgba(3,19,35,0) 30%);
}
.vhero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: linear-gradient(110deg, transparent 30%, rgba(254,96,1,.28) 45%, rgba(255,163,26,.18) 50%, transparent 62%);
  background-size: 250% 100%; animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.vhero h1 .fire { filter: drop-shadow(0 4px 24px rgba(254,96,1,.35)); }

/* =========================================================
   Aparición al hacer scroll (solo con JS; sin JS todo es visible)
   ========================================================= */
.js-reveal .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js-reveal .rv.in { opacity: 1; transform: none; }
.js-reveal .rv-img { clip-path: inset(0 0 100% 0 round 16px); transition: clip-path 1s cubic-bezier(.7,0,.2,1), opacity .6s; transition-delay: calc(var(--i, 0) * 110ms); }
.js-reveal .rv-img.in { clip-path: inset(0 0 0 0 round 16px); }
.js-reveal .rv-img::before { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
.js-reveal .rv-img.in::before { transform: scale(1); }
.js-reveal .rv-img.in:hover::before { transform: scale(1.06); transition-delay: 0s; transition-duration: .8s; }
.js-reveal .rv-left { opacity: 0; transform: translateX(-36px); transition: opacity .7s, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js-reveal .rv-left.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .rv, .js-reveal .rv-left { opacity: 1; transform: none; transition: none; }
  .js-reveal .rv-img { clip-path: none; }
  .vhero::after { animation: none; display: none; }
}

/* =========================================================
   Modalidades seleccionables (Cómo trabajamos)
   ========================================================= */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-hint { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--ink-2); font-weight: 500; }
.plan-hint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 0 0 rgba(254,96,1,.5); animation: pulse 2s infinite; }
.plans[role="radiogroup"] .plan {
  cursor: pointer; border: 2px solid var(--line); outline: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s, opacity .3s;
  box-shadow: 0 1px 2px rgba(3,19,35,.05), 0 10px 28px -20px rgba(3,19,35,.35);
}
.plans[role="radiogroup"] .plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plans[role="radiogroup"] .plan:focus-visible { box-shadow: 0 0 0 3px rgba(254,96,1,.35); }
.plans.has-choice .plan[aria-checked="false"] { opacity: .62; transform: scale(.98); }
.plans.has-choice .plan[aria-checked="false"]:hover { opacity: .9; }
.plans[role="radiogroup"] .plan[aria-checked="true"] {
  border-color: transparent; transform: translateY(-8px); opacity: 1;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--ang), #F42607, #FE6001, #FFA31A, #FE6001, #F42607) border-box;
  animation: spinBorder 3.5s linear infinite;
  box-shadow: 0 30px 60px -28px rgba(254,96,1,.6);
}
@keyframes spinBorder { to { --ang: 360deg; } }
.plan-check {
  position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all .3s;
}
.plan-check::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.plan[aria-checked="true"] .plan-check { background: var(--grad-fire); border-color: transparent; }
.plan[aria-checked="true"] .plan-check::after { transform: rotate(45deg) scale(1); }
.plan .plan-cta { margin-top: auto; align-self: stretch; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.plan-cta[aria-disabled="true"]:hover { transform: none; }
.plan[aria-checked="true"] .plan-cta, .plan[aria-checked="true"] .plan-cta:hover { background: var(--grad-fire); color: #fff; border: 1px solid transparent; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(254,96,1,.75); animation: ctaIn .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes ctaIn { from { transform: scale(.94); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .plan[aria-checked="true"] { animation: none; } }

/* ---------- Animación de entrada (el contenido siempre es visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .panel { animation: panelIn .9s .2s cubic-bezier(.2,.7,.2,1) both; }
  .arc-fire { stroke-dasharray: none; animation: arcIn 1.2s cubic-bezier(.2,.7,.2,1) both; transform-origin: 90% 20%; }
  @keyframes rise { from { transform: translateY(14px); opacity: .01; } to { transform: none; opacity: 1; } }
  @keyframes panelIn { from { transform: perspective(1400px) rotateY(-12deg) translateY(20px); opacity: .01; } }
  @keyframes arcIn { from { transform: scale(.92) rotate(-3deg); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .panel { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav a:not(.nav-cta) { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 960px) {
  .hero-in, .criteria-grid, .trust-grid, .diag, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .hero-arc { width: 120%; right: -30%; height: 60%; opacity: .55; }
  .panel { transform: none; max-width: 620px; }
  .sticky-head { position: static; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer-main { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px !important; font-size: 1rem !important; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .topbar-tools { margin-left: auto; }
}
@media (max-width: 640px) {
  .brand .logo { height: 42px; }
  .hero-arc { opacity: .28; top: -8%; height: 46%; }
  .steps, .steps-4, .offer, .pains, .form-row { grid-template-columns: 1fr; }
  .quote-total { grid-template-columns: 1fr; }
  .quote-total > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .hero-facts li { padding: 12px 0 0; grid-template-columns: 110px 1fr; align-items: baseline; }
}

/* Fondos de imagen (antes estaban en el HTML y la política de seguridad los bloqueaba) */
.bg-tile-med { background-image: url('../img/tile-med.webp'); }
.bg-tile-oficina { background-image: url('../img/tile-oficina.webp'); }
.bg-tile-aseo { background-image: url('../img/tile-aseo.webp'); }
.bg-tile-seguridad { background-image: url('../img/tile-seguridad.webp'); }
.bg-tile-embalaje { background-image: url('../img/tile-embalaje.webp'); }
.bg-como-trabajamos { background-image: url('../img/bg-como-trabajamos.webp'); }
.bg-contacto { background-image: url('../img/bg-contacto.webp'); }
.bg-sumix-med { background-image: url('../img/bg-sumix-med.webp'); }
.bg-productos { background-image: url('../img/bg-productos.webp'); }
/* Páginas mínimas (404 y gracias) */
.mini { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 48px; }
.mini-in { display: grid; gap: 20px; justify-items: center; max-width: 560px; }
.mini .logo { height: 64px; width: auto; }
.mini h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; font-variation-settings: "wdth" 112; }
.mini p { color: var(--ink-2); }
.code { font: 500 .8rem/1 var(--f-mono); letter-spacing: .14em; color: var(--accent-text); }
