/* ════════════════════════════════════════════════════════════════════════════
   landing.css — Maqueta de la landing pública de BRAINLOF (TEMA CLARO).
   NO es producción: vive en static/maquetas/ para revisar diseño y mensaje
   antes de convertirla en la portada real de brainlof.com.

   Cambio de tema: de oscuro ("hacker") a claro premium que proyecta confianza y
   solidez institucional, al estilo de las plataformas world-class del rubro.
   Estándares del proyecto: sin style="" inline, sin fuentes ni imágenes externas
   (todo SVG y gradientes suaves).
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Superficies claras */
  --bg:        #ffffff;
  --bg-soft:   #f5f8fd;   /* franjas alternas */
  --bg-tint:   #eef4ff;   /* banda de acento muy suave */
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --border:    #e6ebf3;
  --border-hi: #c3d4fb;

  /* Marca: azul confiable + verde-teal (seguridad/salud/“ok”) */
  --primary:   #2563eb;
  --primary-d: #1d4ed8;
  --indigo:    #4f46e5;
  --teal:      #0d9488;
  --teal-l:    #14b8a6;

  /* Tinta */
  --ink:       #0f1b34;   /* títulos */
  --text:      #3a4a63;   /* cuerpo */
  --text-dim:  #5c6b83;
  --text-mut:  #8a97ad;

  --ok:        #059669;
  --warn:      #b45309;
  --warn-bg:   #fef6e7;
  --danger:    #dc2626;

  --maxw: 1160px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Sombras suaves (clave del look “sólido pero liviano”) */
  --sh-sm: 0 1px 2px rgba(15,27,52,0.05), 0 1px 3px rgba(15,27,52,0.04);
  --sh-md: 0 4px 12px rgba(15,27,52,0.06), 0 2px 4px rgba(15,27,52,0.04);
  --sh-lg: 0 18px 40px rgba(15,27,52,0.10), 0 6px 14px rgba(15,27,52,0.06);
  --sh-xl: 0 30px 70px rgba(30,64,175,0.14), 0 10px 24px rgba(15,27,52,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", "Segoe UI", Roboto, Calibri, Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* Red de seguridad: un SVG sin tamaño explícito (p. ej. un check en una lista
   nueva) rendea a 300×150 por defecto y se ve GIGANTE. Este default lo acota;
   cualquier componente con width propio en CSS lo sobrescribe (mayor
   especificidad), y el diagrama usa .diagram { width:100% }. */
svg { width: 1.05em; height: 1.05em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Glow ambiental muy tenue sobre blanco (nada agresivo). */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 0%,  rgba(37,99,235,0.08), transparent 68%),
    radial-gradient(50% 40% at 90% 4%,  rgba(13,148,136,0.06), transparent 68%),
    radial-gradient(60% 50% at 60% 100%, rgba(79,70,229,0.04), transparent 70%),
    var(--bg);
}

/* ── Tipografía utilitaria ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.teal { color: var(--teal); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.14; letter-spacing: -0.022em; font-weight: 750; }
.grad {
  background: linear-gradient(100deg, var(--primary-d) 8%, var(--indigo) 52%, var(--teal) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-dim); font-size: 1.12rem; }

/* ── Botones ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-md);
  font: inherit; font-size: .95rem; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--primary), var(--indigo));
  box-shadow: 0 8px 20px rgba(37,99,235,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,0.36); }
.btn-ghost {
  color: var(--ink); background: #fff; border-color: var(--border);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--border-hi); background: var(--surface-2); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1.02rem; }

/* ── Navegación ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}
.brand .mark svg { width: 19px; height: 19px; color: #fff; }
.brand b { font-weight: 850; }
.brand span { font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { color: var(--text-dim); font-size: .93rem; font-weight: 550; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 40px; padding: 0 16px; font-size: .9rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  background: #fff; border-radius: 10px; color: var(--ink); cursor: pointer; box-shadow: var(--sh-sm); }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ── Cinta de urgencia (Ley 21.719) — informativa, no de miedo ─────────────── */
.ribbon { background: var(--warn-bg); border-bottom: 1px solid #f6e3c0; }
.ribbon-in { display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 16px; font-size: .86rem; color: #7c4a12; text-align: center; flex-wrap: wrap; }
.ribbon .pulse { width: 8px; height: 8px; border-radius: 50%; background: #d97706;
  box-shadow: 0 0 0 0 rgba(217,119,6,0.5); animation: pulse 2.4s infinite; flex: none; }
.ribbon b { color: #6b3e0e; }
.ribbon a { color: var(--primary-d); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 650; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,119,6,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(217,119,6,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
}
@media (prefers-reduced-motion: reduce) { .ribbon .pulse { animation: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { padding: 76px 0 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 20px 0 22px; max-width: 17ch; }
.hero .lead { max-width: 58ch; font-size: 1.2rem; }
.hero-cta { display: flex; gap: 14px; margin: 34px 0 26px; flex-wrap: wrap; }
.hero-note { color: var(--text-mut); font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }

.trust-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mut); font-weight: 650; margin: 40px 0 14px; }
.trust-label.tl-center { text-align: center; margin-top: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-sm);
  font-size: .82rem; color: var(--text); font-weight: 600;
}
.chip svg { width: 15px; height: 15px; color: var(--teal); }
.chip.own { border-style: dashed; color: var(--text-dim); background: var(--surface-2); box-shadow: none; }

/* ── Sección genérica ──────────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: 84px 0; }
.sec.soft { background: var(--bg-soft); }
.sec-head { max-width: 64ch; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 14px 0 16px; }
.hr-soft { height: 1px; background: var(--border); border: 0; }

/* ── Cifras ────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.stat .n { font-size: 2.1rem; font-weight: 850; letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--primary-d), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .t { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }

/* ── Cómo funciona ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; color: var(--primary); }
.step h3 { font-size: 1.18rem; margin: 12px 0 8px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ── Banda multi-norma ─────────────────────────────────────────────────────── */
.norms {
  border-radius: var(--r-xl); padding: 44px; background: var(--bg-tint);
  border: 1px solid var(--border-hi); text-align: center;
}
.norms h3 { font-size: 1.35rem; margin-bottom: 8px; }
.norms p { color: var(--text-dim); max-width: 90ch; margin: 0 auto 24px; }
.norms .trust { justify-content: center; }

/* ── Módulos ───────────────────────────────────────────────────────────────── */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mod {
  padding: 28px 24px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.mod:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-hi); }
.mod .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf1ff, #e3f5f1);
  border: 1px solid var(--border); margin-bottom: 16px;
}
.mod .ico svg { width: 23px; height: 23px; color: var(--primary); }
.mod h3 { font-size: 1.12rem; margin-bottom: 7px; }
.mod p { color: var(--text-dim); font-size: .92rem; }
.mod .tag { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--teal);
  background: #e3f5f1; border: 1px solid #c7ece5; border-radius: 6px; padding: 3px 9px; }
.mod .tag.blue { color: var(--primary-d); background: #eaf1ff; border-color: #d5e2fb; }

/* ── CRM · destacado de protección de datos (argumento de venta) ───────────── */
.crm-shield {
  display: flex; gap: 22px; align-items: flex-start;
  max-width: 1000px; margin: 0 auto 44px; padding: 26px 30px;
  background: linear-gradient(135deg, rgba(13,148,136,.09), rgba(37,99,235,.07));
  border: 1px solid var(--border-hi); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
.crm-shield-ico {
  flex: none; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 6px 16px rgba(13,148,136,.28);
}
.crm-shield-ico svg { width: 28px; height: 28px; color: #fff; }
.crm-shield-txt h3 { font-size: 1.32rem; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.crm-shield-txt p { color: var(--text-dim); font-size: 1rem; line-height: 1.62; }
.crm-shield-txt p + p { margin-top: 12px; }
/* Línea coordinada: acento teal a la izquierda, texto algo más presente. */
.crm-shield-coord {
  color: var(--text) !important; padding-left: 14px;
  border-left: 3px solid var(--teal); border-radius: 2px;
}
.crm-shield-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.crm-shield-tags span {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: #e6f7f4; border: 1px solid #bfe9e2;
  border-radius: 999px; padding: 5px 11px;
}
@media (max-width: 640px) { .crm-shield { flex-direction: column; gap: 16px; padding: 22px; } }

/* ── Bloque IA ─────────────────────────────────────────────────────────────── */
.ia {
  border-radius: var(--r-xl); padding: 54px 48px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #f3f7ff 0%, #eefaf7 100%);
  border: 1px solid var(--border-hi); box-shadow: var(--sh-md);
}
.ia-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.ia h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 14px 0 16px; }
.ia ul { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.ia li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.ia li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
.ia li b { color: var(--ink); font-weight: 700; }
.ia-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border);
  box-shadow: var(--sh-xl); overflow: hidden; }
.ia-card-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.ia-card-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dfe5ef; }
.ia-card-bar span { margin-left: 8px; font-size: .78rem; color: var(--text-mut); font-weight: 600; }
.ia-card-body { padding: 18px; display: grid; gap: 12px; }
.ia-msg { display: flex; gap: 10px; align-items: flex-start; }
.ia-msg.mine { justify-content: flex-end; }
.ia-msg .av { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--teal)); }
.ia-msg .av svg { width: 15px; height: 15px; color: #fff; }
.ia-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; font-size: .9rem; color: var(--text); }
.ia-msg.mine .ia-bubble { background: #eaf1ff; border-color: #d5e2fb; color: var(--ink); }
.ia-bubble b { color: var(--ink); }
.ia-typing { display: inline-flex; gap: 4px; }
.ia-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .5; animation: blink 1.2s infinite; }
.ia-typing i:nth-child(2){ animation-delay: .2s; } .ia-typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,100%{opacity:.25} 50%{opacity:1} }
@media (prefers-reduced-motion: reduce) { .ia-typing i { animation: none; } }

/* ── Seguridad ─────────────────────────────────────────────────────────────── */
.sec-secure { border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); padding: 50px 44px; }
.secure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 34px; }
.secure-item { display: flex; gap: 13px; align-items: flex-start; }
.secure-item .sh { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: #e6f6f1; border: 1px solid #c7ece5; }
.secure-item .sh svg { width: 19px; height: 19px; color: var(--ok); }
.secure-item h4 { font-size: 1rem; margin-bottom: 3px; }
.secure-item p { color: var(--text-dim); font-size: .9rem; }

/* ── Tabla comparativa ─────────────────────────────────────────────────────── */
.cmp-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--sh-md); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .93rem; }
table.cmp th, table.cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); font-weight: 700; }
table.cmp thead th.us { color: var(--primary-d); background: #eaf1ff; border-radius: 10px 10px 0 0; }
table.cmp td.us { background: #f3f7ff; color: var(--ink); font-weight: 650; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--text-dim); }
.yes { color: var(--ok); font-weight: 750; }
.no  { color: var(--text-mut); }
.mid { color: var(--warn); }

/* ── Para quién ────────────────────────────────────────────────────────────── */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.aud .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: #e6f6f1; border: 1px solid #c7ece5; }
.aud .ico svg { width: 22px; height: 22px; color: var(--teal); }
.aud h3 { font-size: 1.1rem; margin-bottom: 7px; }
.aud p { color: var(--text-dim); font-size: .92rem; }
.aud.soon { opacity: .82; }
.aud .soon-tag { display: inline-block; margin-top: 10px; font-size: .72rem; color: var(--text-mut);
  border: 1px dashed var(--border-hi); border-radius: 6px; padding: 2px 8px; }

/* ── CTA final ─────────────────────────────────────────────────────────────── */
.cta-final {
  border-radius: var(--r-xl); text-align: center; padding: 64px 40px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  box-shadow: var(--sh-xl);
}
.cta-final .eyebrow { color: #bcd3ff; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 20ch; margin: 14px auto 16px; }
.cta-final .lead { color: #dbe7ff; max-width: 54ch; margin: 0 auto 30px; }
.cta-final .hero-cta { justify-content: center; }
.cta-final .btn-primary { background: #fff; color: var(--primary-d); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.cta-final .btn-primary:hover { background: #f2f6ff; }
.cta-final .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); box-shadow: none; }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mut); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--text-dim); font-size: .9rem; }
.foot a:hover { color: var(--ink); }
.foot-brand p { color: var(--text-dim); font-size: .9rem; margin-top: 12px; max-width: 34ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-mut); font-size: .84rem; }

/* ── Nota de maqueta ───────────────────────────────────────────────────────── */
.mock-note { position: fixed; bottom: 14px; left: 14px; z-index: 90;
  background: rgba(255,255,255,0.94); border: 1px solid var(--border-hi); border-radius: 10px;
  padding: 8px 13px; font-size: .76rem; color: var(--text-dim); box-shadow: var(--sh-md); backdrop-filter: blur(8px); }
.mock-note b { color: var(--primary); }

/* ── Estado activo del nav (multi-página) ──────────────────────────────────── */
.nav-links a.active { color: var(--ink); font-weight: 700; }
.hero-cta.center-cta { justify-content: center; margin-top: 40px; margin-bottom: 0; }

/* ── Sub-hero (páginas internas) ───────────────────────────────────────────── */
.subhero { padding: 60px 0 30px; text-align: center; }
.subhero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 16px auto 16px; max-width: 20ch; }
.subhero .lead { max-width: 62ch; margin: 0 auto; }

/* ── Página Plataforma: multi-tenant / niveles ─────────────────────────────── */
.levels { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.level-tree { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); padding: 26px; display: grid; gap: 10px; }
.lv { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 11px; border: 1px solid var(--border); }
.lv .badge { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; flex: none; }
.lv-org   { background: #eaf1ff; border-color: #d5e2fb; }
.lv-org   .badge { background: var(--primary); color: #fff; }
.lv-sub   { margin-left: 26px; background: #f2f7ff; }
.lv-sub   .badge { background: #7c9df5; color: #fff; }
.lv-div   { margin-left: 52px; background: var(--surface-2); }
.lv-div   .badge { background: #b7c2d6; color: #fff; }
.lv-user  { margin-left: 78px; background: #e6f6f1; border-color: #c7ece5; }
.lv-user  .badge { background: var(--teal); color: #fff; }
.lv b { color: var(--ink); font-size: .95rem; }
.lv span { color: var(--text-dim); font-size: .85rem; }
.levels ul { list-style: none; display: grid; gap: 13px; margin-top: 18px; }
.levels li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.levels li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
.levels li b { color: var(--ink); }

/* ── Extranet de suscriptores ──────────────────────────────────────────────── */
.extranet { border-radius: var(--r-xl); background: linear-gradient(120deg, #eefaf7, #f3f7ff); border: 1px solid var(--border-hi); box-shadow: var(--sh-md); padding: 46px; }
.extranet-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.portal-mock { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-xl); overflow: hidden; }
.portal-top { height: 8px; background: linear-gradient(90deg, var(--primary), var(--teal)); }
.portal-body { padding: 22px; }
.portal-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; color: var(--ink); margin-bottom: 16px; }
.portal-logo .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--teal), var(--primary)); }
.portal-row { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 10px; }
.portal-btn { height: 42px; border-radius: 10px; background: linear-gradient(100deg, var(--primary), var(--indigo)); margin-top: 6px; }

/* ── Planes (tarjetas) ─────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--primary); box-shadow: var(--sh-lg); transform: translateY(-8px); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--primary), var(--indigo)); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; box-shadow: var(--sh-md); white-space: nowrap; }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .who { color: var(--text-dim); font-size: .9rem; min-height: 40px; }
.plan .price { margin: 16px 0 4px; }
.plan .price .amt { font-size: 2.2rem; font-weight: 850; color: var(--ink); letter-spacing: -0.03em; }
.plan .price .per { color: var(--text-mut); font-size: .9rem; }
.plan .price-note { color: var(--text-mut); font-size: .8rem; margin-bottom: 18px; }
.plan .btn { width: 100%; margin-bottom: 20px; }
.plan-feats { list-style: none; display: grid; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); }
.plan-feats li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 1px; }
.plan-feats li b { color: var(--ink); }

/* ── Tabla escalable de características ─────────────────────────────────────── */
.feat-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--sh-md); background: #fff; margin-top: 40px; }
table.feat { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .92rem; }
table.feat th, table.feat td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.feat thead th { position: sticky; top: 0; background: #fff; z-index: 1; font-size: .82rem; color: var(--ink); font-weight: 750; }
table.feat thead th.pop { color: var(--primary-d); }
table.feat col.c-pop, table.feat td.pop { background: #f3f7ff; }
table.feat td:not(:first-child), table.feat th:not(:first-child) { text-align: center; }
table.feat td.pop { font-weight: 650; color: var(--ink); }
table.feat tr.group td { background: var(--bg-soft); font-weight: 750; color: var(--text-mut); text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; }
table.feat td:first-child { color: var(--text-dim); }
table.feat tbody tr:last-child td { border-bottom: 0; }
.tick { color: var(--ok); font-weight: 800; }
.dash { color: var(--text-mut); }
.pricing-note { text-align: center; color: var(--text-mut); font-size: .84rem; margin-top: 20px; }

/* ── Página Acceso ─────────────────────────────────────────────────────────── */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.acard { border-radius: var(--r-xl); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); padding: 36px 32px; display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.acard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-hi); }
.acard .ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.acard .ico svg { width: 27px; height: 27px; color: #fff; }
.acard.internal .ico { background: linear-gradient(135deg, var(--primary), var(--indigo)); }
.acard.extranet-c .ico { background: linear-gradient(135deg, var(--teal), var(--teal-l)); }
.acard h3 { font-size: 1.3rem; margin-bottom: 8px; }
.acard p { color: var(--text-dim); font-size: .95rem; flex: 1; }
.acard .btn { margin-top: 22px; width: 100%; }
.acard .fine { color: var(--text-mut); font-size: .82rem; margin-top: 12px; }
.access-note { max-width: 760px; margin: 34px auto 0; text-align: center; color: var(--text-dim); font-size: .92rem;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; }
.access-note b { color: var(--ink); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
.pt-tight { padding-top: 20px; }
@media (max-width: 900px) {
  .levels, .extranet-grid { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan.popular { transform: none; }
  .access { grid-template-columns: 1fr; }
  .extranet, .norms { padding: 32px 24px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .mods, .audience { grid-template-columns: 1fr; }
  .ia { padding: 38px 26px; }
  .ia-grid { grid-template-columns: 1fr; gap: 30px; }
  .secure-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats, .foot-grid { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .hero { padding: 52px 0 30px; }
  .norms, .sec-secure, .ia { padding: 32px 22px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   AMPLIACIÓN v2 — más densidad visual, diagrama de interconexión, video,
   sectores, leyes chilenas, 4 planes. (rescates de la propuesta LOF)
   ════════════════════════════════════════════════════════════════════════════ */

/* Fondo con patrón de puntos muy sutil para llenar secciones vacías. */
.sec.dots { background:
  radial-gradient(circle at 1px 1px, rgba(37,99,235,0.07) 1px, transparent 0) 0 0 / 26px 26px,
  var(--bg); }
.sec.tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }

/* Hero en dos columnas: texto + visual (llena el blanco de la derecha). */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-split .hero-visual { position: relative; }

/* ── Diagrama de interconexión (animado) ───────────────────────────────────── */
.diagram { width: 100%; height: auto; display: block; }
.diagram .link { stroke: #c3d4fb; stroke-width: 2; fill: none; }
.diagram .flow { stroke-width: 2.4; stroke-linecap: round; fill: none;
  stroke-dasharray: 5 12; animation: flow 1.4s linear infinite; }
.diagram .flow.t { stroke: var(--teal); } .diagram .flow.b { stroke: var(--primary); }
@keyframes flow { to { stroke-dashoffset: -34; } }
@media (prefers-reduced-motion: reduce) { .diagram .flow { animation: none; } }
.diagram .node-box { fill: #fff; stroke: var(--border); stroke-width: 1.5; }
.diagram .node-box.hi { stroke: var(--border-hi); }
.diagram .hub { fill: url(#hubgrad); }
.diagram .node-t { fill: var(--ink); font-weight: 650; font-family: "Inter Tight", "Segoe UI", sans-serif; }
.diagram .hub-t { fill: #fff; font-weight: 800; font-family: "Inter Tight", "Segoe UI", sans-serif; }
.diagram .hub-s { fill: #dbe7ff; font-weight: 500; }
.diagram .ni { stroke: var(--primary); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.diagram .ni.teal { stroke: var(--teal); }
.diagram-cap { text-align: center; color: var(--text-mut); font-size: .86rem; margin-top: 16px; }

/* ── Placeholder de video / demo ───────────────────────────────────────────── */
.video-ph { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-hi);
  box-shadow: var(--sh-lg); background:
    radial-gradient(60% 80% at 30% 20%, rgba(37,99,235,0.14), transparent 60%),
    radial-gradient(60% 80% at 80% 90%, rgba(13,148,136,0.12), transparent 60%),
    linear-gradient(135deg, #eef4ff, #eafaf6);
  aspect-ratio: 16 / 9; display: grid; place-items: center; }
.video-ph .play { width: 74px; height: 74px; border-radius: 999px; background: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-lg); transition: transform .18s var(--ease); cursor: pointer; }
.video-ph:hover .play { transform: scale(1.06); }
.video-ph .play svg { width: 28px; height: 28px; color: var(--primary); margin-left: 3px; }
.video-ph .vlabel { position: absolute; bottom: 16px; left: 18px; color: var(--ink); font-weight: 600; font-size: .9rem;
  background: rgba(255,255,255,0.82); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; backdrop-filter: blur(6px); }
.video-ph .vtag { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-mut); background: rgba(255,255,255,0.85); border: 1px dashed var(--border-hi);
  border-radius: 6px; padding: 4px 9px; }
.media-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; }

/* ── Showcase: dashboard con gráficos (visual mientras hay fotos/videos) ───── */
.showcase { display: grid; grid-template-columns: 1fr 1.08fr; gap: 44px; align-items: center; }
.dashcard { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-xl); overflow: hidden; }
.dashbar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dashbar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ef; }
.dashbar span { margin-left: 8px; font-size: .78rem; color: var(--text-mut); font-weight: 600; }
.dashbody { padding: 18px; display: grid; gap: 14px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.kpi .k-n { font-size: 1.45rem; font-weight: 850; color: var(--ink); letter-spacing: -.02em; }
.kpi .k-t { font-size: .7rem; color: var(--text-mut); }
.kpi .k-up { color: var(--ok); font-size: .72rem; font-weight: 700; }
.chart-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: stretch; }
.chart-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; }
.chart-card h5 { font-size: .74rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.chart-card svg { width: 100%; height: auto; }
.mini-legend { display: flex; gap: 14px; margin-top: 8px; font-size: .72rem; color: var(--text-dim); }
.mini-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Franja de visualizaciones (heatmap + gantt) */
.viz-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.viz-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; background: #fff; box-shadow: var(--sh-md); }
.viz-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.viz-card p { color: var(--text-dim); font-size: .88rem; margin-bottom: 14px; }
.viz-card svg { width: 100%; height: auto; }
/* Más específico que `.viz-card svg { width:100% }`, si no el QR se estira a
   todo el ancho de la tarjeta. */
.qr-row .qr-illu { width: 116px; height: 116px; flex: none; }
.qr-row { display: flex; gap: 18px; align-items: center; }
.qr-row .qr-txt { color: var(--text-dim); font-size: .92rem; }
.qr-row .qr-txt b { color: var(--ink); }

/* ── Placeholder de foto (ilustración del portal) ──────────────────────────── */
.photo-ph { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px dashed var(--border-hi);
  background: linear-gradient(135deg, #eef4ff, #eafaf6); aspect-ratio: 4 / 3; display: grid; place-items: center; box-shadow: var(--sh-sm); }
.photo-ph .pico { width: 46px; height: 46px; color: var(--primary); opacity: .45; }
.photo-ph .plabel { position: absolute; bottom: 12px; left: 12px; font-size: .74rem; color: var(--text-dim);
  background: rgba(255,255,255,0.86); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-strip .photo-ph.wide { aspect-ratio: 3 / 4; }

/* Ilustración de dashboard dentro del mock del portal (SVG). */
.screen-illu { width: 100%; height: auto; display: block; border-radius: var(--r-md); border: 1px solid var(--border); }

/* ── Banda de sectores ─────────────────────────────────────────────────────── */
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sector { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-sm); font-weight: 650; color: var(--ink); font-size: .95rem; }
.sector svg { width: 19px; height: 19px; color: var(--teal); }

/* ── Formulario de postulación (canales/contacto) ──────────────────────────── */
.pform { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 32px; display: grid; gap: 14px; }
.pform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.pform label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); min-width: 0; }
.pform input, .pform select, .pform textarea {
  height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px;
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface-2);
  box-sizing: border-box; min-width: 0; flex: none; }
.pform textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.pform input::placeholder, .pform textarea::placeholder { color: var(--text-mut); }
.pform input:focus, .pform select:focus, .pform textarea:focus {
  outline: none; border-color: var(--border-hi);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.pform .btn { width: 100%; margin-top: 6px; }
.pform .fine { font-size: .78rem; color: var(--text-mut); font-weight: 400; text-align: center; }
@media (max-width: 560px) { .pform .row2 { grid-template-columns: 1fr; } .pform { padding: 24px; } }

/* Banda de beneficios numerados (márgenes/valor del canal) */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.benefit .bico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, #eaf1ff, #e3f5f1); border: 1px solid var(--border); }
.benefit .bico svg { width: 22px; height: 22px; color: var(--primary); }
.benefit h4 { font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { color: var(--text-dim); font-size: .9rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

/* Modelos de colaboración */
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.model { padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.model h4 { font-size: 1.05rem; margin-bottom: 5px; color: var(--ink); }
.model p { color: var(--text-dim); font-size: .9rem; }
.model .mtag { display: inline-block; margin-top: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--teal); background: #e3f5f1; border: 1px solid #c7ece5; border-radius: 6px; padding: 3px 9px; }
@media (max-width: 700px) { .models { grid-template-columns: 1fr; } }

/* ── Sellos de marcos (REFERENCIA, no certificación) ───────────────────────── */
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.seal { width: 112px; text-align: center; }
.seal .disc { width: 78px; height: 78px; margin: 0 auto 9px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, #ffffff, #eef4ff);
  border: 2px solid var(--border-hi); box-shadow: var(--sh-sm); position: relative; }
.seal .disc svg { width: 30px; height: 30px; color: var(--primary); }
.seal .disc .ring { position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed var(--border-hi); }
.seal .sname { font-size: .82rem; font-weight: 750; color: var(--ink); }
.seal .stype { font-size: .68rem; color: var(--text-mut); }
.seals-note { text-align: center; color: var(--text-mut); font-size: .83rem; margin: 22px auto 0; max-width: 72ch;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; }
.seals-note b { color: var(--ink); }

/* ── Marcos verticales por sector ──────────────────────────────────────────── */
.vframes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vframes span { font-size: .72rem; font-weight: 600; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }

/* ── Leyes chilenas / personalización ──────────────────────────────────────── */
.laws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.law { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-sm); }
.law .num { font-size: 1.15rem; font-weight: 800; color: var(--primary-d); letter-spacing: -0.02em; }
.law .nm { color: var(--text-dim); font-size: .86rem; margin-top: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.split .card-x { border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--border); box-shadow: var(--sh-md); }
.split .old { background: #fff; }
.split .old h4 { color: var(--danger); }
.split .newx { background: linear-gradient(160deg, #eef4ff, #eafaf6); border-color: var(--border-hi); }
.split .newx h4 { color: var(--teal); }
.split ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.split li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text); }
.split li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.split .old li svg { color: var(--text-mut); } .split .newx li svg { color: var(--teal); }

/* ── 4 planes ──────────────────────────────────────────────────────────────── */
.plans.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.four .plan { padding: 26px 20px; }
.plans.four .plan h3 { font-size: 1.2rem; }
.plans.four .plan .price .amt { font-size: 1.85rem; }
.plans.four .plan .who { min-height: 52px; font-size: .86rem; }
.plans.four .plan-feats li { font-size: .85rem; }

@media (max-width: 1050px) {
  .plans.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .media-grid, .split, .showcase, .viz-grid { grid-template-columns: 1fr; }
  .laws { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .chart-2, .kpi-row, .photo-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plans.four { grid-template-columns: 1fr; }
  .laws { grid-template-columns: 1fr; }
}

/* ── "Cumples mientras operas": acto operativo → evidencia ──────────────────── */
.cmo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cmo-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 22px 22px 24px; display: flex; flex-direction: column;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.cmo-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-hi); }
.cmo-k {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; margin-bottom: 6px;
}
.cmo-op { color: var(--ink); font-weight: 650; font-size: 1rem; line-height: 1.35; }
.cmo-op .cmo-k { color: var(--text-mut); }
.cmo-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--border-hi); }
.cmo-sep::before, .cmo-sep::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.cmo-sep svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.cmo-ev { color: var(--text); font-size: .93rem; line-height: 1.5; }
.cmo-ev .cmo-k { color: var(--teal); }
.cmo-foot {
  text-align: center; margin-top: 30px; font-size: 1.05rem; color: var(--ink); font-weight: 600;
  max-width: 60ch; margin-left: auto; margin-right: auto;
}

/* ── Matriz comparativa ─────────────────────────────────────────────────────── */
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 22px; }
.cmp-lg { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-dim); }
.cmp-lg .d { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cmp-lg .d.g { background: var(--ok); } .cmp-lg .d.w { background: var(--warn); } .cmp-lg .d.b { background: var(--danger); }
.cmp-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); background: #fff; -webkit-overflow-scrolling: touch;
}
.cmp { border-collapse: collapse; width: 100%; min-width: 760px; }
.cmp th, .cmp td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp thead th {
  position: sticky; top: 0; background: #fff; z-index: 2; vertical-align: bottom;
  font-size: .92rem; color: var(--ink); border-bottom: 2px solid var(--border);
}
.cmp thead th.c1 { color: var(--text-mut); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.cmp thead th .co { display: block; color: var(--text-mut); font-weight: 500; font-size: .78rem; letter-spacing: 0; margin-top: 2px; }
.cmp tbody th.c1 {
  position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 650; color: var(--ink);
  font-size: .9rem; border-right: 1px solid var(--border); white-space: nowrap;
}
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }
.cmp .win { background: linear-gradient(180deg, #eef4ff, #eafaf6); }
.cmp thead th.win { border-bottom: 2px solid var(--primary); }
.cmp td.win, .cmp thead th.win { box-shadow: inset 1px 0 0 var(--border-hi), inset -1px 0 0 var(--border-hi); }
.cmp .badge {
  display: inline-flex; align-items: center; margin-top: 6px; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(100deg, var(--primary), var(--indigo)); color: #fff;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.cq { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.cq svg { width: 15px; height: 15px; flex: none; }
.cq .sub { color: var(--text-mut); font-weight: 400; }
.cq.yes { color: var(--ok); } .cq.mid { color: var(--warn); } .cq.no { color: var(--danger); }
@media (max-width: 900px) { .cmo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cmo-grid { grid-template-columns: 1fr; } }

/* ── Formulario de contacto: honeypot, consentimiento y mensajes ───────────── */
.hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}
.pform label.pform-consent{display:flex;flex-direction:row;gap:10px;align-items:flex-start;font-size:.86rem;color:var(--text);font-weight:500;cursor:pointer}
.pform-consent input{width:18px;height:18px;flex:none;margin-top:2px}
.pform-legal{font-size:.78rem;color:var(--text-mut);line-height:1.55;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:12px 14px;margin:0}
.pform-legal b{color:var(--text-dim)}
.pform-ok{background:#e6f7f0;border:1px solid #b6e6d2;color:#0f6b46;border-radius:10px;padding:16px 18px;font-size:.98rem;font-weight:600}
.pform-err{background:#fdecec;border:1px solid #f4c7c7;color:#a11623;border-radius:10px;padding:12px 16px;font-size:.92rem;font-weight:500}

/* Acceso discreto: ícono de persona en lugar del botón "Ingresar". */
.nav-login{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:9px;color:var(--text-dim);border:1px solid transparent;transition:color .15s,background .15s,border-color .15s}
.nav-login:hover{color:var(--ink);background:var(--surface-2);border-color:var(--border)}
.nav-login svg{width:20px;height:20px}

/* Selector de idioma (traducción automática DeepL). */
.lang{position:relative}
.lang>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 10px;border-radius:9px;color:var(--text-dim);font-size:.85rem;font-weight:700;letter-spacing:.02em}
.lang>summary::-webkit-details-marker{display:none}
.lang>summary:hover{color:var(--ink);background:var(--surface-2)}
.lang>summary svg{width:17px;height:17px}
.lang-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--sh-lg);padding:6px;display:grid;gap:2px;min-width:60px;z-index:60}
.lang-menu a{padding:8px 12px;border-radius:7px;color:var(--text-dim);font-size:.85rem;font-weight:600;text-align:left}
.lang-menu a:hover{background:var(--bg-tint);color:var(--ink)}
.lang-menu a.on{color:var(--primary-d);background:var(--bg-tint)}
