/* Conexiones CACC — identidad de colombiachamber.com (docs/modules/conexiones_marca.md).
   Poppins (texto y títulos, 400/500/600/700) y Ubuntu 700 (botones) desde Google Fonts (link en index.html; la CSP permite solo
   fonts.googleapis.com y fonts.gstatic.com). Si no cargan: Segoe UI / Arial.
   TEMAS: claro (fondo #F7F7F7, superficies #FDFDFB, texto azul marino, secundario pizarra #284053) y oscuro (fondo navy #0A0A40,
   superficies #13134F / #1B1B5C, texto #F7F7F7, acento dorado #D9A62C). Por defecto sigue prefers-color-scheme; el panel de accesibilidad
   fija html[data-tema="claro|oscuro"]. El amarillo #F7C903 es siempre el botón principal (texto azul marino).
   Sin estilos en línea (CSP): los scripts usan solo el CSSOM. Movimiento quieto con prefers-reduced-motion o html.rm. */

:root {
  --navy: #0A0A40;
  --yellow: #F7C903;
  --yellow-h: #F4C143;
  --gold: #D9A62C;
  --slate: #284053;
  --bg: #F7F7F7;
  --surface: #FDFDFB;
  --surface2: #EEF0F6;
  --campo: #FFFFFF;
  --line: #D5D9E2;
  --borde: #6E7690;
  --text: #0A0A40;
  --muted: #284053;
  --ink: #0A0A40;
  --ok: #1E6B3A;
  --bad: #A4262C;
  --chip: #E9ECF5;
  --chip-ok-bg: #DCEFE2;
  --chip-bad-bg: #F6DADB;
  --usado: #FFF3B8;
  --bar: rgba(247, 247, 247, .92);
  --aviso: #0A0A40;
  --del: #FBE4E5;
  --hover: rgba(10, 10, 64, .07);
  --foco: #0A0A40;
  --anillo: rgba(247, 201, 3, .6);
  --codigo: #FFF8D6;
  --arco: #0A0A40;
  --radius: 6px;
  --r-campo: 20px;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;
  --t-mid: 320ms;
  --t-slow: 600ms;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-btn: "Ubuntu", "Segoe UI", system-ui, Arial, sans-serif;
  --lado: max(20px, calc((100% - 1180px) / 2));
  --cab: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #0A0A40; --surface: #13134F; --surface2: #1B1B5C; --campo: #13134F; --line: #2E2E78; --borde: #8F96C8;
    --text: #F7F7F7; --muted: #C5CAE6; --ink: #F7F7F7; --ok: #7ED7A0; --bad: #FF9C94; --chip: #26267A; --chip-ok-bg: #17492C; --chip-bad-bg: #5A1D22;
    --usado: rgba(247, 201, 3, .2); --bar: rgba(10, 10, 64, .92); --aviso: #26267A; --del: rgba(255, 120, 120, .22); --hover: rgba(247, 247, 247, .1);
    --foco: #F7C903; --codigo: rgba(217, 166, 44, .16); --arco: #F7C903; color-scheme: dark;
  }
}
:root[data-tema="oscuro"] {
  --bg: #0A0A40; --surface: #13134F; --surface2: #1B1B5C; --campo: #13134F; --line: #2E2E78; --borde: #8F96C8;
  --text: #F7F7F7; --muted: #C5CAE6; --ink: #F7F7F7; --ok: #7ED7A0; --bad: #FF9C94; --chip: #26267A; --chip-ok-bg: #17492C; --chip-bad-bg: #5A1D22;
  --usado: rgba(247, 201, 3, .2); --bar: rgba(10, 10, 64, .92); --aviso: #26267A; --del: rgba(255, 120, 120, .22); --hover: rgba(247, 247, 247, .1);
  --foco: #F7C903; --codigo: rgba(217, 166, 44, .16); --arco: #F7C903; color-scheme: dark;
}
/* Alto contraste: blanco/negro (claro) o negro/blanco (oscuro) con amarillo */
html.hc { --bg: #FFFFFF; --surface: #FFFFFF; --surface2: #F0F0F0; --campo: #FFFFFF; --line: #000000; --borde: #000000; --text: #000000; --muted: #000000; --ink: #000000; --ok: #004B1C; --bad: #7A0000;
  --chip: #FFFFFF; --usado: #FFF3A8; --bar: #FFFFFF; --aviso: #000000; --foco: #0050FF; --codigo: #FFFFFF; --yellow: #FFD400; --yellow-h: #FFE04D; --arco: #000000; }
@media (prefers-color-scheme: dark) {
  html.hc:not([data-tema="claro"]) { --bg: #000000; --surface: #000000; --surface2: #111111; --campo: #000000; --line: #FFFFFF; --borde: #FFFFFF; --text: #FFFFFF; --muted: #FFFFFF; --ink: #FFFFFF;
    --ok: #8CFFB4; --bad: #FFB3AD; --chip: #000000; --usado: #3A3200; --bar: #000000; --aviso: #000000; --foco: #FFD400; --codigo: #000000; --arco: #FFD400; }
}
html.hc[data-tema="oscuro"] { --bg: #000000; --surface: #000000; --surface2: #111111; --campo: #000000; --line: #FFFFFF; --borde: #FFFFFF; --text: #FFFFFF; --muted: #FFFFFF; --ink: #FFFFFF;
  --ok: #8CFFB4; --bad: #FFB3AD; --chip: #000000; --usado: #3A3200; --bar: #000000; --aviso: #000000; --foco: #FFD400; --codigo: #000000; --arco: #FFD400; }
html.hc .hero, html.hc .cabecera, html.hc .mapa-caja, html.hc .vacio-caja { background: #000; }
html.hc .btn { border: 2px solid #000; color: #000; }
html.hc .btn-sec { background: transparent; border-color: var(--ink); color: var(--ink); }
html.hc .chip { border: 1px solid var(--ink); color: var(--ink); }

html { font-size: 100%; }
html.t125 { font-size: 125%; }
html.t150 { font-size: 150%; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-text-size-adjust: 100%; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cabecera :focus-visible { outline-color: var(--yellow); }
main { outline: none; }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-btn); font-weight: 700; z-index: 120; }
.saltar:focus { left: 8px; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etq { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); }
.ayuda { color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* ---------- botones: un solo botón amarillo por pantalla; lo demás, texto o íconos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--yellow); color: var(--navy); font-family: var(--font-btn); font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: background-color var(--t-fast) var(--curva), transform var(--t-fast) var(--curva), opacity var(--t-fast); }
.btn:hover { background: var(--yellow-h); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-grande { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-sec { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 8px 18px; }
.btn-sec:hover { background: var(--hover); }
.btn-peq { min-height: 44px; padding: 6px 16px; font-size: .92rem; }
.btn-texto { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 8px 10px; min-height: 44px; font-family: var(--font); font-weight: 600; cursor: pointer; border-radius: var(--radius); }
.btn-texto:hover { background: var(--hover); }
.btn-texto[disabled] { opacity: .55; cursor: default; text-decoration: none; }
.btn-texto.peligro { color: var(--bad); }
.btn.trabajando, .btn.hecho { pointer-events: none; }
.btn.hecho { background: var(--ok); color: #fff; opacity: 1; }
.btn.hecho .ico { stroke: #fff; animation: check-pop var(--t-mid) var(--curva) both; }
@keyframes check-pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.puntos { display: inline-flex; gap: 4px; }
.puntos i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: punto 900ms var(--curva) infinite; }
.puntos i:nth-child(2) { animation-delay: 120ms; } .puntos i:nth-child(3) { animation-delay: 240ms; }
@keyframes punto { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

/* Ícono con ayuda */
.ib { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--t-fast); }
.ib:hover { background: var(--hover); }
.ib .ico { width: 22px; height: 22px; }
.ib[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 2px); left: 50%; transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 6px; background: var(--yellow); color: var(--navy); font-family: var(--font); font-size: .75rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast) var(--curva); z-index: 5; }
.ib:hover::after, .ib:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .ib[data-tip]::after { display: none; } }
.ib-cerrar { position: absolute; right: 10px; top: 10px; }

/* ---------- movimiento: aparición por pasos y titular por palabras ---------- */
.rev { animation: aparece var(--t-slow) var(--curva) calc(var(--r, 0) * 70ms + 160ms) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.gran { font-family: var(--font); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; font-size: clamp(2rem, 5.6vw, 3.4rem); color: var(--ink); }
.gran .lin { display: block; }
.pal { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.pal-i { display: inline-block; transform: translateY(112%); opacity: 0; animation: palabra 720ms var(--curva) calc(var(--i, 0) * 70ms + 100ms) both; }
@keyframes palabra { to { transform: none; opacity: 1; } }
.rz .pal-i { color: var(--yellow); }
.gran.centro { text-align: center; }
.escena-sub { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 56ch; }
.centro { text-align: center; }

/* ---------- cabecera: logo · pasos · idioma · accesibilidad ---------- */
.cabecera { position: fixed; top: var(--marco, 0px); left: 0; right: 0; z-index: 40; height: var(--cab); background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14); view-transition-name: cabecera; }
.cab-cont { height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 max(12px, calc((100% - 1180px) / 2)); }
.cab-logo { flex: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.p-logo { width: 112px; }
.cab-der { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.cabecera .ib { color: #fff; }
.cabecera .ib:hover { background: rgba(255, 255, 255, .14); }
.cabecera .ib[aria-expanded="true"] { background: rgba(247, 201, 3, .28); }
.btn-idioma { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: transparent; color: #fff; font-family: var(--font-btn); font-weight: 700; font-size: .85rem; letter-spacing: .04em; cursor: pointer; }
.btn-idioma:hover { background: rgba(255, 255, 255, .14); }
.bandera { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); flex: none; }
.pasos { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.paso { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; background: transparent; border: 0; color: rgba(255, 255, 255, .8); cursor: pointer; flex: none; font-size: .82rem; font-weight: 500; }
.paso:hover { color: #fff; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); font-size: .78rem; font-weight: 600; flex: none; transition: background-color var(--t-mid) var(--curva), color var(--t-mid), border-color var(--t-mid); }
.paso.hecho .dot { border-color: var(--yellow); color: var(--yellow); }
.paso.activo { color: #fff; }
.paso.activo .dot { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.paso-t { display: none; white-space: nowrap; }
.tramo { position: relative; width: 22px; height: 2px; background: rgba(255, 255, 255, .26); overflow: hidden; flex: none; }
.tramo i { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-slow) var(--curva); }
.tramo.lleno i { transform: scaleX(1); }
@media (min-width: 720px) { .paso-t { display: inline; } .tramo { width: 34px; } }
.tab { min-height: 44px; padding: 0 14px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: rgba(255, 255, 255, .8); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }
.insignia { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 99px; background: var(--yellow); color: var(--navy); font-size: .75rem; text-align: center; }
/* panel de accesibilidad */
.panel-acc { position: absolute; top: calc(100% + 8px); right: max(12px, calc((100% - 1180px) / 2)); width: min(340px, calc(100vw - 24px)); display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid var(--borde); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.acc-h { font-size: 1.05rem; }
.acc-fila { display: grid; gap: 8px; }
.acc-sw { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.acc-t { font-size: .9rem; font-weight: 600; color: var(--ink); }
.acc-grupo { display: flex; border: 1.5px solid var(--borde); border-radius: 99px; padding: 3px; gap: 2px; }
.acc-op { flex: 1; min-height: 44px; padding: 0 8px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--font-btn); font-weight: 700; font-size: .85rem; cursor: pointer; }
.acc-op[aria-checked="true"] { background: var(--yellow); color: var(--navy); }
.acc-salir { justify-self: start; }
.interruptor { flex: none; position: relative; width: 56px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.interruptor::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; bottom: 9px; border: 2px solid var(--ink); border-radius: 99px; background: var(--campo); transition: background-color var(--t-mid) var(--curva); }
.interruptor::after { content: ""; position: absolute; top: 13px; left: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform var(--t-mid) var(--curva); }
.interruptor[aria-checked="true"]::before { background: var(--yellow); border-color: var(--ink); }
.interruptor[aria-checked="true"]::after { transform: translateX(26px); background: var(--navy); }

/* ---------- entrada: pantalla completa, red de nodos, una acción ---------- */
.hero { position: relative; background: var(--navy); color: #fff; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: calc(var(--cab) + var(--marco, 0px) + 28px) 20px 56px; text-align: center; }
.red-fondo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-cont { position: relative; width: 100%; max-width: 780px; display: grid; gap: 22px; justify-items: center; outline: none; }
.hero .gran { color: #fff; font-size: clamp(2.4rem, 8vw, 5rem); }
.hero .escena-sub { color: #D8DCF0; }
.demo-nota { font-size: .85rem; color: #E8C86A; }
.accion-centro { display: flex; justify-content: center; margin-top: 6px; }
.opciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 620px; margin-top: 18px; }
.opcion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 16px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--curva); }
.opcion .ico { width: 28px; height: 28px; color: var(--yellow); }
.opcion:hover { border-color: var(--yellow); background: rgba(247, 201, 3, .1); transform: translateY(-2px); }
.form-hero { display: flex; gap: 10px; width: 100%; max-width: 560px; flex-wrap: wrap; justify-content: center; }
.campo-hero { flex: 1 1 260px; min-height: 52px; padding: 10px 22px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1rem; }
.campo-hero::placeholder { color: #C9CEEA; }
.campo-hero:focus { border-color: var(--yellow); outline: none; background: rgba(255, 255, 255, .16); }
.hero .msg { min-height: 1.4em; color: #FFB4AB; }

/* ---------- pantallas de trabajo ---------- */
.escena { position: relative; padding: calc(var(--cab) + var(--marco, 0px) + 36px) var(--lado) 6px; }
.escena-cont { display: grid; gap: 12px; justify-items: start; }
.trabajo { position: relative; padding: 24px var(--lado) 150px; min-height: 40vh; }
.vista { min-height: 100svh; }
.vista:has(.hero-inicio) { min-height: 0; }
.espacio-v { height: 14px; }

/* campos grandes con borde redondeado */
.campo-gran, .campo-fuente, .campo { display: block; width: 100%; border: 1.5px solid var(--borde); border-radius: var(--r-campo); background: var(--campo); color: var(--text); padding: 16px 20px; font-size: 1.05rem; line-height: 1.5; resize: none; overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-mid) var(--curva), background-color var(--t-mid); }
.campo-gran { min-height: 58px; }
.campo-gran::placeholder, .campo-fuente::placeholder, .campo::placeholder { color: var(--muted); opacity: .75; }
.campo-gran:focus, .campo:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--anillo); }
.campo-gran.llenando, .campo-fuente.llenando { border-color: var(--gold); box-shadow: 0 0 0 4px var(--anillo); }
.campo { min-height: 48px; padding: 10px 16px; border-radius: 16px; }
.campo-buscar { max-width: 520px; border-radius: 99px; padding: 10px 22px; }
.campo-fuente { background: var(--surface2); border-color: var(--line); color: var(--text); min-height: 120px; max-height: 17rem; overflow-y: auto; cursor: default; }
.campo-fuente:focus { outline: none; border-color: var(--borde); }
.pop { animation: pop 420ms var(--curva); }
@keyframes pop { 0% { transform: scale(.97); } 40% { transform: scale(1.015); box-shadow: 0 0 0 6px var(--anillo); } 100% { transform: none; } }
.cg { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* ---------- paso 1: dos fuentes, sugerencias y su versión ---------- */
.fuentes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fuente { display: grid; gap: 12px; align-content: start; min-width: 0; }
.fuente-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; flex-wrap: wrap; }
.fuente-cab h3, .version-cab h3, .res-t { font-size: 1.05rem; }
.campo-caja { position: relative; border-radius: var(--r-campo); }
.campo-caja.entra { animation: aparece var(--t-slow) var(--curva) both; }
.esq-campo { display: none; position: absolute; inset: 0; padding: 20px; border-radius: var(--r-campo); background: var(--surface2); border: 1.5px solid var(--line); }
.campo-caja.buscando .esq-campo { display: grid; }
.esq-campo i, .esq i, .esq-mapa { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--hover) 50%, var(--line) 75%); background-size: 200% 100%; animation: brillo 1.6s linear infinite; }
.esq-campo i:nth-child(1) { width: 40%; } .esq-campo i:nth-child(2) { width: 94%; } .esq-campo i:nth-child(3) { width: 82%; } .esq-campo i:nth-child(4) { width: 60%; }
.web-estado { font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.progreso { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.progreso i { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: 4px; background: var(--gold); animation: progreso 2.6s var(--curva) infinite; }
@keyframes progreso { from { left: -34%; } to { left: 100%; } }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; }
.sug { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 6px 14px; border: 1.5px solid var(--borde); border-radius: 18px; background: transparent; text-align: left; color: var(--ink); cursor: pointer;
  animation: aparece var(--t-mid) var(--curva) calc(var(--i, 0) * 60ms) both; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--curva); }
.sug:hover { background: var(--hover); border-color: var(--ink); transform: translateY(-1px); }
.sug-e { flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sug-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.35; }
.sug .ico { width: 16px; height: 16px; }
.sug-i { position: relative; width: 18px; height: 18px; flex: none; }
.sug-i .ico { position: absolute; inset: 0; transition: transform var(--t-mid) var(--curva), opacity var(--t-mid); }
.sug-i .ico + .ico { transform: scale(0) rotate(-30deg); opacity: 0; }
.sug.usado { border-color: var(--gold); background: var(--usado); }
.sug.usado .sug-i .ico:first-child { transform: scale(0) rotate(90deg); opacity: 0; }
.sug.usado .sug-i .ico + .ico { transform: none; opacity: 1; }
.sug-corta { padding: 6px 14px; border-radius: 99px; }
.version { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.version-cab { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.version-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.version-grid .cg:nth-child(-n+2) { grid-column: 1 / -1; }
.guardado { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .82rem; color: var(--ok); font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity var(--t-mid) var(--curva), transform var(--t-mid) var(--curva); }
.guardado.on { opacity: 1; transform: none; }
.guardado .ico { width: 15px; height: 15px; }

/* ---------- paso 2: así queda (documento limpio, editable en línea) ---------- */
.ficha-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.editor { display: grid; gap: 14px; }
.herramientas { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.documento { display: grid; gap: 22px; padding: 28px clamp(18px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.doc-emp { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc-titular, .doc-texto { display: block; width: 100%; resize: none; overflow: hidden; background: transparent; color: var(--text); border: 1.5px dashed transparent; border-radius: 14px; padding: 8px 12px; margin: 0 -12px; width: calc(100% + 24px); transition: border-color var(--t-fast), background-color var(--t-fast); }
.doc-titular { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.doc-texto { font-size: 1.05rem; line-height: 1.6; }
.doc-titular:hover, .doc-texto:hover { border-color: var(--line); }
.doc-titular:focus, .doc-texto:focus { outline: none; border-color: var(--borde); background: var(--campo); }
.doc-titular::placeholder, .doc-texto::placeholder { color: var(--muted); opacity: .7; }
.doc-bloque { display: grid; gap: 6px; }
.doc-bloque h3 { font-size: .95rem; color: var(--muted); }
.lateral { position: sticky; top: calc(var(--cab) + var(--marco, 0px) + 20px); display: grid; gap: 22px; align-content: start; }
.estado { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.estado-t { font-size: .88rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 99px; background: var(--chip); color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip.amarillo { background: var(--yellow); color: var(--navy); }
.chip.verde { background: var(--chip-ok-bg); color: var(--ok); }
.chip.rojo { background: var(--chip-bad-bg); color: var(--bad); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.panel-part { display: grid; gap: 4px; }
.part { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.part .texto { display: grid; gap: 0; min-width: 0; }
.part .texto b { color: var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- barra de acción fija: una sola acción principal ---------- */
.barra-accion { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px var(--lado) calc(12px + env(safe-area-inset-bottom)); background: var(--bar); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); view-transition-name: barra; }
.barra-cont { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.barra-cont .info { margin-right: auto; color: var(--muted); font-size: .88rem; }
.alerta { border: 2px solid var(--bad); background: var(--surface); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; color: var(--bad); }
.alerta ul { margin: 6px 0 0; padding-left: 1.2em; }

/* ---------- paso 3: busco ayuda ---------- */
.ayuda-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.ayuda-izq { display: grid; gap: 14px; position: sticky; top: calc(var(--cab) + var(--marco, 0px) + 20px); }
.resultados { display: grid; gap: 14px; margin-top: 12px; }
.mapa-caja { position: relative; height: 240px; background: var(--navy); border-radius: 20px; overflow: hidden; }
.mapa-caja canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapa-caja .leyenda { position: absolute; left: 16px; bottom: 12px; color: #E2E5F5; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.lista { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: grid; gap: 8px; animation: aparece var(--t-slow) var(--curva) both; }
.tarjeta h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tarjeta .motivo { color: var(--muted); font-weight: 500; font-size: .92rem; }
.tarjeta .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.puntaje { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.puntaje .riel { flex: 1; max-width: 200px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.puntaje .riel > i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width var(--t-slow) var(--curva); }
.pedir { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); animation: aparece var(--t-mid) var(--curva) both; }
.ok-linea { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.fila-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vacio-caja { position: relative; background: var(--navy); color: #fff; border-radius: 20px; overflow: hidden; min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.vacio-caja canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vacio-caja p { position: relative; max-width: 30ch; font-size: 1.05rem; }

/* ---------- esqueletos de carga ---------- */
.esq-caja { display: grid; gap: 12px; }
.esq { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.esq i:nth-child(1) { width: 32%; } .esq i:nth-child(2) { width: 92%; } .esq i:nth-child(3) { width: 68%; }
.esq-mapa { height: 200px; border-radius: 20px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ---------- staff ---------- */
.tabla-lista { display: grid; gap: 4px; }
.item-lista { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.item-lista .quien { display: grid; min-width: 0; margin-right: auto; }
.item-lista .quien b { color: var(--ink); font-weight: 600; }
.b-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.origen { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.origen:empty { display: none; }
.diff { display: grid; gap: 30px; margin-top: 12px; max-width: 980px; }
.dif-fila { display: grid; gap: 8px; }
.dif-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.dif-cols > div { display: grid; gap: 4px; align-content: start; }
.mini { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.dif-antes, .dif-despues, .dif-igual { overflow-wrap: anywhere; line-height: 1.7; }
.dif-antes, .dif-igual { color: var(--muted); }
del { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--bad); background: var(--del); border-radius: 3px; padding: 0 2px; }
mark { background: var(--yellow); color: var(--navy); border-radius: 3px; padding: 0 3px; }
.caja-nota { margin-top: 22px; max-width: 640px; display: grid; gap: 10px; }

/* ---------- avisos (toasts) abajo, hoja del código ---------- */
#avisos { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 8px; width: min(92vw, 480px); pointer-events: none; }
.aviso { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--aviso); color: #fff; border: 1px solid rgba(255, 255, 255, .18); padding: 12px 18px; border-radius: 14px; animation: sube var(--t-mid) var(--curva) both; font-weight: 500; font-size: .92rem; pointer-events: auto; }
.aviso.error { background: #5A1218; }
.aviso-acc { flex: none; min-height: 36px; padding: 0 6px; background: transparent; border: 0; color: var(--yellow); font-family: var(--font-btn); font-weight: 700; text-decoration: underline; cursor: pointer; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
dialog.hoja { border: 0; padding: 0; width: min(100%, 520px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--surface); color: var(--text); animation: hoja-sube 420ms var(--curva) both; overflow: auto; }
dialog.hoja::backdrop { background: rgba(10, 10, 64, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes hoja-sube { from { transform: translateY(100%); } to { transform: none; } }
.hoja-cont { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); }
.agarre { justify-self: center; width: 44px; height: 4px; border-radius: 4px; background: var(--borde); margin-bottom: 6px; }
.hoja h2 { font-size: 1.4rem; letter-spacing: -.02em; padding-right: 44px; }
.hoja form { display: grid; gap: 12px; }
.hoja .campo { border-radius: 99px; padding: 10px 22px; }
.sub { color: var(--muted); }
.casillas { display: flex; gap: 8px; justify-content: center; margin: 6px 0; }
.casilla { flex: 1; min-width: 0; max-width: 56px; height: 64px; text-align: center; font-size: 1.6rem; font-weight: 700; font-family: var(--font); color: var(--ink); border: 2px solid var(--borde); border-radius: 16px; background: var(--campo); padding: 0; transition: border-color var(--t-fast), background-color var(--t-mid) var(--curva); }
.casilla:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--anillo); }
.casillas.mal { animation: sacude 420ms var(--curva); }
.casillas.mal .casilla { border-color: var(--bad); }
.casillas.bien .casilla { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
@keyframes sacude { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.msg { min-height: 1.4em; font-size: .92rem; text-align: center; }
.msg.error { color: var(--bad); font-weight: 600; }
.msg.ok { color: var(--ok); font-weight: 600; }
.fila-textos { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.demo-codigo { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; border: 2px dashed var(--gold); border-radius: 16px; padding: 10px 12px; background: var(--codigo); }
.demo-codigo b { font-family: Consolas, "Courier New", monospace; font-size: 1.3rem; letter-spacing: .2em; color: var(--ink); }

/* ---------- transiciones entre pasos (View Transitions) ---------- */
::view-transition-old(root) { animation: vt-sale 220ms var(--curva) both; }
::view-transition-new(root) { animation: vt-entra 380ms var(--curva) both; }
::view-transition-group(cabecera), ::view-transition-group(barra) { animation-duration: 300ms; }
@keyframes vt-sale { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(14px); } }

/* ---------- impresión (PDF): solo la hoja limpia ---------- */
.imprimir { display: none; }
@media print {
  body > *:not(.imprimir) { display: none !important; }
  html, body { background: #fff !important; }
  .imprimir { display: block; color: #000; font-family: Arial, Helvetica, sans-serif; padding: 0; }
  .imp-logo { width: 150px; margin-bottom: 18px; }
  .imprimir h1 { color: #0A0A40; font-size: 24pt; margin: 0 0 6pt; }
  .imprimir h2 { color: #284053; font-size: 13pt; margin: 18pt 0 4pt; }
  .imprimir .imp-tit { font-size: 14pt; margin-bottom: 8pt; }
  .imprimir p, .imprimir li { font-size: 11.5pt; line-height: 1.5; color: #000; }
}

/* ---------- pantallas medianas y celulares ---------- */
@media (max-width: 960px) {
  .ficha-grid, .ayuda-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lateral, .ayuda-izq { position: static; }
  .dif-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 860px) {
  .fuentes { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .version-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --cab: 56px; }
  .p-logo { width: 84px; }
  .cab-cont { gap: 4px; }
  .btn-idioma { padding: 0 6px; gap: 5px; }
  .barra-cont .info { display: none; }
  .barra-cont { justify-content: stretch; }
  .barra-cont .btn { flex: 1; }
  .barra-cont .btn-texto { flex: none; }
  .opciones { gap: 8px; }
  .opcion { font-size: .85rem; min-height: 96px; }
  .form-hero .btn { width: 100%; }
  .trabajo { padding-bottom: 130px; }
  .tramo { width: 10px; }
  .paso { padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .pal-i { transform: none; opacity: 1; }
  .progreso i { left: 0; width: 40%; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.rm ::view-transition-group(*), html.rm ::view-transition-old(*), html.rm ::view-transition-new(*) { animation: none !important; }
html.rm .pal-i { transform: none; opacity: 1; }
html.rm .progreso i { left: 0; width: 40%; }

/* ---------- «Sus enlaces»: sugerencias con ícono de cada red ---------- */
.enlaces { margin-top: 32px; }
.sug-grupo { display: inline-flex; align-items: center; max-width: 100%; border: 1.5px solid var(--borde); border-radius: 99px; animation: aparece var(--t-mid) var(--curva) calc(var(--i, 0) * 60ms) both; }
.sug-grupo .sug { border: 0; animation: none; border-radius: 99px 0 0 99px; padding-right: 8px; min-width: 0; }
.sug-grupo .sug:hover { transform: none; }
.sug-grupo.usado, .sug-grupo:has(.usado) { border-color: var(--gold); }
.sug-enl > .ico:first-child { width: 20px; height: 20px; color: var(--ink); }
.ib-quitar { width: 44px; height: 44px; flex: none; }
.ib-quitar .ico { width: 16px; height: 16px; }
.msg-izq { text-align: left; display: grid; gap: 2px; }
.msg-linea { font-weight: 400; }

/* ---------- completitud del perfil ---------- */
.perfil { display: flex; align-items: center; gap: 16px; padding: 14px 20px; margin-bottom: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.lateral .perfil { margin-bottom: 0; }
.perfil-anillo { width: 56px; height: 56px; flex: none; }
.perfil-pista, .perfil-arco { fill: none; stroke-width: 5; }
.perfil-pista { stroke: var(--line); }
.perfil-arco { stroke: var(--arco); stroke-linecap: round; transition: stroke-dashoffset 700ms var(--curva); }
.perfil.completo .perfil-arco { stroke: var(--ok); }
.perfil-t { display: grid; gap: 2px; min-width: 0; }
.perfil-n { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.perfil-s { color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* ---------- «Conexiones» (texto-enlace a la portada) y «← Atrás» ---------- */
.cab-inicio { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: #fff; text-decoration: none; font-family: var(--font-btn); font-weight: 700; font-size: .95rem; flex: none; border-radius: 6px; }
.cab-inicio:hover { text-decoration: underline; text-underline-offset: 4px; }
.atras { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid var(--borde); border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--font); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.atras .ico { transform: scaleX(-1); width: 18px; height: 18px; }
.atras:hover { background: var(--hover); border-color: var(--ink); }
@media (max-width: 560px) {
  .cab-cont { flex-wrap: wrap; align-content: center; row-gap: 0; }
  html.cab2 { --cab: 104px; }
  .pasos { order: 3; flex: 0 0 100%; justify-content: space-between; padding-bottom: 2px; }
  .paso-t { display: inline; font-size: .75rem; }
  .paso:not(.activo) .paso-t { display: none; }
  .tramo { flex: 1; width: auto; }
}

/* ---------- perfil armado: fila de acciones, menú «Más», plegables ---------- */
.acciones-hero { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-hero-sec { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-hero-sec:hover { background: rgba(255, 255, 255, .14); }
.fila-perfil { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fila-web { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; flex: 1 1 320px; }
.fila-web .web-estado { flex: 1 1 220px; }
.mas-caja { position: relative; flex: none; }
.menu-mas { position: fixed; z-index: 60; min-width: 230px; display: grid; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--borde); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.menu-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-family: var(--font); font-weight: 500; font-size: .95rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--hover); }
.plegable { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 6px; }
.plegable > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.plegable > summary::-webkit-details-marker { display: none; }
.plegable > summary::before { content: "▸"; margin-right: 10px; transition: transform var(--t-fast); }
.plegable[open] > summary::before { transform: rotate(90deg); }
.plegable > .ayuda { margin-bottom: 12px; }
.version.leyendo .campo-gran { opacity: .55; animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { opacity: .85; } }
.version { margin-top: 18px; }
.version-grid .cg:nth-child(3), .version-grid .cg:nth-child(4) { grid-column: auto; }
.estado.rev { margin-bottom: 14px; }
@media (max-width: 560px) {
  .acciones-hero .btn { width: 100%; }
  .barra-cont { flex-wrap: wrap; justify-content: stretch; }
  .barra-cont .info { display: block; flex: 1 0 100%; font-size: .75rem; text-align: center; margin: 0; }
  .barra-cont .btn { flex: 1; }
}

/* ---------- Ahora → Después ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; margin-top: 8px; }
.compare .seg { display: none; }
.col { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 20px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.col-despues { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.col-cab { display: flex; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; }
.col-cab h3 { font-size: 1.15rem; }
.col .version-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.col-ahora .campo-fuente { min-height: 56px; }
.etq-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fuente-tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.fuente-tag[data-o="web"] { color: var(--ok); }
.sugs-campo { gap: 6px; }
.sugs-campo .sug { min-height: 36px; padding: 2px 12px; border-radius: 99px; }
.sugs-campo .sug-x { max-width: 18ch; -webkit-line-clamp: 1; }
.despues-campos { position: relative; }
.col-despues.leyendo .despues-campos .version-grid { opacity: .25; }
.col-despues .perfil { margin-bottom: 0; max-width: none; }
@media (max-width: 860px) {
  .compare { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .compare .seg { display: flex; border: 1.5px solid var(--borde); border-radius: 99px; padding: 3px; gap: 2px; }
  .seg button { flex: 1; min-height: 44px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font-family: var(--font-btn); font-weight: 700; cursor: pointer; }
  .seg button[aria-selected="true"] { background: var(--yellow); color: var(--navy); }
  .compare[data-ver="ahora"] .col-despues, .compare[data-ver="despues"] .col-ahora { display: none; }
}

/* ---------- guía «Cómo usar Conexiones» (producción) ---------- */
.panel-guia { position: absolute; top: calc(100% + 8px); right: max(12px, calc((100% - 1180px) / 2)); width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - var(--cab) - 24px); overflow: auto; display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: var(--surface); color: var(--text); border: 1px solid var(--borde); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); z-index: 45; }
.guia-paso { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.guia-ilu { width: 96px; height: 64px; border-radius: 12px; background: var(--surface2); }
.guia-ilu .g-linea { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guia-ilu .g-oro { stroke: var(--gold); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.guia-ilu .g-sol { fill: var(--yellow); }
.guia-ilu .g-rel { fill: var(--line); }
.guia-t { font-weight: 600; color: var(--ink); font-size: .98rem; }
.guia-d { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.guia-pie { display: flex; justify-content: flex-end; }
.ib-guia { font-family: var(--font-btn); font-weight: 700; font-size: 1.15rem; }

/* ---------- «Descargar / Copiar», esqueleto con botón central ---------- */
.col-acciones { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.col-acciones .btn .ico { width: 18px; height: 18px; }
.col-acciones .caret { font-size: .8em; }
.col-cab { position: relative; }
.esq-barras { display: grid; gap: 12px; align-content: start; }
.esq-barras i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line) 25%, var(--hover) 50%, var(--line) 75%); background-size: 200% 100%; animation: brillo 1.6s linear infinite; }
.esq-barras i:nth-child(odd) { width: 92%; } .esq-barras i:nth-child(3n) { width: 64%; } .esq-barras i:nth-child(1) { width: 40%; }
.esq-cta { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }
.esq-cta-t { max-width: 26ch; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.esq-cta-btn { display: grid; }
.esq-msg { max-width: 34ch; font-size: .9rem; color: var(--muted); }
.esq-msg:empty { display: none; }
.col-despues.sinweb .esq-campo, .col-despues.leyendo .esq-campo { display: block; z-index: 2; border-radius: 18px; }
.col-despues.sinweb .esq-cta, .col-despues.leyendo .esq-cta { display: grid; }
.col-despues.sinweb .esq-barras i { animation: none; opacity: .45; }
.col-despues.sinweb .esq-msg, .col-despues.leyendo .esq-cta-t, .col-despues.leyendo .esq-cta-btn, .col-despues.leyendo #btn-manual { display: none; }
.col-despues.sinweb .version-grid, .col-despues.sinweb .perfil, .col-despues.sinweb .guardado, .col-despues.sinweb .col-acciones { visibility: hidden; }
.col-despues.leyendo .esq-msg { display: block; }
@media (max-width: 560px) { .col-acciones { margin-left: 0; width: 100%; } .col-acciones .btn { width: 100%; } }
.col-despues.sinweb .despues-campos, .col-despues.leyendo .despues-campos { max-height: 380px; overflow: hidden; border-radius: 18px; }

/* ---------- afines (auto-matchmaking) y mensaje de la guía ---------- */
.afines { margin-top: 28px; padding: 20px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.afines .resultados { margin-top: 0; }
.guia-intro { color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.4; }
