/* =========================================================
   JCK · sistema visual v2 (referencia: estructura tipo Asiga)
   Monocromo + un color de señal que vive en el producto.
   ========================================================= */
:root {
  --ink: #0A2540;             /* marino de marca */
  --text: #2F3237;
  --muted: #5B6168;
  --line: #E1E4E8;
  --canvas: #FFFFFF;
  --panel: #F2F3F5;
  --tile: #F7F8F9;
  --signal: #19C27D;          /* verde de marca */
  --signal-soft: rgba(25, 194, 125, .35);
  --green-dark: #087F4D;
  --full: #FFC21A;            /* amarillo: carga completa */      /* verde de marca para texto sobre blanco */
  --ink-raised: #143656;
  --ink-deep: #071B30;
  --ink-line: #24405C;

  --display: "Unbounded", "Manrope", sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --r-xl: clamp(28px, 4vw, 44px);
  --r-lg: 20px;
  --r: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #9AA0A7 var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 1rem/1.6 var(--body); caret-color: var(--ink); }
::selection { background: var(--signal); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; }
.center { text-align: center; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Tipografía display ---------- */
h1, .h-display {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance;
}
.h-display { font-size: clamp(1.45rem, 2.7vw, 2.25rem); max-width: 26ch; }
.h-display.center { max-width: 30ch; }
.h-small { font-family: var(--display); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 12px 20px;
  background: var(--ink); color: #fff; border: 0; border-radius: 6px;
  font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .07em;
  text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--ink-raised); }
.btn .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .chev { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 10px 16px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--signal); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 12px var(--gutter) auto; z-index: 100; }
.header-bar {
  max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 10px; padding: 10px 10px 10px 22px;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, .18);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 38px; height: 38px; flex: none; }
.bi-box { fill: var(--ink); }
.bi-ring { fill: none; stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }
.bi-bolt { fill: #fff; }
.brand-icon--inv .bi-box { fill: var(--signal); }
.brand-icon--inv .bi-ring { stroke: #fff; }
.brand-icon--inv .bi-bolt { fill: var(--ink); }
.brand-word { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.bw-main { display: block; font: 800 1.6rem/1 var(--display); letter-spacing: .06em; transform: skewX(-10deg); }
.bw-sub { display: block; margin-top: 4px; padding-left: 2px; font: 700 .56rem/1 var(--display); text-transform: uppercase; letter-spacing: .5em; color: var(--green-dark); }
.brand--light .bw-sub { color: var(--signal); }
.brand--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; background: none; border: 0; cursor: pointer;
  font: 600 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--text);
}
.nav-link:hover, .has-sub.open > .nav-link { color: var(--ink); }
.caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.has-sub.open .caret { transform: rotate(180deg); }
.nav-item { position: relative; }
.subnav {
  display: none; position: absolute; top: calc(100% + 18px); left: -14px; min-width: 250px;
  background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .28);
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.subnav a { display: block; padding: 10px 12px; border-radius: 6px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.subnav a:hover, .subnav a:focus-visible { background: var(--panel); }
.has-sub.open .subnav { display: block; }
.subnav--mega { min-width: 540px; padding: 18px; gap: 8px 24px; }
.has-sub.open .subnav--mega { display: grid; grid-template-columns: 1fr 1fr; }
.mega-title { display: block; padding: 0 12px 8px; font: 700 .72rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.subnav--mega a strong { display: block; font-weight: 700; }
.subnav--mega a small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .subnav { display: block; }
  .has-sub:hover .subnav--mega { display: grid; grid-template-columns: 1fr 1fr; }
  .has-sub:hover .caret { transform: rotate(180deg); }
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-radius: 10px; padding: 8px 20px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav { align-items: stretch; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav-item, .nav > .nav-link { border-bottom: 1px solid var(--line); }
  .nav > .nav-link:last-child { border-bottom: 0; }
  .nav-link { width: 100%; padding: 16px 0; font-size: .85rem; justify-content: space-between; pointer-events: none; }
  .caret { display: none; }
  .nav > a.nav-link { pointer-events: auto; }
  .subnav { display: block; position: static; box-shadow: none; padding: 0 0 10px; min-width: 0; }
  .subnav::before { display: none; }
  .subnav a { padding: 9px 0; }
  .subnav--mega, .has-sub.open .subnav--mega { display: block; min-width: 0; padding: 0 0 10px; }
  .mega-title { padding: 6px 0; }
  .subnav--mega a small { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
}
@media (max-width: 480px) { .header-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(120px, 14vw, 150px) var(--gutter) 0;
  background: radial-gradient(120% 90% at 50% 35%, #FBFBFC 0%, #E6E8EB 55%, #C7CCD2 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  border-bottom: 2px solid var(--ink);
  margin-bottom: 64px;
}
.hero-inner { max-width: 940px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 3.7vw, 3rem); line-height: 1.07; }
.hero-sub { margin: 20px auto 28px; max-width: 60ch; color: var(--muted); font-size: 1.04rem; }
.hero-paths { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; }
.hero-paths span { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.hero-paths a { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 6px; background: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.hero-paths a:hover { background: var(--ink); color: #fff; }
.lineup {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(8px, 3.5vw, 56px); margin-top: clamp(32px, 5vw, 56px); padding-bottom: 70px;
}
.lineup svg { width: auto; }
.u-post, .u-post2 { height: clamp(150px, 20vw, 250px); aspect-ratio: 140 / 320; }
.u-dual { height: clamp(170px, 23vw, 290px); aspect-ratio: 130 / 360; }
.u-dc { height: clamp(150px, 20vw, 250px); aspect-ratio: 190 / 320; }
.u-xl { height: clamp(185px, 25vw, 320px); aspect-ratio: 220 / 380; }

.scroll-badge {
  position: absolute; left: 50%; bottom: -48px; transform: translateX(-50%);
  width: 96px; height: 96px; border-radius: 50%; background: #fff;
  box-shadow: 0 10px 28px -12px rgba(10, 37, 64, .35);
}
.charge { width: 100%; height: 100%; overflow: visible; }
.charge-track { fill: none; stroke: #E4E9EE; stroke-width: 2.5; }
.charge-ring {
  fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 245.05; stroke-dashoffset: 0;
  animation: charge-ring 3.4s cubic-bezier(.45, 0, .2, 1) infinite;
}
.charge-core { fill: var(--ink); transition: transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.scroll-badge:hover .charge-core { transform: scale(1.05); }
.charge-arrow { animation: charge-nudge 3.4s var(--ease) infinite; }
.charge-empty { fill: rgba(255, 255, 255, .1); }
.charge-outline { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.charge-level { transform: translateY(20px); animation: charge-level 3.4s cubic-bezier(.45, 0, .2, 1) infinite; }
.charge-liquid { fill: var(--signal); animation: charge-wave 1.1s linear infinite, charge-color 3.4s cubic-bezier(.45, 0, .2, 1) infinite; }

/* Ciclo: llena (0-68 %), destello y empujón (68-84 %), se desvanece y reinicia (84-100 %) */
@keyframes charge-level {
  0% { transform: translateY(62px); opacity: 1; }
  68% { transform: translateY(20px); opacity: 1; }
  86% { transform: translateY(20px); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}
@keyframes charge-ring {
  0% { stroke-dashoffset: 245.05; stroke: var(--signal); opacity: 1; filter: none; }
  66% { stroke-dashoffset: 0; stroke: var(--signal); opacity: 1; filter: none; }
  74% { stroke-dashoffset: 0; stroke: var(--full); filter: drop-shadow(0 0 5px rgba(255, 194, 26, .95)); }
  86% { stroke-dashoffset: 0; stroke: var(--full); opacity: 1; filter: none; }
  100% { stroke-dashoffset: 0; stroke: var(--full); opacity: 0; }
}
/* verde mientras carga, amarillo al completarse */
@keyframes charge-color {
  0%, 66% { fill: var(--signal); }
  74%, 100% { fill: var(--full); }
}
@keyframes charge-nudge {
  0%, 70% { transform: translateY(0); }
  76% { transform: translateY(4px); }
  84%, 100% { transform: translateY(0); }
}
@keyframes charge-wave { to { transform: translateX(-44px); } }

@media (max-width: 600px) {
  .u-post2, .u-post { display: none; }
}

/* ---------- Contenedores ---------- */
.solutions, .questions, .lines, .about, .faq, .cta { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.02rem; max-width: 56ch; }
.section-lead.center { text-align: center; }
.panel { margin-inline: clamp(8px, 1.5vw, 20px); background: var(--panel); border-radius: var(--r-xl); padding: clamp(48px, 7vw, 96px) var(--gutter); }
.panel > * { max-width: var(--maxw); margin-inline: auto; }

/* ---------- Marcas ---------- */
.brands { padding-top: 64px; }
.brand-row { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brand-row li { display: grid; place-items: center; height: 76px; border: 1px dashed #BFC4CA; border-radius: 10px; font-size: .78rem; color: var(--muted); }
.brand-row li.is-mid { border: 1.5px solid var(--ink); }
.brands-note { margin: 18px auto 0; text-align: center; color: var(--muted); font-size: .92rem; max-width: 62ch; }
@media (max-width: 760px) { .brand-row { grid-template-columns: repeat(2, 1fr); } .brand-row li:last-child { grid-column: 1 / -1; } }

/* ---------- Preguntas ---------- */
.questions { padding: clamp(72px, 9vw, 120px) 0; }
.q-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 56px 0 44px; }
.q-card { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 24px; min-height: 270px; }
.q-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); margin-bottom: 26px; }
.q-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--signal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.q-card h3 { font: 700 1.12rem/1.3 var(--body); color: var(--ink); }
.q-card p { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.q-card--feature { background: var(--ink); border-color: var(--ink); padding: 0; position: relative; }
.q-tilt {
  height: 100%; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); padding: 30px 24px;
  transform: rotate(-8deg) translate(-4px, -16px);
  box-shadow: 0 22px 36px -16px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.q-card--feature:hover .q-tilt, .q-card--feature:focus-visible .q-tilt { transform: none; box-shadow: none; }
@media (max-width: 1000px) { .q-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 560px) { .q-grid { grid-template-columns: 1fr; } .q-card { min-height: 0; } .q-tilt { transform: rotate(-3deg) translate(0, -8px); } }

/* ---------- Método + estimador ---------- */
.method-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.method-head p { color: var(--muted); font-size: 1.02rem; max-width: 44ch; margin-bottom: 20px; }
.method-head .method-lead { margin: 12px 0 0; font: 700 1.15rem/1.3 var(--body); color: var(--green-dark); }
.method-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-top: 48px; }

.estimator { background: var(--ink); color: #E9EBEE; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.est-top h3 { font: 700 1.3rem/1.25 var(--body); color: #fff; }
.est-top p { margin-top: 4px; font-size: .9rem; color: #A7ADB4; }
.est-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.estimator fieldset { border: 0; margin: 0; padding: 0; }
.estimator legend, .range label { font-size: .85rem; color: #C4C9CF; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; padding: 6px; border: 1px solid var(--ink-line); border-radius: 8px; font-size: .82rem; text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.seg input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.range { margin-top: 20px; }
.range label { display: flex; justify-content: space-between; align-items: baseline; }
.range output { font: 700 1.05rem var(--body); color: #fff; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin-top: 6px; accent-color: var(--signal); cursor: pointer; }

.est-result { background: var(--ink-deep); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.res-label { font-size: .8rem; color: #A7ADB4; }
.res-main { display: block; margin-top: 4px; font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1.25 var(--body); color: #fff; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; }
.res-grid dt { font-size: .75rem; line-height: 1.3; color: #A7ADB4; }
.res-grid dd { margin: 6px 0 0; font-size: .85rem; font-variant-numeric: tabular-nums; }
.res-grid dd span { font: 700 1.45rem var(--body); color: #fff; }
.res-grid .is-key dd span { color: var(--signal); }
.res-bar { height: 6px; margin-top: 16px; background: var(--ink-line); border-radius: 3px; overflow: hidden; }
.res-bar span { display: block; height: 100%; width: 45%; background: var(--signal); border-radius: 3px; transition: width .4s var(--ease); }
.res-note { margin: 12px 0 18px; font-size: .85rem; color: #C4C9CF; }
.est-result .btn { margin-top: auto; justify-content: center; }
.est-fine { margin-top: 16px; font-size: .75rem; color: #8B9198; }

.steps { list-style: none; margin: 0; padding: 26px; background: #fff; border-radius: var(--r-lg); counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 0; position: relative; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 .85rem var(--display); color: var(--green-dark); }
.steps h3 { font: 700 1rem/1.3 var(--body); color: var(--ink); }
.steps p { font-size: .88rem; color: var(--muted); }

@media (max-width: 1000px) { .method-body { grid-template-columns: 1fr; } .method-head { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .est-cols { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .res-grid { grid-template-columns: 1fr; } .res-grid div { display: flex; justify-content: space-between; align-items: baseline; } .res-grid dd { margin: 0; } }

/* ---------- Líneas (carril) ---------- */
.lines { padding: clamp(72px, 9vw, 120px) 0; }
.lines-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 48px) / 4));
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.line-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: border-color .25s;
}
.lc-media { height: 250px; display: grid; place-items: center; }
.lc-media svg { height: 190px; width: auto; max-width: 82%; transition: transform .5s var(--ease); }
.lc-body { background: #fff; border-top: 1px solid var(--line); padding: 18px 48px 20px 20px; flex: 1; }
.lc-name { display: block; font: 700 1.1rem/1.3 var(--body); }
.lc-desc { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.lc-arrow { position: absolute; right: 18px; bottom: 22px; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.line-card:hover { border-color: var(--ink); }
.line-card:hover .lc-media svg { transform: translateY(-6px); }
.line-card:hover .lc-arrow { transform: translateX(3px); }
.rail-progress { height: 3px; background: var(--line); border-radius: 2px; margin-top: 28px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 40%; background: var(--ink); border-radius: 2px; transform: translateX(0); }

/* ---------- Soluciones ---------- */
.solutions { padding: 48px 0 clamp(40px, 6vw, 72px); }
.solutions .tile-media { background: var(--panel); }
.solutions .tile-badge { border-color: #fff; }
.solutions .seg-panel { background: var(--panel); }
.solutions .seg-tiles, .solutions .seg-panel { margin-inline: auto; }
.seg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px !important; max-width: 1000px !important; }
.seg-tiles button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.tile-media { width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--r); display: grid; place-items: center; border: 2px solid transparent; transition: border-color .25s; }
.tile-media svg { width: 68%; }
.tile-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); border: 4px solid var(--panel); display: grid; place-items: center; margin-top: -26px; transition: background-color .25s; }
.tile-badge svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-name { margin-top: 8px; font-weight: 600; font-size: .95rem; text-align: center; }
.seg-tiles button:hover .tile-media { border-color: #BFC4CA; }
.seg-tiles button[aria-selected="true"] .tile-media { border-color: var(--ink); }
.seg-tiles button[aria-selected="true"] .tile-badge { background: var(--signal); }
.seg-tiles button[aria-selected="true"] .tile-badge svg { stroke: var(--ink); }

.seg-panel { max-width: 1000px !important; margin-top: 32px !important; background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px 40px; align-items: start; }
.seg-panel[hidden] { display: none; }
.seg-panel h3 { font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.25 var(--display); text-transform: uppercase; color: var(--ink); grid-row: span 2; }
.seg-panel ul { list-style: none; margin: 0; padding: 0; }
.seg-panel li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.seg-panel li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--signal); border-radius: 2px; }
.seg-panel .btn { justify-self: start; }
@media (max-width: 760px) {
  .seg-tiles { grid-template-columns: repeat(2, 1fr); }
  .seg-panel { grid-template-columns: 1fr; }
  .seg-panel h3 { grid-row: auto; }
}

/* ---------- Quiénes somos ---------- */
.about { padding: clamp(72px, 9vw, 120px) 0 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about p { font-size: 1.1rem; color: var(--text); max-width: 60ch; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(72px, 9vw, 120px) 0 40px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--green-dark); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- CTA + contacto ---------- */
.cta { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: end; }
.cta-copy > p { margin: 14px 0 28px; color: var(--muted); max-width: 50ch; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid #CDD1D6; border-radius: 8px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--signal-soft); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: .9rem; }
.form-status.error { color: #B3261E; }
.form-status.ok { color: var(--ink); font-weight: 700; }
.cta-lineup { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.cta-lineup svg { width: auto; }
.c-dc { height: 270px; aspect-ratio: 190 / 320; margin-right: -24px; }
.c-xl { height: 360px; aspect-ratio: 220 / 380; position: relative; z-index: 1; }
.c-dual { height: 320px; aspect-ratio: 130 / 360; margin-left: -12px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } .cta-lineup { display: none; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B7C3D0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: clamp(48px, 6vw, 72px) var(--gutter) 28px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 16px 0 22px; font-size: .9rem; max-width: 34ch; }
.footer-grid h3 { font: 700 .78rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--signal); margin-bottom: 14px; }
.footer-grid nav a { display: block; padding: 4px 0; font-size: .9rem; text-decoration: none; }
.footer-grid nav a:hover { color: var(--signal); text-decoration: underline; }
.footer-legal { max-width: var(--maxw); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Roadmap del proceso: una batería que se carga ---------- */
.roadmap {
  --cells: 7; --dwell: 2.2s;
  margin-top: 48px; background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(24px, 3vw, 36px);
}
.rm-detail { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(18px, 3vw, 36px); min-height: 104px; }
.rm-count { font: 800 clamp(3rem, 6vw, 4.75rem)/1 var(--display); color: var(--signal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .5s ease; }
.rm-count small { font-size: .32em; font-weight: 700; color: rgba(255, 255, 255, .4); margin-left: 4px; letter-spacing: .04em; }
.rm-copy { transition: opacity .35s ease, transform .35s var(--ease); }
.rm-copy.is-swapping { opacity: 0; transform: translateY(6px); }
.rm-copy h3 { font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--display); text-transform: uppercase; color: #fff; }
.rm-copy p { margin-top: 6px; color: #B7C3D0; font-size: 1rem; }

.rm-battery {
  position: relative; display: grid; grid-template-columns: repeat(var(--cells), 1fr); gap: 6px;
  margin: clamp(24px, 3vw, 36px) 14px 0 0; padding: 6px; height: 68px;
  border: 2px solid rgba(255, 255, 255, .28); border-radius: 16px;
  transition: border-color .5s ease, box-shadow .5s ease;
}
.rm-battery::after { /* polo de la batería */
  content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 26px; margin-top: -13px;
  background: rgba(255, 255, 255, .28); border-radius: 0 5px 5px 0; transition: background-color .5s ease;
}
.rm-cell { position: relative; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.rm-fill { position: absolute; inset: 0; width: 0; background: var(--signal); border-radius: inherit; transition: background-color .5s ease; }
.rm-cell.is-done .rm-fill { width: 100%; }
.rm-cell.is-active .rm-fill { animation: rm-fill var(--dwell) linear forwards; }
@keyframes rm-fill { from { width: 0; } to { width: 100%; } }

/* batería completa: todo pasa a amarillo */
.roadmap.is-full .rm-fill { width: 100%; background: var(--full); }
.roadmap.is-full .rm-battery { border-color: var(--full); box-shadow: 0 0 0 4px rgba(255, 194, 26, .15), 0 0 28px rgba(255, 194, 26, .35); }
.roadmap.is-full .rm-battery::after { background: var(--full); }
.roadmap.is-full .rm-count { color: var(--full); }

.rm-labels { display: grid; grid-template-columns: repeat(var(--cells), 1fr); gap: 6px; margin: 12px 14px 0 0; padding: 0 8px; }
.rm-label {
  background: none; border: 0; padding: 6px 2px; cursor: pointer; text-align: center;
  font: 600 .8rem/1.2 var(--body); color: rgba(255, 255, 255, .45); transition: color .3s ease;
}
.rm-label:hover { color: #fff; }
.rm-label.is-done { color: var(--signal); }
.rm-label.is-active { color: #fff; }
.roadmap.is-full .rm-label { color: var(--full); }
.rm-label:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 760px) {
  .rm-detail { grid-template-columns: 1fr; gap: 8px; min-height: 150px; align-content: start; }
  .rm-battery { height: 52px; gap: 4px; padding: 5px; }
  .rm-labels { gap: 4px; padding: 0 5px; }
  .rm-label { font-size: 0; padding: 8px 0; }
  .rm-label::before { content: attr(aria-label); font-size: 0; }
  .rm-label::after { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border-radius: 50%; background: currentColor; }
}

/* ---------- Prueba: franja de cliente ---------- */
.proof-strip {
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 8px auto 0;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px;
  padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--r);
}
.proof-label { font: 700 .78rem var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.client-logo { display: inline-grid; place-items: center; min-width: 150px; height: 48px; padding: 0 16px; border: 1px dashed #B9C2CC; border-radius: 8px; font-size: .78rem; color: var(--muted); }
.proof-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--green-dark); text-decoration: none; }
.proof-link .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.proof-link:hover .chev { transform: translateX(3px); }

/* ---------- Proyectos realizados ---------- */
.case { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(72px, 9vw, 120px) 0 0; }
.case-head { margin-bottom: 36px; }
.case-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 40px); background: var(--panel); border-radius: var(--r-xl); padding: clamp(16px, 2vw, 24px); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 280px 170px; gap: 12px; }
.ph { margin: 0; display: grid; place-items: center; align-content: center; gap: 8px; background: #fff; border: 1.5px dashed #B9C2CC; border-radius: 14px; color: var(--muted); text-align: center; padding: 12px; }
.ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ph figcaption { font-size: .8rem; }
.ph-main { grid-column: 1 / -1; }
.case-info { padding: clamp(8px, 2vw, 24px) clamp(4px, 1.5vw, 16px); display: flex; flex-direction: column; align-items: flex-start; }
.case-info h3 { margin-top: 22px; font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.25 var(--display); text-transform: uppercase; color: var(--ink); }
.case-info > p { margin-top: 10px; color: var(--muted); }
.case-facts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; padding: 18px 0; border-block: 1px solid var(--line); }
.case-facts dt { font-size: .78rem; color: var(--muted); }
.case-facts dd { margin: 4px 0 0; font: 800 1.35rem/1.1 var(--display); color: var(--ink); }
.case-quote { margin: 22px 0 0; padding: 0; }
.case-quote p { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.case-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--green-dark); font-weight: 700; }
@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; }
  .case-gallery { grid-template-rows: 220px 130px; }
}
@media (max-width: 480px) { .case-facts { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Movimiento (solo con html.motion, que respeta reducir movimiento)
   ========================================================= */
/* Header al hacer scroll */
.header-bar { transition: padding .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.is-scrolled .header-bar { padding-top: 6px; padding-bottom: 6px; box-shadow: 0 14px 40px -14px rgba(10, 37, 64, .35); }

/* Entrada del hero: una secuencia orquestada */
.motion .hero h1 { animation: hero-rise 1s var(--ease) both; clip-path: inset(0 0 0 0); }
.motion .hero-sub { animation: hero-fade .9s var(--ease) .25s both; }
.motion .hero-inner > .btn { animation: hero-fade .9s var(--ease) .4s both; }
.motion .lineup svg { animation: charger-rise 1.1s var(--ease) both, charger-on 1.6s ease both; }
.motion .lineup svg:nth-child(1) { animation-delay: .55s, 1.45s; }
.motion .lineup svg:nth-child(2) { animation-delay: .65s, 1.55s; }
.motion .lineup svg:nth-child(3) { animation-delay: .75s, 1.65s; }
.motion .lineup svg:nth-child(4) { animation-delay: .85s, 1.75s; }
.motion .lineup svg:nth-child(5) { animation-delay: .95s, 1.85s; }
.motion .scroll-badge { animation: badge-in .8s var(--ease) 1.3s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes charger-rise { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes charger-on {
  0% { filter: drop-shadow(0 0 0 rgba(25, 194, 125, 0)); }
  35% { filter: drop-shadow(0 0 18px rgba(25, 194, 125, .55)); }
  100% { filter: drop-shadow(0 0 0 rgba(25, 194, 125, 0)); }
}
@keyframes badge-in { from { opacity: 0; transform: translateX(-50%) scale(.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }

/* Revelado al hacer scroll */
.motion [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1s);
}
.motion [data-reveal="left"] { transform: translateX(-28px); }
.motion [data-reveal="scale"] { transform: scale(.94); }
.motion [data-reveal="curtain"] { transform: none; filter: none; clip-path: inset(0 0 100% 0 round 14px); transition-property: opacity, clip-path; transition-duration: 1.1s; }
.motion [data-reveal="drop"] { transform: translateY(-36px) rotate(4deg); }
.motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.motion [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0 round 14px); }
