/* Narrativa 6 — dirección "corporativa / editorial".
   Misma estructura y contenido que la 5; cambia el lenguaje visual para que se lea
   como la web de una consultora de operaciones y no como una startup:
   - tipografía más sobria (menos peso, menos tamaño), etiquetas de sección numeradas
   - esquinas casi rectas, sin sombras flotantes ni brillos, bordes finos
   - botones rectangulares, bandas de fondo con filete arriba y abajo
   - hero sin tramas de puntos ni grillas decorativas */

:root {
  --bg: #F4F5F7;
  --line: #E1E4EA;
  --r: 10px;                                   /* radio único para todo */
  --sec-pad: clamp(64px, 7vw, 112px);
}

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-weight: 700 !important; }
.section h2 { font-size: clamp(28px, 2.7vw, 40px) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; }
.hs__slide h1, .page-hero h1, .p-hero h1, .c-hero h1 { font-weight: 700 !important; letter-spacing: -.025em !important; }
.hs__slide h1 { font-size: clamp(38px, 3.8vw, 56px) !important; line-height: 1.08 !important; }
h3 { letter-spacing: -.005em !important; }
.section .lead, .section h2 + p { font-size: 17px !important; line-height: 1.65 !important; color: var(--muted); }

/* etiquetas de sección: sin línea azul, numeradas como capítulos */
body { counter-reset: sec; }
.section .kicker { counter-increment: sec; color: var(--muted) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .16em !important; gap: 12px !important; }
.section .kicker::before { content: none !important; display: none !important; width: auto !important; height: auto !important; background: none !important;
  color: var(--navy); font-weight: 800; letter-spacing: .04em; padding-right: 12px; border-right: 1px solid var(--line); }
.section--navy .kicker { color: rgba(255,255,255,.6) !important; }
.section--navy .kicker::before { color: #fff; border-right-color: rgba(255,255,255,.2); }

/* ---------- Encabezado de sección: título y bajada apilados ---------- */
.section .kicker + h2 { margin-top: 18px !important; }
.section h2 + .lead, .section h2 + p { margin-top: 16px !important; max-width: 68ch !important; }

/* ---------- Bandas: fondo apenas gris con filete, en vez de bloques que parecen láminas ---------- */
.section { padding: var(--sec-pad) 0 !important; }
.section--bg { background: var(--bg) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logoband { background: #fff !important; border-bottom: 1px solid var(--line); }

/* ---------- Botones rectangulares ---------- */
.btn { border-radius: var(--r) !important; height: 44px !important; padding: 0 22px !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .01em; }
.btn--ghost { height: 44px !important; padding: 0 2px !important; border-radius: 0 !important; }
.header .btn { height: 38px !important; padding: 0 18px !important; }

/* ---------- Superficies sobrias ---------- */
.fc__f, .fc__b, .xp__it, .pgx__view, .hw__c, .step, .card, .fz, .mcase { box-shadow: none !important; }
.fc__f, .fc__b { border: 1px solid var(--line) !important; }
.pgx .step.is-on { border-left-color: var(--navy) !important; }

/* ---------- Hero sin tramas decorativas ---------- */
.hs__slide::after { display: none !important; }
.hs__dots button { width: 48px !important; height: 2px !important; border-radius: 0 !important; }
.hs__arrow { border-radius: var(--r) !important; }

/* ---------- Menú: mismas reglas ---------- */
.m9-ic, .m9-tr, .m9-side--dark, .m9-tag { border-radius: var(--r) !important; }

/* ---------- Movimiento al aparecer: discreto ---------- */
.reveal { transform: translateY(10px) !important; transition: opacity .5s var(--ease), transform .5s var(--ease) !important; }
.reveal.is-in { transform: none !important; }

/* franja de logos: más aire entre el título y los logos */
.logoband .logos__t { margin-bottom: 38px !important; }

/* selector de idioma: texto simple "ES | EN", sin recuadro; el activo en negrita y a pleno */
.lang, .header.mega-on .lang { border: 0 !important; padding: 0 !important; opacity: 1 !important; gap: 0; align-items: center; }
.lang button, html[data-lang] .header .lang button, html[data-lang] .header.mega-on .lang button { background: none !important; padding: 4px 8px !important; border-radius: 0 !important; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: .06em; color: inherit !important; opacity: .55; }
.lang button + button { border-left: 1px solid currentColor !important; }
html[data-lang="es"] .lang [data-set="es"], html[data-lang="en"] .lang [data-set="en"] { opacity: 1 !important; font-weight: 800 !important; background: none !important; color: inherit !important; }
html[data-lang="es"] .lang [data-set="es"] *, html[data-lang="en"] .lang [data-set="en"] * { color: inherit !important; }
.lang button:hover { opacity: 1; }

/* "Donde más lo hicimos": primero los resultados, después los productos */
#logistica .lx-sub--first { margin-top: 8px !important; }
#logistica .pgx { margin-top: 28px !important; }


/* ---------- Hero de producto v2 (Planificar, Almacenar, Mover, Conectar) ----------
   Izquierda: etiqueta, título corto, una línea y botones. Derecha: ilustración vectorial
   animada con la idea central de cada producto, en el mismo estilo de líneas finas. */
.p-hero--v2 .p-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important; align-items: center !important; gap: 64px !important; }
.p-hero--v2 h1 { font-size: clamp(36px, 3.6vw, 52px) !important; line-height: 1.1 !important; max-width: 17ch; margin: 18px 0 16px !important; }
.p-hero--v2 .lead { font-size: 18px !important; max-width: 38ch; margin-bottom: 30px !important; }
.phv-wrap { position: relative; }
.phv { display: block; width: 100%; height: auto; overflow: visible; }
.phv text { font-family: Montserrat, sans-serif; }
.phv__grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.phv__today { stroke: rgba(255,255,255,.35); stroke-dasharray: 3 5; }
.phv__k { fill: rgba(255,255,255,.6); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.phv__t { fill: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; }
.phv__line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.phv__fc { fill: none; stroke: #8fa6ff; stroke-width: 2.4; stroke-dasharray: 7 6; stroke-linejoin: round; stroke-linecap: round; }
.phv__band { opacity: 0; animation: phvIn .9s 1.2s forwards; }
.phv__pt { fill: #fff; }
.phv__now { fill: #fff; stroke: rgba(143,166,255,.5); stroke-width: 6; }
.phv__chip rect { fill: rgba(255,255,255,.96); }
.phv__ck { fill: #5A6180; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phv__cv { fill: #020A35; font-size: 13px; font-weight: 700; }
.phv__zone { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.3); stroke-dasharray: 4 4; }
.phv__rack { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.28); }
.phv__rack--on { fill: rgba(143,166,255,.35); stroke: #8fa6ff; animation: phvBlink 4.5s infinite; }
.phv__pallet { fill: #fff; }
.phv__stop circle { fill: #0A1650; stroke: #8fa6ff; stroke-width: 1.6; }
.phv__stop text { fill: #fff; font-size: 11px; font-weight: 700; }
.phv__depot { fill: #fff; }
.phv__truck { fill: #fff; filter: drop-shadow(0 0 6px rgba(143,166,255,.9)); }
.phv__link { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.phv__pulse { fill: #8fa6ff; }
.phv__node rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.35); }
.phv__nt { fill: #fff; font-size: 12.5px; font-weight: 600; }
.phv__hub rect { fill: #fff; }
.phv__ht { fill: #020A35; font-size: 17px; font-weight: 800; }
.phv__hs { fill: #5A6180; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* aparición: las líneas se dibujan, el recuadro aparece después */
.phv__draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: phvDraw 1.6s .3s cubic-bezier(.4,0,.2,1) forwards; }
.phv__fc.phv__draw { animation-name: phvDrawDash; }
.phv__d2 { animation-delay: 1s !important; }
.phv__d3 { opacity: 0; animation: phvIn .6s 2s forwards; }
@keyframes phvDraw { to { stroke-dashoffset: 0; } }
@keyframes phvDrawDash { 0% { stroke-dasharray: 0 1400; } 100% { stroke-dasharray: 7 6; } }
@keyframes phvIn { to { opacity: 1; } }
@keyframes phvBlink { 0%, 60% { fill-opacity: .2; } 80%, 100% { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phv * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }
@media (max-width: 980px) { .p-hero--v2 .p-hero__grid { grid-template-columns: 1fr !important; gap: 32px !important; } .p-hero--v2 h1 { max-width: none; } }

/* caso con logo en lugar de número (cuando todavía no hay métrica) */
.mini-case__num--logo { display: flex; align-items: center; }
.mini-case__num--logo img { height: 34px; width: auto; filter: grayscale(1) brightness(.35); }
/* "El producto" sin capturas todavía: el espacio queda reservado a la derecha */
.pgx--wip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; }
.pgx--wip .pgx__view { min-height: 320px; display: flex; }
.pgx--wip .pgx__view .slot { flex: 1; display: grid; place-items: center; text-align: center; }
.pgx--wip .step { opacity: 1 !important; cursor: default; }
@media (max-width: 900px) { .pgx--wip { grid-template-columns: 1fr; } }

/* bloques compartidos que antes vivían solo en algunas páginas (agente y "otros productos") */
.agent-fig { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.agent-fig img { width: 100%; height: auto; }
.agent-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.agent-steps > div { min-width: 0; padding: 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.agent-steps b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.agent-steps span:not(.es):not(.en) { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 640px) { .agent-steps { grid-template-columns: 1fr 1fr; } }
.suite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.suite > * { min-width: 0; }
.suite .card { display: flex; flex-direction: column; gap: 8px; }
.suite small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.suite h3 { font-size: 20px; }
.suite p { color: var(--muted); font-size: 15px; flex: 1; }
.suite .is-here { border-color: var(--blue); pointer-events: none; }
.suite .is-here .link-arrow { color: var(--muted); }
@media (max-width: 820px) { .suite { grid-template-columns: 1fr; } }

/* Cómo funciona: línea continua con un ícono que viaja de etapa en etapa */
.flow__bar { transition: none !important; }
.flow__token { position: absolute; left: -14px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(32,77,229,.15), 0 6px 16px -4px rgba(32,77,229,.6); display: grid; place-items: center; z-index: 2; pointer-events: none; }
.flow__token svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow__step .flow__dot { position: relative; z-index: 1; transition: background .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s; }
.flow__step.is-on .flow__dot { color: transparent !important; }
.flow__step.is-on b { color: var(--blue); }
.flow__panel.is-in h3 { animation: flowIn .45s cubic-bezier(.2,.7,.2,1) both; }
.flow__panel.is-in p { animation: flowIn .45s .08s cubic-bezier(.2,.7,.2,1) both; }
@keyframes flowIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .flow__token { display: none; } }

/* ---------- Páginas de producto v2 ---------- */
/* Resultados: tres números grandes con el cliente, y los logos debajo */
.rs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rs__it { padding: 32px 28px 30px 0; }
.rs__it + .rs__it { padding-left: 28px; border-left: 1px solid var(--line); }
.rs__it b { display: block; font-size: clamp(40px, 4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--blue); }
.rs__it b sup { font-size: .4em; vertical-align: super; color: var(--muted); }
.rs__it span:not(.es):not(.en) { display: block; margin-top: 10px; font-size: 15.5px; color: var(--navy); font-weight: 600; max-width: 26ch; }
.rs__it small { display: block; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rs__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; margin-top: 28px; }
.rs__logos img { height: 26px; width: auto; filter: grayscale(1); opacity: .65; }
.rs__note { margin-top: 18px; font-size: 12px; color: var(--muted); }
/* Desafío: tres problemas con su respuesta */
.ch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ch__it { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ch__n { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.ch__it h3 { margin-top: 14px; font-size: 19px; line-height: 1.3; }
.ch__it p { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ch__it p b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
/* Beneficio de cada etapa */
.flow__gain { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 10px; background: #EEF2FF; color: var(--blue); font-size: 13px; font-weight: 700; }
/* En acción: un solo video grande en una ventana */
.ac { margin-top: 36px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(2,10,53,.45); }
.ac__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #F7F8FB; }
.ac__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6D9E3; }
.ac__bar span { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ac__media video { display: block; width: 100%; height: auto; }
.ac__media .slot { min-height: 420px; display: grid; place-items: center; text-align: center; border: 0; border-radius: 0; }
/* Caso con cita */
.cs { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); margin-top: 22px; border-radius: 10px; overflow: hidden; background: var(--navy); color: #fff; }
.cs__main { padding: clamp(28px, 4vw, 48px); }
.cs__logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 22px; }
.cs__main small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fb0ff; }
.cs__main h3 { margin-top: 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: #fff; }
.cs blockquote { margin: 24px 0 0; padding-left: 20px; border-left: 2px solid #4F7BFF; }
.cs blockquote p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.88); }
.cs blockquote footer { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.6); }
.cs .link-arrow { display: inline-block; margin-top: 26px; color: #fff; }
.cs__kpis { display: grid; align-content: center; gap: 28px; padding: 40px; background: rgba(255,255,255,.05); border-left: 1px solid rgba(255,255,255,.08); }
.cs__kpis b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.cs__kpis span:not(.es):not(.en) { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 14px; }
@media (max-width: 900px) { .rs, .ch, .cs { grid-template-columns: 1fr; } .rs__it + .rs__it { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .cs__kpis { border-left: 0; } }
.ac { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* hero de producto: mismo alto y misma posición del texto que la cabecera de Casos */
.p-hero.p-hero--v2 { height: 580px !important; min-height: 0 !important; padding: 141px 0 40px !important; justify-content: flex-start !important; }
.p-hero--v2 .p-hero__grid { align-items: start !important; }
.p-hero--v2 .phx { padding-top: 0; }
.p-hero--v2 .phv-wrap { margin-top: -24px; }
.p-hero--v2 .phv { max-height: 380px; }

/* botones principales: texto siempre blanco */
.btn--primary, .btn--primary *, a.btn--primary:visited { color: #fff !important; }
