/* Landing de producto · tokens en DESIGN.md. Violeta = agentes y máquinas; ámbar = personas; verde = resuelto. */

@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --noche: #0C1222; --noche-2: #10182B; --panel: #152038; --panel-2: #1A2642;
  --borde: rgba(180, 195, 230, 0.12); --borde-2: rgba(180, 195, 230, 0.2);
  --texto: #E9EDF5; --texto-2: #AAB4C8; --tenue: #7C879E;
  --agente: #A193FF; --persona: #FFB547; --ok: #5FD4A0;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ancho: 1200px; --gutter: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--noche); color: var(--texto); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
p, h1, h2, figure, ol, ul, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--agente); outline-offset: 3px; border-radius: 4px; }
.mono, code, pre { font-family: var(--mono); }
/* El build deja cada página en un solo idioma; esta regla oculta el marcado bilingüe que arman los scripts en el
   navegador. El selector de idioma (enlace al otro idioma, con su lang) queda afuera. */
html[data-lang="en"] [lang="es"]:not([data-idioma]), html[data-lang="es"] [lang="en"]:not([data-idioma]) { display: none !important; }

h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -0.032em; text-wrap: balance; }

/* Botones */
.boton { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 10px; background: var(--texto); color: var(--noche); font-weight: 560; font-size: 16px; letter-spacing: -0.01em; transition: background 0.2s, transform 0.2s var(--ease); }
.boton:hover { background: #fff; }
.boton:active { transform: translateY(1px); }
.boton:focus-visible { outline: 2px solid var(--agente); outline-offset: 3px; }
.boton-linea { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde-2); }
.boton-linea:hover { background: rgba(233, 237, 245, 0.06); }
.boton-chico { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); background: rgba(12, 18, 34, 0); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.top-solida, .menu-abierto .top { background: rgba(12, 18, 34, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--borde); }
body:not([data-page="home"]) .top { background: rgba(12, 18, 34, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--borde); }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; justify-self: start; }
.marca-glifo { width: 22px; height: 22px; }
.marca-glifo circle { fill: var(--agente); }
.marca-glifo .marca-persona { fill: var(--persona); }
.marca-glifo path { stroke: var(--agente); stroke-opacity: 0.6; stroke-width: 1.3; }
.top-nav { display: flex; gap: 30px; font-size: 15px; color: var(--texto-2); }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--texto); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--agente); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.top-nav .menu-lista { display: none; }
.top-acciones { justify-self: end; display: flex; align-items: center; gap: 18px; }
.idioma { display: inline-flex; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--borde); padding: 3px; }
.idioma > a, .idioma > span { font-size: 12.5px; font-weight: 520; line-height: 1.6; color: var(--tenue); padding: 3px 8px; border-radius: 6px; }
.idioma > a:hover { color: var(--texto); }
.idioma > [aria-current] { color: var(--texto); background: rgba(233, 237, 245, 0.09); cursor: default; }
.idioma > a:focus-visible { outline: 2px solid var(--agente); outline-offset: 0; }
.menu-boton { all: unset; display: none; cursor: pointer; width: 38px; height: 38px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--borde-2); position: relative; }
.menu-raya, .menu-raya::before, .menu-raya::after { position: absolute; left: 11px; width: 16px; height: 1.5px; background: var(--texto); border-radius: 1px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-raya { top: 18px; } .menu-raya::before { content: ''; left: 0; top: -5px; } .menu-raya::after { content: ''; left: 0; top: 5px; }
.menu-abierto .menu-raya { background: transparent; } .menu-abierto .menu-raya::before { transform: translateY(5px) rotate(45deg); } .menu-abierto .menu-raya::after { transform: translateY(-5px) rotate(-45deg); }
.menu-boton:focus-visible { outline: 2px solid var(--agente); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--texto); color: var(--noche); padding: 8px 12px; border-radius: 8px; }
.saltar:focus { top: 12px; }
@media (max-width: 1120px) {
  .top { grid-template-columns: 1fr auto; }
  .menu-boton { display: inline-block; }
  .top-nav { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(12, 18, 34, 0.97); border-bottom: 1px solid var(--borde); font-size: 20px; }
  .top-nav a { padding: 14px 0; border-bottom: 1px solid var(--borde); color: var(--texto); }
  .top-nav .menu-lista { display: block; color: var(--persona); border-bottom: 0; }
  .menu-abierto .top-nav { display: flex; }
}
@media (max-width: 480px) { .top-acciones .boton-chico { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-red { position: absolute; inset: 0; z-index: -2; }
.hero-red canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#red3d { opacity: 0; transition: opacity 1.4s var(--ease); }
#red3d.listo { opacity: 1; }
#red3d.listo ~ #red2d, .hero-red:has(#red3d.listo) #red2d { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-compat { position: absolute; left: 0; right: 0; bottom: 28px; width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; font-size: 14.5px; color: var(--tenue); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--noche) 0%, rgba(12, 18, 34, 0.92) 30%, rgba(12, 18, 34, 0.35) 52%, rgba(12, 18, 34, 0) 70%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none; background: linear-gradient(to top, var(--noche), rgba(12, 18, 34, 0)); }
.hero-texto { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; padding: 132px 0 96px; display: grid; gap: 28px; justify-items: start; }
.hero-texto h1 { max-width: 15ch; font-size: clamp(42px, 5.2vw, 80px); line-height: 1.02; }
html[data-lang="es"] .hero-texto h1 { font-size: clamp(38px, 4.6vw, 70px); max-width: 16ch; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--texto-2); max-width: 48ch; }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--tenue); margin-top: 8px; }
.ley { display: inline-flex; align-items: center; gap: 8px; }
.ley::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.ley-agente::before { background: var(--agente); box-shadow: 0 0 10px var(--agente); }
.ley-persona::before { background: var(--persona); box-shadow: 0 0 10px var(--persona); }
@media (max-width: 860px) {
  /* el 3D cubre todo el hero también en el teléfono: la red vive arriba y el texto abajo, sobre un degradé */
  .hero { display: grid; align-items: end; min-height: 100svh; }
  .hero-red { position: absolute; inset: 0; height: auto; min-height: 0; margin-top: 0; }
  .hero::before { background: linear-gradient(to bottom, rgba(12, 18, 34, 0) 0%, rgba(12, 18, 34, 0) 38%, rgba(12, 18, 34, 0.85) 56%, var(--noche) 70%); }
  .hero-texto { padding: 52svh 0 24px; margin-top: 0; }
  .hero-compat { position: static; padding: 0 0 48px; }
}

/* Compatibilidad */
.compat { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; padding: 8px 0 0; }
.compat p { font-size: 16.5px; color: var(--texto-2); max-width: 70ch; }
.compat-titulo { font-size: 14.5px; color: var(--tenue); }
.compat-lista { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 19px; font-weight: 560; letter-spacing: -0.02em; color: var(--texto-2); }

/* Problema */
.problema { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; padding: clamp(96px, 14vh, 168px) 0 clamp(72px, 10vh, 128px); display: grid; gap: 28px; }
.problema-texto { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.3; letter-spacing: -0.022em; font-weight: 480; color: var(--texto); max-width: 30em; text-wrap: pretty; }
.problema-remate { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; color: var(--texto); }

/* Bandas de capacidades */
.banda { padding: clamp(72px, 11vh, 132px) 0; border-top: 1px solid var(--borde); }
.banda-alt { background: var(--noche-2); }
.banda-grilla { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 48px 72px; align-items: center; }
.banda-invertida { grid-template-columns: 7fr 5fr; }
.banda-invertida > .banda-texto { order: 2; }
.banda-invertida > figure { order: 1; }
.banda-texto { display: grid; gap: 20px; align-content: start; }
.banda-texto h2 { max-width: 14ch; }
.banda-texto p { color: var(--texto-2); max-width: 44ch; }
@media (max-width: 960px) {
  .banda-grilla, .banda-invertida { grid-template-columns: 1fr; }
  .banda-invertida > .banda-texto, .banda-invertida > figure { order: initial; }
  .banda-texto h2 { max-width: 18ch; }
}

/* Pantallas de producto */
.pantalla { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.25); min-width: 0; }
.pantalla-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--borde); background: var(--panel-2); }
.pantalla-titulo { font-size: 14.5px; font-weight: 560; letter-spacing: -0.01em; }
.participantes { display: inline-flex; }
.participantes .av { width: 24px; height: 24px; font-size: 10px; margin-left: -6px; box-shadow: 0 0 0 2px var(--panel-2); }

.av { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: -0.02em; }
.av-agente { background: rgba(161, 147, 255, 0.16); color: var(--agente); box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.35); }
.av-persona { background: rgba(255, 181, 71, 0.16); color: var(--persona); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.4); border-radius: 50%; }
.av-externo { background: transparent; color: var(--tenue); box-shadow: inset 0 0 0 1px var(--borde-2); border: 1px dashed rgba(170, 180, 200, 0.5); }

/* Conversación */
.hilo { list-style: none; padding: 8px 0; }
.msg { display: flex; gap: 14px; padding: 14px 20px; }
.msg + .msg { border-top: 1px solid rgba(180, 195, 230, 0.06); }
.msg-cuerpo { display: grid; gap: 4px; min-width: 0; font-size: 15.5px; line-height: 1.5; }
.msg-quien { font-size: 14px; color: var(--tenue); }
.msg-quien b { color: var(--texto); font-weight: 600; margin-right: 6px; }
.msg-donde { margin-right: 6px; }
.msg-quien time { color: var(--tenue); font-size: 13px; }
.mencion { color: var(--agente); font-weight: 520; }
.mencion-persona { color: var(--agente); }
.msg-estado { font-size: 13px; color: var(--tenue); display: inline-flex; align-items: center; gap: 7px; }
.msg-estado::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tenue); }
.estado-espera::before { background: var(--agente); box-shadow: 0 0 8px var(--agente); }
.estado-ok { color: var(--ok); }
.estado-ok::before { background: var(--ok); }
.estado-persona { color: var(--persona); }
.estado-persona::before { background: var(--persona); }
.msg-persona { background: linear-gradient(90deg, rgba(255, 181, 71, 0.06), rgba(255, 181, 71, 0) 70%); }
.msg-externo .msg-cuerpo > p:nth-child(2) { color: var(--texto-2); }
.redactor { margin: 6px 16px 16px; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--borde-2); color: var(--tenue); font-size: 14.5px; }

/* Registro */
.registro, .matriz { width: 100%; border-collapse: collapse; font-size: 15px; }
.registro th, .matriz thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--tenue); padding: 12px 18px; border-bottom: 1px solid var(--borde); }
.registro td { white-space: nowrap; padding: 13px 18px; border-bottom: 1px solid rgba(180, 195, 230, 0.06); color: var(--texto-2); }
.registro td.mono { color: var(--texto); font-size: 14px; }
.registro .tenue { color: var(--tenue); }
.fila-pedido td { background: rgba(255, 181, 71, 0.06); }
.modo { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.modo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.modo-auto { color: var(--ok); } .modo-auto::before { background: var(--ok); }
.modo-pedido { color: var(--persona); } .modo-pedido::before { background: var(--persona); }
.modo-nunca { color: var(--tenue); } .modo-nunca::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tenue); }
.registro-nota { padding: 14px 18px; font-size: 14px; color: var(--persona); }

/* Teléfono */
.telefono-marco { display: grid; place-items: center; padding: 12px 0; }
.telefono { width: min(100%, 320px); aspect-ratio: 9 / 15.5; border-radius: 46px; padding: 18px 16px; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 181, 71, 0.14), rgba(255, 181, 71, 0) 60%), linear-gradient(160deg, #1d2945, #0f1729 60%); box-shadow: 0 0 0 1px var(--borde-2), 0 0 0 9px #0a0f1c, 0 0 0 10px var(--borde), 0 50px 100px -40px rgba(0, 0, 0, 0.9); display: grid; grid-template-rows: auto auto auto 1fr; gap: 14px; align-content: start; }
.tel-hora { text-align: center; font-size: 46px; font-weight: 300; letter-spacing: -0.04em; color: var(--texto); padding-top: 22px; line-height: 1; }
.tel-fecha { text-align: center; font-size: 13.5px; color: var(--texto-2); margin-bottom: 18px; }
.tel-anterior { opacity: 0.6; transform: scale(0.96); }
.tel-tarjeta { align-self: start; background: rgba(233, 237, 245, 0.08); backdrop-filter: blur(8px); border-radius: 22px; padding: 16px; display: grid; gap: 8px; box-shadow: inset 0 0 0 1px rgba(233, 237, 245, 0.08); }
.tel-app { font-size: 12.5px; color: var(--tenue); }
.tel-titulo { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.tel-texto { font-size: 14.5px; line-height: 1.45; color: var(--texto-2); }
.tel-texto b { color: var(--texto); font-weight: 560; }
.tel-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.tel-boton { all: unset; cursor: pointer; text-align: center; padding: 10px 0; border-radius: 12px; font-weight: 560; font-size: 14.5px; background: rgba(233, 237, 245, 0.08); color: var(--texto); }
.tel-boton:focus-visible { outline: 2px solid var(--persona); outline-offset: 2px; }
.tel-aprobar { background: var(--persona); color: #241500; }
.tel-aprobar:hover { background: #ffc469; }
.tel-rechazar:hover { background: rgba(233, 237, 245, 0.13); }
.tel-resultado { font-size: 13.5px; color: var(--tenue); min-height: 1.4em; }

.tel-tarjeta[data-estado="aprobado"] .tel-resultado { color: var(--ok); }

/* Versiones */
.oleada { font-size: 13px; color: var(--agente); }
.matriz th, .matriz td { padding: 13px 16px; border-bottom: 1px solid rgba(180, 195, 230, 0.06); font-size: 14.5px; }
.matriz tbody th { text-align: left; font-weight: 560; color: var(--texto); }
.matriz td { font-family: var(--mono); font-size: 13.5px; color: var(--texto-2); }
.matriz td::before, .v-ley::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.v-ok::before { background: var(--ok); }
.v-va::before { background: var(--agente); box-shadow: 0 0 8px var(--agente); }
.v-exc::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--persona); }
.matriz td.v-nada::before { width: 14px; height: 1px; border-radius: 0; background: var(--borde-2); }
.matriz-ley { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 18px; font-size: 13.5px; color: var(--tenue); }
.pantalla-versiones { overflow-x: auto; }

/* Diagrama de redes */
.diagrama-redes { min-width: 0; }
.diagrama-redes svg { width: 100%; height: auto; display: block; overflow: visible; }
.dr-nodos circle { fill: #C9D2E6; }
.dr-nodos .dr-compartido { fill: var(--texto); stroke: var(--agente); stroke-width: 3; stroke-opacity: 0.6; }
.dr-rotulo { fill: var(--texto); font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dr-nota { fill: var(--tenue); font-family: var(--sans); font-size: 13px; }

/* Desarrollo */
.dev { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--borde); }
.dev-grilla { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 48px 72px; align-items: start; }
.dev-texto { display: grid; gap: 20px; }
.dev-texto p { color: var(--texto-2); max-width: 44ch; }
.dev-texto .dev-nota { font-size: 14.5px; color: var(--tenue); }
.codigos { display: grid; gap: 18px; min-width: 0; }
.codigo { background: #0A0F1C; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.codigo figcaption { font-size: 13.5px; color: var(--tenue); padding: 12px 18px; border-bottom: 1px solid var(--borde); }
.codigo pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: var(--texto); }
.c-p { color: var(--tenue); user-select: none; }
.c-r { color: var(--ok); }
.c-k { color: var(--agente); }
.c-s { color: var(--persona); }
@media (max-width: 960px) { .dev-grilla { grid-template-columns: 1fr; } }

/* Código abierto */
.hechos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border-top: 1px solid var(--borde); }
.hechos div { padding: 18px 18px 0 0; display: grid; gap: 4px; }
.hechos dt { font-size: 14px; color: var(--tenue); }
.hechos dd { font-size: 17px; font-weight: 560; letter-spacing: -0.01em; }
@media (max-width: 600px) { .hechos { grid-template-columns: 1fr; } }

/* Cierre */
.cierre { padding: clamp(96px, 14vh, 168px) var(--gutter); border-top: 1px solid var(--borde); text-align: center; display: grid; gap: 22px; justify-items: center; background: radial-gradient(60% 80% at 50% 100%, rgba(161, 147, 255, 0.14), rgba(161, 147, 255, 0) 70%); }
.cierre h2 { font-size: clamp(36px, 4.4vw, 60px); }
.cierre p { color: var(--texto-2); max-width: 52ch; }
.acciones-centro { justify-content: center; margin-top: 8px; }

/* enlace de una sección a otra página (uno por sección, a algo concreto) */
.enlace-cruce { margin-top: 2px; font-size: 16px; }

/* Pie */
.pie { width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; padding: 40px 0 48px; border-top: 1px solid var(--borde); font-size: 14.5px; color: var(--tenue); }
.pie a:hover { color: var(--texto); }

/* Diálogo */
.dialogo { border: 1px solid var(--borde-2); padding: 0; background: var(--panel); color: var(--texto); width: min(92vw, 520px); border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.dialogo::backdrop { background: rgba(6, 9, 18, 0.72); backdrop-filter: blur(4px); }
.dialogo form { display: grid; gap: 18px; padding: 30px; }
.dialogo h2 { font-size: 28px; }
.dialogo label { display: grid; gap: 7px; font-size: 14.5px; color: var(--texto-2); }
.dialogo input, .dialogo textarea { font: inherit; font-size: 16px; color: var(--texto); background: var(--noche); border: 1px solid var(--borde-2); border-radius: 10px; padding: 11px 12px; }
.dialogo input:focus, .dialogo textarea:focus { outline: 2px solid var(--agente); outline-offset: 0; border-color: transparent; }
.dialogo [aria-invalid="true"] { border-color: #FF6B7A; }
.dialogo-error { color: #FF8F9B; font-size: 15px; }
.dialogo-ok { color: var(--ok); font-size: 15px; }
.dialogo[data-mode="mail"] [data-when="copy"], .dialogo[data-mode="copy"] [data-when="mail"] { display: none !important; }

@media (max-width: 600px) {
  .acciones .boton { flex: 1 1 100%; }
  .msg { padding: 12px 14px; gap: 10px; }
  .registro th:nth-child(3), .registro td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- Páginas internas ---------- */
.cont { width: min(100% - 2 * var(--gutter), var(--ancho)); margin-inline: auto; }
.pagina-cabeza { padding: clamp(140px, 20vh, 220px) 0 clamp(56px, 8vh, 96px); background: radial-gradient(70% 90% at 80% 0%, rgba(161, 147, 255, 0.12), rgba(161, 147, 255, 0) 60%); }
.pagina-cabeza .cont { display: grid; gap: 24px; justify-items: start; }
.h1-pagina { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; max-width: 17ch; }
.pagina-cabeza .lede { max-width: 56ch; }
.indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.indice a { font-size: 14.5px; color: var(--texto-2); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--borde-2); }
.indice a:hover { color: var(--texto); box-shadow: inset 0 0 0 1px var(--agente); }
.h2-ancho { max-width: 22ch; margin-bottom: clamp(32px, 5vh, 56px); }
.enlace { color: var(--agente); font-weight: 520; text-decoration: underline; text-decoration-color: rgba(161, 147, 255, 0.4); text-underline-offset: 5px; }
.enlace:hover { text-decoration-color: var(--agente); }
.nota { font-size: 14.5px; color: var(--tenue) !important; }
.pagina-404 { min-height: 70vh; }

/* ---------- Portada: un mismo idioma ---------- */
.idioma-comun { padding: clamp(96px, 13vh, 160px) 0; }
.idioma-grilla { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: center; }
.recorrido svg { width: 100%; height: auto; display: block; overflow: visible; }
.rc-red { fill: var(--texto-2); font-family: var(--sans); font-size: 13.5px; }
.rc-maquina { fill: rgba(12, 18, 34, 0.6); stroke: var(--borde-2); }
.rc-rotulo { fill: var(--tenue); font-family: var(--sans); font-size: 12.5px; }
.rc-agente { fill: rgba(161, 147, 255, 0.18); stroke: var(--agente); stroke-width: 1.5; }
.rc-agente-b { fill: rgba(95, 212, 160, 0.16); stroke: var(--ok); }
.rc-nombre { fill: var(--texto); font-family: var(--mono); font-size: 12px; }
.rc-camino { fill: none; stroke: rgba(201, 210, 230, 0.22); stroke-width: 1.2; stroke-dasharray: 3 6; }
.rc-paquete { filter: drop-shadow(0 0 6px currentColor); }
.rc-pregunta { fill: var(--agente); color: var(--agente); }
.rc-respuesta { fill: var(--ok); color: var(--ok); }
.rc-nota { fill: var(--tenue); font-family: var(--sans); font-size: 12.5px; }
@media (max-width: 960px) { .idioma-grilla { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .rc-red, .rc-nota { font-size: 20px; } .rc-rotulo { font-size: 19px; } .rc-nombre { font-size: 17px; } }

/* ---------- Portada: puertas a las secciones ---------- */
.puertas { padding: 0 0 clamp(72px, 10vh, 120px); }
.puertas-grilla { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--borde); }
.puerta { display: grid; gap: 10px; align-content: start; padding: 30px 28px 34px 0; border-right: 1px solid var(--borde); transition: background 0.25s; }
.puerta + .puerta { padding-left: 28px; }
.puerta:last-child { border-right: 0; }
.puerta-titulo { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; display: inline-flex; align-items: center; gap: 10px; }
.puerta-titulo::after { content: ''; width: 9px; height: 9px; border-top: 1.5px solid var(--agente); border-right: 1.5px solid var(--agente); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.puerta:hover .puerta-titulo::after { transform: translateX(4px) rotate(45deg); }
.puerta-texto { color: var(--texto-2); font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) { .puertas-grilla { grid-template-columns: 1fr; } .puerta, .puerta + .puerta { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--borde); } }

/* ---------- Demos ---------- */
.pantalla-chat.demo .hilo > .msg { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.pantalla-chat.demo .hilo > .msg.visible { opacity: 1; transform: none; }
.msg-escribiendo { align-items: center; }
.puntos { display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 12px; background: rgba(161, 147, 255, 0.1); }
.puntos span { width: 6px; height: 6px; border-radius: 50%; background: var(--agente); animation: punto 1s infinite ease-in-out; }
.puntos span:nth-child(2) { animation-delay: 0.15s; } .puntos span:nth-child(3) { animation-delay: 0.3s; }
@keyframes punto { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.latiendo::before { animation: latido 1.2s infinite ease-in-out; }
@keyframes latido { 50% { transform: scale(1.6); opacity: 0.5; } }
.fila-llamando td { animation: llamado 2.4s infinite ease-in-out; }
@keyframes llamado { 50% { background: rgba(255, 181, 71, 0.13); } }
.fila-aprobada td, .fila-rechazada td { animation: none; background: rgba(95, 212, 160, 0.07); }
.fila-rechazada td { background: rgba(124, 135, 158, 0.08); }
.registro-nota.nota-ok { color: var(--ok); } .registro-nota.nota-no { color: var(--tenue); }
.matriz td.recien { animation: recien 1.2s var(--ease); }
@keyframes recien { 0% { background: rgba(95, 212, 160, 0.25); } 100% { background: transparent; } }
.oleada-lista { color: var(--ok); }
.tel-tarjeta { transition: box-shadow 0.4s; }
.tel-tarjeta[data-estado="aprobado"] { box-shadow: inset 0 0 0 1px rgba(95, 212, 160, 0.5); }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--texto); margin-left: 2px; animation: cursor 0.9s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.codigo-terminal pre { min-height: 13.6em; }

/* ---------- Protocolo: cómo viaja un mensaje ---------- */
.viaje { display: grid; gap: 28px; }
.viaje-svg { width: 100%; height: auto; display: block; overflow: visible; }
.vj-camino { fill: none; stroke: rgba(201, 210, 230, 0.2); stroke-width: 1.4; stroke-dasharray: 4 7; }
.vj-hitos circle { fill: var(--noche); stroke: var(--borde-2); stroke-width: 2; transition: stroke 0.3s, fill 0.3s; }
.vj-hitos circle.pasado { stroke: var(--agente); fill: rgba(161, 147, 255, 0.25); }
.vj-hitos circle:last-child.pasado { stroke: var(--ok); fill: rgba(95, 212, 160, 0.25); }
.vj-paquete { fill: var(--agente); filter: drop-shadow(0 0 8px var(--agente)); }
.pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--borde); transition: border-color 0.35s; }
.pasos li::before { content: counter(paso); font-family: var(--mono); font-size: 13px; color: var(--tenue); transition: color 0.35s; }
.pasos h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
.pasos p { font-size: 15px; color: var(--texto-2); }
.pasos li.activo { border-top-color: var(--agente); }
.pasos li.activo::before { color: var(--agente); }
@media (max-width: 960px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } .viaje-svg { display: none; } }

/* ---------- Protocolo: capas ---------- */
.capas { display: grid; gap: 10px; min-width: 0; }
.capas .capa { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; padding: 20px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--borde); }
.capa-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capas .capa-nombre { font-weight: 600; font-size: 17px; color: var(--texto); }
.capas .capa-desc { font-size: 14.5px; color: var(--texto-2); }
.capas .capa-red { background: linear-gradient(120deg, rgba(161, 147, 255, 0.2), rgba(161, 147, 255, 0.05)); border-color: rgba(161, 147, 255, 0.45); grid-template-columns: auto 1fr auto; padding: 26px 22px; }
.capa-sello { font-family: var(--mono); font-size: 13px; color: var(--agente); }
.capas .capa-base { background: transparent; border-style: dashed; }
@media (max-width: 600px) { .capa-fila { grid-template-columns: 1fr; } .capas .capa, .capas .capa-red { grid-template-columns: 1fr; } }

/* ---------- Protocolo: principios ---------- */
.principios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.principios > div { padding: 24px 0 28px; border-top: 1px solid var(--borde); display: grid; gap: 8px; align-content: start; }
.principios h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.principios p { color: var(--texto-2); font-size: 16px; max-width: 36ch; }
@media (max-width: 960px) { .principios { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principios { grid-template-columns: 1fr; } }
.hechos-columna { grid-template-columns: 1fr 1fr; margin-top: 0; }
.hechos-columna div { padding: 18px 0; border-bottom: 1px solid var(--borde); }

/* ---------- Desarrollo ---------- */
.runtimes { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--borde); min-width: 0; }
.runtimes li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 18px; padding: 18px 2px; border-bottom: 1px solid var(--borde); }
.runtimes b { font-weight: 600; font-size: 16px; white-space: nowrap; }
.runtimes li b span { font-size: inherit; color: inherit; text-align: inherit; }
.runtimes li span { color: var(--texto-2); font-size: 15px; text-align: right; }

/* ---------- Lista de espera ---------- */
.lista { padding: clamp(130px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); background: radial-gradient(60% 80% at 85% 10%, rgba(255, 181, 71, 0.08), rgba(255, 181, 71, 0) 60%), radial-gradient(60% 80% at 10% 0%, rgba(161, 147, 255, 0.12), rgba(161, 147, 255, 0) 60%); }
.lista-grilla { display: grid; grid-template-columns: 5fr 6fr; gap: 48px 80px; align-items: start; }
.lista-texto { display: grid; gap: 24px; }
.lista-quienes { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--texto-2); }
.lista-quienes li { display: flex; gap: 12px; align-items: baseline; }
.lista-quienes li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--agente); flex: none; transform: translateY(-2px); }
.formulario, .form-listo { background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 20px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); }
.campo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo label, .campo legend { font-size: 14.5px; color: var(--texto-2); padding: 0; }
.opcional { color: var(--tenue); font-size: 13px; margin-left: 6px; }
.campo input[type="text"], .campo input[type="email"], .campo textarea { font: inherit; font-size: 16px; color: var(--texto); background: var(--noche); border: 1px solid var(--borde-2); border-radius: 10px; padding: 12px 13px; width: 100%; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--agente); outline-offset: 0; border-color: transparent; }
.campo [aria-invalid="true"] { border-color: #FF6B7A; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion > span { display: block; padding: 11px 13px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--borde-2); font-size: 14.5px; color: var(--texto-2); line-height: 1.35; transition: box-shadow 0.2s, background 0.2s, color 0.2s; }
.opcion input:checked + span { box-shadow: inset 0 0 0 1.5px var(--agente); background: rgba(161, 147, 255, 0.1); color: var(--texto); }
.opcion input:focus-visible + span { outline: 2px solid var(--agente); outline-offset: 2px; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #FF8F9B; font-size: 15px; }
.boton-ancho { width: 100%; }
.boton[disabled] { opacity: 0.6; cursor: progress; }
.form-privacidad { font-size: 13.5px; color: var(--tenue); text-align: center; }
.form-listo { justify-items: start; }
.form-listo:focus { outline: none; }
.form-listo svg { width: 48px; height: 48px; }
.form-listo svg circle { fill: rgba(95, 212, 160, 0.12); stroke: var(--ok); stroke-width: 1.5; }
.form-listo svg path { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tilde 0.6s 0.15s var(--ease) forwards; }
@keyframes tilde { to { stroke-dashoffset: 0; } }
.form-listo h2 { font-size: 32px; }
.form-listo p { color: var(--texto-2); }
@media (max-width: 960px) { .lista-grilla { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .opciones { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.pie { display: grid; gap: 28px; }
.pie-grilla { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.pie-marca { display: grid; gap: 6px; max-width: 42ch; }
.pie-marca > span { color: var(--texto); font-weight: 600; }
.pie-marca p { font-size: 14.5px; color: var(--tenue); }
.pie-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14.5px; color: var(--texto-2); }
.pie-nav a:hover { color: var(--texto); }
.pie-legal { font-size: 13px; color: var(--tenue); }


/* ================= Iteración 2026-11-08 ================= */
/* Demos: no interactivas, sin cursor de texto ni selección */
.pantalla, .telefono-marco, .recorrido, .diagrama-redes, .viaje, .codigo-terminal, .feed { cursor: default; -webkit-user-select: none; user-select: none; }
.pantalla *, .telefono-marco *, .recorrido *, .diagrama-redes *, .viaje *, .codigo-terminal *, .feed * { pointer-events: none; }

/* Hero: título en tres líneas */
.h1-hero { font-size: clamp(42px, 5.2vw, 82px); line-height: 1.0; letter-spacing: -0.045em; }
.hero-texto .h1-hero { max-width: 12.5ch; }
html[data-lang="es"] .hero-texto .h1-hero { font-size: clamp(38px, 4.6vw, 74px); max-width: 13.5ch; }
.lede { max-width: 52ch; }

/* La red viva */
.red-viva { padding: clamp(88px, 12vh, 150px) 0; border-top: 1px solid var(--borde); }
.red-viva-grilla { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: center; }
.leyenda-viva { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 10px; font-size: 15px; color: var(--texto-2); }
.leyenda-viva li { display: flex; align-items: center; gap: 10px; }
.leyenda-viva li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lv-agente::before { background: var(--agente); box-shadow: 0 0 10px var(--agente); }
.lv-ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lv-persona::before { background: var(--persona); box-shadow: 0 0 10px var(--persona); }
.lv-externo::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tenue); }
.redes-chips { display: inline-flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 520; letter-spacing: 0; white-space: nowrap; vertical-align: 1px; }
.chip-nebula { color: var(--agente); background: rgba(161, 147, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.3); }
.chip-orbita { color: var(--ok); background: rgba(95, 212, 160, 0.1); box-shadow: inset 0 0 0 1px rgba(95, 212, 160, 0.3); }
.chip-afuera { color: var(--tenue); box-shadow: inset 0 0 0 1px rgba(170, 180, 200, 0.35); }
.feed-ventana { position: relative; height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
.feed-lista { list-style: none; margin: 0; padding: 0 0 8px; position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.fm { display: flex; gap: 12px; padding: 12px 18px; transition: transform 0.55s var(--ease), opacity 0.45s var(--ease); }
.fm.entra { opacity: 0; transform: translateY(16px); }
.fm .av { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.fm .av-persona { border-radius: 50%; }
.fm-cuerpo { min-width: 0; display: grid; gap: 3px; flex: 1; }
.fm-quien { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--tenue); }
.fm-quien b { color: var(--texto); font-weight: 600; }
.fm-quien time { margin-left: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fm-texto { font-size: 15px; line-height: 1.45; color: var(--texto); }
.fm-estado { font-size: 12.5px; color: var(--tenue); display: flex; align-items: center; gap: 7px; min-height: 18px; }
.fm-estado:empty { display: none; }
.fm-estado::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tenue); flex: none; }
.fm-estado.e-espera { color: var(--agente); } .fm-estado.e-espera::before { background: var(--agente); box-shadow: 0 0 8px var(--agente); animation: latido 1.2s infinite ease-in-out; }
.fm-estado.e-ok { color: var(--ok); } .fm-estado.e-ok::before { background: var(--ok); }
.fm-estado.e-persona { color: var(--persona); } .fm-estado.e-persona::before { background: var(--persona); }
.fm-estado.e-externo { color: var(--texto-2); } .fm-estado.e-externo::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tenue); }
.fm-persona { background: linear-gradient(90deg, rgba(255, 181, 71, 0.07), rgba(255, 181, 71, 0) 75%); }
.fm-externo .fm-texto { color: var(--texto-2); }
.fm-aviso .fm-texto { color: var(--texto-2); }
.fm-sistema { align-items: center; padding: 8px 18px 8px 62px; }
.fm-sistema p { font-size: 13.5px; color: var(--persona); }
.fm-sis-marca { display: none; }
.fm-sistema.s-resuelto p { color: var(--tenue); text-decoration: line-through; text-decoration-color: rgba(124, 135, 158, 0.6); }
.feed-pie { height: 40px; display: flex; align-items: center; padding: 0 18px; border-top: 1px solid var(--borde); }
.feed-escribe { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tenue); opacity: 0; transition: opacity 0.3s; }
.feed-escribe.activo { opacity: 1; }
.feed-escribe .puntos { padding: 5px 8px; }
.feed-escribe .puntos span { width: 5px; height: 5px; }
@media (max-width: 960px) { .red-viva-grilla { grid-template-columns: 1fr; } .feed-ventana { height: 430px; } }
@media (max-width: 480px) { .fm { padding: 10px 12px; gap: 10px; } .fm-sistema { padding-left: 54px; } .fm-quien time { margin-left: 0; } }

/* Pilares de la portada */
.pilares-home { padding: 0 0 clamp(72px, 10vh, 120px); }
.pilares-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--borde); }
.pilar-home { display: grid; gap: 12px; align-content: start; padding: 32px 32px 36px 0; border-right: 1px solid var(--borde); }
.pilar-home + .pilar-home { padding-left: 32px; }
.pilar-home:last-child { border-right: 0; }
.pilar-home h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.pilar-home p { color: var(--texto-2); font-size: 16px; max-width: 34ch; }
.pilar-marca { width: 10px; height: 10px; border-radius: 50%; }
.pm-agente { background: var(--agente); box-shadow: 0 0 14px var(--agente); }
.pm-persona { background: var(--persona); box-shadow: 0 0 14px var(--persona); }
.pm-ok { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.pilar-home:hover h3 { color: #fff; }
.pilar-home:hover .enlace { text-decoration-color: var(--agente); }
@media (max-width: 860px) { .pilares-grilla { grid-template-columns: 1fr; } .pilar-home, .pilar-home + .pilar-home { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--borde); } }

/* Directorio */
.dir-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
.dir-tabla col.c-agente { width: 29%; } .dir-tabla col.c-host { width: 22%; } .dir-tabla col.c-runtime { width: 19%; } .dir-tabla col.c-estado { width: 30%; }
.dir-tabla th { text-align: left; font-weight: 500; font-size: 13px; color: var(--tenue); padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.dir-tabla td { padding: 12px 16px; border-bottom: 1px solid rgba(180, 195, 230, 0.06); color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-tabla td.mono { color: var(--texto); font-size: 13.5px; }
.dir-tabla .chip { height: 18px; padding: 0 6px; font-size: 10.5px; margin-left: 4px; }
.dir-estado { display: table-cell; }
.dir-estado::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--tenue); }
.d-libre { color: var(--ok) !important; } .d-libre::before { background: var(--ok); }
.d-trabajando { color: var(--agente) !important; } .d-trabajando::before { background: var(--agente); box-shadow: 0 0 8px var(--agente); animation: latido 1.2s infinite ease-in-out; }
.d-persona { color: var(--persona) !important; } .d-persona::before { background: var(--persona); }
.d-cola { color: var(--texto) !important; } .d-cola::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--agente); }
.d-ausente { color: var(--tenue) !important; } .d-ausente::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tenue); }
.dir-tabla tr.d-cambio td { animation: recien 1.4s var(--ease); }
.dir-pie { padding: 14px 18px; font-size: 13.5px; color: var(--texto-2); min-height: 3.6em; line-height: 1.4; }
@media (max-width: 600px) { .dir-tabla { table-layout: auto; } .dir-tabla colgroup { display: none; } .dir-tabla th:nth-child(3), .dir-tabla td:nth-child(3) { display: none; } .dir-tabla td, .dir-tabla th { padding: 11px 8px; font-size: 13px; } .dir-tabla td.mono { font-size: 12.5px; } .dir-tabla .chip { display: none; } }

/* Recursos compartidos */
.registro { table-layout: fixed; }
.registro col.c-nombre { width: 36%; } .registro col.c-tipo { width: 22%; } .registro col.c-version { width: 16%; } .registro col.c-acceso { width: 26%; }
.registro td { overflow: hidden; text-overflow: ellipsis; }
.modo { white-space: nowrap; }
.modo-latiendo::before { animation: latido 1s infinite ease-in-out; }
.registro tr.fila-cambio td { animation: recien 1.2s var(--ease); }
.registro-nota { min-height: 3.4em; line-height: 1.4; color: var(--texto-2); }
@media (max-width: 600px) { .registro { table-layout: auto; } .registro colgroup { display: none; } .registro th:nth-child(3), .registro td:nth-child(3) { display: none; } .registro th, .registro td { padding: 11px 8px; font-size: 13px; } .registro td.mono { font-size: 12.5px; } }

/* Teléfono en loop */
.tel-tarjeta { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.4s; }
.tel-tarjeta.tel-sale { opacity: 0; transform: translateY(-8px) scale(0.98); }
.tel-tarjeta.tel-llega { animation: llega 0.5s var(--ease); }
@keyframes llega { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.tel-boton { transition: transform 0.15s, filter 0.2s, opacity 0.3s; }
.tel-tarjeta[data-estado="pulsa-aprobar"] .tel-aprobar { transform: scale(0.94); filter: brightness(1.25); }
.tel-tarjeta[data-estado="pulsa-rechazar"] .tel-rechazar { transform: scale(0.94); background: rgba(233, 237, 245, 0.2); }
.tel-tarjeta[data-estado="aprobado"] .tel-botones, .tel-tarjeta[data-estado="rechazado"] .tel-botones { opacity: 0.3; }
.tel-tarjeta[data-estado="rechazado"] .tel-resultado { color: var(--texto-2); }
.tel-resultado { min-height: 2.9em; line-height: 1.4; }
.tel-texto { min-height: 4.4em; }

/* Versiones en loop */
.matriz { table-layout: fixed; }
.matriz col.c-host { width: 18%; }
.matriz td, .matriz th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pantalla-versiones .pantalla-titulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oleada { white-space: nowrap; }
.oleada-persona { color: var(--persona); }
@media (max-width: 600px) { .matriz th, .matriz td { padding: 11px 8px; font-size: 12.5px; } .matriz col.c-host { width: 22%; } }

/* Terminal en loop */
.codigo-terminal figcaption { display: flex; align-items: center; gap: 12px; }
.term-luces { display: inline-flex; gap: 6px; }
.term-luces i { width: 10px; height: 10px; border-radius: 50%; background: rgba(233, 237, 245, 0.14); }
.codigo-terminal pre { height: 17.5em; min-height: 0; overflow: hidden; }
.t-linea { white-space: pre; min-height: 1.7em; }
.t-ok .t-sal { color: var(--ok); }
.t-tenue .t-sal { color: var(--tenue); }
.t-persona .t-sal { color: var(--persona); }
.t-sal { color: var(--texto-2); padding-left: 2ch; }
.t-escribiendo::after { content: ''; display: inline-block; width: 8px; height: 1.05em; vertical-align: -0.18em; margin-left: 2px; background: var(--texto); animation: cursor 0.9s steps(1) infinite; }
@media (max-width: 600px) { .codigo-terminal pre { font-size: 12px; height: 19em; } .t-linea { white-space: pre-wrap; word-break: break-all; } }

/* Cómo viaja un mensaje, alineado con los pasos */
.viaje { position: relative; }
.viaje-figura { position: relative; }
.viaje-svg { width: 100%; height: 120px; display: block; }
.vj-capa { position: absolute; left: 0; right: 0; top: 0; height: 120px; }
.vj-hito { position: absolute; width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--noche-2); box-shadow: inset 0 0 0 2px var(--borde-2); transition: box-shadow 0.3s, background 0.3s; }
.vj-hito.pasado { background: rgba(161, 147, 255, 0.25); box-shadow: inset 0 0 0 2px var(--agente), 0 0 14px rgba(161, 147, 255, 0.5); }
.vj-hito:last-child.pasado { background: rgba(95, 212, 160, 0.25); box-shadow: inset 0 0 0 2px var(--ok), 0 0 14px rgba(95, 212, 160, 0.5); }
.vj-paquete { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--agente); box-shadow: 0 0 16px 4px rgba(161, 147, 255, 0.6); z-index: 2; transition: opacity 0.4s; }
.vj-hitos { display: none; }
@media (max-width: 960px) { .viaje-svg, .vj-capa { display: none; } }


/* Hoja de ruta */
.ruta { list-style: none; padding: 0; margin: 0; counter-reset: hito; display: grid; gap: 0; position: relative; }
.ruta::before { content: ''; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: var(--borde); }
.ruta li { counter-increment: hito; position: relative; display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto auto; gap: 4px 32px; padding: 22px 0 22px 56px; border-bottom: 1px solid var(--borde); }
.ruta li::before { content: counter(hito); position: absolute; left: 0; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--tenue); background: var(--noche); box-shadow: inset 0 0 0 1.5px var(--borde-2); }
.ruta h3 { grid-column: 2; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.ruta p { grid-column: 2; color: var(--texto-2); font-size: 16px; max-width: 64ch; }
.ruta-estado { grid-row: 1 / span 2; font-size: 13.5px; color: var(--tenue); padding-top: 4px; }
.ruta-hecho::before { background: rgba(95, 212, 160, 0.2) !important; color: var(--ok) !important; box-shadow: inset 0 0 0 1.5px var(--ok) !important; }
.ruta-hecho .ruta-estado { color: var(--ok); }
.ruta-curso::before { background: rgba(161, 147, 255, 0.25) !important; color: var(--agente) !important; box-shadow: inset 0 0 0 1.5px var(--agente), 0 0 16px rgba(161, 147, 255, 0.5) !important; }
.ruta-curso .ruta-estado { color: var(--agente); }
@media (max-width: 700px) { .ruta li { grid-template-columns: 1fr; } .ruta-estado { grid-row: auto; padding: 0; } .ruta h3, .ruta p { grid-column: 1; } }

/* Código abierto */
.licencias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--borde); }
.licencia { display: grid; gap: 10px; align-content: start; padding: 30px 32px 34px 0; border-right: 1px solid var(--borde); }
.licencia + .licencia { padding-left: 32px; }
.licencia:last-child { border-right: 0; }
.licencia-nombre { font-family: var(--mono); font-size: 13.5px; color: var(--agente); }
.licencia h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.licencia p { color: var(--texto-2); font-size: 16px; max-width: 36ch; }
@media (max-width: 860px) { .licencias { grid-template-columns: 1fr; } .licencia, .licencia + .licencia { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--borde); } }
.pasos-rfc { list-style: none; padding: 0; margin: 0; counter-reset: rfc; display: grid; border-top: 1px solid var(--borde); min-width: 0; }
.pasos-rfc li { counter-increment: rfc; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid var(--borde); }
.pasos-rfc li::before { content: counter(rfc); grid-row: 1 / span 2; font-family: var(--mono); font-size: 13px; color: var(--agente); padding-top: 3px; }
.pasos-rfc b { font-weight: 600; font-size: 17px; }
.pasos-rfc li > span { color: var(--texto-2); font-size: 15px; }

/* Preguntas frecuentes */
.banda-faq { padding-top: 0; border-top: 0; }
.faq { display: grid; }
.faq > details { max-width: 880px; }
.faq > details:first-child { border-top: 1px solid var(--borde); }
.faq details { border-bottom: 1px solid var(--borde); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 560; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--texto-2); border-bottom: 1.5px solid var(--texto-2); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: #fff; }
.faq summary:focus-visible { outline: 2px solid var(--agente); outline-offset: 4px; border-radius: 4px; }
.faq details p { padding: 0 0 24px; color: var(--texto-2); max-width: 70ch; }

/* Pie con columnas */
.pie { display: grid; gap: 36px; padding-top: 56px; }
.pie-grilla { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px 28px; }
.pie-marca { display: grid; gap: 14px; align-content: start; justify-items: start; max-width: 32ch; }
.pie-marca .marca { font-size: 16px; }
.pie-col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.pie-col h2 { font-size: 13.5px; font-weight: 600; color: var(--texto); letter-spacing: 0; margin: 0 0 4px; }
.pie-col a { color: var(--texto-2); }
.pie-col a:hover { color: var(--texto); }
.pie-pronto { color: var(--tenue); display: grid; gap: 2px; }
.pie-pronto small { font-size: 12.5px; }
.pie-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--borde); font-size: 13px; color: var(--tenue); }
.idioma-pie > a, .idioma-pie > span { font-size: 12.5px; padding: 4px 10px; }
@media (max-width: 960px) { .pie-grilla { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }

/* Diagrama de redes */
.dr-enlaces path { fill: none; stroke: rgba(201, 210, 230, 0.24); stroke-width: 1.3; }
.dr-nodos .dr-doble { fill: #C9D2E6; stroke: rgba(161, 147, 255, 0.55); stroke-width: 3; }
.dr-paquete { filter: drop-shadow(0 0 5px currentColor); }
.dr-violeta { fill: var(--agente); color: var(--agente); }
.dr-verde { fill: var(--ok); color: var(--ok); }
.dr-hielo { fill: #8FB4FF; color: #8FB4FF; }
.dr-externo { fill: none; stroke: var(--persona); stroke-opacity: 0.75; stroke-width: 1.3; stroke-dasharray: 4 5; }
.dr-externo-nodo { fill: none; stroke: var(--persona); stroke-width: 1.5; }
.dr-buzon { fill: rgba(255, 181, 71, 0.08); stroke: var(--persona); stroke-opacity: 0.9; }

/* ================= Acceso de investigación: modal de pantalla completa ================= */
html.postulando { overflow: hidden; }
.postular { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: rgba(7, 11, 22, 0.82); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); opacity: 0; transition: opacity 0.42s var(--ease); }
.postular.abierto { opacity: 1; }
.postular-fondo { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.pf { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: 0.22; animation: pf-deriva 22s ease-in-out infinite alternate; }
.pf-1 { background: #A193FF; left: -18vmax; top: -22vmax; }
.pf-2 { background: #FFB547; right: -26vmax; bottom: -30vmax; opacity: 0.12; animation-duration: 28s; }
.pf-3 { background: #5FD4A0; right: 8vmax; top: -34vmax; opacity: 0.08; animation-duration: 34s; }
@keyframes pf-deriva { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
.postular-cerrar { all: unset; position: fixed; top: 22px; right: 24px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px var(--borde-2); background: rgba(12, 18, 34, 0.5); transition: box-shadow 0.2s, transform 0.3s var(--ease); }
.postular-cerrar:hover { box-shadow: inset 0 0 0 1px var(--texto-2); transform: rotate(90deg); }
.postular-cerrar:focus-visible { outline: 2px solid var(--agente); outline-offset: 3px; }
.postular-cerrar span::before, .postular-cerrar span::after { content: ''; position: absolute; left: 14px; top: 22px; width: 18px; height: 1.6px; background: var(--texto); border-radius: 1px; }
.postular-cerrar span::before { transform: rotate(45deg); } .postular-cerrar span::after { transform: rotate(-45deg); }
.postular-cuerpo { position: relative; min-height: 100%; width: min(100% - 2 * var(--gutter), 1140px); margin: 0 auto; padding: clamp(84px, 12vh, 140px) 0 64px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.postular-texto, .postular-form, .postular-listo { transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.postular:not(.abierto) .postular-texto { opacity: 0; transform: translateX(-24px); }
.postular:not(.abierto) .postular-form, .postular:not(.abierto) .postular-listo { opacity: 0; transform: translateX(24px); }
.postular.abierto .postular-form, .postular.abierto .postular-listo { transition-delay: 0.08s; }
.postular-texto { display: grid; gap: 22px; align-content: center; }
.postular-marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; color: var(--texto-2); }
.postular-marca .marca-glifo { width: 22px; height: 22px; }
.postular-marca .marca-glifo circle { fill: var(--agente); } .postular-marca .marca-glifo .marca-persona { fill: var(--persona); }
.postular-marca .marca-glifo path { stroke: var(--agente); stroke-opacity: 0.6; stroke-width: 1.3; }
.postular h2 { font-size: clamp(44px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.045em; }
.postular-lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--texto-2); max-width: 46ch; }
.postular-criterios { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.postular-criterios li { position: relative; padding-left: 22px; color: var(--texto); font-size: 16px; max-width: 48ch; }
.postular-criterios li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--agente); box-shadow: 0 0 10px var(--agente); }
.postular-fundacional { font-size: 15px; color: var(--texto-2); max-width: 50ch; padding-top: 18px; border-top: 1px solid var(--borde); }
.postular-fundacional b { color: var(--persona); font-weight: 600; }
.postular-fundacional a { color: var(--texto); text-decoration: underline; text-decoration-color: var(--borde-2); text-underline-offset: 4px; margin-left: 4px; white-space: nowrap; }
.postular-fundacional a:hover { text-decoration-color: var(--agente); }
.postular-form, .postular-listo { background: rgba(21, 32, 56, 0.55); border: 1px solid var(--borde-2); border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.pc { position: relative; display: grid; }
.pc input, .pc textarea { font: inherit; font-size: 19px; color: var(--texto); background: rgba(12, 18, 34, 0.55); border: 1px solid var(--borde-2); border-radius: 14px; padding: 28px 18px 12px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; resize: vertical; }
.pc textarea { min-height: 150px; line-height: 1.5; }
.pc label { position: absolute; left: 19px; top: 21px; font-size: 18px; color: var(--tenue); pointer-events: none; transform-origin: 0 0; transition: transform 0.22s var(--ease), color 0.22s; }
.pc input:focus, .pc textarea:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--agente), 0 0 30px -6px rgba(161, 147, 255, 0.55); background: rgba(12, 18, 34, 0.8); }
.pc input:focus + label, .pc input:not(:placeholder-shown) + label, .pc textarea:focus + label, .pc textarea:not(:placeholder-shown) + label { transform: translateY(-13px) scale(0.7); color: var(--texto-2); }
.pc [aria-invalid="true"] { box-shadow: 0 0 0 2px #FF6B7A; border-color: transparent; }
.pc-ayuda { margin-top: 8px; font-size: 13.5px; color: var(--tenue); padding-left: 4px; }
.postular-turnstile { display: none; }
.postular-error { color: #FF8F9B; font-size: 15px; }
.postular-enviar { height: 58px; font-size: 17px; border-radius: 14px; position: relative; }
.postular.enviando .postular-enviar { color: transparent; }
.postular.enviando .postular-enviar::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(12, 18, 34, 0.25); border-top-color: var(--noche); animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.postular-legal { font-size: 13px; color: var(--tenue); text-align: center; }
.postular-listo { justify-items: start; align-content: start; }
.postular-listo:focus { outline: none; }
.postular-listo svg { width: 56px; height: 56px; }
.postular-listo svg circle { fill: rgba(95, 212, 160, 0.12); stroke: var(--ok); stroke-width: 1.5; }
.postular-listo svg path { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tilde 0.6s 0.15s var(--ease) forwards; }
.postular-listo h3 { font-size: 34px; letter-spacing: -0.03em; margin: 0; }
.postular-listo p { color: var(--texto-2); }
@media (max-width: 900px) {
  .postular-cuerpo { grid-template-columns: 1fr; align-items: start; padding-top: 88px; }
  .postular-criterios li { font-size: 15px; }
  .pc input, .pc textarea { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .pf { animation: none; } .postular, .postular * { transition-duration: 0.01s !important; } }

/* ================= Acceso de investigación: sección de criterios ================= */
.acceso-grilla { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 72px; align-items: start; }
.acceso-intro { display: grid; gap: 28px; justify-items: start; }
.acceso-lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--texto); max-width: 34ch; }
.fundacional { padding: 24px 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 181, 71, 0.09), rgba(255, 181, 71, 0.02)); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.28); display: grid; gap: 12px; }
.fundacional h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--persona); }
.fundacional p { font-size: 15.5px; color: var(--texto-2); }
.requisitos { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.requisitos li { position: relative; padding-left: 22px; font-size: 15px; color: var(--texto); }
.requisitos li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 8px; height: 5px; border-left: 1.5px solid var(--persona); border-bottom: 1.5px solid var(--persona); transform: rotate(-45deg); }
.criterios { display: grid; gap: 28px; min-width: 0; }
.criterios h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.criterios dl { margin: 0; display: grid; border-top: 1px solid var(--borde); }
.criterios dl div { display: grid; grid-template-columns: 200px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--borde); }
.criterios dt { font-weight: 600; color: var(--texto); }
.criterios dd { margin: 0; color: var(--texto-2); font-size: 15.5px; }
.proceso { list-style: none; padding: 0; margin: 0; counter-reset: proc; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.proceso li { counter-increment: proc; display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--borde-2); }
.proceso li::before { content: counter(proc); font-family: var(--mono); font-size: 12.5px; color: var(--agente); }
.proceso li:last-child { border-top-color: var(--persona); } .proceso li:last-child::before { color: var(--persona); }
.proceso b { font-size: 15.5px; font-weight: 600; }
.proceso li > span { font-size: 13.5px; color: var(--texto-2); line-height: 1.4; }
@media (max-width: 960px) { .acceso-grilla { grid-template-columns: 1fr; } .proceso { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .criterios dl div { grid-template-columns: 1fr; } .proceso { grid-template-columns: 1fr; } }

/* Título del hero y bajada: más cortos y bien escalados en el teléfono */
.hero-texto .h1-hero { max-width: 15ch; font-size: clamp(40px, 5vw, 78px); }
html[data-lang="es"] .hero-texto .h1-hero { max-width: 16ch; font-size: clamp(38px, 4.7vw, 74px); }
.hero-texto .lede { max-width: 46ch; }
@media (max-width: 860px) {
  .hero-texto .h1-hero, html[data-lang="es"] .hero-texto .h1-hero { font-size: clamp(32px, 8.6vw, 44px); line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; }
  .hero-texto .lede { font-size: 16.5px; line-height: 1.5; }
  .hero-texto { gap: 20px; }
}

/* =====================================================================================================
   Sistema visual del sitio (2026-11-08): la misma estética del hero en todas las secciones.
   Cosmos continuo detrás de la página, secciones transparentes con nebulosas, horizontes de luz como
   separadores, paneles de vidrio con borde de luz, estados que brillan, cabeceras con la red viva y
   cierres con órbitas.
   ===================================================================================================== */
.cosmos { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -5; pointer-events: none; }
main > section { position: relative; isolation: isolate; }
main > section:not(.hero) { overflow-x: clip; }

/* secciones sin bandas planas ni filetes: flotan sobre el cosmos */
.banda, .banda-alt, .red-viva, .pilares-home, .cierre, .pie { background: transparent; border-top: 0; }

/* horizonte de luz: una línea que se enciende en el centro, con un nodo */
.banda::before, .red-viva::before, .cierre::before {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: min(1100px, 88%); height: 9px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 1.4px, rgba(161, 147, 255, 0.7) 2.4px, rgba(161, 147, 255, 0) 5px),
    linear-gradient(90deg, rgba(161, 147, 255, 0), rgba(161, 147, 255, 0.28) 22%, rgba(143, 180, 255, 0.55) 50%, rgba(95, 212, 160, 0.28) 78%, rgba(95, 212, 160, 0)) center / 100% 1px no-repeat;
}
/* nebulosas que alternan de lado y de color */
.banda::after, .red-viva::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 70vmax; height: 70vmax; top: -10vmax; right: -32vmax;
  background: radial-gradient(closest-side, rgba(161, 147, 255, 0.11), rgba(161, 147, 255, 0.04) 55%, rgba(161, 147, 255, 0));
}
.banda:nth-of-type(even)::after { right: auto; left: -34vmax; top: 0; background: radial-gradient(closest-side, rgba(95, 212, 160, 0.07), rgba(143, 180, 255, 0.04) 55%, rgba(0, 0, 0, 0)); }
.banda:nth-of-type(3n)::after { background: radial-gradient(closest-side, rgba(143, 180, 255, 0.09), rgba(161, 147, 255, 0.03) 55%, rgba(0, 0, 0, 0)); }

/* títulos con un leve resplandor, como la luz de la escena */
h2, .h1-pagina { text-shadow: 0 0 48px rgba(161, 147, 255, 0.22); }

/* ---------- paneles de vidrio con borde de luz ---------- */
.pantalla, .codigo, .capas .capa, .pilar-home, .licencia, .fundacional {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 41, 72, 0.62), rgba(12, 19, 36, 0.7));
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(161, 147, 255, 0.32);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.pantalla::before, .codigo::before, .capas .capa::before, .pilar-home::before, .licencia::before, .fundacional::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, rgba(161, 147, 255, 0.6), rgba(161, 147, 255, 0.08) 32%, rgba(143, 180, 255, 0.04) 60%, rgba(95, 212, 160, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.pantalla { border-radius: 18px; }
.codigo { border-radius: 14px; background: linear-gradient(180deg, rgba(14, 21, 40, 0.85), rgba(8, 13, 26, 0.9)); }
.pantalla-barra { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)); border-bottom: 1px solid rgba(161, 147, 255, 0.14); }
.codigo figcaption { border-bottom-color: rgba(161, 147, 255, 0.14); }
.registro th, .matriz thead th, .dir-tabla th { border-bottom-color: rgba(161, 147, 255, 0.14); }
.registro td, .matriz th, .matriz td, .dir-tabla td { border-bottom-color: rgba(180, 195, 230, 0.05); }
.fundacional { background: linear-gradient(135deg, rgba(255, 181, 71, 0.10), rgba(28, 41, 72, 0.55) 55%, rgba(12, 19, 36, 0.7)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 90px -30px rgba(255, 181, 71, 0.3); }
.fundacional::before { background: linear-gradient(140deg, rgba(255, 181, 71, 0.7), rgba(255, 181, 71, 0.08) 40%, rgba(161, 147, 255, 0.3)); }

/* estados que brillan como los nodos de la escena */
.modo::before, .fm-estado::before, .dir-estado::before, .matriz td::before, .v-ley::before, .ley::before, .leyenda-viva li::before { box-shadow: 0 0 8px currentColor; }
.modo-auto::before, .v-ok::before { box-shadow: 0 0 8px var(--ok); }
.modo-pedido::before { box-shadow: 0 0 8px var(--persona); }

/* ---------- portada: tres pilares como instrumentos ---------- */
.pilares-home { padding: clamp(24px, 4vh, 48px) 0 clamp(96px, 13vh, 150px); }
.pilares-grilla { gap: 20px; border-top: 0; }
.pilar-home, .pilar-home + .pilar-home { padding: 26px 26px 30px; border-right: 0; border-radius: 20px; gap: 14px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pilar-home:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 110px -26px rgba(161, 147, 255, 0.5); }
.pilar-home .pilar-glifo { display: block; width: 100%; max-width: 168px; height: auto; margin-bottom: 4px; }
.pilar-marca { width: 10px; height: 10px; }
@media (max-width: 860px) { .pilar-home, .pilar-home + .pilar-home { padding: 24px; border-bottom: 0; } .pilares-grilla { gap: 14px; } }

/* ---------- cabeceras de las páginas internas: la red viva de fondo ---------- */
.pagina-cabeza { position: relative; isolation: isolate; overflow: hidden; background: none; min-height: min(64vh, 640px); display: flex; align-items: center; padding: clamp(120px, 16vh, 180px) 0 clamp(56px, 8vh, 96px); }
.pagina-cabeza .cont { position: relative; z-index: 1; }
.cabeza-red { position: absolute; inset: 0; z-index: -1; }
.cabeza-red canvas { width: 100%; height: 100%; display: block; }
.pagina-cabeza::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(12, 18, 34, 0.96) 0%, rgba(12, 18, 34, 0.85) 32%, rgba(12, 18, 34, 0.2) 60%, rgba(12, 18, 34, 0) 75%), linear-gradient(to top, rgba(12, 18, 34, 1) 0%, rgba(12, 18, 34, 0) 30%); }
.indice a { background: rgba(21, 32, 56, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.25); }
.indice a:hover { box-shadow: inset 0 0 0 1px var(--agente), 0 0 24px -6px rgba(161, 147, 255, 0.6); }
@media (max-width: 860px) {
  .pagina-cabeza { min-height: 0; align-items: flex-end; padding-top: 34vh; }
  .pagina-cabeza::after { background: linear-gradient(to bottom, rgba(12, 18, 34, 0) 0%, rgba(12, 18, 34, 0.2) 22%, rgba(12, 18, 34, 0.94) 42%, var(--noche) 70%); }
}

/* ---------- cierres: un momento de luz con órbitas ---------- */
.cierre { overflow: hidden; padding-top: clamp(120px, 17vh, 200px); padding-bottom: clamp(120px, 17vh, 200px); background: radial-gradient(42% 52% at 50% 55%, rgba(161, 147, 255, 0.16), rgba(161, 147, 255, 0) 70%); }
.cierre > *:not(.cierre-orbitas) { position: relative; z-index: 1; }
.cierre-orbitas { position: absolute; left: 50%; top: 56%; width: min(980px, 140vw); aspect-ratio: 1; z-index: 0; pointer-events: none; transform: translate(-50%, -50%) perspective(1400px) rotateX(74deg); }
.co { position: absolute; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.26), 0 0 40px rgba(161, 147, 255, 0.08); }
.co-1 { inset: 0; } .co-2 { inset: 17%; box-shadow: inset 0 0 0 1px rgba(143, 180, 255, 0.24); } .co-3 { inset: 34%; box-shadow: inset 0 0 0 1px rgba(95, 212, 160, 0.24); }
.cn { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; animation: cn-orbita var(--d) linear infinite; }
.cn-1 { --r: min(490px, 70vw); --d: 38s; box-shadow: 0 0 14px 4px rgba(161, 147, 255, 0.85); }
.cn-2 { --r: min(323px, 46vw); --d: 26s; animation-direction: reverse; box-shadow: 0 0 14px 4px rgba(143, 180, 255, 0.8); }
.cn-3 { --r: min(157px, 22vw); --d: 17s; background: #FFE2B0; box-shadow: 0 0 14px 4px rgba(255, 181, 71, 0.85); }
@keyframes cn-orbita { from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg) rotateX(-74deg); } to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg) rotateX(-74deg); } }
@media (prefers-reduced-motion: reduce) { .cn { animation: none; transform: translateX(var(--r)) rotateX(-74deg); } }

/* ---------- pie ---------- */
.pie { border-top: 0; position: relative; }
.pie::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(161, 147, 255, 0), rgba(161, 147, 255, 0.35) 30%, rgba(95, 212, 160, 0.3) 70%, rgba(95, 212, 160, 0)); }
.pie-base { border-top-color: rgba(161, 147, 255, 0.12); }

/* ---------- listas con filetes: filetes más tenues, sobre el cosmos ---------- */
.ruta li, .principios > div, .criterios dl, .criterios dl div, .runtimes, .runtimes li, .pasos-rfc, .pasos-rfc li, .faq details, .faq > details:first-child, .hechos-columna div, .proceso li { border-color: rgba(161, 147, 255, 0.13); }
.ruta::before { background: linear-gradient(to bottom, rgba(95, 212, 160, 0.5), rgba(161, 147, 255, 0.45) 22%, rgba(161, 147, 255, 0.12)); }
.ruta-curso::before { animation: latido 1.8s ease-in-out infinite; }
.pasos li { border-top-color: rgba(161, 147, 255, 0.15); }
.pasos li.activo { border-top-color: var(--agente); box-shadow: 0 -10px 30px -18px rgba(161, 147, 255, 0.9); }
.boton { box-shadow: 0 0 0 0 rgba(161, 147, 255, 0); transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.3s; }
.boton:not(.boton-linea):hover { box-shadow: 0 0 32px -6px rgba(161, 147, 255, 0.75); }
.boton-linea { box-shadow: inset 0 0 0 1px var(--borde-2); background: rgba(12, 18, 34, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.boton-linea:hover { box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.6), 0 0 24px -8px rgba(161, 147, 255, 0.6); background: rgba(21, 32, 56, 0.5); }

/* Seguro por construcción: seis principios como piezas de vidrio, cada una con su nodo de color */
.principios { gap: 18px; }
.principios > div, .principios > div:first-child { position: relative; border: 0; padding: 26px 24px 28px 56px; border-radius: 18px; background: linear-gradient(180deg, rgba(28, 41, 72, 0.5), rgba(12, 19, 36, 0.6)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 80px -34px rgba(161, 147, 255, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.principios > div::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(161, 147, 255, 0.45), rgba(161, 147, 255, 0.05) 40%, rgba(95, 212, 160, 0.25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.principios > div::after { content: ''; position: absolute; left: 24px; top: 32px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--agente)); box-shadow: 0 0 14px 2px var(--c, var(--agente)); }
.principios > div:nth-child(1) { --c: var(--persona); }
.principios > div:nth-child(2) { --c: #8FB4FF; }
.principios > div:nth-child(3) { --c: var(--agente); }
.principios > div:nth-child(4) { --c: var(--ok); }
.principios > div:nth-child(5) { --c: #9aa3b8; }
.principios > div:nth-child(6) { --c: var(--agente); }

/* licencias como tres piezas de vidrio separadas */
.licencias { gap: 18px; border-top: 0; }
.licencia, .licencia + .licencia { padding: 26px 26px 30px; border-right: 0; border-bottom: 0; border-radius: 18px; }
/* listas técnicas (runtimes, especificación, pasos de un RFC) dentro de un panel de vidrio */
.runtimes, .pasos-rfc { position: relative; border-top: 0; border-radius: 18px; padding: 6px 22px; background: linear-gradient(180deg, rgba(28, 41, 72, 0.5), rgba(12, 19, 36, 0.62)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 90px -34px rgba(161, 147, 255, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.runtimes::before, .pasos-rfc::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(161, 147, 255, 0.5), rgba(161, 147, 255, 0.05) 40%, rgba(95, 212, 160, 0.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.runtimes li:last-child, .pasos-rfc li:last-child { border-bottom: 0; }
.runtimes b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; background: var(--agente); box-shadow: 0 0 8px var(--agente); }
@media (max-width: 860px) { .licencias { gap: 14px; } }

/* marca de simulación en cada pantalla de demostración */
.chip-r1 { color: var(--agente); background: rgba(161, 147, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.3); }
.chip-r2 { color: var(--ok); background: rgba(95, 212, 160, 0.1); box-shadow: inset 0 0 0 1px rgba(95, 212, 160, 0.3); }
.chip-sim { color: var(--texto-2); background: rgba(233, 237, 245, 0.06); box-shadow: inset 0 0 0 1px rgba(233, 237, 245, 0.18); font-weight: 500; }
.chip-sim::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--persona); box-shadow: 0 0 6px var(--persona); animation: latido 1.6s ease-in-out infinite; }
.barra-der { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.codigo figcaption .chip-sim { margin-left: auto; }
.tel-sim { justify-self: center; margin-top: -4px; }
.sim-nota { margin-top: 12px; font-size: 13px; color: var(--tenue); text-align: right; }
@media (max-width: 600px) { .barra-der .oleada { display: none; } .sim-nota { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .chip-sim::before { animation: none; } }
.feed .sim-nota { margin: 0; padding: 0 18px 14px; text-align: left; }

/* ================= Casos de uso ================= */
.circulo-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 520; color: var(--texto-2); }
.circulo-chip svg { width: 22px; height: 22px; flex: none; }
.circulo-chip circle { fill: none; stroke: rgba(180, 195, 230, 0.22); stroke-width: 0.9; }
.circulo-chip circle.on { stroke: var(--agente); stroke-width: 1.6; filter: drop-shadow(0 0 2px var(--agente)); }
.casos-cabeza { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 72px; align-items: end; margin-bottom: clamp(32px, 5vh, 56px); }
.casos-cabeza p { color: var(--texto-2); max-width: 58ch; }
.casos-grilla, .casos-grupo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.casos-grupo + .casos-grupo { margin-top: 18px; }
.caso { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px 24px 26px; border-radius: 18px; background: linear-gradient(180deg, rgba(28, 41, 72, 0.55), rgba(12, 19, 36, 0.66)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 80px -34px rgba(161, 147, 255, 0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.caso::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(161, 147, 255, 0.5), rgba(161, 147, 255, 0.05) 40%, rgba(95, 212, 160, 0.28)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.caso:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 110px -30px rgba(161, 147, 255, 0.5); }
.caso h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.caso p { color: var(--texto-2); font-size: 15.5px; }
.caso .caso-protocolo { font-size: 13.5px; color: var(--agente); padding-top: 12px; border-top: 1px solid rgba(161, 147, 255, 0.15); }
.casos-mas { margin-top: 28px; }
.nota-prospectiva { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texto-2); padding: 6px 12px; border-radius: 999px; background: rgba(21, 32, 56, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35); }
.nota-prospectiva::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--persona); box-shadow: 0 0 6px var(--persona); }
.circulos-lista { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: circ; display: grid; gap: 10px; }
.circulos-lista li { counter-increment: circ; display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; font-size: 15px; color: var(--texto-2); }
.circulos-lista li::before { content: counter(circ); grid-row: span 2; font-family: var(--mono); font-size: 12.5px; color: var(--agente); padding-top: 2px; }
.circulos-lista b { color: var(--texto); font-weight: 600; }
.circulos svg { width: 100%; height: auto; display: block; overflow: visible; }
.ci-anillos circle { fill: none; stroke: rgba(161, 147, 255, 0.28); stroke-width: 1.1; }
.ci-anillos circle:nth-child(n+4) { stroke: rgba(143, 180, 255, 0.22); stroke-dasharray: 3 6; }
.ci-anillos .ci-publica { stroke: rgba(180, 195, 230, 0.2); stroke-dasharray: 2 8; }
.ci-puertas path { fill: none; stroke: var(--persona); stroke-opacity: 0.7; stroke-width: 1.4; stroke-linecap: round; }
.ci-nodos circle { fill: #DCE3F5; filter: drop-shadow(0 0 5px rgba(161, 147, 255, 0.9)); }
.ci-nodos .ci-socio { fill: #C7F2DD; filter: drop-shadow(0 0 5px rgba(95, 212, 160, 0.9)); }
.ci-nodos .ci-sector { fill: #D6E4FF; filter: drop-shadow(0 0 5px rgba(143, 180, 255, 0.9)); }
.ci-nodos .ci-afuera { fill: none; stroke: #9aa3b8; stroke-width: 1.3; filter: none; }
.ci-camino { fill: none; stroke: rgba(201, 210, 230, 0.12); stroke-dasharray: 3 6; }
.ci-pregunta { fill: var(--agente); } .ci-pregunta-n { fill: #fff; }
.ci-respuesta { fill: var(--ok); } .ci-respuesta-n { fill: #fff; }
.ci-externo { fill: none; stroke: #c3cad8; stroke-width: 1.6; }
.ci-aprueba { fill: none; stroke: var(--persona); stroke-width: 2; }
.ci-rotulos text { fill: var(--tenue); font-family: var(--mono); font-size: 11px; text-anchor: middle; letter-spacing: 0.04em; }
@media (max-width: 960px) { .casos-cabeza { grid-template-columns: 1fr; } .casos-grilla, .casos-grupo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .casos-grilla, .casos-grupo { grid-template-columns: 1fr; } .ci-rotulos text { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .ci-pregunta, .ci-pregunta-n, .ci-respuesta, .ci-respuesta-n, .ci-externo, .ci-aprueba { display: none; } }

/* ================= Redes y reglas: gobierno por código ================= */
.gb-cabeza { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 72px; align-items: start; margin-bottom: clamp(32px, 5vh, 56px); }
.gb-cabeza h2 { max-width: 15ch; }
.gb-texto { display: grid; gap: 16px; }
.gb-texto p { color: var(--texto-2); max-width: 60ch; }
.gobierno { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "fig fig" "cod orden"; gap: 22px; }
.gb-figura { grid-area: fig; margin: 0; }
.gb-figura svg { width: 100%; max-width: 1000px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.gb-codigo { grid-area: cod; margin: 0; }
.gb-codigo pre { font-size: 13px; line-height: 1.75; }
.c-c { color: var(--tenue); }
.gb-orden { grid-area: orden; position: relative; padding: 22px 24px; border-radius: 16px; background: linear-gradient(180deg, rgba(28, 41, 72, 0.55), rgba(12, 19, 36, 0.66)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 80px -34px rgba(255, 181, 71, 0.25); display: grid; gap: 14px; align-content: start; }
.gb-orden::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(255, 181, 71, 0.55), rgba(255, 181, 71, 0.06) 40%, rgba(161, 147, 255, 0.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.gb-orden h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.gb-orden ol { list-style: none; padding: 0; margin: 0; counter-reset: gob; display: grid; gap: 8px; }
.gb-orden li { counter-increment: gob; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid rgba(161, 147, 255, 0.12); }
.gb-orden li:last-child { border-bottom: 0; }
.gb-orden li::before { content: counter(gob); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--persona); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.5); }
.gb-orden li:first-child::before { background: rgba(255, 181, 71, 0.16); box-shadow: inset 0 0 0 1px var(--persona), 0 0 12px rgba(255, 181, 71, 0.5); }
.gb-orden b { font-weight: 600; font-size: 15.5px; }
.gb-orden li > span { font-size: 14px; color: var(--texto-2); }
.gb-orden p { font-size: 14.5px; color: var(--texto); padding-top: 4px; }
.gb-red1 { stroke: rgba(161, 147, 255, 0.6); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(161, 147, 255, 0.35)); }
.gb-red2 { stroke: rgba(95, 212, 160, 0.55); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(95, 212, 160, 0.3)); }
.gb-red-rotulo { font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; }
.gb-c1 { fill: #C3B9FF; } .gb-c2 { fill: #9FE6C2; } .gb-c-amb { fill: var(--persona); }
.gb-camino { fill: none; stroke: rgba(201, 210, 230, 0.16); stroke-width: 1.1; stroke-dasharray: 3 6; }
.gb-orbita { fill: none; stroke: rgba(161, 147, 255, 0.45); stroke-width: 0.9; }
.gb-orbita2 { stroke: rgba(95, 212, 160, 0.45); }
.gb-orbitaC { stroke: rgba(233, 237, 245, 0.55); stroke-width: 1.1; }
.gb-nucleo { fill: #fff; }
.gb-agente { fill: #C3B9FF; filter: drop-shadow(0 0 3px #A193FF); }
.gb-agente2 { fill: #9FE6C2; filter: drop-shadow(0 0 3px #5FD4A0); }
.gb-rotulo { fill: var(--texto-2); font-family: var(--mono); font-size: 11.5px; text-anchor: middle; }
.gb-rotulo-fuerte { fill: var(--texto); font-size: 13px; }
.gb-puerta rect { fill: rgba(12, 18, 34, 0.7); stroke-width: 1.4; }
.gb-puerta1 rect { stroke: #A193FF; filter: drop-shadow(0 0 5px rgba(161, 147, 255, 0.7)); }
.gb-puerta2 rect { stroke: #5FD4A0; filter: drop-shadow(0 0 5px rgba(95, 212, 160, 0.6)); }
.gb-buzon rect, .gb-buzon path { fill: none; stroke: var(--persona); stroke-width: 1.3; stroke-opacity: 0.8; }
.gb-buzon-luz { fill: rgba(255, 181, 71, 0.35); stroke: var(--persona); filter: drop-shadow(0 0 8px rgba(255, 181, 71, 0.9)); }
.gb-pregunta { fill: #A193FF; } .gb-respuesta { fill: #5FD4A0; }
.gb-externo { fill: none; stroke: #c3cad8; stroke-width: 1.8; }
.gb-ok circle { fill: rgba(95, 212, 160, 0.2); stroke: #5FD4A0; stroke-width: 1.3; }
.gb-ok path { fill: none; stroke: #5FD4A0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gb-no circle { fill: rgba(255, 181, 71, 0.2); stroke: var(--persona); stroke-width: 1.3; }
.gb-no path { fill: none; stroke: var(--persona); stroke-width: 2; stroke-linecap: round; }
.gb-leyenda { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 10px; font-size: 13.5px; color: var(--texto-2); }
.gb-l { display: inline-flex; align-items: center; gap: 8px; }
.gb-l::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.gb-l-ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.gb-l-no::before { background: var(--persona); box-shadow: 0 0 8px var(--persona); }
@media (max-width: 960px) { .gb-cabeza { grid-template-columns: 1fr; } .gobierno { grid-template-columns: 1fr; grid-template-areas: "fig" "cod" "orden"; } }
@media (max-width: 600px) { .gb-rotulo { font-size: 15px; } .gb-red-rotulo { font-size: 18px; } .gb-codigo pre { font-size: 11.5px; overflow-x: auto; } }
@media (prefers-reduced-motion: reduce) { .gb-pregunta, .gb-respuesta, .gb-externo { display: none; } }

.gb-rotulo.gb-izq { text-anchor: end; } .gb-rotulo.gb-der { text-anchor: start; }
.gb-figura svg { max-width: 880px; }
.gobierno { align-items: start; }

/* Cómo funciona, glosario, estado de hoy */
.como-funciona { padding-top: clamp(88px, 12vh, 140px); }
.cf-cabeza { display: grid; grid-template-columns: 5fr 7fr; gap: 20px 72px; align-items: end; margin-bottom: clamp(28px, 4vh, 48px); }
.cf-cabeza p { color: var(--texto-2); max-width: 62ch; }
.cf-abierto { margin-top: 26px; color: var(--texto-2); font-size: 15.5px; }
.glosario-grilla { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.glosario-grilla div { padding: 18px 0 20px; border-top: 1px solid rgba(161, 147, 255, 0.14); display: grid; gap: 6px; }
.glosario-grilla dt { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; color: var(--texto); }
.glosario-grilla dd { margin: 0; color: var(--texto-2); font-size: 15.5px; }
.viaje-reglas { margin-top: 22px; }
.banda-corta { padding-top: clamp(40px, 6vh, 64px) !important; padding-bottom: clamp(40px, 6vh, 64px) !important; }
.banda-corta::after { display: none; }
.hoy-texto { font-size: 17px; color: var(--texto); max-width: 70ch; padding: 16px 20px; border-radius: 14px; background: rgba(21, 32, 56, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.28); }
@media (max-width: 960px) { .cf-cabeza { grid-template-columns: 1fr; } .glosario-grilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .glosario-grilla { grid-template-columns: 1fr; } }

/* ================= Pasada de lanzamiento (2026-11-08) =================
   Una idea por sección: un título, un párrafo y una sola prueba visual. Menos cajas: las listas son filas con filete;
   las cajas quedan para lo que es un objeto (una pantalla del producto, un teléfono, un bloque de código). */

/* cabecera de sección: título y párrafo, lado a lado en pantallas anchas */
.seccion-cabeza { display: grid; grid-template-columns: 5fr 7fr; gap: 20px 72px; align-items: end; margin-bottom: clamp(36px, 5vh, 56px); }
.seccion-cabeza h2 { max-width: 16ch; }
.seccion-cabeza p { color: var(--texto-2); max-width: 58ch; }
@media (max-width: 960px) { .seccion-cabeza { grid-template-columns: 1fr; } }

/* portada: cómo funciona, tres ideas sin cajas */
.cf-titulo { max-width: 17ch; margin-bottom: clamp(40px, 6vh, 64px); }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.idea { display: grid; gap: 12px; align-content: start; }
.idea h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.022em; margin: 0; line-height: 1.2; }
.idea p { color: var(--texto-2); font-size: 16.5px; max-width: 32ch; }
@media (max-width: 860px) { .ideas { grid-template-columns: 1fr; gap: 40px; } }

/* portada: tres casos en una fila con filetes */
.casos-home h2 { max-width: 16ch; margin-bottom: clamp(32px, 5vh, 48px); }
.casos-fila { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(161, 147, 255, 0.16); }
.casos-fila article { display: grid; gap: 10px; align-content: start; padding: 28px 32px 6px 0; }
.casos-fila article + article { padding-left: 32px; border-left: 1px solid rgba(161, 147, 255, 0.12); }
.casos-fila h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.casos-fila p { color: var(--texto-2); font-size: 16px; max-width: 34ch; }
.casos-fila .circulo-nombre, .circulo-nombre { font-size: 13.5px; font-weight: 520; color: var(--agente); }
.casos-mas { margin-top: 36px; }
@media (max-width: 860px) {
  .casos-fila { grid-template-columns: 1fr; }
  .casos-fila article, .casos-fila article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(161, 147, 255, 0.12); }
}

/* pantalla de pagos */
.pg-red { margin-left: 10px; font-weight: 450; color: var(--tenue); }
.pagos { list-style: none; margin: 0; padding: 2px 0; }
.pg { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "av quien monto" "av como estado"; gap: 4px 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid rgba(180, 195, 230, 0.06); }
.pg .av { grid-area: av; align-self: start; }
.pg-quien { grid-area: quien; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 14px; color: var(--texto); }
.pg-quien b { font-family: var(--mono); font-weight: 500; }
.pg-flecha { position: relative; width: 16px; height: 1px; background: var(--tenue); }
.pg-flecha::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--tenue); border-right: 1px solid var(--tenue); transform: rotate(45deg); }
.pg-monto { grid-area: monto; text-align: right; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-como { grid-area: como; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--texto-2); }
.pg-proto { flex: none; font-family: var(--mono); font-size: 11.5px; line-height: 18px; padding: 0 7px; border-radius: 6px; color: var(--agente); background: rgba(161, 147, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.32); }
.pg-estado { grid-area: estado; display: inline-flex; justify-content: flex-end; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.pg-estado::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pg-estado.e-ok { color: var(--ok); }
.pg-estado.e-persona { color: var(--persona); }
.pg-firma { background: linear-gradient(90deg, rgba(255, 181, 71, 0.09), rgba(255, 181, 71, 0) 70%); }
.pg-cambio { animation: pg-recien 1.1s var(--ease); }
@keyframes pg-recien { from { background-color: rgba(255, 181, 71, 0.16); } to { background-color: transparent; } }
.pg-nota { padding: 14px 18px 16px; font-size: 13.5px; color: var(--texto-2); }
@media (max-width: 520px) {
  .pg { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "av quien quien" "av como como" "av monto estado"; padding: 13px 14px; gap: 5px 12px; }
  .pg .av { width: 30px; height: 30px; }
  .pg-monto { text-align: left; }
}

/* reglas en la página del protocolo: el código y el orden de gobierno, sin el mapa */
.gobierno.gobierno-orden-solo { grid-template-areas: "cod orden"; }
@media (max-width: 960px) { .gobierno.gobierno-orden-solo { grid-template-areas: "cod" "orden"; } }

/* capas: MCP, A2A y los protocolos de pago, lado a lado */
.capa-fila-3 { grid-template-columns: repeat(3, 1fr); }
.capas .capa-fila-3 .capa { grid-template-columns: 1fr; gap: 4px; }
.capas .capa-pagos { background: linear-gradient(120deg, rgba(255, 181, 71, 0.13), rgba(28, 41, 72, 0.5) 70%); }
@media (max-width: 600px) { .capa-fila-3 { grid-template-columns: 1fr; } }

/* seguridad: seis garantías como filas, sin cajas */
.garantias { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.garantias li { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 0 30px 24px; border-top: 1px solid rgba(161, 147, 255, 0.15); }
.garantias li::before { content: ''; position: absolute; left: 0; top: 35px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--agente)); box-shadow: 0 0 10px var(--c, var(--agente)); }
.garantias .g-persona { --c: var(--persona); }
.garantias .g-ok { --c: var(--ok); }
.garantias h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.garantias p { color: var(--texto-2); font-size: 16px; max-width: 34ch; }
@media (max-width: 960px) { .garantias { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .garantias { grid-template-columns: 1fr; } }

/* cómo viaja un mensaje: cada paso con aire propio */
.pasos { gap: 14px; }
.pasos li, .pasos li.activo { padding: 20px 20px 24px; border-top: 0; border-radius: 14px; background: linear-gradient(180deg, rgba(28, 41, 72, 0.5), rgba(12, 19, 36, 0.55)); box-shadow: inset 0 1px 0 rgba(161, 147, 255, 0.22); }
.pasos li.activo { box-shadow: inset 0 2px 0 var(--agente), 0 -12px 30px -20px rgba(161, 147, 255, 0.9); }
.pasos h3 { font-size: 17px; }
.pasos p { font-size: 14.5px; line-height: 1.55; }

/* casos de uso: los seis círculos como pestañas; el dibujo a la izquierda, las pestañas y sus casos a la derecha */
.circulos-grilla { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "fig tabs" "fig paneles"; grid-template-rows: auto 1fr; gap: 28px 64px; align-items: start; }
.circulos-tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 8px; }
.ct { all: unset; box-sizing: border-box; flex: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--borde-2); transition: background 0.25s, box-shadow 0.25s; }
.ct b { font-weight: 560; font-size: 15.5px; letter-spacing: -0.01em; color: var(--texto-2); transition: color 0.25s; }
.ct > span { display: none; }
.ct:hover b { color: var(--texto); }
.ct:hover { box-shadow: inset 0 0 0 1px rgba(161, 147, 255, 0.55); }
.ct[aria-selected="true"] { background: rgba(161, 147, 255, 0.16); box-shadow: inset 0 0 0 1px var(--agente), 0 0 22px -8px rgba(161, 147, 255, 0.8); }
.ct[aria-selected="true"] b { color: var(--texto); }
.ct:focus-visible { outline: 2px solid var(--agente); outline-offset: 3px; }
.circulos-grilla > .circulos { grid-area: fig; position: sticky; top: 96px; width: 100%; max-width: 520px; justify-self: center; margin: 0; }
.circulos-paneles { grid-area: paneles; min-width: 0; }
.cp { display: grid; }
.cp-nombre { display: none; }
.cp-desc { margin-bottom: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(161, 147, 255, 0.14); color: var(--tenue); font-size: 15.5px; }
.cp article { display: grid; gap: 6px; padding: 18px 0 20px; border-bottom: 1px solid rgba(161, 147, 255, 0.1); }
.cp article:last-child { border-bottom: 0; }
.cp article h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.25; }
.cp article p { color: var(--texto-2); font-size: 16px; max-width: 52ch; }
.con-pestanas .cp:not([hidden]) { animation: cp-entra 0.4s var(--ease); }
@keyframes cp-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* sin JavaScript: todos los casos, cada grupo con su nombre */
.circulos-seccion:not(.con-pestanas) .circulos-tabs { display: none; }
.circulos-seccion:not(.con-pestanas) .circulos-grilla { grid-template-areas: "fig paneles"; }
.circulos-seccion:not(.con-pestanas) .cp-nombre { display: block; margin: 28px 0 10px; font-size: 15px; color: var(--agente); }
/* el anillo del círculo elegido se enciende */
.ci-anillos circle, .ci-rotulos text { transition: stroke 0.35s, stroke-opacity 0.35s, stroke-width 0.35s, fill 0.35s; }
.circulos[data-activo="1"] .ci-anillos circle:nth-child(1), .circulos[data-activo="2"] .ci-anillos circle:nth-child(2), .circulos[data-activo="3"] .ci-anillos circle:nth-child(3),
.circulos[data-activo="4"] .ci-anillos circle:nth-child(4), .circulos[data-activo="5"] .ci-anillos circle:nth-child(5), .circulos[data-activo="6"] .ci-anillos circle:nth-child(6) { stroke: #C9C1FF; stroke-width: 2.2; stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(161, 147, 255, 0.85)); }
.circulos[data-activo="1"] .ci-rotulos text:nth-child(1), .circulos[data-activo="2"] .ci-rotulos text:nth-child(2), .circulos[data-activo="3"] .ci-rotulos text:nth-child(3),
.circulos[data-activo="4"] .ci-rotulos text:nth-child(4), .circulos[data-activo="5"] .ci-rotulos text:nth-child(5), .circulos[data-activo="6"] .ci-rotulos text:nth-child(6) { fill: var(--texto); }
@media (max-width: 960px) {
  .circulos-grilla, .circulos-seccion:not(.con-pestanas) .circulos-grilla { grid-template-columns: 1fr; grid-template-areas: "fig" "tabs" "paneles"; grid-template-rows: none; gap: 24px; }
  .circulos-grilla > .circulos { position: static; max-width: 380px; }
  .circulos-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .circulos-tabs::-webkit-scrollbar { display: none; }
  .ct b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .con-pestanas .cp:not([hidden]), .pg-cambio { animation: none; } }

/* marca de ejemplo en las pantallas: quieta y discreta */
.chip-sim::before { animation: none; background: var(--tenue); box-shadow: none; }

/* =====================================================================================================
   La firma (2026-11-09): grabado de líneas finas, joyas de estado y detalles en mono precisos.
   ===================================================================================================== */
/* rótulos de la red del hero (los arma hero.mjs): mono chico, con un filete que sale del objeto */
.red-rotulos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.red-rotulo { position: absolute; left: 0; top: 0; opacity: 0; margin-top: -0.5em; padding-left: 22px; font: 500 11px/1 var(--mono); letter-spacing: 0.02em; color: rgba(170, 180, 200, 0.92); white-space: nowrap; will-change: transform, opacity; }
.red-rotulo::before { content: ''; position: absolute; left: 7px; top: 50%; width: 11px; height: 1px; background: linear-gradient(90deg, rgba(201, 210, 230, 0), rgba(201, 210, 230, 0.55)); }
.red-rotulo-red { color: rgba(214, 220, 236, 0.95); }
.red-rotulo-persona { color: rgba(255, 196, 110, 0.95); }
.red-rotulo-persona::before { background: linear-gradient(90deg, rgba(255, 181, 71, 0), rgba(255, 181, 71, 0.6)); }
.red-rotulo-nodo { color: rgba(170, 180, 200, 0.78); }
/* el buzón, cuando queda a la izquierda de su anillo: el texto va hacia afuera, con el filete a la derecha */
.red-rotulo-izq { padding-left: 0; padding-right: 22px; }
.red-rotulo-izq::before { left: auto; right: 7px; background: linear-gradient(270deg, rgba(201, 210, 230, 0), rgba(201, 210, 230, 0.55)); }

/* ---------- filetes grabados: cada separador es una banda tejida (como los anillos de la red), con una joya ---------- */
:root {
  --banda-grabada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='11' viewBox='0 0 18 11'%3E%3Cg fill='none' stroke='%23D6DCF0' stroke-width='.6'%3E%3Cpath d='M0 1.2h18M0 9.8h18' stroke-opacity='.5'/%3E%3Cpath d='M0 5.5C4.5 1.8 4.5 1.8 9 5.5S13.5 9.2 18 5.5' stroke-opacity='.32'/%3E%3Cpath d='M0 5.5C4.5 9.2 4.5 9.2 9 5.5S13.5 1.8 18 5.5' stroke-opacity='.32'/%3E%3C/g%3E%3C/svg%3E");
  --trama-grabada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='7' viewBox='0 0 36 7'%3E%3Cg fill='none' stroke='%23D6DCF0' stroke-width='.5'%3E%3Cpath d='M0 3.5C9 0 9 0 18 3.5S27 7 36 3.5'/%3E%3Cpath d='M0 3.5C9 7 9 7 18 3.5S27 0 36 3.5' stroke-opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
  --joya: radial-gradient(circle at 50% 50%, #fff 0 1px, rgba(214, 208, 255, 0.95) 1.6px, rgba(161, 147, 255, 0.5) 2.6px, rgba(161, 147, 255, 0) 6px);
}
.banda::before, .red-viva::before, .cierre::before {
  top: -6px; height: 12px; width: min(1100px, 88%);
  background: var(--joya) center / 14px 12px no-repeat, var(--banda-grabada) center / 18px 11px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
/* motivo de sección: un fragmento del sello grabado (cosmos.js lo dibuja una vez), casi invisible, girando muy despacio */
.banda::after, .red-viva::after {
  width: 860px; height: 860px; top: -300px; right: -470px; left: auto;
  background: var(--grabado, none) center / contain no-repeat; opacity: 0; transition: opacity 1.6s var(--ease);
  -webkit-mask: radial-gradient(closest-side, #000 52%, transparent 80%); mask: radial-gradient(closest-side, #000 52%, transparent 80%);
  animation: grabado-gira 320s linear infinite;
}
.banda:nth-of-type(even)::after { right: auto; left: -470px; top: -200px; background: var(--grabado, none) center / contain no-repeat; animation-direction: reverse; }
.banda:nth-of-type(3n)::after { background: var(--grabado, none) center / contain no-repeat; }
html.grabado .banda::after, html.grabado .red-viva::after { opacity: 0.1; }
@keyframes grabado-gira { to { transform: rotate(360deg); } }

/* trama de seguridad detrás de los títulos clave, a contraste mínimo (como el fondo de un billete) */
main > section h2, .h1-pagina { position: relative; text-shadow: none; }
main > section h2::before, .h1-pagina::before {
  content: ''; position: absolute; z-index: -1; inset: -0.45em -1.4em -0.4em -0.9em; pointer-events: none;
  background: var(--trama-grabada) 0 0 / 36px 7px; opacity: 0.11;
  -webkit-mask: radial-gradient(ellipse 58% 62% at 32% 50%, #000 10%, transparent 72%); mask: radial-gradient(ellipse 58% 62% at 32% 50%, #000 10%, transparent 72%);
}
.cierre h2::before { -webkit-mask: radial-gradient(ellipse 52% 64% at 50% 50%, #000 10%, transparent 72%); mask: radial-gradient(ellipse 52% 64% at 50% 50%, #000 10%, transparent 72%); }

/* ---------- pantallas del producto: borde de un filete platino, sombra profunda, sin halos de color ---------- */
.pantalla, .codigo, .capas .capa, .pilar-home, .licencia, .fundacional, .principios > div, .runtimes, .pasos-rfc {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 36px 90px -46px rgba(0, 0, 0, 0.95), 0 0 0 0.5px rgba(214, 220, 240, 0.05);
}
.pantalla::before, .codigo::before, .capas .capa::before, .pilar-home::before, .licencia::before, .principios > div::before, .runtimes::before, .pasos-rfc::before {
  background: linear-gradient(160deg, rgba(226, 231, 246, 0.34), rgba(226, 231, 246, 0.09) 26%, rgba(226, 231, 246, 0.05) 62%, rgba(161, 147, 255, 0.26));
}
.fundacional { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 36px 90px -46px rgba(0, 0, 0, 0.95); }
.pantalla-barra, .codigo figcaption { border-bottom: 0; background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), linear-gradient(90deg, rgba(214, 220, 240, 0), rgba(214, 220, 240, 0.16) 18%, rgba(214, 220, 240, 0.16) 82%, rgba(214, 220, 240, 0)); background-size: 100% 100%, 100% 1px; background-position: 0 0, 0 100%; background-repeat: no-repeat; }
.registro th, .matriz thead th, .dir-tabla th { border-bottom-color: rgba(214, 220, 240, 0.1); }

/* ---------- estados como joyas: brillo arriba a la izquierda, borde más oscuro y un engaste de filete ---------- */
.ley::before, .msg-estado::before, .modo:not(.modo-nunca)::before, .matriz td:not(.v-nada):not(.v-exc)::before, .v-ley:not(.v-exc)::before, .lista-quienes li::before,
.leyenda-viva li::before, .fm-estado::before, .dir-estado::before, .postular-criterios li::before, .principios > div::after, .runtimes b::before, .chip-sim::before,
.nota-prospectiva::before, .gb-l::before, .pg-estado::before, .garantias li::before {
  background-image: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 13%, rgba(255, 255, 255, 0) 44%), radial-gradient(circle, rgba(12, 18, 34, 0) 48%, rgba(12, 18, 34, 0.45) 100%);
  outline: 0.5px solid rgba(233, 237, 245, 0.28); outline-offset: 1.5px;
}

/* ---------- botones: platino con engaste fino; el de línea, un filete que se enciende ---------- */
.boton { border-radius: 9px; background: linear-gradient(180deg, #F4F6FB, #DDE2EE); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(12, 18, 34, 0.12), 0 10px 30px -16px rgba(161, 147, 255, 0.55); font-weight: 560; letter-spacing: -0.006em; }
.boton:not(.boton-linea):hover { background: linear-gradient(180deg, #fff, #E6EAF4); box-shadow: inset 0 0 0 0.5px #fff, 0 0 0 1px #0C1222, 0 0 0 1.6px rgba(233, 237, 245, 0.55), 0 14px 34px -14px rgba(161, 147, 255, 0.7); }
.boton-linea { background: rgba(12, 18, 34, 0.32); box-shadow: inset 0 0 0 0.75px rgba(214, 220, 240, 0.34); }
.boton-linea:hover { background: rgba(21, 32, 56, 0.45); box-shadow: inset 0 0 0 0.75px rgba(226, 231, 246, 0.7), 0 0 26px -10px rgba(161, 147, 255, 0.55); }
.boton:focus-visible { outline: 1.5px solid var(--agente); outline-offset: 3px; }

/* ---------- cabecera y pie: filetes finos; el pie abre con la banda grabada ---------- */
.top-solida, .menu-abierto .top { border-bottom-color: rgba(214, 220, 240, 0.08); }
.pie::before { height: 11px; top: -5px; background: var(--joya) 50% 50% / 14px 11px no-repeat, var(--banda-grabada) center / 18px 11px repeat-x; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); opacity: 0.8; }
.pie-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--texto-2); }
.pie-base { border-top: 0; background: linear-gradient(90deg, rgba(214, 220, 240, 0), rgba(214, 220, 240, 0.14) 20%, rgba(214, 220, 240, 0.14) 80%, rgba(214, 220, 240, 0)) top / 100% 1px no-repeat; }

/* ---------- cierre: el sello entero detrás del título, sus órbitas en filetes ---------- */
.cierre { background: radial-gradient(40% 50% at 50% 55%, rgba(161, 147, 255, 0.1), rgba(161, 147, 255, 0) 70%); }
.cierre::after { content: ''; position: absolute; left: 50%; top: 50%; width: min(760px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; background: var(--grabado, none) center / contain no-repeat; opacity: 0; transition: opacity 1.6s var(--ease); -webkit-mask: radial-gradient(closest-side, #000 60%, transparent 100%); mask: radial-gradient(closest-side, #000 60%, transparent 100%); }
html.grabado .cierre::after { opacity: 0.13; animation: cierre-gira 400s linear infinite; }
@keyframes cierre-gira { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.co { box-shadow: inset 0 0 0 0.6px rgba(201, 194, 255, 0.3); }
.co-2 { box-shadow: inset 0 0 0 0.6px rgba(170, 196, 255, 0.26); } .co-3 { box-shadow: inset 0 0 0 0.6px rgba(201, 210, 232, 0.24); }
.cn { width: 7px; height: 7px; margin: -3.5px; background: radial-gradient(circle at 34% 30%, #fff 0 18%, #E4E0FF 40%, #A193FF 100%); }
.cn-1 { box-shadow: 0 0 10px 2px rgba(161, 147, 255, 0.7); } .cn-2 { box-shadow: 0 0 10px 2px rgba(143, 180, 255, 0.6); }
.cn-3 { background: radial-gradient(circle at 34% 30%, #fff 0 18%, #FFE2B0 40%, #FFB547 100%); box-shadow: 0 0 10px 2px rgba(255, 181, 71, 0.7); }

/* ---------- índices y chips: filete fino ---------- */
.indice a { box-shadow: inset 0 0 0 0.75px rgba(214, 220, 240, 0.26); background: rgba(12, 18, 34, 0.4); }
.indice a:hover { box-shadow: inset 0 0 0 0.75px rgba(226, 231, 246, 0.7), 0 0 22px -8px rgba(161, 147, 255, 0.6); }

@media (prefers-reduced-motion: reduce) { .banda::after, .red-viva::after, html.grabado .cierre::after { animation: none; } }

/* ---------- hero: el titular deja aire a la red; la red se apaga detrás del texto ---------- */
@media (min-width: 861px) {
  .hero-texto .h1-hero { font-size: clamp(40px, 4.6vw, 72px); letter-spacing: -0.042em; }
  html[data-lang="es"] .hero-texto .h1-hero { font-size: clamp(38px, 4.25vw, 67px); }
  .hero::before { background: linear-gradient(90deg, var(--noche) 0%, rgba(12, 18, 34, 0.9) 28%, rgba(12, 18, 34, 0.42) 46%, rgba(12, 18, 34, 0) 60%); }
}

/* ---------- diagramas con el mismo grabado: filetes finos, cantos moleteados, joyas sin halos de filtro ---------- */
.gb-red1, .gb-red2 { stroke-width: 0.8; filter: none; }
.gb-banda { fill: none; stroke-width: 0.6; stroke-opacity: 0.55; }
.gb-canto { fill: none; stroke-width: 5; stroke-opacity: 0.32; stroke-dasharray: 0.6 2.6; }
.gb-banda1 { stroke: #C9C1FF; } .gb-banda2 { stroke: #A9E8CC; }
.gb-agente, .gb-agente2 { filter: none; }
.gb-puerta1 rect, .gb-puerta2 rect { filter: none; stroke-width: 1; }
.gb-orbita { stroke-width: 0.7; }
.ci-anillos circle { stroke-width: 0.8; }
.ci-nodos circle { filter: none; }
.ci-nodos .ci-socio, .ci-nodos .ci-sector { filter: none; }
/* el círculo elegido: un canto moleteado, como el bisel de un reloj */
.circulos[data-activo="1"] .ci-anillos circle:nth-child(1), .circulos[data-activo="2"] .ci-anillos circle:nth-child(2), .circulos[data-activo="3"] .ci-anillos circle:nth-child(3),
.circulos[data-activo="4"] .ci-anillos circle:nth-child(4), .circulos[data-activo="5"] .ci-anillos circle:nth-child(5), .circulos[data-activo="6"] .ci-anillos circle:nth-child(6) { stroke: #D9D3FF; stroke-opacity: 0.9; stroke-width: 5; stroke-dasharray: 0.7 2.5; filter: none; }
.ct[aria-selected="true"] { background: rgba(161, 147, 255, 0.12); box-shadow: inset 0 0 0 0.75px rgba(201, 194, 255, 0.85), 0 0 22px -10px rgba(161, 147, 255, 0.8); }
.ct { box-shadow: inset 0 0 0 0.75px rgba(214, 220, 240, 0.24); }

/* ---------- Pedir acceso (2026-11-09): sin tarjeta; los campos van sobre la página, como el resto del sitio. En el
   teléfono entra entero en la pantalla, sin desplazarse. ---------- */
.postular { background: rgba(9, 13, 26, 0.965); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.pf { display: none; }
.postular-fondo::after { content: ''; position: absolute; width: min(900px, 130vw); aspect-ratio: 1; right: -18%; top: -26%; background: var(--grabado, none) center / contain no-repeat; opacity: 0.12; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent 100%); mask: radial-gradient(closest-side, #000 55%, transparent 100%); }
.postular-cerrar { width: 44px; height: 44px; top: 18px; right: 18px; background: rgba(233, 237, 245, 0.06); box-shadow: inset 0 0 0 0.75px rgba(226, 231, 246, 0.42); }
.postular-cerrar span::before, .postular-cerrar span::after { left: 13px; top: 21px; width: 18px; height: 1.5px; }
.postular-cerrar:hover { background: rgba(233, 237, 245, 0.12); box-shadow: inset 0 0 0 0.75px rgba(226, 231, 246, 0.8); }
.postular-form, .postular-listo { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; gap: 26px; }
.postular-form { align-content: center; }
.pc input, .pc textarea { background: transparent; border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 rgba(214, 220, 240, 0.28); padding: 26px 2px 10px; font-size: 19px; }
.pc textarea { min-height: 112px; resize: none; }
.pc label { left: 2px; top: 20px; }
.pc input:focus, .pc textarea:focus { background: transparent; box-shadow: inset 0 -1.5px 0 var(--agente), 0 14px 26px -22px rgba(161, 147, 255, 0.9); }
.pc input:focus + label, .pc input:not(:placeholder-shown) + label, .pc textarea:focus + label, .pc textarea:not(:placeholder-shown) + label { transform: translateY(-14px) scale(0.72); }
.pc [aria-invalid="true"] { box-shadow: inset 0 -1.5px 0 #FF6B7A; }
.pc-ayuda { padding-left: 2px; }
.postular-enviar { height: 54px; border-radius: 12px; }
.postular-legal { text-align: left; }
@media (max-width: 900px) {
  .postular { overflow-y: auto; }
  .postular-cuerpo { min-height: 100%; padding: 74px 0 calc(18px + env(safe-area-inset-bottom)); gap: 22px; align-content: start; grid-template-rows: auto auto; }
  .postular-marca { display: none; }
  .postular h2 { font-size: clamp(32px, 9vw, 40px); text-shadow: none; }
  .postular-texto { gap: 10px; align-content: start; }
  .postular-lede { font-size: 15.5px; line-height: 1.45; }
  .postular-form { gap: 14px; }
  .pc input, .pc textarea { font-size: 17px; padding: 22px 2px 8px; }
  .pc label { top: 17px; font-size: 16.5px; }
  .pc textarea { min-height: 84px; height: 84px; }
  .pc-ayuda { font-size: 12.5px; margin-top: 6px; }
  .postular-enviar { height: 52px; margin-top: 4px; }
  .postular-legal { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .postular-cuerpo { padding-top: 64px; gap: 12px; }
  .postular h2 { font-size: 30px; }
  .postular-lede { font-size: 14.5px; }
  .pc-ayuda { display: none; }
  .pc textarea { min-height: 72px; height: 72px; }
  .postular-form { gap: 10px; }
}

/* ---------- los costados de las secciones, sin motivo (el sello queda en el cierre) ---------- */
.banda::after, .red-viva::after { display: none; }

/* ================= Detalles de mobile (2026-11-09) ================= */
.codigo pre .l { display: block; min-height: 1.7em; }
@media (max-width: 600px) {
  /* el directorio: un estado largo («en uso por una persona») baja de renglón con sangría colgante; no se corta */
  .dir-tabla td.dir-estado { white-space: normal; padding-left: 23px; text-indent: -15px; }
  /* el mapa de gobierno: sin los rótulos de las puertas, que pisaban a los nodos; la leyenda de abajo las nombra */
  .gb-rotulo.gb-izq, .gb-rotulo.gb-der { display: none; }
  /* código sin scroll de costado: las reglas saltan de renglón con sangría colgante; el resto entra a 12 px */
  .codigo pre { font-size: 12px; }
  .gb-codigo pre { white-space: pre-wrap; overflow-x: visible; font-size: 12px; }
  .gb-codigo pre .l { padding-left: 2ch; text-indent: -2ch; }
}
