/* Presentación SIPRO para Logística Serval */
:root {
  --ink: #0B2A35; --ink-2: #4A6570; --ground: #F5F9FA; --paper: #FFFFFF; --mist: #DFF2F9;
  --rule: #D6E4E9; --rule-strong: #B4CAD2;
  --primary: #006389; --accent: #03A5D1; --deep: #06303F;
  --ok: #257A4B; --ok-soft: #E1F2E8; --warn: #7F5209; --warn-soft: #FBEFD8; --bad: #B0322A; --bad-soft: #F9E2DF;
  --wa: #12803D;
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(6,48,63,.06), 0 10px 28px rgba(6,48,63,.10);
  --bar: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--ink); font: 400 clamp(15px, 1.05vw + 5px, 19px)/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -.01em; }
b, strong { font-weight: 700; }
.mono { font-family: var(--f-mono); }

/* ---------- Diapositivas ---------- */
.deck { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.slide { min-height: 100svh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 3.2vw, 48px) clamp(16px, 5vw, 80px) calc(var(--bar) + clamp(16px, 2vw, 28px)); position: relative; }
.slide > .in { width: 100%; max-width: 1240px; margin: 0 auto; }
.slide.dark { background: var(--deep); color: #E6F3F8; }
.slide.mist { background: var(--mist); }
.slide.paper { background: var(--paper); }
.kicker { font: 600 .78em/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .9em; display: flex; align-items: center; gap: .7em; }
.kicker .n { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; border-radius: 99px; background: var(--primary); color: #fff; letter-spacing: 0; font-size: .85em; }
.dark .kicker { color: #7FD3EC; }
.dark .kicker .n { background: var(--accent); color: var(--deep); }
.slide h2 { font-size: clamp(1.6em, 2.6vw + .5em, 2.9em); font-weight: 700; max-width: 26ch; margin-bottom: .45em; }
.lead { font-size: 1.12em; color: var(--ink-2); max-width: 62ch; margin-bottom: 1.4em; }
.dark .lead { color: #B9D9E5; }
.hl { color: var(--primary); }
.dark .hl { color: #5FD0F0; }

/* Guion para quien presenta */
.guion { display: none; margin-top: 1.4em; padding: .9em 1.1em; background: rgba(3,165,209,.08); border-radius: 10px; font-size: .92em; color: var(--ink-2); max-width: 90ch; }
.guion::before { content: "Qué decir · "; font: 700 .85em var(--f-display); color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.dark .guion { color: #CFE6EE; background: rgba(255,255,255,.06); }
.dark .guion::before { color: #7FD3EC; }
body.con-guion .guion { display: block; }

/* ---------- Barra inferior ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 10px; padding: 0 clamp(10px, 2vw, 24px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); z-index: 20; font-family: var(--f-display); font-size: 14px; }
.bar img { height: 26px; width: auto; }
.bar .sep { flex: 1; }
.bar button { font: 600 13px var(--f-display); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 8px; height: 36px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform .16s var(--ease), background .16s; }
.bar button:hover { background: var(--mist); }
.bar button:active { transform: scale(.96); }
.bar button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.bar .cont { min-width: 64px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress { position: fixed; left: 0; top: 0; height: 4px; background: var(--accent); width: 0; z-index: 21; transition: width .3s var(--ease); }
.indice { position: fixed; right: clamp(10px, 2vw, 24px); bottom: calc(var(--bar) + 10px); width: min(380px, calc(100vw - 20px)); max-height: 70vh; overflow: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 22; display: none; }
.indice.open { display: block; }
.indice a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.indice a:hover, .indice a.act { background: var(--mist); }
.indice a span { font: 600 13px var(--f-mono); color: var(--primary); min-width: 22px; }
@media (max-width: 640px) { .bar .txt { display: none; } .bar img { height: 22px; } }

/* ---------- Portada ---------- */
.portada { background: radial-gradient(1200px 600px at 85% 20%, rgba(3,165,209,.28), transparent 60%), var(--deep); color: #fff; }
.portada .logos { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 5vh, 56px); flex-wrap: wrap; }
.portada .logos img { height: clamp(34px, 4vw, 52px); filter: brightness(0) invert(1); }
.portada .logos .x { opacity: .5; font: 300 1.6em var(--f-display); }
.portada .logos .cli { font: 700 clamp(1.1em, 1.6vw, 1.5em) var(--f-display); letter-spacing: .02em; }
.portada h1 { font-size: clamp(2.1em, 4.6vw, 4.4em); font-weight: 700; max-width: 17ch; }
.portada h1 em { font-style: normal; color: #5FD0F0; }
.portada .sub { font-size: 1.2em; color: #B9D9E5; max-width: 56ch; margin: 1em 0 2em; }
.portada .meta { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font: 500 .85em var(--f-display); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #5FD0F0; }
.portada .ayuda { margin-top: clamp(24px, 6vh, 64px); font-size: .9em; color: #8FB7C6; }
.portada .ayuda kbd, .ayuda kbd { font: 600 .85em var(--f-mono); padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.3); }

.hero { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-txt-fin { grid-column: 1 / -1; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px 22px; display: grid; gap: 12px; justify-items: center; }
.hero-card .hc-top { width: 100%; display: flex; justify-content: space-between; font: 600 .85em var(--f-display); color: #CFE6EE; }
.hero-card .vivo { display: inline-flex; align-items: center; gap: 6px; color: #7BE0A2; }
.hero-card .vivo i { width: 8px; height: 8px; border-radius: 50%; background: #3DD27A; animation: lat 1.4s infinite; }
.anillo { width: min(170px, 60%); transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 10; }
.anillo .fondo { stroke: rgba(255,255,255,.12); }
.anillo .valor { stroke: #5FD0F0; stroke-linecap: round; stroke-dashoffset: 99; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.visto .anillo .valor { stroke-dashoffset: 0; }
.hc-num { text-align: center; margin-top: -4px; }
.hc-num b { display: block; font: 700 2.6em/1 var(--f-display); color: #fff; }
.hc-num span { font-size: .9em; color: #B9D9E5; }
.hc-filas { width: 100%; display: grid; gap: 6px; }
.hc-filas div { display: flex; justify-content: space-between; gap: 10px; font-size: .9em; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); color: #CFE6EE; }
.hc-filas b { font-family: var(--f-mono); color: #fff; }
.hc-filas .w b { color: #F2C46D; }
.hero-card small { color: #8FB7C6; font-size: .75em; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } .hero-card { max-width: 420px; width: 100%; justify-self: start; } }

/* ---------- Flujo de pasos ---------- */
.pasos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: p; }
.paso { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1em 1em; position: relative; box-shadow: var(--shadow); }
.paso .cuando { font: 600 .74em var(--f-mono); color: var(--primary); background: var(--mist); padding: 3px 8px; border-radius: 6px; display: inline-block; margin-bottom: .7em; }
.paso h3 { font-size: 1.02em; margin-bottom: .35em; }
.paso p { font-size: .9em; color: var(--ink-2); line-height: 1.4; }
.paso:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--rule-strong); border-right: 2px solid var(--rule-strong); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 960px) { .pasos { grid-template-columns: 1fr 1fr; } .paso::after { display: none; } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } }

/* ---------- Comparación dos columnas ---------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.vs .col { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3em; box-shadow: var(--shadow); }
.vs .col.ellos { border: 2px solid var(--primary); }
.vs .col h3 { font-size: 1.15em; margin-bottom: .2em; }
.vs .col .tag { font: 600 .75em var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: .9em; display: block; }
.vs .col.ellos .tag { color: var(--primary); }
.vs .mid { display: grid; place-items: center; font: 700 1.3em var(--f-display); color: var(--ink-2); }
.linea { list-style: none; display: grid; gap: 8px; }
.linea li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--ground); font-size: .95em; }
.linea li .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--mist); color: var(--primary); }
.linea li .ic svg { width: 20px; height: 20px; }
.linea li.dif { background: var(--warn-soft); }
.linea li.dif .ic { background: #F5DDB0; color: var(--warn); }
.vs .nota { margin-top: .9em; font-size: .88em; color: var(--ink-2); }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr; } .vs .mid { padding: 0; } }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1em 1.15em; box-shadow: var(--shadow); }
.card h3 { font-size: 1.02em; margin-bottom: .35em; display: flex; align-items: center; gap: 10px; }
.card p { font-size: .92em; color: var(--ink-2); line-height: 1.42; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); color: var(--primary); flex: none; }
.card .ic svg { width: 22px; height: 22px; }
.card.bad { border-color: #EBC2BD; }
.card.bad .ic { background: var(--bad-soft); color: var(--bad); }
.card.new { border: 2px solid var(--accent); }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.dark .card p { color: #B9D9E5; }
.dark .card .ic { background: rgba(3,165,209,.18); color: #7FD3EC; }
.badge { display: inline-block; font: 700 .68em var(--f-display); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--deep); margin-left: auto; }
.badge.ya { background: var(--ok-soft); color: var(--ok); }

/* ---------- Cuaderno ---------- */
.cuaderno-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; }
@media (max-width: 860px) { .cuaderno-wrap { grid-template-columns: 1fr; } }
.cuaderno { background: #FFFDF5; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow); padding: 18px 18px 18px 52px; position: relative; transform: rotate(-1.4deg);
  background-image: repeating-linear-gradient(#FFFDF5 0 30px, #CFE0EA 30px 31px); background-position: 0 18px; font: 500 1.02em/31px "Segoe Print", "Comic Sans MS", cursive; color: #2C3E8C; }
.cuaderno::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 2px; background: #E8A0A0; }
.cuaderno .r { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; overflow: hidden; }
.cuaderno .tach { text-decoration: line-through; opacity: .6; }
.cuaderno .dudoso { background: rgba(255,214,0,.35); }
.cuaderno .tit { font-weight: 700; }

/* ---------- Almacenes ---------- */
.mapa { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
@media (max-width: 860px) { .mapa { grid-template-columns: 1fr; } }
.central { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1.1em; text-align: center; box-shadow: var(--shadow); }
.central b { display: block; font: 700 1.1em var(--f-display); }
.central small { opacity: .8; }
.locales { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.loc { aspect-ratio: 1; border-radius: 8px; background: var(--paper); border: 1px dashed var(--rule-strong); display: grid; place-items: center; font: 600 .7em var(--f-mono); color: var(--ink-2); position: relative; }
.loc::after { content: "?"; position: absolute; top: 2px; right: 4px; font: 700 .9em var(--f-display); color: var(--bad); }
.preguntas { margin-top: 1.2em; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(16px, 2.6vw, 36px); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 480px) { .campos { grid-template-columns: 1fr; } }
.campo label { display: block; font: 600 .78em var(--f-display); color: var(--ink-2); margin-bottom: 4px; }
.campo .inp { display: flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: 9px; background: var(--paper); overflow: hidden; }
.campo .inp span { padding: 0 10px; color: var(--ink-2); font: 600 .85em var(--f-mono); background: var(--ground); align-self: stretch; display: grid; place-items: center; }
.campo input { border: 0; outline: 0; width: 100%; padding: 9px 10px; font: 600 1em var(--f-mono); color: var(--ink); background: transparent; min-width: 0; }
.campo .inp:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,99,137,.15); }
.res { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 1.3em 1.4em; box-shadow: var(--shadow); }
.res .tot small { display: block; font: 600 .75em var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #8FB7C6; }
.res .tot b { font: 700 clamp(1.9em, 3.3vw, 2.8em)/1.1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.res .tot .anual { font: 600 1.05em var(--f-display); color: #5FD0F0; margin-top: 2px; }
.barras { margin-top: 1.1em; display: grid; gap: 10px; }
.barra .et { display: flex; justify-content: space-between; font-size: .88em; color: #CFE6EE; margin-bottom: 4px; gap: 8px; }
.barra .et b { font-family: var(--f-mono); color: #fff; white-space: nowrap; }
.barra .tr { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.barra .tr i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.res .aviso { margin-top: 1em; font-size: .8em; color: #8FB7C6; }

/* ---------- Pedido vs atendido ---------- */
.contador { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 1.3em; }
@media (max-width: 720px) { .contador { grid-template-columns: 1fr; } }
.kpi { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1em 1.2em; box-shadow: var(--shadow); }
.kpi small { font: 600 .74em var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.kpi b { display: block; font: 700 clamp(2em, 4vw, 3.2em)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.kpi.warn { background: var(--warn-soft); border-color: #EAD3A6; }
.kpi.warn b { color: var(--warn); }
.platos { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1em 1.2em; box-shadow: var(--shadow); margin-bottom: 14px; }
.platos p { font-size: .88em; color: var(--ink-2); margin-top: .6em; }
.plato-fila { display: flex; flex-wrap: wrap; gap: 4px; }
.plato-fila i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); opacity: .85; }
.plato-fila i.libre { background: transparent; border: 2px solid var(--warn); }

/* ---------- Arquitectura ---------- */
.arq { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(10px, 2vw, 24px); box-shadow: var(--shadow); }
.dark .arq { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
.arq svg { width: 100%; height: auto; display: block; max-height: 54vh; }
.arq .t { font-family: var(--f-display); }
.flujo-punto { stroke-dasharray: 4 6; animation: flujo 1.2s linear infinite; }
@keyframes flujo { to { stroke-dashoffset: -20; } }

/* ---------- Biométrico ---------- */
.bio { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.ticket { background: #fff; color: #111; width: min(280px, 100%); margin: 0 auto; padding: 18px 18px 26px; font: 500 14px/1.45 var(--f-mono); box-shadow: var(--shadow); position: relative; text-align: center;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 7px) 0 0/16px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 7px) 0 0/16px 100% repeat-x; }
.ticket .tp { font: 700 20px var(--f-display); letter-spacing: .1em; }
.ticket hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.ticket .ok { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid #111; font-size: 12px; }

/* ---------- Adecuaciones antes/después ---------- */
.adec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .adec { grid-template-columns: 1fr; } }
.adec .card h3 { font-size: 1.05em; }
.ad { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 8px; align-items: center; margin-top: .7em; font-size: .86em; }
.ad .a, .ad .d { padding: 8px 10px; border-radius: 8px; line-height: 1.35; }
.ad .a { background: var(--ground); color: var(--ink-2); }
.ad .d { background: var(--ok-soft); color: #164D2F; font-weight: 600; }
.ad .fl { color: var(--ink-2); text-align: center; font-weight: 700; }
.ad small { display: block; font: 700 .72em var(--f-display); text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 2px; }

/* ---------- Línea de tiempo ---------- */
.tl { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 960px) { .tl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; } }
.tl li { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9em 1em; box-shadow: var(--shadow); position: relative; }
.tl li .h { font: 700 .78em var(--f-mono); color: var(--primary); }
.tl li h3 { font-size: .98em; margin: .25em 0 .3em; }
.tl li p { font-size: .87em; color: var(--ink-2); line-height: 1.38; }
.tl li .quien { margin-top: .5em; font: 600 .7em var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.tl li.alerta { border: 2px solid var(--warn); background: var(--warn-soft); }
.tl li.alerta .h { color: var(--warn); }

/* ---------- Dashboard maqueta ---------- */
.dash { background: #0E1E26; color: #DDEBF0; border-radius: 16px; padding: clamp(12px, 1.6vw, 20px); box-shadow: 0 20px 50px rgba(6,48,63,.35); font-size: .9em; }
.dash .top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dash .top b { font: 600 1em var(--f-display); }
.dash .vivo { display: inline-flex; align-items: center; gap: 6px; font: 600 .75em var(--f-display); color: #7BE0A2; }
.dash .vivo i { width: 8px; height: 8px; border-radius: 50%; background: #3DD27A; animation: lat 1.4s infinite; }
@keyframes lat { 50% { opacity: .3; } }
.dash .ej { margin-left: auto; font: 600 .7em var(--f-display); color: #F2C46D; border: 1px solid #6B5320; padding: 3px 8px; border-radius: 99px; }
.dash .kp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 720px) { .dash .kp { grid-template-columns: 1fr 1fr; } }
.dash .kp div { background: #15303B; border-radius: 10px; padding: 10px 12px; }
.dash .kp small { font-size: .72em; color: #8FB7C6; text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-display); font-weight: 600; }
.dash .kp b { display: block; font: 700 1.5em var(--f-display); font-variant-numeric: tabular-nums; color: #fff; }
.dash .kp b.w { color: #F2C46D; }
.dash .cuerpo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
@media (max-width: 860px) { .dash .cuerpo { grid-template-columns: 1fr; } }
.dash .panel { background: #15303B; border-radius: 10px; padding: 10px 12px; }
.dash .panel h4 { font-size: .78em; color: #8FB7C6; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.dash table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dash td, .dash th { padding: 5px 6px; text-align: left; font-size: .86em; border-bottom: 1px solid #22404C; white-space: nowrap; }
.dash th { color: #8FB7C6; font: 600 .72em var(--f-display); text-transform: uppercase; }
.dash td.num, .dash th.num { text-align: right; }
.dash .mini { height: 6px; background: #22404C; border-radius: 99px; overflow: hidden; min-width: 60px; }
.dash .mini i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.dash .mini i.done { background: #3DD27A; }
.dash .est { font: 700 .7em var(--f-display); padding: 2px 7px; border-radius: 99px; }
.dash .est.ok { background: #1C4A30; color: #7BE0A2; }
.dash .est.pend { background: #4A3A16; color: #F2C46D; }
.dash .alerta { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #4A3A16; color: #F7D58E; font-size: .85em; display: flex; gap: 8px; align-items: center; }
.dash .alerta button { margin-left: auto; font: 600 .8em var(--f-display); background: var(--wa); color: #fff; border: 0; padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.dash .stock div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #22404C; font-size: .86em; gap: 8px; }
.dash .stock div b { font-family: var(--f-mono); font-weight: 600; }
.dash .stock .bajo b { color: #F28B82; }
.tabla-wrap { overflow-x: auto; }

/* ---------- Antes / después ---------- */
.ad-tabla { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.ad-tabla th, .ad-tabla td { padding: .7em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-size: .95em; }
.ad-tabla tr:last-child td { border-bottom: 0; }
.ad-tabla thead th { font: 700 .78em var(--f-display); text-transform: uppercase; letter-spacing: .08em; background: var(--ground); color: var(--ink-2); }
.ad-tabla thead th.d { color: var(--ok); }
.ad-tabla td:first-child { font: 600 .95em var(--f-display); white-space: nowrap; }
.ad-tabla td.a { color: var(--bad); }
.ad-tabla td.d { color: #164D2F; background: #F3FAF6; }
@media (max-width: 720px) {
  .ad-tabla thead { display: none; }
  .ad-tabla tr { display: block; border-bottom: 1px solid var(--rule); }
  .ad-tabla td { display: block; border: 0; padding: .35em 1em; }
  .ad-tabla td:first-child { padding-top: .8em; }
  .ad-tabla td.a::before { content: "Hoy: "; font-weight: 700; }
  .ad-tabla td.d::before { content: "Con SIPRO: "; font-weight: 700; }
  .ad-tabla td.d { padding-bottom: .8em; }
}

/* ---------- Fases ---------- */
.fases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 1.2em; }
@media (max-width: 960px) { .fases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fases { grid-template-columns: 1fr; } }
.fase { border-radius: var(--radius); padding: 1em 1.1em; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); --c: var(--primary); }
.fase .f::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.fase:nth-child(2) { --c: var(--accent); }
.fase:nth-child(3) { --c: var(--ok); }
.fase:nth-child(4) { --c: var(--deep); }
.fase .f { font: 700 .74em var(--f-mono); color: var(--ink-2); }
.fase h3 { font-size: 1.02em; margin: .25em 0 .35em; }
.fase p { font-size: .88em; color: var(--ink-2); line-height: 1.4; }
.quien-pone { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .quien-pone { grid-template-columns: 1fr; } }
.quien-pone ul { list-style: none; display: grid; gap: 5px; margin-top: .5em; }
.quien-pone li { font-size: .9em; padding-left: 1.3em; position: relative; color: var(--ink-2); }
.quien-pone li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- Cierre ---------- */
.cierre { text-align: center; }
.cierre h2 { margin-left: auto; margin-right: auto; max-width: none; }
.cierre .lead { margin-left: auto; margin-right: auto; }
.botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 1.4em 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font: 600 1em var(--f-display); text-decoration: none; transition: transform .16s var(--ease), filter .16s; }
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.08); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.sec { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn svg { width: 20px; height: 20px; }
.contacto { color: #B9D9E5; font-size: .95em; }
.contacto a { color: #fff; }

/* ---------- Entrada suave ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.visto .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .flujo-punto, .dash .vivo i, .hero-card .vivo i { animation: none; }
  .anillo .valor { transition: none; stroke-dashoffset: 0; }
  html, .deck { scroll-behavior: auto; }
}

/* ---------- Pantallas bajas (proyector 1366×768) ---------- */
@media (min-width: 961px) and (max-height: 800px) {
  body { font-size: 15.5px; }
  .slide h2 { font-size: 2.2em; }
  .lead { margin-bottom: 1em; }
}
/* Teléfono: lectura libre, sin encaje forzado */
@media (max-width: 640px) {
  .deck { scroll-snap-type: none; }
  .slide { min-height: auto; padding-top: 44px; padding-bottom: 44px; }
  .slide.portada { min-height: 100svh; }
  .deck { padding-bottom: var(--bar); }
}
@media print {
  .bar, .progress, .indice { display: none; }
  .deck { height: auto; overflow: visible; }
  .slide { break-after: page; min-height: auto; padding: 24px; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Ajustes de teléfono ---------- */
.portada .logos img { width: auto; }
.arq-movil { display: none; list-style: none; gap: 8px; }
.arq-movil li { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); position: relative; }
.arq-movil li b { display: block; font: 600 1em var(--f-display); color: #fff; }
.arq-movil li span { font-size: .9em; color: #B9D9E5; }
.arq-movil li.centro { background: var(--primary); border-color: var(--primary); }
.arq-movil li.centro span { color: #E1F3FA; }
.arq-movil li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); color: #7FD3EC; font-size: 14px; z-index: 1; }
@media (max-width: 640px) {
  .arq svg { display: none; }
  .arq-movil { display: grid; gap: 14px; }
  .dark .arq { background: none; border: 0; padding: 0; }
  .portada .ayuda { display: none; }
}
