/* Jaque · plataforma */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.rail {
  background: var(--surface);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.brand img { border-radius: 23%; }
.brand span { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
#nav { display: grid; gap: 4px; }
#nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background 0.12s, color 0.12s;
}
#nav a:hover { background: var(--bg); color: var(--ink); }
#nav a[aria-current="page"] { background: var(--brand); color: var(--ink); }
#nav svg { width: 21px; height: 21px; flex: none; }
.rail-note { margin-top: auto; color: var(--ink-3); padding: 0 8px; font-size: 12.5px; }

#view { padding: 36px clamp(16px, 4vw, 48px) 80px; max-width: 1040px; width: 100%; outline: none; animation: enter 0.25s ease; }
@keyframes enter { from { transform: translateY(8px); } }
.page-head { margin-bottom: 24px; display: grid; gap: 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.page-head p { color: var(--ink-2); max-width: 60ch; }

/* Formularios */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--ink); font: 500 16px var(--font);
}
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand-deep); flex: none; }

/* Inicio */
.hero-card {
  background: linear-gradient(135deg, var(--brand) 0%, #00b3a4 100%);
  color: var(--ink); border-radius: 28px; padding: 28px; display: grid; gap: 6px; position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: 0.16;
  background: conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 55px 55px;
  border-radius: 24px; transform: rotate(12deg);
}
.hero-card h1 { font-size: clamp(26px, 4vw, 34px); position: relative; z-index: 1; }
.hero-card .big { font-size: clamp(48px, 9vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; position: relative; z-index: 1; }
.hero-card p, .hero-card .row { position: relative; z-index: 1; }

.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick a { text-decoration: none; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 14px; }
.quick i {
  width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.06); transition: transform 0.12s, background 0.12s;
}
.quick a:hover i { transform: translateY(-3px) scale(1.05); background: var(--brand-soft); }
.quick svg { width: 26px; height: 26px; }

.todo { display: flex; gap: 14px; align-items: center; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
.todo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.todo .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; flex: none; }
.todo .dot.done { background: var(--brand); color: var(--ink); }
.todo b { display: block; }
.todo .go { margin-left: auto; color: var(--ink-3); font-size: 22px; }

/* Procesos */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 0; cursor: pointer; white-space: nowrap; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); font: 700 14px var(--font); color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: all 0.12s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.results { display: grid; gap: 14px; }
.proc { display: grid; gap: 12px; transition: transform 0.12s, box-shadow 0.12s; }
.proc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.proc h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.proc .meta { color: var(--ink-3); font-size: 14px; }
.proc .price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink-2); }
.empty-icon svg { width: 26px; height: 26px; }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, #e9edf3 25%, #f4f6fa 50%, #e9edf3 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td input[type="number"], td input[type="text"] { min-width: 116px; min-height: 42px; padding: 8px 10px; border-radius: 10px; }

.verdict { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: var(--radius); animation: pop 0.3s ease; }
@keyframes pop { from { transform: scale(0.96); } }
.verdict.ok { background: var(--brand); color: var(--ink); }
.verdict.bad { background: var(--red-soft); color: var(--red); }
.v-icon { display: grid; flex: none; }
.v-icon svg { width: 34px; height: 34px; }
.verdict strong { font-size: 20px; font-weight: 800; display: block; }

/* Lista de verificación */
.check-group h3 { font-size: 19px; margin-bottom: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check span { flex: 1; }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.progress { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width 0.3s ease; }

.doc-out {
  white-space: pre-wrap; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px;
  padding: 26px; font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.65;
}
.soon-box { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.soon-box h3 { font-size: 18px; }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all 0.2s; z-index: 50; font-size: 15px;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Celular: el menú pasa abajo, como en una app */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 40;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); flex-direction: row;
    border-right: 0; border-top: 1px solid var(--line);
  }
  .brand, .rail-note, #nav .solo-pc { display: none; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  #nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 2px; }
  #nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 8px 2px; text-align: center; border-radius: 12px; }
  #view { padding: 20px 16px 110px; }
  #toast { bottom: 96px; }
  .quick i { width: 56px; height: 56px; }
  .quick a { font-size: 12.5px; }
}

/* Lectura del pliego con IA */
.alertas { background: var(--amber-soft); color: var(--amber); border-radius: 14px; padding: 14px 18px; }
.alertas ul, #ia-pliego details ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
#ia-pliego details summary { cursor: pointer; }
#ia-pliego .check-group h3 { font-size: 16px; margin-top: 6px; }
.loader { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.loader i { display: block; width: 35%; height: 100%; border-radius: 99px; background: var(--brand); animation: carga 1.4s ease-in-out infinite; }
@keyframes carga { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
.dato { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
#rup details summary, .card > details > summary { cursor: pointer; }

/* Ejecución */
.cuenta > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; list-style: none; }
.cuenta > summary::-webkit-details-marker { display: none; }
.obl { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.obl > span:first-child { flex: 1; }
.obl input { width: 84px; min-height: 42px; padding: 8px 10px; border-radius: 10px; text-align: right; }
input[type="month"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: 500 16px var(--font); }
input[type="file"] { font: 500 15px var(--font); color: var(--ink-2); }
.hallazgo { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hallazgo:last-child { border-bottom: 0; }

/* Formatos diligenciados */
.formato { white-space: normal; margin-top: 10px; }
.formato p { margin: 0 0 10px; }
.formato table { border-collapse: collapse; width: 100%; margin: 0 0 10px; font-size: 13.5px; }
.formato th, .formato td { border: 1px solid var(--line-strong); padding: 6px 8px; text-align: left; vertical-align: top; }
mark { background: var(--amber-soft); color: var(--amber); padding: 0 3px; border-radius: 4px; font-weight: 700; }
textarea { font: inherit; }

details#redactor > summary { cursor: pointer; }

/* Mi oferta: procesos guardados como tarjetas que se eligen */
.elige { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
#planes.elige { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.elige-item {
  display: grid; gap: 6px; align-content: start; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); padding: 16px;
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.06); transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.elige-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.elige-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.elige-item[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.elige-item .row { flex-wrap: wrap; }

.elige-caja { position: relative; display: grid; }
.elige-item { padding-bottom: 46px; }
.elige-quitar {
  position: absolute; right: 12px; bottom: 12px; border: 0; cursor: pointer; border-radius: 999px; padding: 6px 12px;
  font: 700 13px var(--font); color: var(--ink-2); background: rgba(11, 16, 32, 0.06);
}
.elige-quitar:hover { background: var(--red-soft); color: var(--red); }
.elige-quitar:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.o-google { display: flex; align-items: center; gap: 12px; }
.o-google::before, .o-google::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

details.publico { border-top: 1px solid var(--line); padding-top: 14px; }
details.publico > summary { cursor: pointer; }

/* Secciones para suscriptores, vistas por quien aún no lo es */
#nav a.cerrado { color: var(--ink-3); }
#nav a.cerrado svg { opacity: 0.55; }
#nav .candado { font-style: normal; font-size: 10.5px; font-weight: 700; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--ink-3); }
@media (max-width: 860px) { #nav .candado { display: none; } }

/* Los selectores de archivo ocupan su fila completa y no se montan sobre el vecino */
input[type="file"] { width: 100%; max-width: 100%; min-width: 0; font: 500 14.5px var(--font); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.field { min-width: 0; }

/* Cuenta de cobro: cada soporte en su cuadro */
.cargas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.carga { display: grid; gap: 10px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: 18px; background: var(--surface); min-width: 0; }
.carga.lista { border-color: var(--brand); }
.carga input[type="file"] { width: 100%; min-width: 0; }
.quita { border: 0; background: none; cursor: pointer; font-size: 12px; color: inherit; padding: 0 2px; }

/* Conversación con Jaque en Defensa */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat:empty { display: none; }
.chat-m { display: grid; gap: 8px; max-width: 92%; }
.chat-m.yo { align-self: flex-end; }
.chat-m.jaque { align-self: flex-start; }
.chat-b { padding: 12px 15px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; background: var(--bg); }
.chat-m.yo .chat-b { background: var(--brand); color: var(--ink); border-bottom-right-radius: 6px; }
.chat-m.jaque .chat-b { border-bottom-left-radius: 6px; }

/* Mercado: barras del valor medio por mes */
.barras { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.barra { flex: 1; min-width: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; justify-items: center; }
.barra i { align-self: end; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; transition: height 0.5s ease; }
.barra span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Revisión de la oferta: un lugar para cada documento que pide el pliego */
.req { border-bottom: 1px solid var(--line); padding: 12px 0; }
.req:last-child { border-bottom: 0; }
.req > summary { cursor: pointer; display: flex; gap: 12px; align-items: center; justify-content: space-between; list-style: none; }
.req > summary::-webkit-details-marker { display: none; }
.req > summary::before { content: "+"; font-weight: 800; color: var(--brand-deep); width: 14px; flex: none; }
.req[open] > summary::before { content: "–"; }
.req-t { flex: 1; font-weight: 600; }
.req > p { margin: 8px 0 10px 26px; }
.req > input[type="file"] { margin-left: 26px; max-width: calc(100% - 26px); }

/* Bloques de revisión y listas largas: se abren y se cierran para que la página no se alargue */
details.bloque { border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 0 16px; background: var(--surface); }
details.bloque > summary, details.causales > summary, details.alertas > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; list-style: none; }
details.bloque > summary::-webkit-details-marker, details.causales > summary::-webkit-details-marker, details.alertas > summary::-webkit-details-marker { display: none; }
details.bloque > summary::after, details.causales > summary::after, details.alertas > summary::after { content: "+"; font-weight: 800; font-size: 20px; line-height: 1; margin-left: auto; padding-left: 12px; }
details.bloque[open] > summary::after, details.causales[open] > summary::after, details.alertas[open] > summary::after { content: "–"; }
details.bloque > summary .muted { margin-left: auto; }
details.bloque > summary::after { margin-left: 0; }
.bloque-t { font-weight: 800; font-size: 17px; }
details.bloque[open] { padding-bottom: 8px; }
details.causales { border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 0 16px; }
details.causales[open] { padding-bottom: 12px; }
details.alertas > summary { padding: 0; }
details.alertas[open] > summary { padding-bottom: 6px; }

/* Archivos elegidos: se acumulan y cada uno se puede quitar */
.archivos-lista { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.archivos-lista:empty { display: none; }
.archivo { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--brand-soft); font-size: 13.5px; font-weight: 600; }
.archivo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.archivo small { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.archivo button { border: 0; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; background: rgba(12, 17, 15, 0.08); color: var(--ink); font-size: 12px; line-height: 1; flex: none; }
.archivo button:hover { background: var(--red-soft); color: var(--red); }

/* Casillas de dinero: anchas para que la cifra completa se lea, alineadas a la derecha */
.table-wrap td input.plata, input.plata { min-width: 190px; width: 190px; text-align: right; font-variant-numeric: tabular-nums; }

/* Mi oferta: la conversación va primero; el detalle queda plegado debajo */
#oferta-chat .chat { max-height: 520px; overflow-y: auto; padding-right: 4px; }
#oferta-chat .chat-b { white-space: pre-wrap; }
details.detalle-oferta > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 16px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); list-style: none; }
details.detalle-oferta > summary::-webkit-details-marker { display: none; }
details.detalle-oferta > summary::after { content: "+"; font-weight: 800; font-size: 20px; margin-left: auto; }
details.detalle-oferta[open] > summary::after { content: "–"; }

/* Al arrastrar archivos sobre una tarjeta que los recibe, se marca dónde van a caer */
.soltar { outline: 3px dashed var(--brand-deep); outline-offset: 4px; background-image: linear-gradient(var(--brand-soft), var(--brand-soft)); }

/* Enlaces dentro de los mensajes de los chats */
.chat-b a, .sop-m a { color: inherit; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; font-weight: 600; }
.tema :is(#oferta-chat, #ej-chat, #bus-chat, #mer-chat, #def-chat) .chat-m.jaque .chat-b a { color: var(--brand); }

/* Mensajes ordenados: párrafos con aire, listas con sangría y negrilla para lo clave */
.chat-b .fmt, .sop-m .fmt { white-space: normal; }
.chat-b .fmt :is(p, ul, ol), .sop-m .fmt :is(p, ul, ol) { margin: 0.75em 0 0; }
.chat-b .fmt > :first-child, .sop-m .fmt > :first-child { margin-top: 0; }
.chat-b .fmt :is(ul, ol), .sop-m .fmt :is(ul, ol) { padding-left: 1.3em; display: grid; gap: 0.35em; }
.chat-b .fmt strong, .sop-m .fmt strong { font-weight: 700; }

/* Claude: guía interactiva */
.cl-hero { background: linear-gradient(135deg, #0b1f18 0%, #0f3d2e 55%, var(--brand) 160%); color: #f1ede4; }
.cl-hero h1, .cl-hero p { color: #f1ede4; }
.cl-hero .tag { background: rgba(241, 237, 228, 0.14) !important; color: #f1ede4 !important; }
.cl-vias { margin: 18px 0 4px; }
.cl-barra { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cl-barra i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cl-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-paso { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.cl-paso:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.cl-paso.hecho { border-color: var(--brand); background: var(--brand-soft); }
.cl-paso.hecho b { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.25); }
.cl-chk { position: relative; flex: none; cursor: pointer; }
.cl-chk input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.cl-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.15s, color 0.15s; }
.cl-paso.hecho .cl-num { background: var(--brand); color: var(--ink); box-shadow: none; font-size: 0; }
.cl-paso.hecho .cl-num::after { content: "✓"; font-size: 18px; }
.cl-chk input:focus-visible + .cl-num { outline: 3px solid var(--brand); outline-offset: 2px; }
.cl-copia { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl-copia code { flex: 1 1 200px; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 15px; word-break: break-all; }
.cl-ejemplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.cl-ej { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.cl-ej:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.cl-ej span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.cl-ej em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); }
.cl-topes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cl-tope { display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); text-align: center; }
.cl-tope b { font-size: 30px; letter-spacing: -0.03em; }
.cl-tope span { color: var(--ink-2); font-size: 14px; }
.cl-tope em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--brand-deep); }
.cl-tope.mio { border-color: var(--brand); background: var(--brand-soft); }
.cl-faq { display: grid; gap: 8px; }
.cl-faq details { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cl-faq summary { cursor: pointer; font-weight: 700; }
.cl-faq details[open] { border-color: var(--line-strong); }
.cl-faq p { margin: 8px 0 0; color: var(--ink-2); }
.cl-tarjeta { transition: transform 0.12s, box-shadow 0.12s; }
.cl-tarjeta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .cl-paso, .cl-ej, .cl-barra i, .cl-tarjeta { transition: none; } }

/* Chatea con Jaque: dos columnas, Claude y WhatsApp */
.cl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.cl-col { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: 22px; background: rgba(241, 237, 228, 0.07); box-shadow: inset 0 0 0 1.5px rgba(241, 237, 228, 0.16); backdrop-filter: blur(6px); transition: transform 0.2s, box-shadow 0.2s; }
.cl-col:hover { transform: translateY(-3px); }
.cl-col-claude:hover { box-shadow: inset 0 0 0 1.5px #D97757, 0 14px 40px rgba(217, 119, 87, 0.22); }
.cl-col-wa:hover { box-shadow: inset 0 0 0 1.5px #25D366, 0 14px 40px rgba(37, 211, 102, 0.22); }
.cl-col header { display: flex; align-items: center; gap: 12px; }
.cl-col header b { display: block; font-size: 19px; color: #f1ede4; line-height: 1.1; }
.cl-col header small { color: rgba(241, 237, 228, 0.7); font-size: 13px; }
.cl-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #f1ede4; flex: none; animation: cl-pulso 3.2s ease-in-out infinite; }
.cl-col-claude .cl-logo { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.5); }
.cl-col-wa .cl-logo { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); animation-delay: 0.6s; }
@keyframes cl-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.1); } }
.cl-chat { display: grid; gap: 8px; min-height: 230px; align-content: start; }
.cl-b { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; max-width: 92%; opacity: 0; transform: translateY(10px) scale(0.97); animation: cl-entra 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: var(--d, 0s); }
.cl-b i { display: block; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; opacity: 0.7; }
.cl-yo { justify-self: end; border-bottom-right-radius: 5px; }
.cl-ja { justify-self: start; border-bottom-left-radius: 5px; background: #f1ede4; color: #0b1f18; }
.cl-col-claude .cl-yo { background: #D97757; color: #1b0d07; }
.cl-col-wa .cl-yo { background: #d9fdd3; color: #0b1f18; }
.cl-col-wa .cl-ja { background: #ffffff; }
@keyframes cl-entra { to { opacity: 1; transform: none; } }
.cl-col footer { font-size: 13px; color: rgba(241, 237, 228, 0.75); border-top: 1px solid rgba(241, 237, 228, 0.14); padding-top: 10px; }
.cl-aviso { margin: 10px 0 0; font-size: 12px; color: rgba(241, 237, 228, 0.55); max-width: 70ch; }
@media (max-width: 720px) { .cl-duo { grid-template-columns: 1fr; } .cl-chat { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-b { animation: none; opacity: 1; transform: none; } .cl-logo { animation: none; } .cl-col { transition: none; } }
.cl-hero .cl-b.cl-ja, .cl-hero .cl-col-wa .cl-yo { color: #0b1f18; }
.cl-hero .cl-col-claude .cl-yo { color: #1b0d07; }
.cl-hero .cl-aviso { color: rgba(241, 237, 228, 0.55); }
.cl-hero .cl-col footer { color: rgba(241, 237, 228, 0.75); }
/* Chatea con Jaque: el caballo queda de fondo, bien oscuro, para que se lea el texto */
.tema .cl-hero { background: linear-gradient(90deg, rgba(5,7,6,.97) 0%, rgba(5,7,6,.92) 60%, rgba(5,7,6,.8) 100%), var(--noche) url("../assets/caballo.jpg") no-repeat right -30px center / auto 150%; background-blend-mode: normal; }
.tema .cl-hero h1, .tema .cl-hero p { text-shadow: 0 1px 12px rgba(5,7,6,.9); }
.tema .cl-hero .cl-col { background: rgba(8, 14, 11, 0.92); backdrop-filter: none; }
.tema .cl-hero .cl-col header small { color: rgba(241, 237, 228, 0.8); }
.tema .cl-hero .cl-b { text-shadow: none; }

/* Clientes (Plan Firma) */
.cli-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cli-lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; }
.cli-cerrado b { text-decoration: line-through; opacity: 0.6; }
.cli-cliente > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cli-cliente > summary::-webkit-details-marker { display: none; }
.cli-item input, .cli-item select { min-height: 40px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 10px; font: inherit; }
