/* =========================================================
   SCT Security — estilo limpio tipo plataforma
   Blanco, grises suaves, navy del logo para texto,
   azul de acción para botones y estados.
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --soft: #F6F7F9;
  --soft-2: #EEF0F3;
  --line: #E4E7EC;
  --line-2: #D5DAE1;
  --ink: #0F1D2E;
  --ink-2: #475467;
  --ink-3: #8A94A3;
  --primary: #1B5FD1;
  --primary-hover: #154CA9;
  --primary-soft: #E9F0FC;
  --ok: #12A150;
  --ok-soft: #E6F6EC;
  --warn: #E28A0B;
  --warn-soft: #FDF3E1;
  --danger: #E5484D;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -6px rgba(16,24,40,.08);
  --shadow-lg: 0 2px 4px rgba(16,24,40,.04), 0 30px 60px -20px rgba(16,24,40,.18);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Host Grotesk", "Geist", system-ui, sans-serif; /* títulos: grotesca con carácter; Geist queda para el texto corrido */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
/* tracking único para la fuente de títulos: anula los valores pensados para Geist en cada título */
h1, h2, h3, h4 { letter-spacing: -0.025em !important; }
button { font: inherit; color: inherit; }
svg { flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }
.dim { color: var(--ink-3); }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.pill-warn { background: var(--warn-soft); color: #A86200; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 500 14.5px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(27,95,209,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-soft { background: var(--soft-2); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--soft-2); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.link-btn:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links > a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s; }
.nav-links > a:hover { background: var(--soft); color: var(--ink); }
.nav-mobile-actions { display: none; }
.nav-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 80px;
  background: linear-gradient(135deg, #F1F3F6 0%, rgba(241,243,246,0) 70%); transform: rotate(35deg);
}
.hero-bg::before { left: -380px; top: 40px; }
.hero-bg::after { right: -400px; top: 280px; background: linear-gradient(315deg, #F1F3F6 0%, rgba(241,243,246,0) 70%); }
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 22px auto 0; max-width: 980px; }
.hero h1 .dim { font-weight: 500; }
.hero-sub { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 600px; margin: 20px auto 0; line-height: 1.55; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Showcase (pestañas + app) ---------- */
.showcase { margin-top: 56px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px;
  border: 0; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; transition: background .2s, color .2s, box-shadow .2s;
}
.tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-progress { position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; opacity: 0; }
.tab.is-active .tab-progress { opacity: .7; }
.tab.is-running .tab-progress { animation: prog var(--dur, 6s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }

.app {
  display: grid; grid-template-columns: 210px 1fr; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; height: 470px; font-size: 13px;
}
.app-side { background: var(--soft); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; padding: 2px 4px; }
.app-brand img { width: 22px; height: 22px; }
.app-search { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; color: var(--ink-3); font-size: 12.5px; }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-nav li { padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.app-nav li.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.app-side-foot { margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; }
.app-side-lbl { font-size: 11px; color: var(--ink-3); }
.app-site { font-weight: 600; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.app-crumb { color: var(--ink-3); }
.app-crumb i { font-style: normal; margin: 0 4px; }
.app-crumb b { color: var(--ink); font-weight: 600; }
.app-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.panel { display: none; flex: 1; padding: 16px 18px; gap: 16px; min-height: 0; }
.panel.is-active { display: flex; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Monitoreo */
.cams { flex: 1.6; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam { position: relative; border-radius: 10px; overflow: hidden; background: #1A2433; min-height: 0; }
.cam::before { content: ""; position: absolute; inset: 0; opacity: .9; }
.c1::before { background: linear-gradient(160deg, #3A4A5E 0%, #1E2938 60%), repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.04) 38px 40px); }
.c2::before { background: radial-gradient(120px 80px at 62% 62%, #4C5D72, transparent), linear-gradient(200deg, #2C394A, #172130); }
.c3::before { background: linear-gradient(180deg, #2E3B4D 0 55%, #3C4B5F 55% 100%); }
.c4::before { background: linear-gradient(120deg, #22303F, #33445A 70%), repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px); }
.cam-lbl { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.rec { position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(229,72,77,.9); padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; }
.detect { position: absolute; left: 52%; top: 38%; width: 22%; height: 46%; border: 1.5px solid #FFC53D; border-radius: 4px; font-size: 0; }
.detect > b { font-size: 10px; color: #1A1A1A; }
.detect > b { position: absolute; left: -1.5px; top: -20px; background: #FFC53D; padding: 1px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; font-weight: 600; }
.detect.sm { left: 30%; top: 34%; width: 34%; height: 40%; }

.feed { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-h { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--ink); }
.ev { display: flex; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.ev:first-of-type { border-top: 0; }
.ev b { display: block; font-weight: 500; font-size: 12.5px; line-height: 1.3; }
.ev small { color: var(--ink-3); font-size: 11.5px; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.ev-dot.ok { background: var(--ok); }
.ev-dot.warn { background: var(--warn); }
.ev-dot.live { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); animation: blink 1.4s infinite; }

/* Rondas */
.map { flex: 1.6; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 12px; display: flex; }
.map svg { width: 100%; height: 100%; }
.map-zone { fill: #fff; stroke: var(--line-2); }
.map-bld { fill: var(--soft-2); stroke: var(--line-2); }
.map-route { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 6 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.pt { fill: #fff; stroke: var(--line-2); stroke-width: 2; }
.pt.done { fill: var(--ok); stroke: #fff; }
.pt.now { fill: var(--primary); stroke: #fff; animation: pulse 1.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* Personal */
.roster { width: 100%; border-collapse: collapse; align-self: flex-start; }
.roster th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.roster td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster td:first-child { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.tag.ok { background: var(--ok-soft); color: #0B7A3B; }
.tag.info { background: var(--primary-soft); color: var(--primary); }
.tag.mute { background: var(--soft-2); color: var(--ink-2); }

/* Reportes */
.panel[data-panel="3"] { flex-direction: column; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.kpi small { color: var(--ink-3); font-size: 12px; }
.kpi b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.kpi .up { color: var(--ok); font-size: 11.5px; font-weight: 500; }
.chart { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; min-height: 0; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-top: 8px; min-height: 120px; }
.bars span { flex: 1; height: var(--h); background: var(--primary-soft); border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.bars span.hl { background: var(--primary); }
.bars span:nth-child(2) { animation-delay: .05s; } .bars span:nth-child(3) { animation-delay: .1s; } .bars span:nth-child(4) { animation-delay: .15s; }
.bars span:nth-child(5) { animation-delay: .2s; } .bars span:nth-child(6) { animation-delay: .25s; } .bars span:nth-child(7) { animation-delay: .3s; } .bars span:nth-child(8) { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } }

/* Cumplimiento */
.comp { flex: 1; max-width: 560px; margin: 0 auto; align-self: center; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.comp-head { display: flex; justify-content: space-between; align-items: baseline; }
.comp-head b { font-size: 15px; }
.comp-head span { color: var(--ink-3); font-size: 12.5px; }
.comp-bar { height: 6px; border-radius: 6px; background: var(--soft-2); margin: 10px 0 14px; overflow: hidden; }
.comp-bar span { display: block; height: 100%; background: var(--ok); border-radius: 6px; animation: growX 1s var(--ease) both; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checklist li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.checklist li.ok::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist li.pend::before { border: 2px dashed var(--warn); }
.checklist em { font-style: normal; margin-left: auto; font-size: 11px; color: #A86200; background: var(--warn-soft); padding: 1px 8px; border-radius: 999px; }

.showcase-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Proof strip ---------- */
.proof-strip { padding: 40px 0 24px; }
.proof-title { text-align: center; font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.proof-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-list li { display: flex; flex-direction: column; gap: 2px; padding: 20px 18px; text-align: center; }
.proof-list li + li { border-left: 1px solid var(--line); }
.proof-list b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.proof-list span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--soft); }
.head-center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.head-center h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.1; margin-top: 16px; }
.head-center p { color: var(--ink-2); font-size: 17.5px; margin-top: 16px; }
.h2-left { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.035em; margin: 16px 0 28px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  grid-column: span 5; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 24px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card.b-wide { grid-column: span 7; flex-direction: row; align-items: stretch; }
.card.b-wide .card-copy { flex: 1; }
.card.b-wide .viz { flex: 1; }
.card-k { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.card h3 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 10px; }
.card-copy > p { color: var(--ink-2); font-size: 15.5px; }
.mini-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.mini-list li { font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.mini-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.card-link { display: inline-block; margin-top: 18px; font-weight: 500; font-size: 14.5px; color: var(--primary); text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.viz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-top: auto; }
.viz-h { font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.matrix span { aspect-ratio: 1.6; border-radius: 6px; position: relative; }
.r0 { background: #E8F5EC; } .r1 { background: #FDF3E1; } .r2 { background: #FDE7D7; } .r3 { background: #FCDADB; }
.dotme::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(229,72,77,.2); animation: pulse 1.6s infinite; }
.matrix-axes { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 8px; }

.viz-cam { display: grid; gap: 10px; }
.mini-cam { position: relative; height: 130px; border-radius: 10px; background: radial-gradient(140px 70px at 45% 60%, #4C5D72, transparent), linear-gradient(200deg, #2C394A, #172130); overflow: hidden; }
.access { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.acc-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.access b { display: block; font-size: 13.5px; font-weight: 600; }
.access small { color: var(--ink-3); font-size: 12px; }

.viz-shift { display: grid; gap: 10px; }
.shift { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); position: relative; }
.shift::after { content: ""; grid-column: 2; grid-row: 1; height: 22px; border-radius: 6px; background: var(--soft); }
.shift i { grid-column: 2; grid-row: 1; height: 22px; margin-left: var(--s); width: var(--w); border-radius: 6px; background: var(--primary); z-index: 1; }
.shift i.n { background: var(--ink); }
.shift i.p { background: var(--warn); }
.shift-scale { display: flex; justify-content: space-between; padding-left: 64px; font-size: 11px; color: var(--ink-3); }

.b-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.b-dark .card-k { color: #8FB4F5; }
.b-dark .card-copy > p { color: rgba(255,255,255,.72); }
.b-dark .btn { margin-top: 20px; }
.b-dark:hover { border-color: var(--ink); }
.viz-flow { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); box-shadow: none; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 18px; }
.flow-node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; font-size: 14px; font-weight: 500; }
.flow-node span { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 11px; }
.flow-node.hl { background: var(--primary); border-color: var(--primary); }
.flow-node.hl span { background: rgba(255,255,255,.2); }
.flow-line { width: 1.5px; height: 14px; margin-left: 23px; background: rgba(255,255,255,.25); }

.brands { display: flex; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 48px; flex-wrap: wrap; }
.brands > span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Comparación ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
.vs-card { border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); background: #fff; }
.vs-old { background: transparent; border-style: dashed; }
.vs-new { border: 1.5px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.vs-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.vs-h img { width: 22px; }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vs li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.vs li:first-child { border-top: 0; }
.vs-old li { color: var(--ink-3); }
.vs-old li::before { content: "✕"; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.vs-new li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Ley ---------- */
.ley { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ley-copy h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.035em; line-height: 1.1; margin: 16px 0; }
.ley-copy > p { color: var(--ink-2); font-size: 17px; }
.ley-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.ley-stats div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.ley-stats b { font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.ley-stats span { font-size: 13px; color: var(--ink-3); }

.quiz { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; min-height: 470px; display: flex; flex-direction: column; }
.quiz-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.bar { height: 4px; background: var(--soft-2); border-radius: 4px; margin: 12px 0 26px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 4px; transition: width .45s var(--ease); }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: fadeUp .4s var(--ease); }
.quiz-q { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.opts { display: grid; gap: 8px; }
.opts button {
  text-align: left; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opts button::after { content: "→"; color: var(--primary); opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); }
.opts button:hover, .opts button:focus-visible { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.opts button:hover::after, .opts button:focus-visible::after { opacity: 1; transform: none; }
.quiz-back { position: absolute; left: 28px; bottom: 22px; }
.res-lbl { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.res-level { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin: 4px 0 14px; }
.gauge { height: 10px; border-radius: 10px; background: linear-gradient(90deg, #DDF3E5, #FDEFD6 50%, #FCDCDD); position: relative; margin-bottom: 18px; }
.gauge span { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow); transition: left 1s var(--ease); }
.res-text { color: var(--ink-2); font-size: 15.5px; margin-bottom: 22px; }
.res-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.res-note { margin-top: 22px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 17px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; text-align: center; padding: 0 8px; }
.t-when { position: relative; display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.timeline li:last-child .t-when { background: var(--primary); color: #fff; border-color: var(--primary); }
.timeline h3 { font-size: 17px; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- SLAs ---------- */
.slas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sla { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sla:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sla b { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.sla span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.m-top { display: flex; align-items: center; gap: 14px; }
.m-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.m-ini { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 18px; }
.member h3 { font-size: 17px; letter-spacing: -0.015em; }
.m-role { font-size: 13.5px; color: var(--ink-3); }
.member > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.chips { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- Industrias ---------- */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ind { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; position: relative; transition: border-color .2s, background .2s; }
.ind b { font-weight: 600; font-size: 15.5px; }
.ind span { font-size: 13.5px; color: var(--ink-3); }
.ind::after { content: "→"; position: absolute; right: 16px; top: 18px; color: var(--primary); opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); }
.ind:hover { border-color: var(--primary); background: var(--primary-soft); }
.ind:hover::after { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.cert-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cert-h img { width: 24px; }
.cert dl { margin: 0; }
.cert dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cert dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.cert dt { color: var(--ink-3); }
.cert dd { margin: 0; font-weight: 500; text-align: right; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 1.75px solid var(--ink-3); border-bottom: 1.75px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; max-width: 1000px; margin: 0 auto; align-items: stretch; }
.wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; min-height: 440px; }
.wiz-steps { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 10px; border-top: 3px solid var(--soft-2); transition: color .2s, border-color .3s; }
.wiz-steps li span { width: 20px; height: 20px; border-radius: 50%; background: var(--soft-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; transition: .3s; }
.wiz-steps li.is-on { color: var(--ink); border-top-color: var(--primary); }
.wiz-steps li.is-on span { background: var(--primary); color: #fff; }
.wiz-steps li.is-done span { background: var(--ok); color: #fff; }
.wiz-steps li.is-done { border-top-color: var(--ok); }
.wiz-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.wiz-step.is-active { display: block; animation: fadeUp .4s var(--ease); }
.wiz-q { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; padding: 0; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span { display: flex; flex-direction: column; gap: 2px; padding: 14px 40px 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s; position: relative; }
.pick span::after { content: ""; position: absolute; right: 14px; top: 15px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff center/14px no-repeat; transition: .15s; }
.pick b { font-weight: 600; font-size: 15.5px; }
.pick small { color: var(--ink-3); font-size: 13px; }
.pick label:hover span { border-color: var(--line-2); }
.pick input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.pick input:checked + span::after { background-color: var(--primary); border-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.f > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.f em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.f input, .f select, .f textarea { width: 100%; font: 400 15px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.f select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A94A3' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat; cursor: pointer; }
.f textarea { resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-3); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.f.invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; }
.wiz-nav .btn { margin-left: auto; min-width: 140px; }
.wiz-status { font-size: 13.5px; color: var(--ink-2); min-height: 18px; margin-top: 10px; text-align: right; }
.wiz-status.err { color: var(--danger); }
.wiz-done { margin: auto 0; text-align: center; animation: fadeUp .45s var(--ease); }
.done-ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.done-t { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.done-s { color: var(--ink-2); margin-top: 6px; }

.direct { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.direct-h { font-weight: 600; font-size: 15px; padding: 4px 4px 8px; }
.direct-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.direct-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.direct-item b { display: block; font-size: 14.5px; font-weight: 600; }
.direct-item small { color: var(--ink-3); font-size: 13px; }
.d-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.d-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-ic.wa { background: #E7F8EE; color: #1DAA55; }
.d-ic.wa svg { width: 20px; height: 20px; stroke: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 36px; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-3); font-size: 14.5px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.footer-cols a, .footer-cols span { display: block; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.footer-cols a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(16,24,40,.2); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Aparición ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
/* Con "reducir movimiento" se quitan efectos bruscos (scroll suave, apariciones),
   pero se mantienen las animaciones suaves de la marca: escena, carrusel y pestañas. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-soft { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav-links.open {
    display: flex; position: fixed; left: 0; right: 0; top: 64px; bottom: auto; height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; background: #fff;
    flex-direction: column; gap: 2px; padding: 16px 24px; margin: 0; animation: fadeUp .25s var(--ease);
  }
  .nav-links.open > a { font-size: 18px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-links.open .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .nav-mobile-actions .btn { padding: 13px; }

  .app { grid-template-columns: 1fr; height: 440px; }
  .app-side { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.b-wide { grid-column: span 2; }
  .proof-list { grid-template-columns: repeat(3, 1fr); }
  .proof-list li:nth-child(4) { border-left: 0; }
  .proof-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ley, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .timeline::before { left: 44px; right: auto; top: 10px; bottom: 10px; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .timeline li { text-align: left; display: grid; grid-template-columns: 90px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .timeline li .t-when { grid-row: span 2; justify-self: center; align-self: start; margin: 0; }
  .slas { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .inds { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 48px; }
  .hero-ctas .btn { width: 100%; }
  .showcase { margin-top: 40px; }
  .tabs { display: flex; }
  .app { height: auto; min-height: 420px; border-radius: 16px; }
  .panel { flex-direction: column; padding: 12px; }
  .cams { min-height: 220px; }
  .map { min-height: 180px; }
  .roster th:nth-child(4), .roster td:nth-child(4) { display: none; }
  .roster td, .roster th { padding: 10px 6px; }
  .checklist { grid-template-columns: 1fr; }
  .kpi b { font-size: 21px; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .proof-list li:nth-child(-n+2) { border-top: 0; }
  .proof-list li:nth-child(2n) { border-left: 1px solid var(--line) !important; }
  .proof-list li:last-child { grid-column: span 2; border-left: 0 !important; }
  .section { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.b-wide { grid-column: span 1; flex-direction: column; }
  .vs { grid-template-columns: 1fr; }
  .ley-stats { grid-template-columns: 1fr; }
  .quiz, .wizard { padding: 20px; }
  .slas { grid-template-columns: 1fr 1fr; }
  .sla b { font-size: 28px; }
  .inds { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .wiz-steps li { font-size: 0; gap: 0; }
  .wiz-steps li span { font-size: 11px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Ajustes móviles: pestañas deslizables y nav compacta */
@media (max-width: 640px) {
  .tabs { justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .tab { flex-shrink: 0; scroll-snap-align: start; }
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 13.5px; }
  .nav-inner { gap: 12px; }
}

/* ---------- Ajustes v4: foco en personas, respaldo y equipo ---------- */
.h1-lead { color: var(--primary); }

.proof-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proof-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 8px 8px; background: #fff; }
.proof-group .proof-title { margin-bottom: 8px; font-weight: 500; }
.proof-group .proof-list { grid-template-columns: repeat(3, 1fr); border: 0; }
.proof-group .proof-list li { padding: 12px 14px 14px; }
.proof-group .proof-list li + li { border-left: 1px solid var(--line); border-top: 0; }

.b-feature { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow); }
.b-feature .card-k { background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.viz-people { display: flex; flex-direction: column; gap: 8px; }
.person-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.person-row b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.person-row small { color: var(--ink-3); font-size: 11.5px; }
.viz-people .viz-shift { margin-top: 6px; }

.timeline { grid-template-columns: repeat(6, 1fr); }
.timeline::before { left: 8%; right: 8%; }

.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.leader { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.l-head { display: flex; align-items: center; gap: 16px; }
.l-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.l-ini { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #3D7BE6); color: #fff; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.leader h3 { font-size: 22px; letter-spacing: -0.025em; }
.l-role { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.l-stats-2 { grid-template-columns: repeat(2, 1fr); }
.l-stats div { padding: 14px; display: flex; flex-direction: column; gap: 2px; background: var(--soft); }
.l-stats div + div { border-left: 1px solid var(--line); }
.l-stats b { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.l-stats span { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.l-bio { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.l-bio + .l-bio { margin-top: -10px; }
.l-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.l-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.l-timeline li { position: relative; display: flex; flex-direction: column; }
.l-timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--primary); }
.l-timeline b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.l-timeline span { font-size: 13px; color: var(--ink-3); }
.l-edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.l-edu li { display: flex; flex-direction: column; padding: 10px 14px; border-top: 1px solid var(--line); }
.l-edu li:first-child { border-top: 0; }
.l-edu li:nth-child(-n+3) { background: var(--primary-soft); }
.l-edu b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.l-edu span { font-size: 12.5px; color: var(--ink-3); }
.l-skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.l-skills li { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.l-skills b { font-size: 14px; font-weight: 600; }
.l-skills span { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

@media (max-width: 1024px) {
  .proof-groups, .leaders { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .proof-group .proof-list { grid-template-columns: 1fr; }
  .proof-group .proof-list li + li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .proof-group .proof-list li:last-child { grid-column: auto; }
  .leader { padding: 22px; }
  .l-stats b { font-size: 21px; }
  .l-stats span { font-size: 11.5px; }
  .l-skills { grid-template-columns: 1fr; }
}

/* ---------- v5: isotipo en hero y bento ordenado ---------- */
.hero-mark { position: relative; width: 76px; height: 76px; margin: 0 auto 26px; display: grid; place-items: center; }
.mark-tile {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 22px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -8px rgba(27,95,209,.28);
  animation: tileIn .8s var(--ease) both;
}
.mark-tile img { width: 46px; height: 46px; }
.ring { position: absolute; inset: 0; border-radius: 26px; border: 1.5px solid rgba(27,95,209,.35); animation: ringOut 3.2s ease-out infinite; }
.ring-b { animation-delay: 1.6s; }
@keyframes ringOut { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes tileIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
.hero { padding-top: 64px; }

.bento .card.b-full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; padding: 36px; }
.bento .card.b-full .card-copy { flex: 1.1; }
.bento .card.b-full .viz { flex: 1; margin-top: 0; }
.bento .card.b-half { grid-column: span 6; }
.bento .card.b-half .viz { margin-top: auto; }
.b-feature .mini-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.b-dark .viz-flow { flex-direction: row; align-items: center; justify-content: space-between; gap: 0; padding: 22px; }
.b-dark .flow-line { width: auto; flex: 1; height: 1.5px; margin: 0; min-width: 16px; }
.viz-cam .mini-cam { height: 150px; }
.viz-risk .matrix span { aspect-ratio: 2.2; }

@media (max-width: 1024px) {
  .bento .card.b-full { flex-direction: column; align-items: stretch; }
  .bento .card.b-half { grid-column: span 2; }
  .b-dark .viz-flow { flex-direction: column; align-items: stretch; }
  .b-dark .flow-line { width: 1.5px; height: 14px; flex: none; margin-left: 23px; }
}
@media (max-width: 640px) {
  .bento .card.b-full, .bento .card.b-half { grid-column: span 1; padding: 24px; }
  .b-feature .mini-list { grid-template-columns: 1fr; }
}
.hero-mark { margin-bottom: 34px; }
@keyframes ringOut { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 640px) {
  .hero .pill { font-size: 10.5px; letter-spacing: .03em; padding: 5px 10px; }
  .hero-mark, .mark-tile { width: 64px; height: 64px; }
  .mark-tile { border-radius: 18px; }
  .mark-tile img { width: 38px; height: 38px; }
}

/* ---------- v6: logo flotante y carrusel de marcas ---------- */
.hero-mark { display: none; }
.hero-logo { position: relative; width: 112px; height: 112px; margin: 0 auto 40px; display: grid; place-items: center; }
.hero-logo-img { position: relative; z-index: 1; width: 112px; height: 112px; animation: float 5s ease-in-out infinite, logoIn .9s var(--ease) both; filter: drop-shadow(0 14px 22px rgba(15,29,46,.18)); }
.hero-logo-shadow { position: absolute; bottom: -22px; left: 50%; width: 70px; height: 10px; margin-left: -35px; border-radius: 50%; background: rgba(15,29,46,.16); filter: blur(5px); animation: shadowPulse 5s ease-in-out infinite; }
.hero-logo .ring { inset: 0; border-radius: 50%; border: 1.5px solid rgba(27,95,209,.28); animation: ringOut 3.6s ease-out infinite; }
.hero-logo .ring-b { animation-delay: 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shadowPulse { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .6; } }
@keyframes logoIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ringOut { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.brands { display: block; margin-top: 56px; text-align: center; }
.brands-title { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 72px; padding-right: 72px; flex-shrink: 0; min-width: 100%; justify-content: space-around; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-track li { flex-shrink: 0; display: grid; place-items: center; height: 48px; }
.marquee-track img { width: auto; filter: grayscale(1) opacity(.55); transition: filter .3s; }
.marquee-track img:hover { filter: none; }
.lg-hik { height: 22px; } .lg-dahua { height: 26px; } .lg-axis { height: 28px; } .lg-hanwha { height: 44px; }
.lg-zk { height: 26px; } .lg-ajax { height: 18px; }
.lg-suprema { height: 20px; filter: brightness(0) opacity(.55) !important; }
.lg-suprema:hover { filter: brightness(0) opacity(.9) !important; }

@media (max-width: 640px) {
  .hero-logo, .hero-logo-img { width: 88px; height: 88px; }
  .hero-logo { margin-bottom: 32px; }
  .marquee-track { gap: 48px; padding-right: 48px; animation-duration: 24s; }
}
.hero-logo-img { filter: none; }
.hero-logo-shadow { bottom: -26px; background: rgba(15,29,46,.22); }

/* ---------- v7: retratos del equipo ---------- */
.leader { padding: 14px 14px 32px; }
.leader > :not(.l-portrait) { margin-left: 18px; margin-right: 18px; }
.l-portrait {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #E3EAF6 0%, #F4F6F9 55%, #FFFFFF 100%);
  border: 1px solid var(--line);
}
.l-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.leader:hover .l-portrait img { transform: scale(1.03); }
.l-head { gap: 0; }
.leader h3 { font-size: 24px; }
@media (max-width: 640px) {
  .leader { padding: 10px 10px 24px; }
  .leader > :not(.l-portrait) { margin-left: 12px; margin-right: 12px; }
  .l-portrait { aspect-ratio: 1 / 1; }
}

/* ---------- v8: retrato mediano junto al nombre ---------- */
.leader { padding: 32px; }
.leader > :not(.l-portrait) { margin-left: 0; margin-right: 0; }
.l-head { gap: 20px; }
.l-photo-lg {
  width: 124px; height: 124px; border-radius: 22px; object-fit: cover; object-position: 50% 18%;
  background: radial-gradient(120% 90% at 50% 100%, #E3EAF6 0%, #F4F6F9 60%, #fff 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow); mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .leader { padding: 22px; }
  .leader > :not(.l-portrait) { margin-left: 0; margin-right: 0; }
  .l-head { gap: 16px; }
  .l-photo-lg { width: 96px; height: 96px; border-radius: 18px; }
  .leader h3 { font-size: 20px; }
}
.l-photo-lg { object-position: 50% 50%; }
/* Fotos completas, sin recorte */
.l-photo-lg { width: 160px; height: 160px; object-fit: contain; object-position: center; border-radius: 22px; }
@media (max-width: 640px) { .l-photo-lg { width: 120px; height: 120px; border-radius: 18px; } }

/* ---------- v13: videos de cámaras en el panel Monitoreo ---------- */
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cam .cam-lbl, .cam .rec, .cam .cam-ts { z-index: 1; }
.cam-ts { position: absolute; left: 10px; top: 8px; font: 500 10.5px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #fff; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cam .rec::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 1px; animation: blink 1.2s infinite; }

/* Menú: seis enlaces caben en una línea en pantallas medianas */
.nav-links > a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1260px) {
  .nav-inner { gap: 14px; }
  .nav-links > a { padding: 8px 8px; font-size: 14px; }
  .nav-actions .btn-soft { display: none; }
}

/* ---------- Franja "Trabaje con nosotros" (página principal) ---------- */
.jobs-band-wrap { padding: 0 0 96px; }
.jobs-band {
  display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--primary-soft) 0%, #F6F9FE 60%, #fff 100%); border: 1px solid #D6E3F8;
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.jobs-band:hover { border-color: #B9CFF3; box-shadow: var(--shadow); transform: translateY(-2px); }
.jobs-band-ic { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--primary); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.jobs-band-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jobs-band-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.jobs-band-txt b { font-size: 18px; letter-spacing: -0.02em; }
.jobs-band-txt span { color: var(--ink-2); font-size: 15px; }
.jobs-band-btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .jobs-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .jobs-band-btn { width: 100%; }
  .jobs-band-wrap { padding-bottom: 72px; }
}

/* Versión blanca del logo: solo se usaba sobre fondos oscuros */
.logo-light { display: none; }
.nav-logo img { height: 24px; width: auto; }

/* Dirección (NAP) en el pie de página, compartida con el resto del sitio */
.footer-nap { font-style: normal; font-size: 13.5px; color: var(--ink-3); line-height: 1.7; margin-top: 14px; }
.footer-nap a { color: var(--ink-2); text-decoration: none; }
.footer-nap a:hover { color: var(--primary); }

/* ---------- SEO: enlaces internos en el inicio ---------- */
.card-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.card-link-2 { color: var(--ink-2); font-weight: 500; }
.card-link-2:hover { color: var(--primary); }
.ley-guide { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--primary); text-decoration: none; }
.ley-guide:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq details p a { color: var(--primary); text-underline-offset: 3px; }
.zonas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zona { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
.zona:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.zona-tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }
.zona b { font-size: 19px; letter-spacing: -0.02em; margin-top: 6px; }
.zona > span:not(.zona-tag) { color: var(--ink-2); font-size: 14.5px; }
.zona i { font-style: normal; font-weight: 600; font-size: 14px; color: var(--primary); margin-top: auto; padding-top: 10px; }
.jobs-after-zonas { padding-top: 72px; }
@media (max-width: 960px) { .zonas { grid-template-columns: 1fr; } }

/* ---------- Fotografías reales ---------- */
.card-photo { position: relative; margin: 0; flex: 1; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card-photo figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(15,29,46,.75); padding: 5px 12px; border-radius: 999px; }
.tw-photo { margin: 0 0 56px; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 8; border: 1px solid var(--line); }
.tw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
@media (max-width: 640px) { .tw-photo { aspect-ratio: 4 / 3; margin-bottom: 40px; } .card-photo { min-height: 220px; } }

/* Fotografías completas (16:9, sin recorte) */
.card-photo { flex: none; min-height: 0; aspect-ratio: 16 / 9; align-self: center; width: 100%; }
.card-photo img { position: static; width: 100%; height: 100%; object-fit: contain; }
.tw-photo { aspect-ratio: 16 / 9; }
.tw-photo img { object-fit: contain; }
@media (max-width: 640px) { .tw-photo { aspect-ratio: 16 / 9; } .card-photo { min-height: 0; } }
.bento .card.b-full .card-photo { width: auto; flex: 1 1 0; min-width: 0; }
.bento .card.b-full .card-copy { flex: 1.1 1 0; }
@media (max-width: 1024px) { .bento .card.b-full .card-photo { width: 100%; flex: none; } }

/* ---------- Botón «Soy cliente»: acceso al portal ---------- */
.btn-cliente { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 5px; border-radius: 999px; text-decoration: none; color: #fff;
  background: var(--ink); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn-cliente:hover { background: #1A2B40; transform: translateY(-1px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn-cliente:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-cliente-sello { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); flex-shrink: 0; }
.btn-cliente-sello img { width: 16px; height: 16px; display: block; }
.btn-cliente-sello::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); opacity: 0; }
.btn-cliente:hover .btn-cliente-sello::after { animation: sello-pulso 1.4s var(--ease) infinite; }
@keyframes sello-pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.btn-cliente-txt { display: grid; line-height: 1.1; text-align: left; }
.btn-cliente-txt b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.btn-cliente-txt small { font-size: 10.5px; color: rgba(255, 255, 255, .7); font-weight: 500; letter-spacing: .02em; }
.btn-cliente-flecha { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s var(--ease), opacity .2s; }
.btn-cliente:hover .btn-cliente-flecha { transform: translateX(2px); opacity: 1; }
.nav-actions { align-items: center; }
.nav-actions .btn-cliente { margin-right: 4px; }
.btn-cliente-movil { width: 100%; height: 52px; padding: 0 16px 0 8px; border-radius: 14px; }
.btn-cliente-movil .btn-cliente-sello { width: 36px; height: 36px; }
.btn-cliente-movil .btn-cliente-txt b { font-size: 15px; }
.btn-cliente-movil .btn-cliente-flecha { margin-left: auto; }
.footer-portal { display: inline-flex; align-items: center; gap: 6px; }
.footer-portal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
@media (max-width: 1180px) { .nav-actions .btn-cliente .btn-cliente-txt small { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn-cliente:hover .btn-cliente-sello::after { animation: none; } }
.nav-mobile-actions .btn-cliente-movil { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .nav-actions .btn-cliente { display: none; }
}
/* el desenfoque de la barra convertía al menú del celular en hijo de 64 px de alto: con el menú abierto la barra es blanca y sin desenfoque */
.nav:has(.nav-links.open) { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
