/* =========================================================
   Iberlayer — hoja de estilos única (sin dependencias externas)
   Colores y tamaños: cambie las variables de :root.
   ========================================================= */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050A18;          /* fondo general */
  --bg-2: #040812;        /* secciones alternas */
  --bg-3: #030713;        /* pie */
  --surface: #0B1530;     /* tarjetas */
  --surface-2: #071028;
  --line: rgba(125, 211, 252, 0.14);
  --line-strong: rgba(56, 189, 248, 0.45);
  --text: #E8EEF9;
  --text-strong: #F4F7FC;
  --muted: #A9B8D3;
  --muted-2: #7F91B0;
  --accent: #38BDF8;      /* cian principal */
  --accent-2: #2563EB;    /* azul degradado */
  --accent-soft: rgba(56, 189, 248, 0.10);
  --accent-text: #7DD3FC;
  --accent-text-2: #BAE6FD;
  --ok: #34D399;
  --warn: #FDBA74;
  --danger: #F87171;
  --radius: 14px;
  --radius-s: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text-2); }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #050A18; padding: 8px 12px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.center { text-align: center; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-text); text-transform: uppercase; margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.h-xl { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.03; }
.h-l  { font-size: clamp(28px, 3.6vw, 40px); }
.h-m  { font-size: clamp(22px, 2.6vw, 28px); }
.h-s  { font-size: 20px; font-weight: 700; margin-top: 16px; }
.accent { color: var(--accent); }
.ok { color: var(--ok); }

.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section.tight { padding: 48px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.start { align-items: start; }
.split.rev > :first-child { order: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 700; padding: 13px 22px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #050A18 !important; box-shadow: 0 0 0 1px rgba(56,189,248,.4), 0 10px 28px rgba(56,189,248,.22); }
.btn-primary:hover { background: #5CCBFA; }
.btn-ghost { color: var(--text) !important; border-color: rgba(183,196,219,.3); background: transparent; }
.btn-ghost:hover { border-color: rgba(183,196,219,.6); background: rgba(255,255,255,.03); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn-row.center { justify-content: center; }

/* ---------- Tarjetas ---------- */
.card { background: linear-gradient(180deg, rgba(11,21,48,.85), rgba(7,14,34,.85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card.plain { background: rgba(11,21,48,.5); }
.ico { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(125,211,252,.2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ico::before { content: ""; width: 22px; height: 22px; background: var(--accent-text); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-protection::before { --m: url("../img/icons/ico-protection.svg"); }
.ico-filter::before { --m: url("../img/icons/ico-filter.svg"); }
.ico-bug::before { --m: url("../img/icons/ico-bug.svg"); }
.ico-sandboxing::before { --m: url("../img/icons/ico-sandboxing.svg"); }
.ico-anti-ransomware::before { --m: url("../img/icons/ico-anti-ransomware.svg"); }
.ico-phishing::before { --m: url("../img/icons/ico-phishing.svg"); }
.ico-fraud::before { --m: url("../img/icons/ico-fraud.svg"); }
.ico-dlp::before { --m: url("../img/icons/ico-dlp.svg"); }
.ico-blacklist::before { --m: url("../img/icons/ico-blacklist.svg"); }
.ico-outbox::before { --m: url("../img/icons/ico-outbox.svg"); }
.ico-encryption::before { --m: url("../img/icons/ico-encryption.svg"); }
.ico-console::before { --m: url("../img/icons/ico-console.svg"); }
.ico-rewrite-url::before { --m: url("../img/icons/rewrite-url.svg"); }
.ico-integracion-api::before { --m: url("../img/icons/integracion-api.svg"); }
.ico-clue::before { --m: url("../img/icons/clue.svg"); }
.ico-intregations-edrs::before { --m: url("../img/icons/intregations-edrs.svg"); }
.ico-cloud::before { --m: url("../img/icons/ico-cloud.svg"); }
.ico-performance::before { --m: url("../img/icons/ico-performance.svg"); }
.ico-savings::before { --m: url("../img/icons/ico-savings.svg"); }
.ico-support::before { --m: url("../img/icons/ico-support.svg"); }
.ico-email::before { --m: url("../img/icons/ico-email.svg"); }
.ico-attachment::before { --m: url("../img/icons/ico-attachment.svg"); }
.ico-place::before { --m: url("../img/icons/ico-place.svg"); }
.ico-flow-parallel::before { --m: url("../img/icons/flow-parallel.svg"); }
.ico-signature::before { --m: url("../img/icons/ico-signature.svg"); }
.ico-insights::before { --m: url("../img/icons/ico-insights.svg"); }

.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(125,211,252,.08); color: var(--accent-text-2); border: 1px solid rgba(125,211,252,.15); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(125,211,252,.25); }
.chips .eyebrow { margin: 0 8px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 1px solid rgba(125,211,252,.25); border-radius: 999px; background: var(--accent-soft); font-family: var(--mono); font-size: 12px; color: var(--accent-text); letter-spacing: .04em; margin-bottom: 20px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: 0 0 20px; height: 20px; border-radius: 50%; background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.5); color: var(--ok); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.stat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(11,21,48,.6); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.notice { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.notice.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #6EE7B7; }
.notice.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #FCA5A5; }

/* ---------- Cabecera / navegación ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); border-bottom: 1px solid var(--line); background: rgba(5,10,24,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 154px; height: auto; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle-bar { display: block; height: 2px; width: 24px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: #B7C4DB; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .is-current > .nav-link { color: var(--text-strong); }
.is-current > .nav-link { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #0B1530; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5); display: none; flex-direction: column; gap: 2px; z-index: 50; }
.sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.sub-menu a:hover { background: rgba(125,211,252,.08); }
.sub-menu a[aria-current="true"] { color: var(--accent); }
.has-sub.open > .sub-menu { display: flex; }
.sub-menu.mega { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 6px; }
.has-sub.open > .sub-menu.mega { display: grid; }
.sub-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; }
.sub-card strong { color: var(--text-strong); font-size: 15px; }
.sub-card span { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.sub-links { grid-column: 1 / -1; display: flex; gap: 4px; border-top: 1px solid var(--line); padding-top: 6px; }
.sub-links a { color: var(--accent-text); font-size: 13px; }
.lang-switch .sub-menu { left: auto; right: 0; min-width: 160px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-only-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0A1636 0%, #071028 45%, var(--bg) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { top: -260px; left: 50%; transform: translateX(-50%); width: 1100px; height: 640px; background: radial-gradient(closest-side, rgba(37,99,235,.45), transparent); filter: blur(60px); }
.hero::after { top: 120px; right: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(56,189,248,.18), transparent); filter: blur(80px); }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 20px; }
.hero .lead { max-width: 540px; margin-bottom: 24px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 16px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Consola en tiempo real (home) */
.console { border-radius: 16px; border: 1px solid rgba(125,211,252,.18); background: linear-gradient(180deg, #0B1530, #070E22); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(125,211,252,.12); font-family: var(--mono); font-size: 11px; color: var(--accent-text); letter-spacing: .04em; }
.console-head .muted { color: var(--muted-2); }
.console-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; animation: blink 2s ease-in-out infinite; }
.console-kpis { padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(125,211,252,.12); }
.kpi small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted-2); }
.kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.accent b { color: var(--accent); }
.kpi.warn { background: rgba(251,146,60,.08); border-color: rgba(251,146,60,.25); }
.kpi.warn small, .kpi.warn b { color: var(--warn); }
.console-log { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(125,211,252,.08); font-size: 13px; animation: rise .5s ease both; }
.log-row:nth-child(2) { animation-delay: .15s; } .log-row:nth-child(3) { animation-delay: .3s; } .log-row:nth-child(4) { animation-delay: .45s; }
.log-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.log-row .dot.warn { background: var(--warn); }
.log-row time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); flex-shrink: 0; }
.log-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #D7E0F0; }
.log-row em { font-style: normal; font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(125,211,252,.1); color: var(--accent-text-2); flex-shrink: 0; }

/* ---------- Carrusel de clientes ---------- */
.clients { padding: 28px 0; border-bottom: 1px solid var(--line); }
.clients .eyebrow { margin-bottom: 18px; }
.marquee { overflow: hidden; -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 { display: flex; align-items: center; gap: 64px; width: max-content; padding-right: 64px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; width: 140px; height: 48px; display: flex; align-items: center; justify-content: center; opacity: .85; }
.marquee-item img { max-height: 44px; width: auto; }

/* ---------- Diagramas ---------- */
.diagram { border-radius: 18px; border: 1px solid rgba(125,211,252,.18); background: linear-gradient(180deg, rgba(11,21,48,.85), rgba(7,14,34,.85)); padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.diagram-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.diagram-head .eyebrow { margin: 0; }
.diagram-head .mono { font-size: 11px; color: var(--muted-2); }
.flow-arrow { flex: 0 0 56px; width: 56px; height: 24px; }
.flow-arrow path.line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.flow-arrow path.head { stroke: var(--accent); stroke-width: 2; fill: none; }
.flow-arrow.danger path { stroke: var(--danger); }
.flow-arrow.dim path.line { stroke: #4B5B78; animation: none; stroke-dasharray: 3 5; }
.flow-arrow.dim path.head { stroke: #4B5B78; }
.flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.flow-node { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow-node .orb { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(183,196,219,.3); display: flex; align-items: center; justify-content: center; color: #B7C4DB; }
.flow-node .orb.ok { border-radius: 16px; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.08); color: var(--ok); }
.flow-node b { font-size: 14px; }
.flow-node small { font-size: 12px; color: var(--muted-2); line-height: 1.4; }
.flow-core { flex: 1 1 420px; min-width: 0; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--accent-soft); padding: 18px 14px 14px; position: relative; }
.flow-core .tag { position: absolute; top: -11px; left: 14px; padding: 2px 10px; border-radius: 6px; background: var(--accent); color: #050A18; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.pipe-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; background: #0B1530; border: 1px solid rgba(125,211,252,.18); text-align: center; }
.pipe-step small { font-family: var(--mono); font-size: 10px; color: var(--accent-text); }
.pipe-step b { font-size: 12px; line-height: 1.2; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.i-ok { background: var(--ok); } .i-warn { background: var(--warn); } .i-danger { background: var(--danger); } .i-info { background: var(--accent-text); }

/* Embudo AMBAR */
.funnel { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.funnel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-radius: 10px; border: 1px solid rgba(125,211,252,.22); background: rgba(11,21,48,.5); animation: rise .6s ease both; }
.funnel-row > span:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.funnel-row small { font-family: var(--mono); font-size: 11px; color: var(--accent-text); flex-shrink: 0; }
.funnel-row b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-row .d { font-size: 12px; color: var(--muted); white-space: nowrap; }
.funnel-row.w1 { width: 100%; } .funnel-row.w2 { width: 92%; animation-delay: .1s; } .funnel-row.w3 { width: 84%; background: rgba(11,21,48,.7); animation-delay: .2s; }
.funnel-row.w4 { width: 76%; background: rgba(11,21,48,.8); animation-delay: .3s; } .funnel-row.w5 { width: 68%; background: rgba(11,21,48,.9); animation-delay: .4s; }
.funnel-row.w6 { width: 60%; background: rgba(56,189,248,.12); animation-delay: .5s; }
.funnel-down { width: 24px; height: 28px; }
.funnel-down path.line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.funnel-down path.head { stroke: var(--accent); stroke-width: 2; fill: none; }
.verdicts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.verdict { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.verdict.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); color: #6EE7B7; }
.verdict.warn { background: rgba(253,186,116,.12); border: 1px solid rgba(253,186,116,.4); color: var(--warn); }
.verdict.danger { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #FCA5A5; }

/* Pasos (adjuntos) */
.steps-flow { display: flex; align-items: stretch; flex-wrap: wrap; }
.step-item { display: flex; align-items: center; flex: 1 1 180px; min-width: 0; }
.step-card { flex: 1 1 auto; min-width: 0; height: 100%; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(11,21,48,.9), rgba(7,14,34,.9)); display: flex; flex-direction: column; gap: 8px; }
.step-card .top { display: flex; justify-content: space-between; align-items: center; }
.step-card .top .ico { margin: 0; width: 36px; height: 36px; }
.step-card .top .ico::before { width: 18px; height: 18px; }
.step-card .top small { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.step-card b { font-size: 15px; }
.step-card p { font-size: 12px; color: var(--muted); margin: 0; }
.step-item .flow-arrow { flex: 0 0 36px; width: 36px; height: 20px; }
.notes-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.notes-4 div { padding: 14px 16px; border-radius: 10px; border: 1px dashed rgba(125,211,252,.25); font-size: 13px; color: var(--muted); }
.notes-4 strong { color: var(--text-strong); }

/* Fraude del CEO */
.fraud { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; gap: 0; }
.fraud-box { padding: 16px; border-radius: 12px; border: 1px solid rgba(183,196,219,.25); display: flex; flex-direction: column; gap: 6px; }
.fraud-box small { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.fraud-box b { font-size: 14px; }
.fraud-box span { font-size: 12px; color: var(--muted); }
.fraud-box.attacker { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.06); }
.fraud-box.attacker small { color: #FCA5A5; }
.fraud-box.target { opacity: .7; }
.fraud-box.guard { align-items: center; text-align: center; border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.1); animation: pulse 2.4s ease-out infinite; }
.fraud-box.guard .shield { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.fraud-box.guard span { color: var(--accent-text-2); font-size: 11px; }
.signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.signal { padding: 12px; border-radius: 10px; background: #0B1530; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.signal small { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--warn); }
.signal small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.signal b { font-size: 12px; line-height: 1.3; }

/* Arquitectura */
.arch { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; align-items: center; }
.arch-col { display: flex; flex-direction: column; gap: 12px; }
.arch-col .eyebrow { margin: 0; color: var(--muted-2); }
.arch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(11,21,48,.7); font-weight: 700; font-size: 14px; }
.arch-row .flow-arrow { flex: 0 0 40px; width: 40px; height: 12px; }
.arch-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arch-row .txt small { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.arch-core { border-radius: 20px; border: 1px solid rgba(56,189,248,.5); background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.35), rgba(11,21,48,.9) 70%); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.arch-core .shield { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; animation: pulse 2.4s ease-out infinite; }
.arch-core b { font-size: 20px; }
.cpds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.cpd { padding: 10px 6px; border-radius: 10px; background: rgba(5,10,24,.6); border: 1px solid rgba(125,211,252,.2); display: flex; flex-direction: column; gap: 2px; }
.cpd small { font-family: var(--mono); font-size: 10px; color: var(--accent-text); }
.cpd span { font-size: 11px; color: var(--muted); }
.arch-core .mono { font-size: 11px; color: var(--accent-text-2); line-height: 1.7; }

/* Cómo funciona (pasos numerados) */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; gap: 24px; }
.how::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 12px; position: relative; }
.how-step .num { width: 56px; height: 56px; border-radius: 50%; background: #0B1530; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--accent); }
.how-step b { font-size: 18px; }
.how-step p { font-size: 14px; color: var(--muted); margin: 0; }
.mx { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 16px; align-items: center; margin-top: 36px; }
.mx-box { padding: 18px; border-radius: 14px; border: 1px solid rgba(183,196,219,.2); font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--muted); overflow-x: auto; }
.mx-box small { display: block; color: var(--muted-2); letter-spacing: .08em; margin-bottom: 6px; }
.mx-box strong { color: var(--text-strong); font-weight: 600; }
.mx-box.after { border-color: var(--line-strong); background: var(--accent-soft); }
.mx-box.after small { color: var(--accent-text); }
.mx .flow-arrow { width: 64px; flex-basis: 64px; }

/* ---------- Secciones de producto (imagen + texto) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature.rev .feature-img { order: 2; }
.feature-img img { border-radius: 16px; }
.feature h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.feature p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-grid .card { padding: 18px; }
.feature-grid .card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-grid .card p { font-size: 12.5px; }
.feature-grid .ico { width: 36px; height: 36px; margin-bottom: 12px; }
.feature-grid .ico::before { width: 18px; height: 18px; }

/* ---------- Partners ---------- */
.partner { display: flex; gap: 20px; align-items: center; }
.partner img { width: 150px; height: auto; flex-shrink: 0; background: #fff; border-radius: 10px; padding: 10px; }
.partner h3 { font-size: 17px; margin-bottom: 6px; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select, textarea { width: 100%; background: rgba(5,10,24,.6); border: 1px solid rgba(125,211,252,.2); border-radius: 10px; padding: 12px 14px; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237DD3FC' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: #0B1530; }
textarea { resize: vertical; min-height: 96px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choices label, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.choices input, .check input { margin-top: 4px; accent-color: var(--accent); }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card .logo { margin: 0 auto 24px; width: 220px; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .cover { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .cover-ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0B1530, #1E3A8A); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.post-card h3 { font-size: 18px; }
.post-card .body a.more { margin-top: auto; font-size: 14px; font-weight: 600; }
.post { max-width: 760px; margin: 0 auto; }
.post .cover { border-radius: 16px; margin: 24px 0 32px; max-height: 420px; object-fit: cover; width: 100%; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; scroll-margin-top: 90px; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 17px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; color: #D7E0F0; }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: rgba(11,21,48,.8); color: var(--text-strong); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: rgba(11,21,48,.5); border-radius: 0 10px 10px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.legal-nav { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.legal-nav a:hover { background: rgba(125,211,252,.08); color: var(--text); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--muted-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { width: 220px; margin-bottom: 16px; }
.foot-small { font-size: 12.5px; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: 14px; color: var(--text-strong); margin-bottom: 4px; }
.foot-col a { color: var(--muted-2); }
.foot-col a:hover { color: var(--text); }
.eu-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(125,211,252,.2); background: rgba(11,21,48,.6); font-weight: 700; font-size: 13px; color: var(--text); }
.eu-flag { width: 36px; height: 24px; border-radius: 3px; flex-shrink: 0; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 40px 0 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cert { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cert img { width: auto; height: 48px; background: #fff; border-radius: 8px; padding: 6px; flex-shrink: 0; }
.cert-badge { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: #050A18; background: var(--accent); border-radius: 8px; padding: 12px 10px; flex-shrink: 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top { font-weight: 700; }

/* ---------- Página de trust (ENS/ISO/RGPD) ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust .card { display: flex; flex-direction: column; gap: 12px; }
.trust .logos { display: flex; gap: 10px; align-items: center; }
.trust .logos img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 6px; }
.trust .card h3 { margin: 0; }

/* ---------- Animaciones ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,.45); } 70% { box-shadow: 0 0 0 14px rgba(56,189,248,0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid, .grid-4, .certs, .notes-4, .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch { grid-template-columns: 1fr; }
  .arch-col .arch-row .flow-arrow { transform: rotate(90deg); }
  .post-list, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: #060C1F; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 20px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .site-nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; }
  .is-current > .nav-link { box-shadow: none; color: var(--accent); }
  .sub-menu, .sub-menu.mega { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 8px; display: none; grid-template-columns: 1fr; }
  .has-sub.open > .sub-menu, .has-sub.open > .sub-menu.mega { display: flex; flex-direction: column; }
  .sub-links { border-top: 0; padding-top: 0; flex-direction: column; }
  .lang-switch .sub-menu { left: 0; right: auto; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .nav-cta .btn { width: 100%; }
  .nav-only-mobile { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  .hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .hero-grid, .split, .feature, .legal-layout { grid-template-columns: 1fr; }
  .split.rev > :first-child, .feature.rev .feature-img { order: 0; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how::before { display: none; }
  .mx { grid-template-columns: 1fr; }
  .mx .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .fraud { grid-template-columns: 1fr; gap: 10px; }
  .fraud .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .flow { flex-direction: column; gap: 12px; }
  .flow-node { flex-basis: auto; }
  .flow > .flow-arrow { transform: rotate(90deg); }
  .flow-core { flex-basis: auto; width: 100%; }
  .steps-flow { flex-direction: column; gap: 10px; }
  .step-item { flex-basis: auto; flex-direction: column; }
  .step-item .flow-arrow { transform: rotate(90deg); margin: 4px auto; }
  .funnel-row.w1, .funnel-row.w2, .funnel-row.w3, .funnel-row.w4, .funnel-row.w5, .funnel-row.w6 { width: 100%; }
  .funnel-row .d { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .hero-stats, .grid-2, .grid-4, .feature-grid, .certs, .notes-4, .signals, .field-row, .post-list, .trust, .foot-grid, .pipe-grid, .cpds { grid-template-columns: 1fr; }
  .console-kpis { grid-template-columns: 1fr 1fr; }
  .console-kpis .kpi:last-child { grid-column: 1 / -1; }
  .diagram { padding: 18px 16px; }
  .partner { flex-direction: column; align-items: flex-start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .marquee-track { gap: 40px; }
}

/* ---------- Ajustes finos ---------- */
h1 + p, h2 + p, h2 + .lead, h2 + .muted, .h-l + p, .h-xl + p { margin-top: 14px; }
h2 + .checks, h2 + ul { margin-top: 16px; }
.hero h1 + .lead { margin-top: 0; }
.chips { margin-top: 24px; }
.chips + p { margin-top: 24px; }
.hero-grid + .diagram { margin-top: 48px; }
.stat b { font-size: clamp(28px, 2.8vw, 38px); }
.fraud-box b { word-break: break-word; }
.avatar { width: 72px !important; height: 72px; border-radius: 50% !important; padding: 0 !important; background: none !important; }
.trust .logos .eu-badge { margin-top: 0; }
.feature-img img { width: 100%; }
.section .hero-stats { margin-top: 0; }
.sub-menu a.sub-card { display: flex; }
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #060C1F; }
}
