/* Invercolombia · PQRS. Un lienzo blanco sobre campo azul acero: riel a la izquierda, trabajo al centro, panel marino a la derecha. */

@font-face {
  font-family: "Urbanist";
  src: url("/estaticos/fuentes/urbanist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --campo: #dde6ef;
  --lienzo: #ffffff;
  --nube: #f5f7fb;
  /* Del logo: azul profundo #007eb5 a cian #29c5f0. El principal se oscurece un punto para que el texto blanco pase 4.5:1. */
  --azul: #0a6ca3;
  --azul-2: #08557f;
  --azul-palido: #dff1fa;
  --azul-bruma: #eff8fd;
  --cian: #1fb6e6;
  --tinta: #1b2232;
  --tenue: #586173;
  --linea: #e2e7ef;
  --marino: #363a59;
  --marino-2: #43486b;
  --marino-tinta: #cfd3ec;
  --verde: #1d7a4b;
  --ambar: #a86300;
  --rojo: #b0261d;
  --sombra: 0 14px 34px -18px rgba(28, 48, 92, 0.32);
  --sombra-leve: 0 6px 18px -10px rgba(28, 48, 92, 0.28);
  --radio: 18px;
  --sans: "Urbanist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--campo);
  color: var(--tinta);
  font: 500 16px/1.55 var(--sans);
  padding: clamp(0px, 2.6vw, 40px) clamp(0px, 2.6vw, 40px) 0;
  caret-color: var(--azul);
}
::selection { background: var(--azul-palido); color: var(--azul-2); }
a { color: var(--azul); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--azul-2); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--azul) 45%, transparent); outline-offset: 2px; border-radius: 10px; }
* { scrollbar-width: thin; scrollbar-color: #c3cddb transparent; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6rem; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; margin-top: 1.4rem; }
p { margin: 0 0 0.9rem; }
small { display: block; color: var(--tenue); font-size: 0.85rem; font-weight: 500; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nota { color: var(--tenue); font-size: 0.93rem; }
.meta { color: var(--tenue); font-weight: 600; margin-top: -0.3rem; }
.vacio { color: var(--tenue); background: var(--nube); border-radius: 14px; padding: 0.9rem 1.1rem; }
.angosta { max-width: 640px; }
.icono { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Lienzo ------------------------------------------------------------------------------ */

.lienzo {
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - clamp(0px, 2.6vw, 40px) - 3.5rem);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--lienzo);
  border-radius: 36px;
  box-shadow: 0 40px 80px -40px rgba(28, 48, 92, 0.35);
  overflow: hidden;
}
.lienzo:has(> .panel) { grid-template-columns: 264px minmax(0, 1fr) minmax(300px, 380px); }

.riel { display: flex; flex-direction: column; gap: 2.6rem; padding: 2.6rem 1.6rem 2rem; }
.marca { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; text-decoration: none; }
.marca-logo { width: 176px; height: auto; display: block; }
.marca-iso { display: none; width: 46px; height: auto; }
.marca small { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tenue); }

.menu { display: flex; flex-direction: column; gap: 0.4rem; }
.menu a { white-space: nowrap; display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.1rem; border-radius: 14px; color: var(--tenue); font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: background 0.2s var(--salida), color 0.2s var(--salida); }
.menu a:hover { background: var(--azul-bruma); color: var(--tinta); }
.menu a[aria-current="page"] { background: var(--azul-palido); color: var(--azul); }

.riel-pie { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.riel-pie form { margin: 0; }
.quien { margin: 0; padding: 0 0.4rem; font-weight: 700; line-height: 1.3; }
.enlace-equipo { display: flex; align-items: center; gap: 0.7rem; color: var(--tenue); font-weight: 600; text-decoration: none; padding: 0.8rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--linea); }
.enlace-equipo:hover { border-color: var(--azul); color: var(--azul); }
.boton-salir { width: 100%; justify-content: center; }

.contenido { padding: 2.6rem clamp(1.4rem, 3.4vw, 3.2rem) 3.5rem; min-width: 0; }
@media (prefers-reduced-motion: no-preference) {
  .contenido > * { animation: subir 0.6s var(--salida) both; }
  .contenido > *:nth-child(2) { animation-delay: 0.05s; }
  .contenido > *:nth-child(3) { animation-delay: 0.1s; }
  .contenido > *:nth-child(n + 4) { animation-delay: 0.15s; }
}
@keyframes subir { from { transform: translateY(10px); opacity: 0.4; } }

.pie { max-width: 1480px; margin: 0 auto; padding: 1.1rem 1rem 1.4rem; text-align: center; color: var(--tenue); font-size: 0.85rem; }
.pie a { color: var(--tenue); }

/* --- Panel marino ------------------------------------------------------------------------ */

.panel { background: var(--marino); color: #fff; padding: 2.6rem 2rem; display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.panel h2 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.7rem; font-weight: 650; margin: 0; }
.panel a { color: #fff; }
.panel-vacio { color: var(--marino-tinta); }
.avisos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.avisos a { display: grid; gap: 0.1rem; padding: 0.95rem 1.1rem; border-radius: 16px; background: var(--marino-2); text-decoration: none; transition: transform 0.25s var(--salida), background 0.2s; }
.avisos a:hover { background: #4d5378; transform: translateX(-3px); }
.avisos span { color: var(--marino-tinta); font-weight: 600; }
.avisos small { color: var(--marino-tinta); }
.panel-marca h2 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; }
.promesas { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.promesas li { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--marino-2); border-radius: 16px; padding: 1rem 1.1rem; color: #eef0fb; }
.promesas .icono { color: #9fb9ea; margin-top: 1px; }

/* --- Controles --------------------------------------------------------------------------- */

button, .boton, .boton-principal {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--azul); color: #fff; border: 0; border-radius: 12px;
  padding: 0.8rem 1.35rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(10, 108, 163, 0.75);
  transition: background 0.2s, transform 0.2s var(--salida), box-shadow 0.2s;
}
button:hover, .boton:hover, .boton-principal:hover { background: var(--azul-2); color: #fff; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.55; cursor: wait; transform: none; }
button.secundario, .boton.secundario { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); }
button.secundario:hover, .boton.secundario:hover { background: var(--azul-bruma); }
button.enlace { background: none; color: var(--azul); padding: 0; box-shadow: none; font-weight: 600; }
button.enlace:hover { text-decoration: underline; transform: none; }
.boton-principal { width: 100%; justify-content: center; padding: 1rem; margin-bottom: 0.6rem; }

label { display: block; font-weight: 650; font-size: 0.95rem; margin: 0 0 1rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  font: inherit; font-weight: 500; color: var(--tinta);
  padding: 0.75rem 0.9rem; background: #fff;
  border: 1.5px solid var(--linea); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: #7b8496; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-palido); }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1.1rem; }
.casilla { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; }
.casilla input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--azul); flex-shrink: 0; }
.acciones { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.archivo { margin: 0 0 1rem; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.archivo .etiqueta { flex-basis: 100%; font-weight: 650; font-size: 0.95rem; }
.boton-archivo { display: inline-block; margin: 0; background: #fff; color: var(--azul); border: 1.5px solid var(--azul); border-radius: 12px; padding: 0.6rem 1.1rem; cursor: pointer; font-weight: 700; }
.boton-archivo:hover { background: var(--azul-bruma); }
.boton-archivo:focus-within { box-shadow: 0 0 0 4px var(--azul-palido); }
.en-linea { display: inline-flex; margin: 0; }
details > summary { cursor: pointer; font-weight: 700; color: var(--azul); margin-bottom: 1rem; }
details form { margin-top: 0.8rem; }

progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: #e3e8f0; overflow: hidden; color: var(--azul); }
progress::-webkit-progress-bar { background: #e3e8f0; border-radius: 99px; }
progress::-webkit-progress-value { background: currentColor; border-radius: 99px; }
progress::-moz-progress-bar { background: currentColor; border-radius: 99px; }
.nivel-verde { color: var(--azul); }
.nivel-amarillo { color: var(--ambar); }
.nivel-rojo, .nivel-vencido { color: var(--rojo); }

/* --- Bloques ----------------------------------------------------------------------------- */

.tarjeta { background: var(--nube); border-radius: var(--radio); padding: 1.5rem; margin-bottom: 1.2rem; box-shadow: var(--sombra-leve); }
.aviso { padding: 0.85rem 1.1rem; border-radius: 14px; margin: 0 0 1.2rem; font-weight: 600; }
.aviso.ok { background: #e2f3ea; color: var(--verde); }
.aviso.error, .error { background: #fbe7e5; color: var(--rojo); }
.error { padding: 0.75rem 1rem; border-radius: 12px; font-weight: 600; }
.bloque { margin-top: 2.2rem; }
.bloque > h2 { display: flex; align-items: center; gap: 0.6rem; }
.cuenta { background: var(--azul-palido); color: var(--azul); border-radius: 99px; padding: 0.05rem 0.6rem; font-size: 0.85rem; font-weight: 700; }

.barra-superior { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.buscador { flex: 1 1 360px; max-width: 560px; display: flex; align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--sombra); padding: 0.25rem 0.35rem 0.25rem 1.1rem; }
.buscador input { margin: 0; border: 0; box-shadow: none; padding: 0.7rem 0.2rem; }
.buscador input:focus { box-shadow: none; }
.buscador:focus-within { box-shadow: var(--sombra), 0 0 0 4px var(--azul-palido); }
.buscador button { background: none; color: var(--tenue); box-shadow: none; padding: 0.6rem; }
.buscador button:hover { color: var(--azul); background: var(--azul-bruma); }
.fecha { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 650; }
.fecha .icono { width: 18px; height: 18px; color: var(--marino); }
.filtro { font-weight: 600; color: var(--tenue); }

.saludo { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 550; letter-spacing: -0.025em; margin-bottom: 0.8rem; }
.saludo span { color: var(--azul); font-weight: 750; }
.entrada { font-size: 1.15rem; color: var(--tenue); max-width: 62ch; }

.destacado { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1.3rem; align-items: center; padding: 1.2rem 1.4rem 1.2rem 1.2rem; background: var(--nube); border-radius: 22px; box-shadow: var(--sombra-leve); color: var(--tinta); text-decoration: none; transition: transform 0.3s var(--salida), box-shadow 0.3s var(--salida); }
.destacado:hover { transform: translateY(-3px); box-shadow: var(--sombra); color: var(--tinta); }
.destacado-icono { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: currentColor; }
.destacado-icono .icono { width: 30px; height: 30px; stroke: #fff; }
.destacado-cuerpo { display: grid; gap: 0.2rem; min-width: 0; }
.destacado-titulo { font-size: 1.25rem; font-weight: 700; }
.destacado-sub { color: var(--tenue); font-weight: 600; }
.plazo-texto { white-space: nowrap; }
.plazo { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 0.9rem; align-items: center; margin-top: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--tenue); }
.plazo strong { color: var(--tinta); }
.destacado-accion { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--azul); color: #fff; border-radius: 12px; padding: 0.55rem 0.95rem; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.destacado-accion .icono { width: 18px; height: 18px; }

.casos { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radio); box-shadow: 0 0 0 1.5px var(--linea); overflow: hidden; }
.casos li + li { border-top: 1.5px solid var(--linea); }
.caso-fila { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: center; padding: 1rem 1.3rem; color: var(--tinta); text-decoration: none; transition: background 0.2s; }
.caso-fila:hover { background: var(--azul-bruma); color: var(--tinta); }
.caso-principal { display: grid; gap: 0.15rem; min-width: 0; }
.caso-tema { font-weight: 700; }
.caso-meta { color: var(--tenue); font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.caso-area, .caso-estado { font-weight: 600; font-size: 0.95rem; }
.caso-plazo { display: grid; gap: 0.35rem; }
.nivel-texto { font-weight: 700; }
.caso-plazo small.nivel-verde { color: var(--tenue); }

/* --- Cliente ----------------------------------------------------------------------------- */

.pautas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; max-width: 70ch; }
.pautas li { display: flex; gap: 1rem; align-items: flex-start; background: var(--nube); border-radius: 16px; padding: 1rem 1.2rem; }
.pauta-icono { width: 40px; height: 40px; border-radius: 12px; background: var(--azul-palido); color: var(--azul); display: grid; place-items: center; flex-shrink: 0; }
.pauta-icono.alerta { background: #fbe7e5; color: var(--rojo); }

.saludo-compacto { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.7rem; }
.emergencia { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.2rem; padding: 0.6rem 0.95rem; border-radius: 12px; background: #fbe7e5; color: var(--rojo); font-weight: 600; width: fit-content; max-width: 100%; }
.emergencia .icono { width: 20px; height: 20px; }
.chat-cabeza { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.9rem 1.2rem; border-bottom: 1.5px solid var(--linea); font-weight: 700; font-size: 1.05rem; }
.chat-cabeza small { margin-left: auto; font-size: 0.85rem; }
.panel-pautas .promesas a { color: #fff; }
.punto { width: 10px; height: 10px; border-radius: 50%; background: #5fd49a; box-shadow: 0 0 0 4px rgba(95, 212, 154, 0.2); }
.chat { background: #fff; color: var(--tinta); border-radius: 22px; display: flex; flex-direction: column; height: clamp(360px, 52vh, 520px); overflow: hidden; box-shadow: 0 0 0 1.5px var(--linea), var(--sombra); }
.mensajes { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--azul-bruma); }
.burbuja { max-width: 88%; padding: 0.75rem 1rem; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.burbuja.asistente { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--sombra-leve); }
.burbuja.cliente { background: var(--azul); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.burbuja.sistema { align-self: center; background: transparent; color: var(--tenue); font-size: 0.85rem; text-align: center; }
.burbuja.escribiendo { color: var(--tenue); font-style: italic; }
.opciones { display: flex; flex-wrap: wrap; gap: 0.45rem; align-self: flex-start; }
.opciones button { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); padding: 0.5rem 0.9rem; font-size: 0.92rem; }
.opciones button:hover { background: var(--azul-palido); color: var(--azul-2); }
.escribir { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1.5px solid var(--linea); align-items: flex-end; }
.escribir textarea { margin: 0; resize: none; }
.escribir button { padding: 0.8rem; }

.radicacion { margin-top: 1.2rem; background: #fff; box-shadow: 0 0 0 1.5px var(--linea), var(--sombra); scroll-margin-top: 1.5rem; }
.confirmacion { text-align: center; padding: 1.2rem 0; }
.numero { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 750; color: var(--azul); margin: 0.2rem 0 0.6rem; font-variant-numeric: tabular-nums; }
.codigo { font-size: 1.3rem; letter-spacing: 0.16em; background: var(--azul-palido); color: var(--azul-2); padding: 0.15rem 0.6rem; border-radius: 8px; font-variant-numeric: tabular-nums; }

.datos { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 0 0 0.6rem; }
.datos dt { color: var(--tenue); font-size: 0.9rem; font-weight: 600; }
.datos dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.resultado { background: #fff; box-shadow: 0 0 0 1.5px var(--linea), var(--sombra); }
.resultado h3 { margin-top: 1.4rem; }
.legal { max-width: 72ch; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

/* --- Caso -------------------------------------------------------------------------------- */

.migas { font-size: 0.92rem; color: var(--tenue); font-weight: 600; }
.caso { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.6rem; align-items: start; }
.encabezado-caso { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.encabezado-caso h1 { margin-bottom: 0.4rem; font-variant-numeric: tabular-nums; }
.estado { background: var(--azul-palido); color: var(--azul); padding: 0.4rem 0.95rem; border-radius: 99px; font-weight: 700; }
.relato { white-space: pre-wrap; background: #fff; padding: 0.9rem 1.1rem; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--linea); }
.decision { background: #e9f5ef; }
.decision h2 { color: var(--verde); }
.decision.negativa { background: #fcecea; }
.decision.negativa h2 { color: var(--rojo); }
.fotos { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.fotos img { width: 124px; height: 124px; object-fit: cover; border-radius: 14px; display: block; box-shadow: var(--sombra-leve); }
.linea { list-style: none; padding: 0; margin: 0; }
.linea li { position: relative; padding: 0 0 1rem 1.3rem; }
.linea li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--azul); }
.linea li::after { content: ""; position: absolute; left: 4px; top: 1.2rem; bottom: 0.1rem; width: 1.5px; background: var(--linea); }
.linea li:last-child::after { display: none; }
.lateral .tarjeta { background: #fff; box-shadow: 0 0 0 1.5px var(--linea); }

/* --- Personas ---------------------------------------------------------------------------- */

.solicitud { padding: 1rem 0; border-top: 1.5px solid var(--linea); display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: flex-end; }
.solicitud p { flex-basis: 100%; margin: 0; }
.solicitud form { gap: 0.8rem; align-items: flex-end; flex-wrap: wrap; }
.solicitud label { margin: 0; }
.tabla-desliza { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { text-align: left; font-size: 0.8rem; color: var(--tenue); padding: 0.7rem 0.8rem; border-bottom: 1.5px solid var(--linea); white-space: nowrap; font-weight: 700; }
td { padding: 0.75rem 0.8rem; border-bottom: 1.5px solid var(--linea); vertical-align: middle; font-weight: 500; }
tr:last-child td { border-bottom: 0; }

/* --- Pantallas medianas y celular -------------------------------------------------------- */

@media (max-width: 1279px) {
  .lienzo, .lienzo:has(> .panel) { grid-template-columns: 220px minmax(0, 1fr); }
  .lienzo > .panel { grid-column: 2; margin: 0 clamp(1.4rem, 3.4vw, 3.2rem) 2.6rem; border-radius: 26px; }
  .caso { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  body { padding: 0; }
  .lienzo, .lienzo:has(> .panel) { grid-template-columns: minmax(0, 1fr); border-radius: 0; min-height: 100vh; box-shadow: none; }
  .riel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; padding: 1rem 1rem 0.8rem; border-bottom: 1.5px solid var(--linea); position: sticky; top: 0; background: rgba(255, 255, 255, 0.96); z-index: 5; }
  .marca-logo, .marca small { display: none; }
  .marca-iso { display: block; }
  .riel > * { min-width: 0; }
  .menu { flex-direction: row; order: 3; flex-basis: 100%; min-width: 0; overflow-x: auto; gap: 0.3rem; scrollbar-width: none; }
  .menu a { padding: 0.6rem 0.9rem; font-size: 0.95rem; white-space: nowrap; }
  .riel-pie { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 0.6rem; }
  .quien { display: none; }
  .enlace-equipo { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  .boton-salir { padding: 0.55rem 0.9rem; }
  .contenido { padding: 1.4rem 1rem 2rem; }
  .lienzo > .panel { grid-column: 1; margin: 0 1rem 1.6rem; padding: 1.6rem 1.1rem; border-radius: 22px; }
  .chat { height: 62vh; min-height: 360px; }
  .chat-cabeza small { margin-left: 0; flex-basis: 100%; }
  .destacado { grid-template-columns: 52px minmax(0, 1fr); padding: 1rem; }
  .destacado-icono { width: 52px; height: 52px; border-radius: 14px; }
  .destacado-accion { grid-column: 1 / -1; justify-self: start; }
  .plazo { grid-template-columns: 1fr; gap: 0.3rem; }
  .plazo-texto { white-space: normal; }
  .caso-fila { grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem; }
  .caso-area, .caso-estado { font-size: 0.9rem; }
  .caso-area small, .caso-estado small { display: inline; margin-left: 0.4rem; }
  .barra-superior { margin-bottom: 1.6rem; }
  .fecha { font-size: 0.9rem; }
  .datos { grid-template-columns: 1fr; gap: 0.1rem; }
  .datos dd { margin-bottom: 0.5rem; }
  .pie { padding-bottom: 1.6rem; }
}

/* Identificación del cliente */
.identificacion { background: #fff; box-shadow: 0 0 0 1.5px var(--linea), var(--sombra); }
.vinculo { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vinculo legend { flex-basis: 100%; }
.opcion { display: flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.7rem 1rem; border-radius: 12px; border: 1.5px solid var(--linea); font-weight: 600; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--azul-bruma); color: var(--azul); }
.opcion input { width: 18px; height: 18px; margin: 0; accent-color: var(--azul); }
#no-cliente { background: var(--azul-palido); color: var(--azul-2); }
.identificado { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.9rem; font-weight: 700; color: var(--azul); }
.identificado .icono { width: 20px; height: 20px; }

/* Mostrar u ocultar la contraseña */
.campo-clave { position: relative; display: block; }
.campo-clave input { padding-right: 6.2rem; }
.ver-clave { position: absolute; right: 0.4rem; bottom: 0.4rem; padding: 0.45rem 0.8rem; font-size: 0.88rem; background: var(--azul-bruma); color: var(--azul); box-shadow: none; }
.ver-clave:hover { background: var(--azul-palido); color: var(--azul-2); transform: none; }
