/* ==========================================================================
   No Es Fraude — Verificación de identidad
   Tema oscuro, sobrio y formal. Un solo archivo, sin dependencias.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Superficies */
  --bg: #0a0d14;
  --surface: #10141d;
  --card: #151a25;
  --border: #232a38;
  --border-strong: #303949;

  /* Texto */
  --text: #e7e9ee;
  --muted: #9aa3b2;

  /* Acento (morado del antifaz) */
  --accent: #5e1675;
  --accent-bright: #8e44c0;
  --accent-soft: rgba(142, 68, 192, 0.12);
  --accent-line: rgba(142, 68, 192, 0.4);
  --flow-1: #8e44c0;   /* etapa 01 */
  --flow-2: #6f7fe0;   /* etapa 02 */

  /* Estados (solo para validación de formularios) */
  --ok: #4cc38a;
  --danger: #ff6b7a;

  /* Tipografía */
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Forma */
  --radius: 8px;
  --radius-sm: 6px;
  --gutter: 16px;
  --max: 1160px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  background: var(--accent-bright);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 13, 20, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Logo (isotipo + wordmark en HTML para heredar Montserrat) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .isotipo { height: 40px; width: auto; }
.brand-word { display: inline-flex; align-items: center; }
.brand-word .no-o { width: 1.1em; height: 1.1em; margin-inline: 0.04em 0.3em; }
.footer-brand .brand { font-size: 1.1rem; }
.footer-brand .brand .isotipo { height: 36px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { background: var(--accent-bright); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-bright); background: var(--accent-soft); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; }

/* Isotipo mini dentro del botón de portal */
.btn .brand-ico { width: 16px; height: 20px; margin-right: 2px; flex: none; }
.btn-sm .brand-ico { width: 14px; height: 18px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 600px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 112px); }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(94, 22, 117, 0.32), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 36px; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.875rem;
}
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent-bright); flex: none; }

/* Flujo ilustrativo: etapa -> controles -> etapa */
.flow {
  --chip: var(--accent-bright);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}
.flow-stage {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.flow-stage::before {
  content: "";
  position: absolute;
  top: -1px; left: 18%; right: 18%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--stage);
}
.flow-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin: 0 0 16px;
  border-radius: 10px;
  color: var(--stage);
  background: var(--accent-soft);
  background: color-mix(in srgb, var(--stage) 14%, transparent);
  border: 1px solid var(--accent-line);
  border-color: color-mix(in srgb, var(--stage) 38%, transparent);
}
.flow-ico svg { width: 22px; height: 22px; }
.flow-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.flow-stage ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: flow; }
.flow-stage li { counter-increment: flow; display: flex; gap: 8px; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.flow-stage li::before { content: counter(flow) "."; flex: none; font-weight: 600; color: var(--stage); }

/* Conector con la columna de controles */
.flow-link {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 34px;
  display: flex; flex-direction: column; justify-content: center;
}
.flow-link::before {            /* línea */
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border-strong);
}
.flow-link::after {             /* punta de flecha */
  content: "";
  position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 7px solid var(--muted);
  border-right: 0;
}
.flow-link li {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 5px 8px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--chip);
}
.flow-link li:first-child { padding-top: 11px; border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: 0; }
.flow-link li:last-child { padding-bottom: 11px; border-radius: 0 0 12px 12px; border: 1px solid var(--border); border-top: 0; }
.flow-link li:not(:first-child):not(:last-child) { border-inline: 1px solid var(--border); }
.chip {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--chip);
  background: var(--bg);
}
.chip svg { width: 19px; height: 19px; }
.flow-caption { grid-column: 1 / -1; margin: 22px 0 0; text-align: center; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent-line); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.card .more { display: inline-block; margin-top: 18px; font-size: 0.875rem; font-weight: 600; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--border-strong); }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -1px; left: 0;
  transform: translateY(-50%);
  background: var(--bg); padding-right: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.1em;
  color: var(--accent-bright);
}
.section-alt .steps li::before { background: var(--surface); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Seguridad / lista de características ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feature-list li:first-child { padding-top: 0; }
.feature-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-list .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-bright); }
.feature-list .icon svg { width: 20px; height: 20px; }
.feature-list h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band .container { max-width: 760px; }
.cta-band p { color: var(--muted); font-size: 1.0625rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Encabezado de página interna ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -10% auto auto; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(94, 22, 117, 0.22), transparent 70%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; margin-bottom: 16px; }

/* ---------- Detalle de soluciones ---------- */
.solution { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 72px); padding-block: 48px; border-bottom: 1px solid var(--border); }
.solution:first-of-type { padding-top: 0; }
.solution:last-of-type { border-bottom: 0; padding-bottom: 0; }
.solution h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.solution .num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent-bright); display: block; margin-bottom: 10px; }
.solution p { color: var(--muted); }
.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 0.9375rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px;
  background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3.200 3.200L13 4.500' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.500l3.200 3.200L13 4.500' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Bloque de código */
.code {
  background: #0c1018; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.8125rem; font-family: var(--font-mono); }
.code pre { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7; color: #c9d1e0; }
.code .k { color: #b98ae0; }
.code .s { color: #8fd0a6; }
.code .c { color: #6b7589; }

/* ---------- Principios (nosotros) ---------- */
.principle .num { font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--accent-bright); display: block; margin-bottom: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { border-left: 2px solid var(--accent-line); padding-left: 18px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.stat span { color: var(--muted); font-size: 0.875rem; }

/* ---------- Formulario ---------- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: clamp(18px, 2.4vw, 28px); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: 0.8125rem; font-weight: 500; }
.field label .req { color: var(--accent-bright); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 0.875rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 58px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.500l5 5 5-5' fill='none' stroke='%239aa3b2' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6678; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d475a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .error { display: none; position: absolute; top: 100%; left: 0; max-width: 100%; margin-top: 3px; color: var(--danger); font-size: 0.6875rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-bright); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success.is-visible { display: block; }
.form-success .icon { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 195, 138, 0.12); color: var(--ok); border: 1px solid rgba(76, 195, 138, 0.3); }
.form-success .icon svg { width: 26px; height: 26px; }
.form-success p { color: var(--muted); max-width: 440px; margin-inline: auto; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { display: flex; align-items: center; gap: 12px; }
.info-list .icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-bright); }
.info-list .icon svg { width: 16px; height: 16px; }
.info-list p { color: var(--muted); font-size: 0.875rem; line-height: 1.4; margin: 0; }
.notice { margin: 16px 0 0; padding: 10px 14px; border: 1px solid var(--border); border-left: 2px solid var(--accent-bright); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 0.75rem; line-height: 1.5; }

/* ---------- Página de contacto: todo en una pantalla ---------- */
body.page-contact { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.page-contact main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-page { position: relative; overflow: hidden; padding-block: clamp(20px, 4vh, 44px); }
.contact-page::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(94, 22, 117, 0.22), transparent 70%); pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  grid-template-areas: "head form" "aside form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: 20px;
  align-items: start;
}
.contact-head { grid-area: head; }
.contact-grid .form-card { grid-area: form; }
.contact-aside { grid-area: aside; }
.contact-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.contact-head .lead { font-size: 0.9375rem; line-height: 1.55; margin: 0; }
.eyebrow { margin-bottom: 10px; }

/* ---------- Texto legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal .draft { display: inline-block; margin-bottom: 24px; padding: 10px 16px; border: 1px dashed var(--accent-line); border-radius: var(--radius-sm); color: var(--text); font-size: 0.875rem; background: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 0.9375rem; max-width: 320px; margin: 16px 0 0; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.site-footer.is-compact { padding-top: 0; }
.is-compact .footer-bottom { padding-block: 16px; border-top: 0; }
.is-compact .footer-bottom a { color: var(--muted); }
.is-compact .footer-bottom a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8125rem; }

/* ---------- Soluciones (pilares) ---------- */
.pillar-hero { padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.pillar-hero::before { content: ""; position: absolute; inset: -50% -10% auto auto; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(94, 22, 117, 0.22), transparent 70%); pointer-events: none; }
.pillar-hero .container { position: relative; max-width: 820px; }
.pillar-hero h1 { margin-bottom: 14px; }
.pillar-hero p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.0625rem); margin: 0; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: left; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.pillar-card:hover { border-color: var(--accent-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.pillar-card .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.pillar-card .ico svg { width: 22px; height: 22px; }
.pillar-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.pillar-card .pdesc { color: var(--muted); font-size: 0.875rem; line-height: 1.5; margin: 0 0 auto; }
.pillar-card .meta { display: flex; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pillar-card .meta .m { display: flex; align-items: baseline; gap: 6px; }
.pillar-card .meta .m .n { font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.pillar-card .meta .m .l { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.pillar-card .tool-link { appearance: none; border: 0; background: none; padding: 14px 0 0; margin-top: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--accent-bright); text-align: left; border-top: 1px solid var(--border); transition: color 0.15s ease; }
.pillar-card .tool-link::after { content: "→"; font-size: 0.9375rem; transition: transform 0.15s ease; }
.pillar-card:hover .tool-link::after { transform: translateX(3px); }
.pillar-card .tool-link:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 3px; }

/* Modal de pilares */
.pm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.pm[hidden] { display: none; }
.pm-ov { position: absolute; inset: 0; background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pm-sheet { position: relative; z-index: 1; width: min(960px, 100%); max-height: 88vh; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; overflow: hidden; animation: pmPop 0.2s ease; }
@keyframes pmPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pm-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.pm-head .snum { width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.pm-head .snum svg { width: 22px; height: 22px; }
.pm-head h2 { font-size: 1.125rem; margin: 0; }
.pm-head .slane { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 2px; text-transform: uppercase; }
.pm-head .x { margin-left: auto; appearance: none; border: 1px solid var(--border-strong); background: var(--surface); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 1rem; display: grid; place-items: center; flex: none; transition: color 0.15s ease, border-color 0.15s ease; }
.pm-head .x:hover { color: var(--text); border-color: var(--accent-bright); }

.pm-body { padding: 20px 24px 24px; overflow: auto; flex: 1; min-height: 0; }
.pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.pm-stat { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; }
.pm-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--accent-bright); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pm-stat .lbl { font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; color: var(--text); }
.pm-help { color: var(--muted); font-size: 0.875rem; margin: 0 0 14px; }

.pm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-cat { appearance: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.pm-cat:hover { border-color: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.pm-cat .ci { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-bright); display: grid; place-items: center; margin-bottom: 6px; }
.pm-cat .ci svg { width: 16px; height: 16px; }
.pm-cat .cn { font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; line-height: 1.3; color: var(--text); }
.pm-cat .cm { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; text-transform: uppercase; }

.pm-crumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); }
.pm-crumb button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent-bright); font-family: inherit; font-weight: 600; font-size: 0.8125rem; }
.pm-crumb button:hover { text-decoration: underline; }
.pm-crumb .cur { color: var(--text); font-weight: 600; }

.pm-intro { font-size: 0.875rem; color: var(--muted); margin: 0 0 14px; }
.pm-intro b { color: var(--text); font-weight: 600; }

.pm-apis { display: grid; gap: 8px; }
.pm-api { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; transition: border-color 0.15s ease, background 0.15s ease; }
.pm-api:hover { border-color: var(--accent-bright); background: var(--card); }
.pm-api .num { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line); width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; letter-spacing: 0.04em; }
.pm-api .info h5 { font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; margin: 0 0 2px; }
.pm-api .info p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.4; }
.pm-api .method { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 5px; color: #fff; white-space: nowrap; }
.pm-api .method.post { background: var(--accent); }
.pm-api .method.get { background: var(--ok); }

@media (max-width: 1100px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } .pm-cats { grid-template-columns: repeat(2, 1fr); } .pm-stats { grid-template-columns: 1fr; } .pm-stat .num { font-size: 1.5rem; } }
@media (max-width: 500px) { .pillar-grid { grid-template-columns: 1fr; } .pm-cats { grid-template-columns: 1fr; } .pm-api { grid-template-columns: 32px 1fr; } .pm-api .method { grid-column: 2; justify-self: start; } }

/* Soluciones: dos columnas (Integrales / Descentralizadas) */
.sol-two-cols { flex: 1; display: grid; grid-template-columns: 1fr 2fr; gap: clamp(16px, 2vw, 32px); min-height: 0; }
.sol-col { display: flex; flex-direction: column; min-height: 0; }
.sol-col-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(0.875rem, 1.05vw, 1rem); margin: 0 0 clamp(10px, 1.4vh, 16px); color: var(--text); letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; }
.sol-col-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.integral-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); min-height: 0; }
.integral-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(12px, 1.3vw, 16px); min-height: 0; overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.integral-card:hover { border-color: var(--accent-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.integral-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-line); margin-bottom: 10px; }
.integral-card .ico svg { width: 20px; height: 20px; }
.integral-card h3 { font-size: clamp(0.875rem, 1.05vw, 1rem); margin: 0 0 6px; }
.integral-card p { color: var(--muted); font-size: clamp(0.6875rem, 0.82vw, 0.8125rem); line-height: 1.45; margin: 0; }

/* Columna derecha: pillar-grid ocupa el resto */
.sol-col .pillar-grid { flex: 1; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: clamp(8px, 1vw, 14px); min-height: 0; }
.pillar-section .sol-col .pillar-card { padding: clamp(9px, 0.95vw, 12px); }
.pillar-section .sol-col .pillar-card .ico { width: 30px; height: 30px; margin-bottom: 6px; }
.pillar-section .sol-col .pillar-card .ico svg { width: 16px; height: 16px; }
.pillar-section .sol-col .pillar-card h3 { font-size: clamp(0.75rem, 0.9vw, 0.875rem); margin-bottom: 3px; }
.pillar-section .sol-col .pillar-card .pdesc { font-size: clamp(0.625rem, 0.78vw, 0.75rem); line-height: 1.35; -webkit-line-clamp: 5; }
.pillar-section .sol-col .pillar-card .meta { margin-top: 4px; padding-top: 5px; gap: 6px; flex-wrap: nowrap; }
.pillar-section .sol-col .pillar-card .meta .m { gap: 3px; min-width: 0; }
.pillar-section .sol-col .pillar-card .meta .m .n { font-size: 0.75rem; }
.pillar-section .sol-col .pillar-card .meta .m .l { font-size: 0.5625rem; white-space: nowrap; }
.pillar-section .sol-col .pillar-card .tool-link { padding: 5px 0 0; margin-top: 5px; font-size: 0.625rem; }

/* Responsive: a 900px apila las dos columnas */
@media (max-width: 1100px) {
  .sol-two-cols { grid-template-columns: 1fr 1.8fr; gap: 16px; }
}
@media (max-width: 900px) {
  .sol-two-cols { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .sol-col .pillar-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .integral-grid { grid-template-rows: auto; }
}
@media (max-width: 540px) {
  .integral-grid { grid-template-columns: 1fr; }
  .sol-col .pillar-grid { grid-template-columns: 1fr; }
}

/* Página de Soluciones ofrecidas: pantalla completa sin scroll (desktop) */
body.soluciones-page { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.soluciones-page main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pillar-hero.is-compact { padding-block: clamp(18px, 2.4vh, 32px) clamp(12px, 1.6vh, 20px); border-bottom: 1px solid var(--border); flex: none; }
.pillar-hero.is-compact h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 6px; }
.pillar-hero.is-compact p { font-size: clamp(0.8125rem, 1vw, 0.9375rem); }
.pillar-hero.is-compact .eyebrow { margin-bottom: 8px; }
.pillar-section { flex: 1; display: flex; min-height: 0; padding-block: clamp(14px, 2vh, 24px); }
.pillar-section .container { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pillar-section .pillar-grid { flex: 1; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: clamp(10px, 1.4vw, 18px); min-height: 0; }
.pillar-section .pillar-card { padding: clamp(12px, 1.4vw, 18px); min-height: 0; overflow: hidden; }
.pillar-section .pillar-card .ico { width: 38px; height: 38px; margin-bottom: 10px; }
.pillar-section .pillar-card .ico svg { width: 20px; height: 20px; }
.pillar-section .pillar-card h3 { font-size: clamp(0.9375rem, 1.1vw, 1rem); margin-bottom: 6px; }
.pillar-section .pillar-card .pdesc { font-size: clamp(0.75rem, 0.92vw, 0.8125rem); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pillar-section .pillar-card .meta { margin-top: 12px; padding-top: 10px; gap: 16px; }
.pillar-section .pillar-card .meta .m .n { font-size: 1.125rem; }
.pillar-section .pillar-card .meta .m .l { font-size: 0.6875rem; }
.pillar-section .pillar-card .tool-link { padding: 10px 0 0; margin-top: 10px; font-size: 0.8125rem; }

@media (max-width: 1100px) {
  .pillar-section .pillar-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  body.soluciones-page { height: auto; overflow: auto; }
  body.soluciones-page main { flex: 0 1 auto; }
  .pillar-section { flex: 0 1 auto; display: block; padding-block: 32px; }
  .pillar-section .pillar-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .pillar-section .pillar-card .pdesc { -webkit-line-clamp: unset; overflow: visible; }
}
@media (max-width: 540px) {
  .pillar-section .pillar-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; justify-content: center; }
  .hero-grid, .split, .contact-grid, .solution { grid-template-columns: 1fr; }
  .contact-grid { grid-template-areas: "head" "form" "aside"; grid-template-rows: none; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .hero::before { width: 420px; height: 420px; inset: -10% -30% auto auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 34px 0; }
  .flow-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-link::after { left: 50%; right: auto; top: auto; bottom: -1px; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid var(--muted); border-bottom: 0; }
  .flow-link li, .flow-link li:first-child, .flow-link li:last-child, .flow-link li:not(:first-child):not(:last-child) { border: 0; border-radius: 0; padding: 8px 6px; }
  .flow-link { background: none; }
  .flow-link li { background: var(--bg); }
  .flow-caption { margin-top: 18px; }
}

@media (max-width: 600px) {
  .grid-2, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand { font-size: 1.05rem; }
  .brand .isotipo { height: 34px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card { padding: 22px; }
}

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