/* MÓNACO · Tareas — Mónaco Claro (fuente: ~/monaco/docs/assets/monaco-claro.css)
   Contrastes sobre blanco: tinta 16.83 · tinta-2 8.93 · tinta-3 5.07 · azul-texto 5.42
   bien 5.44 · alerta 4.87 · grave 5.11 · crítico 5.74. Los fondos suaves de estado se
   verificaron con su texto encima (ver docs/BITACORA.md). */
:root {
  color-scheme: light;
  --fondo: #FFFFFF; --fondo-2: #F5F5F7; --sup-2: #FAFAFA;
  --tinta: #1D1D1F; --tinta-2: #494950; --tinta-3: #6E6E73;
  --linea: #E5E5EA; --borde: #D2D2D7;
  --azul: #007AFF; --azul-texto: #0066D6; --azul-fondo: #EAF2FE; --azul-linea: #C2DBF8;
  --bien: #137A33; --bien-fondo: #E9F6EC;
  --alerta: #9A6700; --alerta-fondo: #FFF6E5;
  --grave: #B4501E; --grave-fondo: #FDEFE8;
  --critico: #C4271F; --critico-fondo: #FDECEA;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radio: 16px; --radio-sm: 10px; --radio-full: 999px;
  --sombra: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --ancho: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--fondo); color: var(--tinta); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--azul-texto); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, .h1 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(20px, 2.8vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
h3, .h3 { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.etiqueta { line-height: 1.35; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-3); }
.cifra { font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; }
.suave { color: var(--tinta-3); }
.medio { color: var(--tinta-2); }
.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }


/* ——— Comunes ——— */
main { padding: 0; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.velo { position: fixed; inset: 0; background: rgba(29,29,31,.28); z-index: 40; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; z-index: 41; box-shadow: -8px 0 40px rgba(0,0,0,.12); overflow-y: auto; padding: 20px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--sombra); }
.toast button { color: #5AA9FF; font-weight: 700; margin-left: 10px; }
.v3-version { position: sticky; top: 0; z-index: 60; background: #FDECEA; color: #C4271F; font-weight: 700; padding: 10px 16px; text-align: center; font-size: 15px; }

/* ——— Ficha del asesorado y app v3: diseño v3 de David + guías de @lanne.digital ———
   No sigue Mónaco Claro: David pidió que se pareciera al mockup (tarjeta-asesorado-v3.webp) y
   después que se le aplicaran las guías de Lanne encima.
   · Escala ×1,25: 10 · 13 · 16 · 20 · 25 · 31. Desde el video del 21-nov el texto DENTRO de las
     tarjetas va en 16 y lo secundario en 13 ("termina cansando la vista"); 10 casi no se usa.
   · Una sola acción destacada por pantalla (relleno celeste). Relleno 2:1 en botones y chips.
   · Retícula de 12 columnas: panel izquierdo 2 (fijo) + contenido 10. Helvetica en todo. */
.v3 { --gris: #C7D1D9; --card: #F5F7F9; --tinta-v3: #111214; --gris-txt: #5D6368; --celeste: #39B5FF; --verde: #03C164; --rojo: #EE2E3D; --rojo-txt: #D41F2E;
  --t10: 10px; --t13: 13px; --t16: 16px; --t20: 20px; --t25: 25px; --t31: 31px; --gap: 24px;
  /* Escala única de espacios (2026-11-24, «organízalos mejor, porque no están alineados»): 4 · 8 · 12 · 16 · 24 · 32 */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e6: 24px; --e8: 32px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  min-height: 100vh; padding: var(--e8) 64px var(--e6); background: #fff; }
.v3 button { font-family: inherit; }
.v3 a:hover { text-decoration: none; }
/* Barra lateral: columnas 1–2 */
.v3-lado { grid-column: 1 / span 2; min-width: 0; position: sticky; top: var(--e8); max-height: calc(100vh - 48px); overflow-y: auto; overflow-x: hidden; padding: 0 4px 16px 14px; margin-left: -14px; scrollbar-width: thin; }
.v3-cuerpo { grid-column: 3 / -1; min-width: 0; }
.v3-avatar { display: block; width: 110px; height: 110px; border-radius: 50%; background: var(--gris); margin: 0 0 12px 23px; overflow: hidden; position: relative; padding: 0; }
.v3-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-avatar-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); opacity: 0; transition: opacity .15s; }
.v3-avatar:hover .v3-avatar-txt, .v3-avatar:focus-visible .v3-avatar-txt { opacity: 1; }
.v3-yo { display: block; font-size: var(--t20); font-weight: 700; line-height: 1.25; color: var(--tinta-v3); padding: 4px 8px; margin: 0 0 4px -8px; border-radius: 10px; width: max-content; max-width: 100%; }
.v3-yo:hover, .v3-yo.on { background: #EEF1F3; color: var(--tinta-v3); }
.v3-fila { display: flex; align-items: center; }
.v3-grupo { display: flex; align-items: center; font-size: var(--t20); font-weight: 700; line-height: 1.25; color: var(--tinta-v3); padding: 4px 0; position: relative; }
.v3-tri { width: 0; height: 0; margin-left: -14px; margin-right: 7px; border-left: 7px solid #C3C8CC; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
.v3-grupo[aria-expanded="true"] .v3-tri, .v3-grupo-cab[aria-expanded="true"] .v3-tri { transform: rotate(90deg); }
.v3-mas { font-size: var(--t20); font-weight: 700; color: var(--tinta-v3); margin-left: 6px; line-height: 1; padding: 2px 4px; }
.v3-lista { list-style: none; margin: 6px 0 8px; padding-left: 24px; }
.v3-lista a { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 4px 8px; margin-left: -8px; border-radius: 999px; font-size: var(--t16); font-weight: 700; line-height: 1.35; color: var(--tinta-v3); overflow: hidden; text-overflow: ellipsis; }
.v3-lista a[aria-current="page"] { background: #EEF1F3; width: max-content; max-width: 100%; }
.v3-lista a:hover { background: #F2F4F6; }
.v3-punto { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.v3-punto.verde { background: var(--verde); } .v3-punto.azul { background: #37B8FF; } .v3-punto.rojo { background: #FF3130; } .v3-punto.gris { background: var(--gris); }
/* Encabezado */
.v3-cab { display: flex; align-items: center; gap: var(--e3); min-height: 56px; margin: 0 0 var(--e6); }
.v3-info { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--tinta-v3); display: grid; place-items: center; font: 700 var(--t13)/1 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3); }
.v3-cab h1 { flex: 0 0 auto; font-family: inherit; font-size: var(--t31); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; margin-right: 4px; }
.v3-enlaces { display: flex; align-items: flex-start; gap: 6px; }
.v3-enlace { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 40px; font-size: var(--t10); font-weight: 700; color: var(--tinta-v3); white-space: nowrap; padding-top: 2px; }
.v3-ico { height: 26px; display: grid; place-items: center; }
.v3-ico svg { width: 25px; height: 25px; }
.v3-enlace:hover .v3-ico { transform: translateY(-1px); }
/* El balón es estado, no acción: píldora gris del mockup. 2:1 a la derecha; a la izquierda el balón redondo va pegado (8 px), como en el mockup. */
.v3-balon { flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; margin-left: 8px; border-radius: 999px; background: var(--gris); font-size: var(--t20); font-weight: 600; line-height: 1.25; color: var(--gris-txt); }
.v3-balon svg { width: 34px; height: 34px; }
/* Secundaria: contorno, misma forma de píldora */
.v3-dash { flex: none; margin-left: auto; }
.v3-dash > .v3-desp-btn { position: relative; border: 1.5px solid var(--gris); border-radius: 999px; background: #fff; color: var(--gris-txt); font-size: var(--t16); font-weight: 600; line-height: 1.25; padding: 12px 48px 12px 24px; min-width: 158px; text-align: left; white-space: nowrap; }
.v3-dash > .v3-desp-btn:hover { border-color: #AAB6C0; }
.v3-dash > .v3-desp-btn::after { content: ''; position: absolute; right: 22px; top: 50%; margin-top: -4px; border-top: 9px solid var(--gris-txt); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.v3-dash .v3-pop { min-width: 100%; }
/* Columnas: 12 dentro del contenido, 4 por columna */
.v3-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.v3-col { grid-column: span 4; display: flex; flex-direction: column; gap: var(--e6); min-width: 0; }
.v3-card { background: var(--card); border-radius: 17px; padding: var(--e6); }
.v3-tl, .v3-pp { flex: 1; }
.v3-card-cab { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); margin-bottom: var(--e4); }
.v3-card-cab h2 { white-space: nowrap; font-family: inherit; font-size: var(--t20); font-weight: 600; letter-spacing: 0; line-height: 1.25; color: var(--gris-txt); }
.v3-filtro { flex: none; }
.v3-filtro > .v3-desp-btn { position: relative; border-radius: 999px; background: #D8EADF; color: var(--tinta-v3); font-size: var(--t16); font-weight: 700; line-height: 1.25; padding: 4px 12px 4px 26px; white-space: nowrap; }
.v3-filtro > .v3-desp-btn::before { content: ''; position: absolute; left: 10px; top: 50%; margin-top: -3px; border-top: 7px solid #8FA096; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.v3-filtro > .v3-desp-btn:hover { background: #C9E0D2; }
.v3-vacio { font-size: var(--t16); font-weight: 600; color: var(--gris-txt); }
/* Tareas del asesorado */
.v3-tareas { list-style: none; }
.v3-tareas { max-height: 372px; overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; }
.v3-tareas li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 8px; padding: 6px 0; }
.v3-tareas li.mismo-dia { padding-top: 0; }
.v3-dia { font-size: var(--t16); font-weight: 700; line-height: 1.2; }
.v3-dia small { display: block; font-size: var(--t13); font-weight: 700; color: #444; padding-left: 2px; margin-top: 2px; }
.v3-tt { font-size: var(--t16); font-weight: 700; line-height: 1.3; }
.v3-tt > span:first-child { display: block; }
.v3-tt-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.v3-tt-pie small { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-tareas li.hecha .v3-tt > span:first-child { text-decoration: line-through; }
.v3-tareas li.venc .v3-tt > span:first-child { color: var(--rojo-txt); }

/* Botoncito "un poco brillante", sin subrayado: abre el detalle de la tarea */
.v3-seg { flex: none; background: linear-gradient(180deg, #E9F6FF 0%, #C9E8FE 100%); border-radius: 999px; padding: 5px 14px; font-size: var(--t13); font-weight: 700; line-height: 1.2; color: #0B4A73; white-space: nowrap; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 3px rgba(57, 181, 255, .35); transition: box-shadow .15s, transform .15s; }
.v3-seg:hover { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 3px 10px rgba(57, 181, 255, .5); transform: translateY(-1px); }
/* Línea de tiempo */
.v3-linea { list-style: none; position: relative; padding-left: 17px; margin-top: -4px; }
.v3-linea::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 1.5px; background: #C3C5C7; }
.v3-linea li { position: relative; font-size: var(--t16); font-weight: 600; line-height: 1.4; padding: 5px 0; }
.v3-linea li::before { content: ''; position: absolute; left: -17px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #C3C5C7; }
.v3-linea li.cierra::before { background: var(--verde); }
/* Próximos pasos */
.v3-pp h3 { font-family: inherit; font-size: var(--t16); font-weight: 700; letter-spacing: 0; margin: 16px 0 6px; }
.v3-pp h3:first-of-type { margin-top: 0; }
.v3-pasos { list-style: none; }
.v3-pasos li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) 58px 76px; align-items: center; gap: 0 8px; min-height: 36px; padding: 3px 0; }
.v3-circulo { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 1.3px solid #222; background: #fff; padding: 0; }
.v3-circulo:hover { border-color: var(--celeste); }
.v3-paso-t { text-align: left; font-size: var(--t16); font-weight: 700; line-height: 1.3; color: var(--tinta-v3); }
.v3-paso-t small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-paso-t:hover { text-decoration: underline; text-underline-offset: 2px; }
.v3-pasos li.venc .v3-paso-t { color: var(--rojo-txt); font-weight: 600; }
.v3-pasos li.hecha .v3-paso-t { text-decoration: line-through; color: #555; }
.v3-pasos li.hecha::after { content: ''; position: absolute; left: -3px; width: 18px; top: 50%; height: 1.3px; background: #333; pointer-events: none; }
.v3-fecha { font-size: var(--t13); font-weight: 700; color: #444; text-align: right; white-space: nowrap; line-height: 1.2; }
.v3-fecha small { display: block; font-size: var(--t13); color: var(--rojo-txt); }
.v3-resp { justify-self: stretch; text-align: center; background: var(--gris); border-radius: 999px; font-size: var(--t13); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 4px; }
/* Columna 3 */
.v3-c3 { gap: 0; }
.v3-medida { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
.v3-medida small { grid-column: 2; justify-self: end; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); line-height: 1.4; }
.v3-medida small.mal { color: var(--rojo-txt); }
.v3-m-dia { margin-top: 2px; }
.v3-m-dia .v3-lbl { font-size: var(--t16); font-weight: 600; color: var(--gris-txt); }
.v3-m-etapa { margin-top: 8px; }
.v3-m-etapa .v3-lbl { font-size: var(--t20); font-weight: 600; color: var(--gris-txt); min-width: 76px; }
.v3-barra { display: block; height: 13px; border-radius: 999px; background: var(--gris); padding: 3px 4px; }
.v3-barra > span { display: block; height: 7px; border-radius: 999px; background: var(--celeste); min-width: 7px; }
.v3-etapas { list-style: none; position: relative; margin: 18px 0 0 13px; padding: 0 0 4px 18px; }
.v3-etapas::before { content: ''; position: absolute; left: 4px; top: 16px; bottom: 16px; width: 1px; background: #9A9FA4; }
.v3-etapas li { position: relative; min-height: 32px; display: flex; align-items: center; }
.v3-etapas li::before { content: ''; position: absolute; left: -18px; top: 50%; margin-top: -4.5px; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 1px solid #333; }
.v3-etapas li.e-verde::before { background: var(--verde); border: 0; }
.v3-etapas li.e-azul::before { background: #36B7FF; border: 0; }
.v3-etapas li.actual button { text-decoration: underline; text-decoration-color: #36B7FF; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.v3-etapas button { font-size: var(--t16); font-weight: 700; letter-spacing: -.005em; color: var(--tinta-v3); text-align: left; line-height: 1.25; }
.v3-etapas button:hover { color: #0C7DF2; }
.v3-apertura { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin: 4px 0 20px 31px; }
/* Acción principal de la pantalla: la única con relleno de color (celeste del mockup, texto oscuro: 8,5:1) */
.v3-agendar { align-self: flex-end; padding: 8px 16px; border-radius: 999px; background: var(--celeste); font-size: var(--t16); font-weight: 700; line-height: 1.25; color: var(--tinta-v3); margin: 0 7px 13px 0; box-shadow: 0 2px 8px rgba(57, 181, 255, .35); }
.v3-agendar:hover { background: #1FA8F5; }
.v3-reu { flex: 1; padding: 18px 18px 18px 7px; }
.v3-reu ul { list-style: none; }
.v3-reu li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 6px 24px; font-size: var(--t16); font-weight: 600; line-height: 1.35; }
.v3-reu li::before { content: ''; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #05A330; }
.v3-reu li.prox::before { background: #0C7DF2; }
.v3-reu li > span { min-width: 0; }
.v3-chip-reu { flex: none; background: #DDE3E8; border-radius: 999px; padding: 4px 10px; font-size: var(--t13); font-weight: 700; line-height: 1.2; color: #3C444A; }
.v3-chip-reu.grab { background: linear-gradient(180deg, #E9F6FF 0%, #C9E8FE 100%); color: #0B4A73; box-shadow: 0 1px 3px rgba(57, 181, 255, .35); }
.v3-chip-reu.sin { background: none; color: var(--gris-txt); font-weight: 600; padding: 4px 0; }
.v3-chip-reu:hover { background: #CDD5DC; }
/* Debajo de 1280 px el diseño se aprieta; la versión de celular se hace después. */
@media (max-width: 1279px) { .v3 { padding: var(--e8) var(--e6) var(--e6); } .v3-cab { flex-wrap: wrap; } .v3-balon { margin-left: 0; } }
@media (max-width: 1023px) { .v3-lado, .v3-cuerpo { grid-column: 1 / -1; } .v3-lado { position: static; max-height: none; } .v3-col, .v3-cols > .v3-span8, .v3-cols > .v3-span4 { grid-column: 1 / -1; } .v3-cols { row-gap: var(--e6); } }

/* ——— Mi trabajo, Tablero y detalle (funcionalidad de ClickUp con el lenguaje de la ficha v3) ———
   Misma escala (10·13·16·20·31), Helvetica, tarjetas grises, filtros en píldora verde, chips grises.
   Una sola acción destacada por pantalla: "Guardar ↵" de la fila de creación (Mi trabajo) y
   "Comentar" (detalle). Lo demás es secundario o solo texto. */
.v3-det, .v3-fantasma { --gris: #C7D1D9; --card: #F5F7F9; --tinta-v3: #111214; --gris-txt: #5D6368; --celeste: #39B5FF; --verde: #03C164; --rojo: #EE2E3D; --rojo-txt: #D41F2E;
  --t10: 10px; --t13: 13px; --t16: 16px; --t20: 20px; --t31: 31px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3); }
.v3-det button, .v3-det select, .v3-det textarea, .v3-det input { font-family: inherit; }
.v3-cols > .v3-span8 { grid-column: span 8; } .v3-cols > .v3-span4 { grid-column: span 4; }
.v3-n { font-size: var(--t10); font-weight: 700; color: var(--gris-txt); background: #fff; border-radius: 999px; padding: 2px 6px; margin-left: 4px; vertical-align: 2px; }
.v3-ayuda { font-size: var(--t13); color: var(--gris-txt); margin: 0 0 8px; }
.v3-terc { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 6px 0; text-align: left; }
.v3-terc:hover { color: var(--tinta-v3); text-decoration: underline; text-underline-offset: 2px; }
/* Chips de persona (filtro): la elegida va en píldora verde, como los filtros del mockup */
.v3-chips-p { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 12px; }
.v3-chip-p { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 5px 10px; border-radius: 999px; }
.v3-chip-p:hover { background: #EEF1F3; color: var(--tinta-v3); }
.v3-chip-p.on { background: #D8EADF; color: var(--tinta-v3); }
/* Pestañas Pendiente / Listo / Delegado */
.v3-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.v3-tab { font-size: var(--t16); font-weight: 700; color: var(--gris-txt); padding: 4px 12px; border-radius: 999px; line-height: 1.25; }
.v3-tab:hover { color: var(--tinta-v3); }
.v3-tab.on { background: #D8EADF; color: var(--tinta-v3); }
.v3-toggle { margin-left: auto; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); border: 1.5px solid var(--gris); border-radius: 999px; padding: 4px 10px; line-height: 1.3; background: #fff; }
.v3-toggle.on { background: #D8EADF; border-color: #D8EADF; color: var(--tinta-v3); }
/* Fila de creación en ráfaga */
.v3-nueva { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--gris); border-radius: 14px; padding: 6px 6px 6px 12px; margin-bottom: 14px; }
.v3-nueva:focus-within { border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(57, 181, 255, .2); }
.v3-mas-ico { font-size: var(--t20); font-weight: 700; color: var(--gris-txt); line-height: 1; }
.v3-nueva input { flex: 1; min-width: 120px; border: 0; outline: 0; font: 600 var(--t16)/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3); background: transparent; padding: 6px 0; }
.v3-guardar { flex: none; background: var(--celeste); color: var(--tinta-v3); font-size: var(--t13); font-weight: 700; padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.v3-guardar:hover { background: #1FA8F5; }
.v3-ases { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); border: 1.5px dashed var(--gris); border-radius: 999px; padding: 3px 6px; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
/* Selectores flotantes */
.v3-pop-caja { position: relative; display: inline-flex; }
.v3-pop { position: absolute; top: calc(100% + 6px); left: 0; right: auto; z-index: 30; min-width: 220px; max-height: min(440px, 70vh); overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(17, 18, 20, .16), 0 0 0 1px rgba(17, 18, 20, .06); padding: 8px; display: grid; gap: 2px; text-align: left; }
.v3-op { display: flex; align-items: center; gap: 8px; width: 100%; font-size: var(--t16); font-weight: 600; color: var(--tinta-v3); padding: 6px 10px; border-radius: 8px; text-align: left; white-space: nowrap; }
.v3-op small { color: var(--gris-txt); font-size: var(--t13); margin-left: auto; padding-left: 12px; }
.v3-op:hover, .v3-op:focus-visible { background: #EEF1F3; outline: none; }
.v3-op.on { background: #D8EADF; }
.v3-pop-rap { display: grid; gap: 2px; }
.v3-pop-txt { display: flex; gap: 6px; margin-top: 6px; border-top: 1px solid #E3E8EC; padding-top: 8px; }
.v3-pop-txt input { flex: 1; min-width: 0; border: 1.5px solid var(--gris); border-radius: 999px; padding: 6px 12px; font: 600 var(--t13)/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.v3-pop-txt input:focus { outline: none; border-color: var(--celeste); }
.v3-pop-txt button { font-size: var(--t13); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #EEF1F3; }
.v3-pop-ayuda { font-size: var(--t10); color: var(--gris-txt); padding: 4px 4px 0; }
/* Grupos Hoy / Atrasado / Siguiente / Sin programar */
.v3-grupo-t { margin-top: 6px; }
.v3-grupo-cab { display: flex; align-items: center; font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); padding: 6px 0 6px 14px; }
.v3-grupo-t.atrasado .v3-grupo-cab { color: var(--rojo-txt); }
.v3-filas-t { list-style: none; }
.v3-fila-t { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 140px 96px 96px; align-items: center; gap: 8px 10px; padding: 7px 0; border-top: 1px solid #E8ECEF; }
.v3-filas-t > .v3-fila-t:first-child { border-top: 0; }
.v3-fila-t.sin-resp { grid-template-columns: 14px minmax(0, 1fr) auto 140px 96px; }
.v3-tit { text-align: left; min-width: 0; }
.v3-tit span { display: block; font-size: var(--t16); font-weight: 700; line-height: 1.3; color: var(--tinta-v3); }
.v3-tit small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-tit:hover span { text-decoration: underline; text-underline-offset: 2px; }
.v3-fila-t.venc .v3-tit span { color: var(--rojo-txt); }
.v3-fila-t.hecha .v3-tit span { text-decoration: line-through; color: #555; }
.v3-fila-t.hecha .v3-circulo, .v3-ck li.hecho .v3-circulo { background: var(--verde); border-color: var(--verde); }
.v3-estado-caja { display: inline-flex; align-items: center; gap: 2px; justify-self: end; }
.v3-est { display: inline-block; font-size: var(--t13); font-weight: 700; padding: 3px 8px; border-radius: 999px; line-height: 1.2; white-space: nowrap; }
.e-pendiente { background: #E3E8EC; color: #3C444A; } .e-en_curso { background: #D5EDFE; color: #0B4A73; } .e-bloqueada { background: #FDE2E4; color: #A3121E; } .e-hecho { background: #D8EADF; color: #1E5B33; }
.v3-sig { width: 20px; height: 20px; border-radius: 50%; font-size: var(--t10); color: var(--gris-txt); background: #EEF1F3; line-height: 20px; text-align: center; }
.v3-sig:hover { background: var(--celeste); color: var(--tinta-v3); }
.v3-fch { font-size: var(--t13); font-weight: 700; color: #444; padding: 3px 6px; border-radius: 999px; white-space: nowrap; line-height: 1.2; justify-self: end; }
.v3-fch.venc { color: var(--rojo-txt); } .v3-fch.hoy { color: #8A5A00; }
.v3-fila-t .v3-fch:hover, .v3-fila-t .v3-prio:hover, .v3-nueva .v3-fch:hover, .v3-nueva .v3-prio:hover, .v3-det .v3-fch:hover, .v3-det .v3-prio:hover { background: #EEF1F3; }
.v3-nueva .v3-fch, .v3-nueva .v3-prio { border: 1.5px dashed var(--gris); }
.v3-prio { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t13); font-weight: 700; color: #444; padding: 3px 6px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.v3-flag svg { width: 10px; height: 10px; display: block; }
.pr-urgente { color: var(--rojo); } .pr-alta { color: #D98A00; } .pr-normal { color: var(--celeste); } .pr-baja { color: #9AA4AD; }
.v3-resp-btn { border: 0; cursor: pointer; min-width: 60px; }
.v3-resp-btn:hover { background: #B6C2CC; }
/* Avisos y semana */
.v3-avisos { margin-bottom: 0; }
.v3-mini-tabs { display: inline-flex; gap: 4px; }
.v3-mini-tabs button { font-size: var(--t10); font-weight: 700; color: var(--gris-txt); padding: 3px 8px; border-radius: 999px; }
.v3-mini-tabs button.on { background: #D8EADF; color: var(--tinta-v3); }
.v3-avisos-l { list-style: none; display: grid; gap: 4px; margin-bottom: 6px; }
.v3-avisos-l button { width: 100%; text-align: left; font-size: var(--t16); line-height: 1.35; padding: 8px 10px; border-radius: 10px; background: #fff; }
.v3-avisos-l button:hover { box-shadow: inset 0 0 0 1.5px var(--gris); }
.v3-avisos-l b { color: var(--tinta-v3); }
.v3-avisos-l small { display: block; font-size: var(--t13); color: var(--gris-txt); margin-top: 2px; }
.v3-avisos-l li.leido button { background: transparent; color: var(--gris-txt); }
.v3-sem-l { list-style: none; margin-top: 12px; }
.v3-sem-l li { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t16); font-weight: 600; padding: 4px 0; border-top: 1px solid #E8ECEF; }
/* Tablero */
.v3-tb-barra { display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; margin: calc(-1 * var(--e2)) 0 var(--e4); }
.v3-tb-barra .v3-toggle { margin-left: 0; }
.v3-buscar { border: 1.5px solid var(--gris); border-radius: 999px; padding: 5px 12px; font: 600 var(--t13)/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; width: 200px; }
.v3-buscar:focus { outline: none; border-color: var(--celeste); }
.v3-kanban { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.v3-colk { background: var(--card); border-radius: 17px; padding: 14px; min-height: 220px; display: flex; flex-direction: column; gap: 10px; }
.v3-colk.sobre { box-shadow: inset 0 0 0 2px var(--celeste); }
.v3-colk-cab { display: flex; align-items: center; gap: 6px; padding: 2px 2px 4px; }
.v3-colk-cab .v3-est { font-size: var(--t13); padding: 4px 10px; }
.v3-tarjeta { position: relative; background: #fff; border-radius: 12px; padding: 12px; cursor: grab; box-shadow: 0 1px 2px rgba(17, 18, 20, .06); }
.v3-tarjeta:hover { box-shadow: 0 0 0 1.5px var(--gris); }
.v3-tarjeta.venc .v3-tarj-t { color: var(--rojo-txt); }
.v3-tarjeta.hecha .v3-tarj-t { text-decoration: line-through; color: #555; }
.v3-tarj-t { display: block; text-align: left; font-size: var(--t16); font-weight: 700; line-height: 1.3; color: var(--tinta-v3); padding-right: 22px; }
.v3-tarj-t:hover { text-decoration: underline; text-underline-offset: 2px; }
.v3-tarj-a { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-top: 4px; }
.v3-tarj-pie { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.v3-tarj-pie .v3-fch, .v3-tarj-pie .v3-prio { padding: 0; }
.v3-tarj-ok { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); background: #EEF1F3; opacity: 0; }
.v3-tarjeta:hover .v3-tarj-ok, .v3-tarj-ok:focus-visible, .v3-tarjeta.hecha .v3-tarj-ok { opacity: 1; }
.v3-tarj-ok:hover, .v3-tarjeta.hecha .v3-tarj-ok { background: var(--verde); color: #fff; }
.v3-nueva-col { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1.5px var(--celeste); }
.v3-nueva-col input { width: 100%; border: 0; outline: 0; font: 700 var(--t13)/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.v3-nueva-col small { display: block; font-size: var(--t10); color: var(--gris-txt); margin-top: 6px; }
/* Detalle de la tarea */
.panel.v3-det { width: min(980px, 100%); padding: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.v3-det-izq { padding: 22px 28px 28px; overflow-y: auto; }
.v3-det-der { background: var(--card); padding: 22px 22px 18px; display: flex; flex-direction: column; min-height: 100%; }
.v3-det-der h2 { font-size: var(--t20); font-weight: 600; color: var(--gris-txt); margin-bottom: 12px; letter-spacing: 0; }
.v3-det-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.v3-ruta { font-size: var(--t16); font-weight: 600; color: var(--gris-txt); }
.v3-ruta a { color: var(--tinta-v3); text-decoration: underline; text-underline-offset: 2px; }
.v3-det .cerrar { width: 36px; height: 36px; border-radius: 50%; font-size: var(--t20); color: var(--gris-txt); }
.v3-det .cerrar:hover { background: #EEF1F3; }
.v3-det-tit { width: 100%; resize: none; border: 1.5px solid transparent; border-radius: 10px; padding: 4px 6px; margin: 0 -6px 12px; font-size: var(--t31); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--tinta-v3); }
.v3-det-tit:hover, .v3-det-tit:focus { border-color: var(--gris); outline: none; }
.v3-det-grid { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px 12px; align-items: center; font-size: var(--t16); font-weight: 600; }
.v3-det-grid .k { color: var(--gris-txt); }

.v3-det-est { display: inline-flex; align-items: center; gap: 6px; }
.v3-det-est .v3-est { font-size: var(--t13); padding: 4px 10px; cursor: pointer; }
.v3-ok { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gris); font-size: var(--t13); font-weight: 700; color: var(--gris-txt); }
.v3-ok:hover, .v3-ok.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.v3-sel { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--gris); border-radius: 999px; background: #fff; padding: 4px 28px 4px 10px; font: 600 var(--t13)/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3); max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235D6368' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.v3-det-lbl { display: block; font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); margin: 20px 0 8px; }
.v3-det-nota { width: 100%; min-height: 80px; resize: vertical; border: 1.5px solid var(--gris); border-radius: 12px; padding: 10px 12px; font: 500 var(--t16)/1.5 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.v3-det-nota:focus { outline: none; border-color: var(--celeste); }
.v3-ck { list-style: none; margin-top: 8px; }
.v3-ck li { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: var(--t16); font-weight: 600; }
.v3-ck-btn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; color: var(--tinta-v3); }
.v3-ck-btn:hover .v3-circulo { border-color: var(--celeste); }
.v3-ck li.hecho .v3-ck-btn > span:last-child { text-decoration: line-through; color: var(--gris-txt); }
.v3-x { color: var(--gris-txt); font-size: var(--t16); opacity: 0; }
.v3-ck li:hover .v3-x, .v3-x:focus-visible { opacity: 1; }
.v3-ck-nuevo input { width: 100%; border: 0; border-bottom: 1.5px solid #E3E8EC; padding: 8px 0 8px 25px; font: 600 var(--t16)/1.4 'Helvetica Neue', Helvetica, Arial, sans-serif; background: transparent; }
.v3-ck-nuevo input:focus { outline: none; border-color: var(--celeste); }
.v3-hilo { list-style: none; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.v3-hilo li.act { font-size: var(--t13); line-height: 1.5; color: var(--gris-txt); padding-left: 32px; }
.v3-hilo li.act b { color: #3C444A; }
.v3-hilo time { font-size: var(--t13); color: #8A9299; margin-left: 4px; white-space: nowrap; }
.v3-hilo li.com { background: #fff; border-radius: 12px; padding: 10px 12px; }
.v3-hilo li.com .quien { display: flex; align-items: center; gap: 8px; font-size: var(--t16); }
.v3-hilo li.com p { font-size: var(--t16); line-height: 1.5; margin: 6px 0 0 30px; white-space: pre-wrap; }
.v3-av { width: 22px; height: 22px; border-radius: 50%; background: var(--gris); font-size: var(--t10); font-weight: 700; display: grid; place-items: center; flex: none; }
.v3-comentar { display: grid; gap: 8px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 0 0 1.5px var(--gris); }
.v3-comentar:focus-within { box-shadow: 0 0 0 1.5px var(--celeste); }
.v3-comentar textarea { border: 0; outline: 0; resize: vertical; font: 500 var(--t16)/1.5 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.v3-comentar .v3-guardar { justify-self: end; }
@media (max-width: 860px) { .panel.v3-det { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } .v3-det-der { min-height: auto; } .v3-hilo { overflow: visible; } }

.v3-tarjeta[data-mover] { user-select: none; -webkit-user-select: none; }
.v3-fantasma { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; box-shadow: 0 16px 40px rgba(17, 18, 20, .22) !important; opacity: .95; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.v3-origen { opacity: .35; }
body.v3-arrastrando, body.v3-arrastrando * { cursor: grabbing !important; }


/* ——— Ronda del video (21-nov): app única, desplegables propios, balón, etapas, paneles ——— */
.v3-desp-btn { font-family: inherit; cursor: pointer; }
.v3-pop-tit { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 8px 10px 2px; }
.v3-op-check { gap: 10px; }
.v3-caja-ck { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gris); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.v3-op-check.on .v3-caja-ck { background: var(--verde); border-color: var(--verde); color: #fff; }
.v3-op-check.on { background: #F0F7F2; }
.v3-pop-listo { margin-top: 6px; justify-self: end; font-size: var(--t13); font-weight: 700; padding: 6px 14px; border-radius: 999px; background: #EEF1F3; }
.v3-pop-listo:hover { background: var(--gris); }
.v3-lista .v3-foto.mini { width: 22px; height: 22px; font-size: 9px; }
.v3-foto { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.v3-ini { display: inline-grid; place-items: center; background: var(--gris); color: var(--tinta-v3); font-weight: 700; font-size: var(--t13); }
.v3-foto.grande { width: 72px; height: 72px; font-size: var(--t20); }
.v3-proto { margin-top: 40px; padding-top: 12px; border-top: 1px solid #E3E8EC; display: grid; gap: 6px; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-proto-fila { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v3-proto-desp > .v3-desp-btn { font-size: var(--t13); font-weight: 700; color: var(--tinta-v3); padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--gris); background: #fff; }
.v3-proto .v3-terc { padding: 2px 0; }
/* Balón: quién tiene la pelota, dicho con palabras */
.v3-balon { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; margin-left: 8px; border-radius: 999px; background: #EEF1F3; font-size: var(--t16); font-weight: 700; line-height: 1.2; color: var(--tinta-v3); text-align: left; box-shadow: inset 0 0 0 1.5px var(--gris); }
.v3-balon svg { width: 30px; height: 30px; flex: none; }
.v3-balon small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-balon.cliente { background: #FFF4E0; box-shadow: inset 0 0 0 1.5px #F2C879; }
.v3-balon.equipo { background: #E6F4FF; box-shadow: inset 0 0 0 1.5px #9BD3FA; }
.v3-balon:hover { filter: brightness(.97); }
.v3-frase { flex: 1 1 0; min-width: 220px; max-width: 520px; font-size: var(--t13); font-weight: 700; line-height: 1.35; color: var(--tinta-v3); }
.v3-sugiere { display: flex; align-items: center; flex-wrap: wrap; gap: var(--e2) var(--e4); margin: 0 0 var(--e6); padding: var(--e3) var(--e4); border-radius: 14px; background: var(--card); font-size: var(--t16); font-weight: 600; }
.v3-sugiere-tit { font-weight: 700; }
.v3-pendiente, .v3-nota { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-sugiere .v3-pendiente { margin-left: auto; }
.v3-enlace.falta { opacity: .55; }
.v3-enlace.falta:hover { opacity: 1; }
.v3-ico svg { width: 26px; height: 26px; overflow: visible; }
/* Línea de tiempo: cada entrada se despliega */
.v3-ev { display: block; width: 100%; text-align: left; font-size: var(--t16); font-weight: 600; color: var(--tinta-v3); border-radius: 8px; padding: 0 4px; margin-left: -4px; }
.v3-ev > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-ev:hover { background: #EBEFF2; }
.v3-linea li.abierto .v3-ev > span { white-space: normal; }
.v3-ev-det { background: #fff; border-radius: 12px; padding: 12px 14px; margin: 6px 0 4px; font-size: var(--t16); font-weight: 500; line-height: 1.45; }
.v3-ev-det dl { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; margin-top: 10px; font-size: var(--t13); }
.v3-ev-det dt { color: var(--gris-txt); font-weight: 700; }
.v3-ev-dia { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); margin-top: 10px; }
.v3-ev-det ul { list-style: none; font-size: var(--t13); }
.v3-link { text-align: left; color: var(--tinta-v3); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gris); text-underline-offset: 3px; }
.v3-link:hover { text-decoration-color: var(--tinta-v3); }
.v3-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0 13px; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-leyenda span { display: inline-flex; align-items: center; gap: 5px; }
.v3-leyenda span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #333; box-sizing: border-box; }
.v3-leyenda .e-verde::before { background: var(--verde); border: 0; } .v3-leyenda .e-azul::before { background: #36B7FF; border: 0; }
.v3-aviso-sec { margin: 8px 0 0 13px; font-size: var(--t13); font-weight: 700; color: #9A6700; }
/* Paneles laterales (hojas) */
.panel.v3-hoja { --gris: #C7D1D9; --card: #F5F7F9; --tinta-v3: #111214; --gris-txt: #5D6368; --celeste: #39B5FF; --verde: #03C164; --rojo: #EE2E3D; --rojo-txt: #D41F2E;
  --t10: 10px; --t13: 13px; --t16: 16px; --t20: 20px; --t31: 31px; width: min(560px, 100%); padding: 24px 28px 32px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--tinta-v3); font-size: var(--t16); }
.v3-hoja button, .v3-hoja input, .v3-hoja select, .v3-hoja textarea { font-family: inherit; }
.v3-hoja-cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.v3-hoja-cab h2 { font-size: var(--t31); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.v3-hoja-cab p { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-top: 6px; }
.v3-hoja-cab .cerrar { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: var(--t20); color: var(--gris-txt); }
.v3-hoja-cab .cerrar:hover { background: #EEF1F3; }
.v3-hoja-sec { border-top: 1px solid #E3E8EC; padding: 16px 0 6px; }
.v3-hoja-sec h3 { font-size: var(--t20); font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.v3-hoja-sec h3 small, .v3-form label small { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-form { display: grid; gap: 8px; }
.v3-form label, .v3-k { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); margin-top: 8px; display: block; }
.v3-form input, .v3-form select, .v3-form textarea { width: 100%; border: 1.5px solid var(--gris); border-radius: 12px; padding: 10px 12px; font-size: var(--t16); font-weight: 500; background: #fff; color: var(--tinta-v3); }
.v3-form textarea { resize: vertical; line-height: 1.45; }
.v3-form input:focus, .v3-form select:focus, .v3-form textarea:focus { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(57, 181, 255, .2); }
.v3-form-pie { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.v3-form-pie .v3-guardar { font-size: var(--t16); padding: 10px 22px; }
.v3-form-linea { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.v3-form-linea input { padding: 8px 10px; font-size: var(--t13); }
.v3-form-linea .v3-terc { grid-column: 1 / -1; justify-self: start; }
.v3-v { font-size: var(--t16); line-height: 1.45; }
.v3-v small { font-size: var(--t13); color: var(--gris-txt); }
.v3-gente { list-style: none; display: grid; gap: 8px; }
.v3-gente li { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.v3-gente li > div { flex: 1; min-width: 0; }
.v3-gente b { display: block; font-size: var(--t16); }
.v3-gente small { display: block; font-size: var(--t13); color: var(--gris-txt); font-weight: 600; }
.v3-gente .v3-av { width: 34px; height: 34px; font-size: var(--t13); }
.v3-wa { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex: none; }
.v3-wa svg { width: 26px; height: 26px; }
.v3-wa:hover { box-shadow: 0 0 0 1.5px #3FBE4F; }
.v3-pagos { list-style: none; }
.v3-pagos li { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E3E8EC; font-size: var(--t16); }
.v3-pagos small { display: block; font-size: var(--t13); color: var(--gris-txt); }
.v3-pagos em { font-style: normal; font-size: var(--t13); font-weight: 700; text-align: right; color: #9A6700; }
.v3-pagos em.ok { color: #137A33; } .v3-pagos em.mal { color: #C4271F; }
.v3-banda { background: #FFF6E5; color: #6B4A00; border-radius: 12px; padding: 10px 14px; font-size: var(--t13); font-weight: 600; line-height: 1.45; margin: 12px 0 8px; }
.v3-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: var(--t16); }
.v3-dl dt { color: var(--gris-txt); font-weight: 700; font-size: var(--t13); padding-top: 2px; }
.v3-puntos { margin: 10px 0 0 20px; font-size: var(--t16); line-height: 1.5; }
.v3-estado-et { font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E3E8EC; color: #3C444A; }
.v3-estado-et.verde { background: #D8EADF; color: #1E5B33; } .v3-estado-et.azul { background: #D5EDFE; color: #0B4A73; }
.v3-linea-et li { padding: 8px 0 8px; }
.v3-linea-et li::before { top: 14px; }
.v3-linea-et time { display: block; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); }
.v3-linea-et b { display: block; }
.v3-linea-et small { display: block; font-size: var(--t13); color: var(--gris-txt); font-weight: 600; margin-top: 2px; }
.v3-chips-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.v3-chip-sel { font-size: var(--t13); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--gris); color: var(--tinta-v3); }
.v3-chip-sel small { font-weight: 600; color: var(--gris-txt); }
.v3-chip-sel:hover { box-shadow: inset 0 0 0 1.5px #8A98A4; }
.v3-chip-sel.on { background: #D8EADF; box-shadow: none; }
/* Agendar: calendario redondeado y horas en botones */
.v3-cal { border-radius: 18px; background: var(--card); padding: 12px; max-width: 360px; }
.v3-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: var(--t16); text-transform: capitalize; }
.v3-cal-cab button { width: 32px; height: 32px; border-radius: 50%; font-size: var(--t20); background: #fff; }
.v3-cal-cab button:disabled { opacity: .3; cursor: default; }
.v3-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.v3-cal-grid .dn { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 4px 0; }
.v3-cal-grid button { aspect-ratio: 1; border-radius: 12px; font-size: var(--t16); font-weight: 600; background: #fff; color: var(--tinta-v3); }
.v3-cal-grid button.fuera { background: transparent; color: var(--gris-txt); }
.v3-cal-grid button.hoy { box-shadow: inset 0 0 0 1.5px var(--celeste); }
.v3-cal-grid button.on { background: var(--celeste); color: var(--tinta-v3); font-weight: 700; }
.v3-cal-grid button:disabled { opacity: .35; cursor: default; background: transparent; }
.v3-cal-grid button:not(:disabled):not(.on):hover { background: #E6F4FF; }
.v3-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 168px; overflow-y: auto; padding: 2px; border-radius: 14px; }
.v3-horas button { padding: 8px 0; border-radius: 12px; font-size: var(--t13); font-weight: 700; background: var(--card); color: var(--tinta-v3); }
.v3-horas button:hover { background: #E6F4FF; }
.v3-horas button.on { background: var(--celeste); }
/* Detalle: responsables y desplegables propios */
.v3-resp-multi { text-align: left; border-radius: 12px; padding: 2px; }
.v3-resp-multi:hover .v3-chip-mas { color: var(--tinta-v3); text-decoration: underline; }
.v3-chips-r { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v3-chip-r { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--gris); font-size: var(--t13); font-weight: 700; }
.v3-chip-r small { font-weight: 600; color: var(--gris-txt); }
.v3-chip-r.asesorado { background: #FFF4E0; box-shadow: inset 0 0 0 1.5px #F2C879; }
.v3-chip-mas { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 0 4px; }
.v3-desp-det { border: 1.5px solid var(--gris); border-radius: 999px; padding: 5px 30px 5px 12px; font-size: var(--t16); font-weight: 600; color: var(--tinta-v3); position: relative; text-align: left; }
.v3-desp-det::after { content: ''; position: absolute; right: 12px; top: 50%; margin-top: -2px; border-top: 6px solid var(--gris-txt); border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }
.v3-fch-det, .v3-prio-det { font-size: var(--t16); padding: 5px 10px; border: 1.5px solid var(--gris); }
.v3-det-tit { font-size: var(--t31); }
/* Dashboard de persona y dashboard general */
.v3-cab-per { gap: 18px; }
.v3-foto-per { border-radius: 50%; padding: 0; }
.v3-foto-per:hover { box-shadow: 0 0 0 3px var(--celeste); }
.v3-cargo { font-size: var(--t16); font-weight: 600; color: var(--gris-txt); }
.v3-cab-per .v3-filtro { margin-left: 12px; }
.v3-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--e6); }
.v3-kpi { background: var(--card); border-radius: 17px; padding: var(--e4) var(--e6); min-width: 0; }
.v3-kpi span { display: block; font-size: var(--t16); font-weight: 600; color: var(--gris-txt); }
.v3-kpi b { display: block; font-size: var(--t31); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.v3-kpi small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-kpi .mal, .v3-palabra.mal { color: #C4271F; }
.v3-kpis.compacto .v3-kpi { padding: 12px 18px; }
.v3-kpis.compacto .v3-kpi b { font-size: var(--t25); }
.v3-kpi-ir { grid-column: 1 / -1; justify-self: end; margin-top: -16px; }
.v3-palabra { font-weight: 700; } .v3-palabra.ok { color: #137A33; }
.v3-fases { list-style: none; }
.v3-fases li { display: grid; grid-template-columns: 200px minmax(60px, 1fr) 28px; gap: 4px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid #E3E8EC; font-size: var(--t16); font-weight: 600; }
.v3-fases li b { text-align: right; font-variant-numeric: tabular-nums; }
.v3-fase-n { grid-column: 1 / -1; font-size: var(--t13); color: var(--gris-txt); }
.v3-fase-n:empty { display: none; }
.v3-fases a, .v3-tabla a, .v3-alertas a, .v3-sem-l a { color: var(--tinta-v3); }
.v3-fases li.fin { border-bottom: 0; }
.v3-tabla-caja { overflow-x: auto; }
.v3-tabla { width: 100%; border-collapse: collapse; font-size: var(--t16); }
.v3-tabla th { text-align: left; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); padding: 6px 10px 8px 0; border-bottom: 1.5px solid var(--gris); white-space: nowrap; }
.v3-tabla td { padding: 10px 10px 10px 0; border-bottom: 1px solid #E3E8EC; vertical-align: top; font-weight: 600; }
.v3-tabla td small { display: block; font-size: var(--t13); color: var(--gris-txt); font-weight: 600; }
.v3-tabla a { font-weight: 700; }
.v3-alertas ul { list-style: none; display: grid; gap: 8px; }
.v3-alertas li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; background: #fff; border-radius: 12px; padding: 10px 12px; }
.v3-alertas a b { display: block; font-size: var(--t16); line-height: 1.3; }
.v3-alertas a small { display: block; font-size: var(--t13); color: var(--gris-txt); font-weight: 600; margin-top: 2px; }
.v3-alertas a:hover b { text-decoration: underline; text-underline-offset: 2px; }
.v3-nivel { font-size: var(--t13); font-weight: 700; padding: 3px 8px; border-radius: 999px; text-align: center; }
.n-critico .v3-nivel { background: #FDECEA; color: #C4271F; } .n-grave .v3-nivel { background: #FDEFE8; color: #B4501E; } .n-alerta .v3-nivel { background: #FFF6E5; color: #9A6700; }
.v3-col > .v3-card + .v3-card { margin-top: 0; }
@media (max-width: 1279px) { .v3-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v3-fases li { grid-template-columns: 150px minmax(40px, 1fr) 28px; } }
.v3-pp .v3-nueva, .v3-col .v3-nueva { flex-wrap: wrap; row-gap: 6px; }
.v3-pp .v3-nueva input { flex-basis: calc(100% - 30px); }
.v3-span8 .v3-nueva { flex-wrap: nowrap; }
.v3-span8 .v3-nueva input { flex-basis: auto; }
/* El encabezado de la ficha lleva más cosas (balón con palabras, menú): baja de línea antes que desbordarse */
.v3-cab { flex-wrap: wrap; row-gap: 12px; }
.v3-cuerpo { overflow-x: clip; }
.v3-enlaces { gap: 2px; }
.v3-dash > .v3-desp-btn { padding: 11px 42px 11px 20px; min-width: 150px; }
.v3-dash > .v3-desp-btn::after { right: 18px; }
.v3-ta .v3-card-cab { flex-wrap: wrap; row-gap: 8px; }
.v3-ta .v3-card-cab .v3-filtro { margin-left: auto; }
/* Selectores: flotan por encima de todo (posición fija desde app.js) y la opción elegida se ve una
   sola vez: verde + negrita + ✓. Pasar el mouse solo aclara un poco el fondo. */
.v3-pop { z-index: 45; }
.v3-op:hover, .v3-op:focus-visible { background: #F4F6F8; }
.v3-op:focus-visible { outline: 2px solid var(--celeste); outline-offset: -2px; }
.v3-op.on, .v3-op.on:hover { background: #D8EADF; font-weight: 700; }
.v3-op.on:not(.v3-op-check)::after { content: '✓'; margin-left: auto; padding-left: 12px; color: #1E5B33; font-weight: 700; }
.v3-op.on:not(.v3-op-check):has(small)::after { margin-left: 8px; padding-left: 0; }
.v3-op-check.on, .v3-op-check.on:hover { background: #F0F7F2; font-weight: 600; }
/* Enlaces del encabezado: los cinco íconos del mismo tamaño (24 px), en la misma línea base y con el
   mismo espacio; cada etiqueta centrada debajo de su ícono, sin pegarse a la vecina. */
.v3-enlaces { gap: 10px; align-items: flex-start; }
.v3-enlace { width: auto; min-width: 34px; padding: 2px 2px 0; gap: 5px; line-height: 1.1; }
.v3-ico { width: 26px; height: 26px; display: grid; place-items: center; }
.v3-ico svg { width: 24px; height: 24px; display: block; overflow: visible; }
.v3-enlace > span:last-child { display: block; text-align: center; }
/* Balón: ícono lineal centrado en su círculo blanco, alineado con "La pelota la tiene / Nombre" */
.v3-balon-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--tinta-v3); box-shadow: 0 0 0 1px rgba(17, 18, 20, .08); }
.v3-balon-ico svg { width: 24px; height: 24px; display: block; }
.v3-balon { align-items: center; }
.v3-enlaces { gap: 4px; }
.v3-enlace { width: 52px; min-width: 0; }
/* ——— Alto fijo (pedido de David, 21-nov): la ficha, Mi trabajo, el Tablero y la vista de persona
   ocupan exactamente el alto de la ventana. La página no se desplaza: cada tarjeta reparte el alto de
   su columna y su lista se desplaza por dentro, con el encabezado (título y filtro) fijo arriba.
   En pantallas bajas (< 700 px) o angostas (< 1024 px) vuelve el scroll normal de página. */
.v3-scroll { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.v3-scroll:hover, .v3-scroll:focus-within { scrollbar-color: #C7D1D9 transparent; }
.v3-scroll::-webkit-scrollbar { width: 6px; }
.v3-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.v3-scroll:hover::-webkit-scrollbar-thumb { background: #C7D1D9; }
@media (min-width: 1024px) and (min-height: 700px) {
  .v3.fijo { height: 100vh; height: 100dvh; overflow: hidden; padding-top: var(--e8); padding-bottom: var(--e6); grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .v3.fijo .v3-lado { position: static; height: 100%; max-height: none; }
  .v3.fijo .v3-cuerpo { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .v3.fijo .v3-cab { flex: none; }
  .v3.fijo .v3-sugiere { flex: none; }
  .v3.fijo .v3-kpis, .v3.fijo .v3-tb-barra { flex: none; }
  .v3.fijo .v3-cols { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .v3.fijo .v3-col { min-height: 0; height: 100%; }
  .v3.fijo .v3-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .v3.fijo .v3-card > * { flex: none; }
  .v3.fijo .v3-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  /* Desvanecido abajo cuando hay más: un ::after pegado al fondo de la lista, del color de la tarjeta */
  .v3.fijo .v3-scroll.hay-mas::after { content: ''; display: block; position: sticky; bottom: 0; height: 32px; margin-top: -32px; background: linear-gradient(rgba(245, 247, 249, 0), #F5F7F9); pointer-events: none; }
  /* Ficha: proporciones del mockup v3 */
  .v3.fijo .v3-ta { flex: 5 1 0; } .v3.fijo .v3-tl { flex: 4 1 0; } .v3.fijo .v3-pp { flex: 1 1 0; }
  .v3.fijo .v3-tareas { max-height: none; margin-right: -10px; padding-right: 10px; }
  .v3.fijo .v3-c3 > * { flex: none; }
  .v3.fijo .v3-etapas-caja { flex: 0 1 auto; min-height: 120px; overflow-y: auto; }
  .v3.fijo .v3-etapas-caja.hay-mas::after { background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
  .v3.fijo .v3-apertura { margin-bottom: 12px; }
  .v3.fijo .v3-reu { flex: 1 1 0; min-height: 110px; display: flex; flex-direction: column; overflow: hidden; }
  .v3.fijo .v3-reu > .v3-scroll { flex: 1 1 auto; }
  /* Mi trabajo y persona */
  .v3.fijo .v3-mt { flex: 1 1 0; }
  .v3.fijo .v3-avisos { flex: 5 1 0; } .v3.fijo .v3-sem { flex: 2 1 0; } /* los avisos traen más (asesorados, bolsa): más alto */
  .v3.fijo .v3-sem .v3-sem-l { margin-top: 12px; }
  /* Tablero: la página no se mueve; cada columna se desplaza por dentro */
  .v3.fijo .v3-kanban { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .v3.fijo .v3-colk { min-height: 0; overflow: hidden; }
  .v3.fijo .v3-colk-l { display: flex; flex-direction: column; gap: 10px; margin: 0 -6px; padding: 2px 6px; }
  .v3.fijo .v3-colk-l.hay-mas::after { flex: none; }
}
@media not ((min-width: 1024px) and (min-height: 700px)) {
  .v3-colk-l { display: flex; flex-direction: column; gap: 10px; }
}
@media (min-width: 1024px) and (min-height: 700px) {
  .v3.fijo .v3-c3 { gap: 0; }
  .v3.fijo .v3-etapas { margin-top: 12px; }
  .v3.fijo .v3-etapas li { min-height: 29px; }
  .v3.fijo .v3-reu { min-height: 130px; }
}
/* Pantallas bajas (700–860 px de alto): mismo diseño, más compacto, para que las listas tengan aire */
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 860px) {
  .v3, .v3.fijo { padding-top: var(--e6); } .v3.fijo { padding-bottom: var(--e4); } .v3-lado { top: var(--e6); } /* todas las vistas: la marca no salta */
  .v3.fijo .v3-cab { margin-bottom: var(--e4); min-height: 0; row-gap: var(--e2); }
  .v3.fijo .v3-cab h1 { font-size: 25px; }
  .v3.fijo .v3-sugiere { margin: 0 0 var(--e4); padding: var(--e2) var(--e4); }
  .v3.fijo .v3-sugiere .v3-pendiente { display: none; }
  .v3.fijo .v3-col { gap: var(--e4); }
  .v3.fijo .v3-kpis, .v3.fijo .v3-top, .v3.fijo .v3-marca { margin-bottom: var(--e4); }
  .v3.fijo .v3-top, .v3.fijo .v3-marca { min-height: 48px; } .v3.fijo .v3-top-foto { width: 44px; height: 44px; } /* pantallas bajas: más alto para las listas */
  .v3.fijo .v3-sem .v3-sem-l { min-height: 34px; } /* al menos una fila de «Abiertas por asesorado» */
  .v3.fijo .v3-card { padding: var(--e4); }
  .v3.fijo .v3-card-cab { margin-bottom: var(--e2); }
  .v3.fijo .v3-card-cab h2 { font-size: 16px; }
  .v3.fijo .v3-filtro > .v3-desp-btn { font-size: 13px; padding: 3px 10px 3px 22px; }
  .v3.fijo .v3-filtro > .v3-desp-btn::before { left: 8px; }
  .v3.fijo .v3-ta .v3-card-cab { flex-wrap: nowrap; }
  .v3.fijo .v3-m-etapa .v3-lbl { font-size: 16px; }
  .v3.fijo .v3-etapas li { min-height: 26px; }
  .v3.fijo .v3-agendar { margin-bottom: 8px; padding: 6px 14px; }
  .v3.fijo .v3-dash > .v3-desp-btn { padding: 8px 38px 8px 16px; font-size: 13px; min-width: 0; }
  .v3.fijo .v3-avatar { width: 80px; height: 80px; margin-left: 30px; }
}
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 860px) {
  .v3.fijo .v3-card-cab { gap: 6px; }
  .v3.fijo .v3-ta .v3-card-cab { flex-wrap: wrap; }
  .v3.fijo .v3-filtro > .v3-desp-btn { padding: 3px 9px 3px 20px; }
  .v3.fijo .v3-filtro > .v3-desp-btn::before { left: 7px; }
}
/* "+" junto al título de la tarjeta: el mismo de "Team +" y "Asesorados +" (sin círculo), del color y
   peso del título y en su línea base. Al pasar el mouse se aclara el fondo y oscurece el signo. */
.v3-tit-mas { display: inline-flex; align-items: baseline; gap: 2px; flex: none; }
.v3-mas-tit { font-size: var(--t20); font-weight: 600; color: var(--gris-txt); line-height: 1.25; margin-left: 4px; padding: 0 6px; border-radius: 8px; }
.v3-mas-tit:hover, .v3-mas-tit:focus-visible { background: #E6EAEE; color: var(--tinta-v3); }
.v3-mas:hover { color: #0C7DF2; }
@media (min-width: 1024px) and (min-height: 700px) and (max-height: 860px) { .v3.fijo .v3-mas-tit { font-size: 16px; } }
/* Foto de perfil: sin foto, el círculo dice "Agregar foto" con una cámara; con foto, "Cambiar foto" al pasar el mouse */
.v3-avatar, .v3-foto-per { position: relative; overflow: hidden; border-radius: 50%; }
.v3-foto-per { width: 72px; height: 72px; background: var(--gris); flex: none; }
.v3-foto-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.15; color: #3C444A; text-align: center; padding: 8px; }
.v3-foto-txt svg { width: 26px; height: 26px; }
.v3-foto-per .v3-foto-txt { font-size: 10px; gap: 2px; }
.v3-foto-per .v3-foto-txt svg { width: 18px; height: 18px; }
.v3-foto-txt.cambiar { background: rgba(17, 18, 20, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.con-foto:hover .v3-foto-txt.cambiar, .con-foto:focus-visible .v3-foto-txt.cambiar { opacity: 1; }
.v3-avatar:not(.con-foto):hover, .v3-foto-per:not(.con-foto):hover { background: #B6C2CC; }
.v3-avatar-txt { display: none; }
.v3-quien { cursor: default; margin-left: 12px; }

/* ——— Revisión completa del 2026-11-23 ——— */
/* Nombres largos en el panel izquierdo: pasan a una segunda línea en vez de cortarse a media letra */
.v3-lista a { white-space: normal; align-items: flex-start; border-radius: 12px; }
.v3-lista .v3-nom { min-width: 0; overflow-wrap: anywhere; }
.v3-lista .v3-punto { margin-top: 7px; }
/* Entre 1024 y 1279 px el panel mide ~150 px: con la sangría de 24 px «Sebastián» se partía en «Sebasti / án» */
@media (min-width: 1024px) and (max-width: 1279px) { .v3-lista { padding-left: 8px; } }
/* Mismo rango: el «+» de «Asesorados» (11 px) y la foto (4 px) quedaban por fuera del panel, tapados por su barra de desplazamiento */
@media (min-width: 1024px) and (max-width: 1279px) { .v3-grupo { font-size: 18px; } .v3-mas { margin-left: 2px; } .v3-avatar { margin-left: 12px; } }
/* Avisos y "Esta semana": las filas no se estiran para llenar la tarjeta */
.v3-avisos-l, .v3-sem-l { align-content: start; }
/* El ✓ de una tarjeta hecha: tinta sobre el verde del mockup (7,9:1; blanco daba 2,4:1) */
.v3-tarj-ok:hover, .v3-tarjeta.hecha .v3-tarj-ok { color: var(--tinta-v3); }
/* Leyenda de etapas: la nota va en su propia línea, sin punto suelto */
.v3-leyenda .v3-ley-nota { flex-basis: 100%; font-style: normal; }
.v3-leyenda .v3-ley-nota::before { content: none; }
.v3-kpi b .v3-cop { display: inline; font-size: var(--t13); font-weight: 700; letter-spacing: 0; color: var(--gris-txt); }
.v3-ayuda-campo { display: block; font-size: var(--t13); color: var(--gris-txt); margin: -4px 0 10px; }
.v3-sem-sub { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); margin-top: 12px; }
.v3-sem .v3-sem-sub + .v3-sem-l { margin-top: 4px; }

/* Novedades (revisor automático): mismas tarjetas y listas del mockup */
.v3-nov-ir { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.v3-n.v3-n-nov { background: var(--azul-texto); color: #fff; } /* blanco sobre #0066D6: 5,42:1 */
.v3-nov-l { list-style: none; display: grid; gap: 8px; }
.v3-nov-l li { background: #fff; border-radius: 12px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.v3-nov-l li.nueva { box-shadow: inset 3px 0 0 var(--azul); }
.v3-nov-meta { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-nov-nueva { font-weight: 700; color: var(--azul-texto); }
.v3-nov-tit { display: block; font-size: var(--t16); line-height: 1.3; color: var(--tinta-v3); margin-top: 2px; }
.v3-nov-l p { font-size: var(--t13); font-weight: 600; line-height: 1.4; color: var(--gris-txt); margin-top: 4px; }
.v3-nov-l .v3-nov-preg { font-size: var(--t16); color: var(--tinta-v3); }
.v3-nov-l small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-top: 6px; }
.v3-nov-l small b { color: var(--tinta-v3); }
.v3-nov-ign { font-size: var(--t13); font-weight: 700; color: #9A6700; margin-top: 10px; }
/* Alto fijo: cada tarjeta llena su columna y su lista se desplaza por dentro (la página no se mueve) */
@media (min-width: 1024px) and (min-height: 700px) { .v3.fijo .v3-nov { flex: 1 1 0; } }

/* Áreas · Videos: mismas tarjetas, columnas y alertas del mockup. Contraste calculado (texto ≥ 4,5:1) */
.v-material_pendiente { background: #E3E8EC; color: #3C444A; } /* 8,04:1 */
.v-en_edicion { background: #D5EDFE; color: #0B4A73; } /* 7,75:1 */
.v-en_correccion { background: #FFF1D6; color: #7A4B00; } /* 6,64:1 */
.v-listo { background: #EAF2FE; color: #0058B8; } /* 6,03:1 */
.v-entregado { background: #D8EADF; color: #1E5B33; } /* 6,45:1 */
.v-publicado { background: #137A33; color: #fff; } /* 5,44:1 */
.v3-palabra.grave { color: #B4501E; } /* 4,76:1 sobre las tarjetas */
.v3-kpis.v3-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.v3-kpis-6 .v3-kpi { padding: 16px 18px; }
.v3-kpis-6 .v3-kpi span { font-size: var(--t13); font-weight: 700; }
.v3-vid-tablero { margin-top: var(--e6); }
.v3-vid-filtros { margin: 0 0 14px; }
.v3-vid-kanban { gap: 12px; }
.v3-vid-n { font-weight: 700; color: var(--tinta-v3); }
.v3-vid-primero li { grid-template-columns: 104px minmax(0, 1fr); }
.v3-vid-col > .v3-terc { padding: 2px 4px; }
.v3-vid-col .v3-colk-l { display: flex; flex-direction: column; gap: 10px; }
.v3-vid-col .v3-colk-cab .v3-est { white-space: normal; }
.v3-tarjeta.v3-vid { cursor: default; }
.v3-vid.al-critico { box-shadow: inset 3px 0 0 #C4271F; } .v3-vid.al-grave { box-shadow: inset 3px 0 0 #B4501E; }
.v3-vid .v3-tarj-t { padding-right: 0; }
.v3-vid-al { font-size: var(--t13); font-weight: 600; line-height: 1.35; color: var(--gris-txt); margin-top: 6px; }
.v3-vid-nota { font-size: var(--t13); font-weight: 600; line-height: 1.35; color: #7A4B00; background: #FFF6E5; border-radius: 8px; padding: 6px 8px; margin-top: 8px; overflow-wrap: anywhere; }
.v3-vid-enl { font-size: var(--t13); font-weight: 700; color: var(--azul-texto); }
.v3-vid-enl:hover { text-decoration: underline; text-underline-offset: 2px; }
.v3-vid-mov { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.v3-vid-mov .v3-pop-caja { min-width: 0; }
.v3-vid-est > .v3-desp-btn { font-size: var(--t13); font-weight: 700; line-height: 1.25; padding: 4px 24px 4px 12px; border-radius: 999px; background: #EEF1F3; color: var(--tinta-v3); white-space: nowrap; }
.v3-vid-est > .v3-desp-btn:hover { background: #E3E8EC; }
.v3-vid-est > .v3-desp-btn { position: relative; }
.v3-vid-est > .v3-desp-btn::after { content: ''; position: absolute; right: 9px; top: 50%; margin-top: -2px; border-top: 5px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.v3-vid-mov .v3-sig { width: 26px; height: 26px; line-height: 26px; font-size: var(--t13); color: var(--tinta-v3); }
.v3-vid-mov .v3-sig { flex: none; }
.v3-tarjeta.v3-vid[data-mover-vid] { cursor: grab; }
.v3-vid-hist { list-style: none; display: grid; gap: 8px; }
.v3-vid-hist li { font-size: var(--t13); font-weight: 600; color: var(--tinta-v3); line-height: 1.4; }
.v3-vid-hist time { display: block; color: var(--gris-txt); }
.v3-vid-hist small { display: block; color: var(--gris-txt); overflow-wrap: anywhere; }
.v3-vid-vacio { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); padding: 4px 2px; }
.v3-vid-av ul, .v3-vid-plan ol { list-style: none; display: grid; gap: 6px; }
.v3-vid-av button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; text-align: left; background: #fff; border-radius: 12px; padding: 10px 12px; }
.v3-vid-av button:hover { box-shadow: inset 0 0 0 1.5px var(--gris); }
.v3-vid-avn { font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); min-width: 0; overflow-wrap: anywhere; }
.v3-vid-av b, .v3-vid-av-n b { font-size: var(--t13); font-weight: 700; color: var(--tinta-v3); white-space: nowrap; }
.v3-vid-av .v3-barra { grid-column: 1 / -1; }
.v3-vid-av-n { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-bottom: 6px; }
.v3-vid-av-n b { font-size: var(--t16); }
.v3-vid-plan ol { margin-top: 14px; }
.v3-vid-plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 10px; }
.v3-vid-plan li .v3-palabra { grid-column: 2 / -1; font-size: var(--t13); }
.v3-vid-num { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); }
.v3-vid-mom { font-size: var(--t13); font-weight: 600; color: var(--tinta-v3); min-width: 0; }
.v3-vid-plan .v3-est:hover { text-decoration: underline; text-underline-offset: 2px; }
.v3-vid-plan .v3-terc { padding: 0; color: var(--azul-texto); }
.v3-vid-falta { font-size: var(--t13); font-weight: 600; color: var(--gris-txt); }
.v3-vid-permiso { font-size: var(--t13); font-weight: 700; color: #9A6700; background: #FFF6E5; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.v3-form select:disabled, .v3-form input:disabled, .v3-form textarea:disabled { background: #F5F7F9; color: var(--gris-txt); cursor: not-allowed; }
@media (max-width: 1439px) { .v3-kpis.v3-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .v3-vid-kanban { grid-template-columns: repeat(var(--cols, 6), minmax(240px, 1fr)); overflow-x: auto; padding-bottom: 8px; } }
@media (max-width: 640px) { .v3-vid-primero li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .v3-vid-primero .v3-nivel { justify-self: start; } .v3-kpis.v3-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .v3-kpis-6 .v3-kpi b { font-size: var(--t25); } }

/* ——— Inicio de sesión (Entrar · ¿Olvidaste tu contraseña? · contraseña nueva) y Accesos ———
   Estilo del mockup v3 (Helvetica, celeste con texto oscuro 8,5:1), no Mónaco Claro.
   Contrastes: tinta #111214 sobre blanco 18,9 · gris #5D6368 6,1 · borde de campo #7D868E 3,6
   (mínimo 3:1 para el borde de un control) · foco #007AFF 4,0 (el celeste da 2,3) · error #C4271F sobre #FDECEA 5,0 · bien #137A33 sobre
   #E9F6EC 4,9 · alerta #8A5C00 sobre #FFF6E5 5,8. */
.ent { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 16px; background: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #111214; }
.ent-caja { width: 100%; max-width: 400px; background: #F5F7F9; border-radius: 25px; padding: 32px 28px 28px; }
.ent-marca { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.ent-h { font-size: 31px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 8px; }
.ent-txt { font-size: 16px; color: #5D6368; margin-bottom: 20px; line-height: 1.45; }
.ent-form { display: flex; flex-direction: column; }
.ent-etq { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ent-in { font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #7D868E; background: #fff; color: #111214; margin-bottom: 16px; width: 100%; }
.ent-in:focus { outline: none; border-color: #007AFF; box-shadow: 0 0 0 3px rgba(57, 181, 255, .3); }
.ent-ayuda { font-size: 13px; color: #5D6368; margin: -10px 0 16px; line-height: 1.4; }
.ent-ver { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5D6368; margin: -4px 0 20px; min-height: 44px; cursor: pointer; }
.ent-ver input { width: 18px; height: 18px; accent-color: #111214; }
.ent-btn { display: block; width: 100%; background: #39B5FF; color: #111214; font-size: 16px; font-weight: 700; padding: 13px 16px; border-radius: 999px; line-height: 1.25; box-shadow: 0 2px 8px rgba(57, 181, 255, .35); min-height: 48px; }
.ent-btn:hover { background: #2AA8F5; }
.ent-btn:disabled { opacity: .6; cursor: wait; }
.ent-link { display: block; margin: 16px auto 0; font-size: 16px; font-weight: 700; color: #111214; text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; min-height: 44px; }
.ent-error { background: #FDECEA; color: #C4271F; font-size: 16px; font-weight: 700; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.4; }
.ent-aviso { background: #EAF6FF; color: #111214; font-size: 16px; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; line-height: 1.4; }
.ent-nota { font-size: 13px; color: #5D6368; margin: -8px 0 20px; line-height: 1.4; }
.ent-pie { font-size: 13px; color: #5D6368; }
.v3-salir { margin-left: 6px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.acc-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.acc-fila { display: grid; grid-template-columns: 190px minmax(0, 1.2fr) minmax(0, 1fr) 290px; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid #E3E8EC; }
.acc-quien { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-quien b { display: block; font-size: 16px; }
.acc-quien small, .acc-estado small { display: block; font-size: 13px; color: #5D6368; }
.acc-correo { display: flex; gap: 8px; align-items: center; min-width: 0; }
.acc-correo input { flex: 1; min-width: 0; font-size: 16px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid #7D868E; background: #fff; }
.acc-correo input:focus, .acc-copia input:focus { outline: none; border-color: #007AFF; box-shadow: 0 0 0 3px rgba(57, 181, 255, .3); }
.acc-est { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.acc-est.bien { background: #E9F6EC; color: #137A33; }
.acc-est.alerta { background: #FFF6E5; color: #8A5C00; }
.acc-est.nada { background: #EEF1F3; color: #5D6368; }
.acc-acc { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; white-space: nowrap; }
.acc-enlace { grid-column: 1 / -1; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.acc-enlace label { display: block; font-weight: 700; margin-bottom: 6px; }
.acc-enlace p { margin-top: 6px; color: #111214; }
.acc-enlace small { color: #5D6368; font-size: 13px; }
.acc-copia { display: flex; gap: 8px; }
.acc-copia input { flex: 1; min-width: 0; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #7D868E; background: #F5F7F9; font-family: ui-monospace, Menlo, monospace; }
.acc-modo { font-size: 13px; color: #5D6368; margin: 4px 0 8px; }
.acc-modo b { color: #111214; }
.acc-modo code { font-size: 13px; }
@media (max-width: 900px) {
  .acc-fila { grid-template-columns: 1fr; gap: 10px; }
  .acc-acc { justify-content: flex-start; }
  .acc-acc .v3-terc { min-height: 44px; }
  .ent-caja { padding: 28px 20px 24px; }
}

/* ——— Avisos de asesorados (Mi trabajo) y la bolsa ———
   Palabra + color siempre. Contrastes del chip: crítico #C4271F/#FDECEA 5,0 · grave #B4501E/#FDEFE8 4,7 ·
   alerta #8A5C00/#FFF6E5 5,8 · info #111214/#EEF1F3 16,7 · hecho #137A33/#E9F6EC 4,9 */
.v3-avisos-l li.v3-aviso { background: #fff; border-radius: 10px; }
.v3-avisos-l li.v3-aviso > .v3-av-ir { background: transparent; }
.v3-avisos-l li.v3-aviso.leido { background: transparent; }
.v3-av-pal { display: inline-block; font-size: var(--t13); font-weight: 700; line-height: 1.3; padding: 1px 8px; border-radius: 999px; margin-right: 2px; vertical-align: 1px; }
.v3-av-pal.n-critico { background: #FDECEA; color: #C4271F; }
.v3-av-pal.n-grave { background: #FDEFE8; color: #B4501E; }
.v3-av-pal.n-alerta { background: #FFF6E5; color: #8A5C00; }
.v3-av-pal.n-info { background: #EEF1F3; color: #111214; }
.v3-avisos-l .v3-av-det { color: var(--tinta-v3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3-av-acc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 10px; }
.v3-avisos-l .v3-av-acc .v3-av-btn { width: auto; font-size: var(--t13); font-weight: 700; line-height: 1.2; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--tinta-v3); box-shadow: inset 0 0 0 1.5px #7D868E; min-height: 34px; }
.v3-avisos-l .v3-av-acc .v3-av-btn:hover { box-shadow: inset 0 0 0 1.5px var(--tinta-v3); }
.v3-avisos-l .v3-av-acc .v3-av-btn.prim { background: var(--celeste); box-shadow: none; }
.v3-avisos-l .v3-av-acc .v3-av-btn.hecho { background: #E9F6EC; color: #137A33; box-shadow: none; }
.v3-resp.sindueno { background: #FDECEA; color: #C4271F; }
.v3-resp.bolsa { background: #EEF1F3; color: #111214; box-shadow: inset 0 0 0 1.5px #7D868E; }
.v3-chip-r.sindueno { background: #FDECEA; color: #C4271F; box-shadow: none; }
.v3-chip-r.sindueno small { color: #C4271F; }
.v3-chip-r.bolsa { background: #EEF1F3; box-shadow: inset 0 0 0 1.5px #7D868E; }
.v3-tomar { margin-right: 6px; }
.v3-at-para { border: 0; padding: 0; margin: 8px 0 4px; display: grid; gap: 6px; }
.v3-form .v3-at-op { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); min-height: 44px; cursor: pointer; }
.v3-form .v3-at-op input[type=radio] { width: 20px; height: 20px; margin: 0; padding: 0; flex: none; accent-color: var(--tinta-v3); }
.v3-form .v3-at-op small { flex-basis: 100%; padding-left: 30px; font-size: var(--t13); font-weight: 400; color: var(--gris-txt); }
.v3-form .v3-at-op select { flex: 1 1 100%; margin-left: 30px; width: calc(100% - 30px); }
@media (max-width: 900px) {
  .v3-avisos-l .v3-av-acc .v3-av-btn { min-height: 44px; padding: 10px 16px; }
  .v3:not(.fijo) .v3-avisos-l, .v3-avisos-l { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; } /* sin esto, 40 avisos = 5000 px de página */
}

.v3-barra-cel { display: none; }

/* ——— Cerebro real (fase B): tarjeta «Del cerebro» en la ficha, visor de documentos y vista Cerebro ———
   Contrastes: texto #111214 y #5D6368 sobre blanco y #F5F7F9 (≥ 6:1); enlaces #0066D6 (5,4:1) */
.v3-punto.amarillo { background: #9A6700; } /* 5,0:1 sobre blanco (el #F5B400 daba 1,9) */
.v3-cerebro { padding: 16px 18px; margin-bottom: 14px; }
.v3-cerebro .v3-lbl { display: block; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); margin-top: 10px; }
.v3-cerebro .v3-lbl:first-child { margin-top: 0; }
.v3-cerebro p { font-size: var(--t13); line-height: 1.45; color: var(--tinta-v3); margin-top: 2px; }
.v3-cer-sem { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; }
.v3-cer-docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v3-hoja-doc { width: min(760px, 100%); }
.v3-md { font-size: 15px; line-height: 1.55; color: var(--tinta-v3); overflow-wrap: anywhere; }
.v3-md h2, .v3-md h3, .v3-md h4 { margin: 18px 0 6px; letter-spacing: -.02em; }
.v3-md h2 { font-size: var(--t20); } .v3-md h3 { font-size: 17px; } .v3-md h4 { font-size: 15px; }
.v3-md p { margin: 6px 0; } .v3-md ul { margin: 6px 0 6px 20px; } .v3-md li { margin: 3px 0; } .v3-md li.sub { margin-left: 18px; list-style: circle; }
.v3-md blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid #C7D1D9; color: var(--gris-txt); }
.v3-md code { font-size: 13px; background: #F5F7F9; padding: 1px 4px; border-radius: 4px; }
.v3-md .v3-tabla-caja { overflow-x: auto; margin: 8px 0; }
.v3-md-tabla { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.v3-md-tabla th, .v3-md-tabla td { border-bottom: 1px solid #E3E8EC; padding: 6px 8px; text-align: left; vertical-align: top; }
.v3-md-tabla th { font-weight: 700; background: #F5F7F9; }
.v3-md-link { color: #0066D6; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 2px 0; text-align: left; }
.v3-md a { color: #0066D6; text-decoration: underline; }
.v3-cer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); align-items: start; }
.v3-cer-grupo { padding: 18px 20px; }
.v3-cer-lista { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.v3-cer-lista a { font-weight: 700; color: var(--tinta-v3); }
.acc-fuente h2 { font-size: var(--t20); margin-bottom: 6px; }
.acc-fuente p { font-size: 15px; margin: 4px 0; }
.acc-fuente .mal { color: #C4271F; }
@media (max-width: 767px) {
  .v3-cer { grid-template-columns: minmax(0, 1fr); }
  .v3-md-link, .v3-cer-docs .v3-chip-reu { min-height: 44px; }
}


/* ——— Jerarquía de nombres (ejemplo de David, 2026-11-24): «que el nombre principal sea más grande que los demás» ———
   Arriba de la barra, la marca (O + MONACO grande + Oficina); en la página, la foto y el nombre de la persona con un
   saludo pequeño; el menú en tamaño normal; abajo, la tarjeta del usuario. Colores del mockup. */
.v3-marca { display: flex; align-items: center; gap: var(--e3); min-height: 56px; margin: 0 0 var(--e6); color: var(--tinta-v3); }
.v3-marca:hover { text-decoration: none; }
.v3-marca-logo { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; line-height: 1; }
.v3-marca-txt b { display: block; font-size: var(--t25); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.v3-marca-txt small { display: block; font-size: var(--t13); font-weight: 600; color: var(--gris-txt); margin-top: 2px; }
/* Escritorio angosto (1024–1279): la barra lateral mide ~120 px y «MONACO» se cortaba */
@media (min-width: 1024px) and (max-width: 1279px) { .v3-marca { gap: var(--e2); } .v3-marca-logo { width: 34px; height: 34px; font-size: 20px; } .v3-marca-txt b { font-size: 18px; } }
.v3-lado .v3-yo, .v3-lado .v3-grupo, .v3-lado .v3-mas { font-size: var(--t16); }
.v3-lado .v3-yo { padding: 5px 8px; margin-bottom: 2px; }
.v3-usuario { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 0 4px; border-top: 1px solid #E3E8EC; }
.v3-usuario-foto { padding: 0; border-radius: 50%; flex: none; }
.v3-usuario-foto .v3-foto.mini, .v3-usuario-foto .v3-ini.mini { width: 36px; height: 36px; font-size: var(--t13); }
.v3-usuario-txt { flex: 1; min-width: 0; }
.v3-usuario-txt b { display: block; font-size: var(--t13); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-usuario-txt small { display: block; font-size: var(--t13); color: var(--gris-txt); }
.v3-top { display: flex; align-items: center; gap: var(--e3); min-height: 56px; margin: 0 0 var(--e6); }
.v3-top-foto { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; padding: 0; flex: none; background: var(--gris); display: grid; place-items: center; font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); }
.v3-top-foto img { width: 100%; height: 100%; object-fit: cover; }
.v3-top-nombre { display: block; font-size: var(--t20); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--tinta-v3); }
.v3-top-txt small { display: block; font-size: var(--t13); color: var(--gris-txt); margin-top: 1px; }

/* ——— Encabezado de la ficha (2026-11-24): alineado y sin salirse ———
   · Los íconos de los enlaces quedan centrados con el nombre; su texto («drive», «web»…) cuelga debajo.
   · «Ficha del asesorado» va a la derecha de la frase del freno, en su misma fila (antes caía sola debajo).
   · El nombre largo y la frase del freno se parten en líneas antes de salirse. */
.v3-cab h1 { flex: 0 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; margin-right: 0; }
.v3-enlaces { align-self: center; gap: var(--e1); padding: var(--e3) 0; } /* el relleno arriba y abajo guarda el sitio del texto */
.v3-enlace { position: relative; padding-top: 0; }
.v3-enlace > span:last-child { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: var(--e1); line-height: 12px; }
/* La frase y el menú de vistas van juntos: si no caben al lado del nombre, bajan los dos a la fila siguiente */
.v3-cab-fin { flex: 1 1 400px; min-width: 0; display: flex; align-items: center; gap: var(--e3); }
.v3-cab-fin .v3-frase { flex: 1 1 auto; min-width: 0; }
.v3-cab .v3-grp-linea { margin-top: 0; }
/* Celular: como estaba (el texto del ícono debajo, en su sitio; «Ficha del asesorado» al final) */
@media (max-width: 767px) {
  .v3-cab-fin { display: contents; } /* sin «order»: el foco con Tab sigue el orden que se ve */
  .v3-enlaces { padding: 0; } .v3-enlace > span:last-child { position: static; transform: none; margin-top: 0; line-height: inherit; }
}
/* 1024–1439: la columna de «Próximos pasos» es angosta; la fecha y el responsable bajan debajo del título */
@media (min-width: 1024px) and (max-width: 1439px) {
  .v3-pasos li { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "c t t" ". f r"; row-gap: 2px; }
  .v3-pasos li > .v3-circulo { grid-area: c; } .v3-pasos li > .v3-paso-t { grid-area: t; }
  .v3-pasos li > .v3-fecha { grid-area: f; text-align: left; } .v3-pasos li > .v3-resp { grid-area: r; justify-self: end; max-width: 140px; }
  .v3-pasos li.hecha::after { top: 14px; }
}
.v3-cab .v3-balon { margin-left: 0; }

/* ——— Grupos de asesorados (activos, en pausa, inactivos, finalizados) y panel de estado ———
   Palabra + color siempre. Contrastes: verde #137A33/#E9F6EC 4,9 · azul #0066D6/#EAF2FE 4,9 · naranja #B4501E/#FDEFE8
   4,7 · gris #5D6368/#EEF1F3 5,4. Punto naranja #D9731F (3,1:1 sobre blanco, gráfico). */
.v3-punto.naranja { background: #D9731F; }
.v3-grp { display: inline-block; font-size: var(--t13); font-weight: 700; line-height: 1.3; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.v3-grp.g-verde { background: #E9F6EC; color: #137A33; } .v3-grp.g-azul { background: #EAF2FE; color: #0066D6; }
.v3-grp.g-naranja { background: #FDEFE8; color: #B4501E; } .v3-grp.g-gris { background: #EEF1F3; color: #5D6368; }
.v3-grp-revisar { font-size: 11px; font-weight: 700; color: #8A5C00; background: #FFF6E5; border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.v3-lado-grp { list-style: none; }
.v3-panel-ir { display: inline-block; font-size: var(--t13); font-weight: 700; color: #0066D6; margin: 2px 0 6px; }
.v3-panel-ir.on { text-decoration: underline; }
.v3-subgrupo-cab { font-size: var(--t13) !important; font-weight: 700; gap: 6px; padding: 6px 0 2px; }
.v3-subgrupo-cab .v3-tri { margin-left: -14px; margin-right: 2px; }
.v3-subgrupo ul { list-style: none; margin: 2px 0 6px; padding-left: 14px; }
.v3-subgrupo li a { display: flex; align-items: flex-start; gap: 8px; font-size: var(--t13); font-weight: 700; color: var(--tinta-v3); padding: 3px 0; }
.v3-subgrupo li a .v3-punto { margin-top: 5px; }
.v3-grp-linea { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t13); color: var(--gris-txt); margin-top: -4px; }
.v3-grp-razon { font-size: var(--t13); color: var(--gris-txt); line-height: 1.4; }
.v3-grp-razon b { color: #8A5C00; }
.v3-grp-manual { font-size: var(--t13); color: #0066D6; margin-top: 4px; }
.v3-grp-manual b { color: #8A5C00; }
.v3-panel-g { padding: var(--e4) var(--e6); margin-bottom: var(--e6); }
.v3-panel-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.v3-panel-kpi { background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.v3-panel-kpi b { font-size: var(--t25); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v3-panel-kpi span:last-child { grid-column: 1 / -1; font-size: var(--t13); font-weight: 700; color: var(--gris-txt); }
.v3-panel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v3-panel-l { background: #fff; border-radius: 14px; padding: 12px 14px; min-width: 0; }
.v3-panel-l h3 { font-size: var(--t16); margin-bottom: 6px; }
.v3-panel-l ul { list-style: none; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.v3-panel-l li { display: grid; gap: 4px; }
.v3-panel-l li a { color: var(--tinta-v3); }
.v3-panel-l li a b { display: block; font-size: var(--t13); }
.v3-panel-l li a small { display: block; font-size: var(--t13); color: var(--gris-txt); line-height: 1.35; }
.v3-panel-l .v3-av-btn { justify-self: start; font-size: var(--t13); font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px #7D868E; color: var(--tinta-v3); }
.v3-panel-l .v3-av-btn.hecho { background: #E9F6EC; color: #137A33; box-shadow: none; }
.v3-kanban-g .v3-colk-l { max-height: none; }
.v3-tarj-g .v3-tarj-t { display: block; font-size: var(--t16); font-weight: 700; color: var(--tinta-v3); }
.v3-tarj-g .v3-tarj-a { display: flex; align-items: center; gap: 6px; }
.v3-tarj-g.choca { box-shadow: inset 0 0 0 2px #F2C879; }
.v3-tarj-g .v3-tarj-pie { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 1023px) { .v3-panel-kpis, .v3-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cel-grp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .cel-grp-kpis .cel-kpi { padding: 10px 3px; text-align: center; } .cel-grp-kpis .cel-kpi b { font-size: 22px; }
  .cel-grp-kpis .cel-grp-chip { font-size: 11px; padding: 2px 5px; max-width: 100%; margin-top: 4px; white-space: normal; }
  .cel-grp { margin-bottom: 12px; }
  .cel-grp-cab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 4px; font-size: 16px; color: var(--cel-tinta); }
  .cel-grp-cab .cel-ases-ir { margin-left: auto; transition: transform .15s; }
  .cel-grp-cab[aria-expanded="true"] .cel-ases-ir { transform: rotate(90deg); }
  .v3-grp-linea .v3-grp-mover .v3-desp-btn { min-height: 44px; }
}

/* ——— Celular y tableta (hasta 1023 px): una columna. La regla de span 8/4 de arriba le ganaba a la de 1023 px
   y dejaba Mi trabajo y el Dashboard general en dos columnas a 390 px. ——— */
@media (max-width: 1023px) {
  .v3-cols > .v3-span8, .v3-cols > .v3-span4, .v3-cols > .v3-col { grid-column: 1 / -1; }
  /* Tablero: las columnas se desplazan de lado DENTRO de su caja; la página no */
  .v3-kanban { grid-template-columns: repeat(var(--cols, 4), minmax(260px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .v3-colk { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .v3 { padding: 20px 16px 32px; }
  .v3-cab h1 { font-size: var(--t25); white-space: normal; }
  .v3-kpis { grid-template-columns: minmax(0, 1fr); }
  .v3-fases li { grid-template-columns: minmax(0, 1fr) 80px 24px; }
  /* Fila de tarea: arriba el círculo y el título; abajo estado, fecha, prioridad y responsable */
  .v3-fila-t, .v3-fila-t.sin-resp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
  .v3-fila-t > .v3-tit { flex: 1 1 calc(100% - 30px); }
  .v3-fila-t > .v3-circulo { margin-right: 6px; } /* deja libre el área táctil del círculo (guía móvil, punto 3) */
  .v3-fila-t > .v3-estado-caja { margin-left: 25px; }
  .v3-span8 .v3-nueva { flex-wrap: wrap; }
  .v3-span8 .v3-nueva input { flex: 1 1 calc(100% - 30px); }
  .v3-tabs { flex-wrap: wrap; row-gap: 6px; }
  .v3-chips-p { margin-left: 0; }
}

/* ——— Celular (hasta 767 px), guía móvil (docs/guia-movil.md). El escritorio no cambia. ——— */
@media (max-width: 767px) {
  /* Punto 1 (revisado el 24-nov): el menú lateral ya no queda al final de la página. Se abre con «☰ Menú»
     desde una barra fija arriba y se muestra encima de la página; al escoger una vista se cierra. */
  .v3-barra-cel { display: flex; grid-column: 1 / -1; order: -1; position: sticky; top: 0; z-index: 46; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; margin: -20px -16px 12px; padding: 10px 16px; box-shadow: 0 1px 0 #E3E8EC; }
  .v3-menu-btn { font-size: 16px; font-weight: 700; color: var(--tinta-v3); padding: 10px 16px; min-height: 44px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #7D868E; }
  .v3-barra-yo { font-size: var(--t13); font-weight: 700; color: var(--gris-txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v3-lado { display: none; }
  .v3-top { display: none; }
  .v3 { padding: 20px 16px 32px; } /* la barra fija llega a los bordes también entre 641 y 767 px */
  /* Hasta 767 px: las métricas en filas compactas (nombre a la izquierda, cifra a la derecha): antes llenaban la primera
     pantalla y «Lo más urgente» quedaba debajo */
  .v3-kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 16px; }
  .v3-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 12px 16px; border-radius: 14px; }
  .v3-kpi span { font-size: var(--t13); }
  .v3-kpi b { font-size: var(--t20); margin: 0; text-align: right; white-space: nowrap; }
  .v3-kpi b .v3-cop { font-size: 11px; }
  .v3-kpi small { grid-column: 1 / -1; margin-top: 2px; }
  .v3-kpi-ir { grid-column: 1 / -1; }
  /* Dashboard general: «Lo más urgente» antes de las fases y la tabla */
  .v3-cols > .v3-urgente-primero { order: -1; }
  body.menu-cel { overflow: hidden; }
  body.menu-cel .v3-lado { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 45; max-height: none; margin: 0; padding: 16px 16px 40px 30px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
  /* Tablero: «Ver N más» al pie de una columna larga */
  .v3-ver-mas { display: block; width: 100%; margin: 4px 0 8px; padding: 12px; min-height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #7D868E; font-size: 16px; font-weight: 700; color: var(--tinta-v3); }

  /* Punto 2: campos de escribir en 16 px; con menos, iOS hace zoom al tocarlos y la pantalla queda corrida */
  .v3-buscar, .v3-pop-txt input, .v3-nueva-col input, .v3-form-linea input { font-size: 16px; }
  /* Punto 3: el círculo de completar sigue de 13 px, pero se toca en un área de 44 × 44 (hacia la izquierda,
     sobre el margen de la tarjeta). El título se corre unos px para que las dos áreas no se monten. */
  button.v3-circulo { position: relative; }
  button.v3-circulo::after { content: ''; position: absolute; top: -17px; bottom: -17px; left: -22px; right: -12px; }
  /* Ficha · Próximos pasos: arriba el círculo y el título a todo el ancho; debajo la fecha («22 nov · hace 2 días»)
     y el responsable. Antes «hace 2 días» se montaba sobre el chip y los títulos quedaban en 4 renglones. */
  .v3-pasos li { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "c t t" ". f r"; column-gap: 10px; row-gap: 2px; min-height: 44px; padding: 6px 0; }
  .v3-pasos li > .v3-circulo { grid-area: c; } .v3-pasos li > .v3-paso-t { grid-area: t; }
  .v3-pasos li > .v3-fecha { grid-area: f; text-align: left; } .v3-pasos li > .v3-resp { grid-area: r; justify-self: end; max-width: 140px; }
  .v3-pasos .v3-fecha small { display: inline; margin-left: 6px; }
}

/* ——— Celular (hasta 767 px): patrón del mockup de David (2026-11-24) ———
   Fondo lavanda, tarjetas tipo vidrio, bordes muy redondeados, sombras suaves y acento violeta-azul.
   Contrastes: tinta #1E1B3A 15,6 · texto 2.º #4F4C6B 7,6 · violeta de texto #4537D0 7,0 (sobre blanco) ·
   blanco sobre el degradado #4F52E0→#6E4FE6 con la montaña al 8 % (medido por píxel a 390 y 360) ≥ 4,88 · rojo #B4231C 6,0 · verde #137A33 5,4. */
.cel-nav, .cel-cab, .cel-kpis, .cel-meta, .cel-sec, .cel-tareas, .cel-pant { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
@media (max-width: 767px) {
  body.cel-app { --cel-tinta: #1E1B3A; --cel-2: #4F4C6B; --cel-violeta: #4537D0; --cel-pinta: #5B4BE8;
    --cel-vidrio: rgba(255, 255, 255, .74); --cel-borde: rgba(255, 255, 255, .95); --cel-sombra: 0 10px 30px rgba(76, 70, 180, .12); }
  body.cel-app.cel-lavanda { background: linear-gradient(180deg, #ECEEFD 0%, #F3F1FD 45%, #E9E6FB 100%) fixed; }
  body.cel-app .v3-barra-cel { display: none; }
  body.cel-app .v3 { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } /* la barra inferior no tapa nada */
  body.cel-app .v3.cel-vista { background: transparent; padding-top: 18px; }
  .cel-pant { color: var(--cel-tinta); grid-column: 1 / -1; }
  body.cel-app .v3-cab h1 { min-width: 0; max-width: 100%; flex-shrink: 1; overflow-wrap: anywhere; } /* «Capital Moto Detailing (Ubaté)» a 360 px */

  /* Encabezado: botones arriba a la derecha; saludo a la izquierda y la foto grande a la derecha */
  .cel-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: ". acc" "hola foto"; align-items: center; column-gap: 12px; margin-bottom: 18px; }
  .cel-acciones { grid-area: acc; display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 6px; }
  .cel-redondo { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cel-vidrio); box-shadow: var(--cel-sombra); border: 1px solid var(--cel-borde); color: var(--cel-tinta); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .cel-redondo svg { width: 22px; height: 22px; }
  .cel-punto { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--cel-pinta); box-shadow: 0 0 0 2px #fff; }
  .cel-hola { grid-area: hola; min-width: 0; }
  .cel-saludo { font-size: 16px; color: var(--cel-2); }
  .cel-hola h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 2px 0 6px; overflow-wrap: anywhere; }
  .cel-animo { font-size: 15px; line-height: 1.4; color: var(--cel-2); }
  .cel-foto { grid-area: foto; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; padding: 0; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #B9C2FF, #7E6BF2); box-shadow: 0 12px 30px rgba(91, 75, 232, .28); color: #fff; font-size: 32px; font-weight: 700; }
  .cel-foto img { width: 100%; height: 100%; object-fit: cover; }

  /* Tres cifras */
  .cel-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
  .cel-kpi { background: var(--cel-vidrio); border: 1px solid var(--cel-borde); border-radius: 22px; padding: 14px 12px; box-shadow: var(--cel-sombra); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-width: 0; }
  .cel-kpi-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }
  .cel-kpi-ico svg { width: 20px; height: 20px; }
  .cel-kpi-ico.violeta { background: #EDE9FE; color: #5B3FD9; } .cel-kpi-ico.azul { background: #E0ECFF; color: #1F5FD1; } .cel-kpi-ico.rojo { background: #FDE4E1; color: #B4231C; }
  .cel-kpi b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .cel-kpi > span:last-child { display: block; font-size: 13px; line-height: 1.3; color: var(--cel-2); margin-top: 2px; }
  .cel-grp-kpis .cel-kpi > .v3-grp { display: inline-block; } .cel-grp-kpis .cel-kpi > .v3-grp.g-verde { color: #137A33; } .cel-grp-kpis .cel-kpi > .v3-grp.g-azul { color: #0066D6; } .cel-grp-kpis .cel-kpi > .v3-grp.g-naranja { color: #B4501E; } .cel-grp-kpis .cel-kpi > .v3-grp.g-gris { color: #5D6368; }

  /* Meta de la semana: tarjeta grande con degradado */
  .cel-meta { position: relative; overflow: hidden; border-radius: 26px; padding: 18px 18px 16px; margin-bottom: 22px; color: #fff;
    background: linear-gradient(120deg, #4F52E0 0%, #5B4BE8 55%, #6E4FE6 100%); box-shadow: 0 14px 34px rgba(79, 82, 224, .35); }
  .cel-meta-fondo { position: absolute; right: -6px; top: 6px; width: 170px; pointer-events: none; }
  .cel-meta-tit { display: flex; align-items: center; gap: 8px; font-size: 15px; position: relative; }
  .cel-meta-ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
  .cel-meta-ico svg { width: 18px; height: 18px; }
  .cel-meta h2 { font-size: 26px; font-weight: 700; letter-spacing: -.035em; margin: 8px 0 2px; position: relative; padding-right: 56px; }
  .cel-meta-txt { font-size: 15px; position: relative; padding-right: 56px; }
  .cel-meta-ir { position: absolute; right: 16px; top: 50px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--cel-violeta); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
  .cel-meta-ir svg { width: 22px; height: 22px; }
  .cel-barra-fila { display: flex; align-items: center; gap: 10px; margin-top: 14px; position: relative; }
  .cel-barra { flex: 1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden; }
  .cel-barra > span { display: block; height: 100%; border-radius: 999px; background: #fff; min-width: 10px; }
  .cel-pct { font-size: 15px; font-weight: 700; }

  /* Mi trabajo */
  .cel-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
  .cel-sec h2, .cel-dia h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
  .cel-sec a { font-size: 15px; font-weight: 700; color: var(--cel-violeta); padding: 11px 0 11px 12px; min-height: 44px; display: inline-flex; align-items: center; }
  /* El toast va encima de la barra inferior, no sobre ella */
  body.cel-app .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
  /* En la hoja (Avisos), los botones pequeños de la tarjeta de escritorio con área táctil de 44 */
  .v3-hoja .v3-mini-tabs button, .v3-hoja .v3-terc { min-height: 44px; }
  .v3-avisos-hoja { background: transparent; box-shadow: none; border: 0; padding: 0; }
  .v3-n-hoja { margin: 0; font-size: 15px; font-weight: 600; color: var(--cel-2, #494950); }
  .cel-tareas { list-style: none; display: grid; gap: 10px; }
  .cel-t { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 6px; background: var(--cel-vidrio); border: 1px solid var(--cel-borde);
    border-radius: 22px; padding: 8px 6px 8px 10px; box-shadow: var(--cel-sombra); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .cel-check { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; position: relative; }
  .cel-check::before { content: ''; position: absolute; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #8C89AC; }
  .cel-check svg { width: 18px; height: 18px; color: #fff; position: relative; }
  .cel-t.hecha .cel-check::before { background: var(--cel-pinta); border-color: var(--cel-pinta); }
  .cel-t-tit { text-align: left; min-width: 0; padding: 6px 2px; color: var(--cel-tinta); }
  .cel-t-tit b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  .cel-t.hecha .cel-t-tit b { color: var(--cel-2); text-decoration: line-through; text-decoration-color: #8C89AC; }
  .cel-t-tit small { display: block; font-size: 14px; color: var(--cel-2); margin-top: 2px; }
  .cel-t-tit small.mal { color: #B4231C; font-weight: 700; } .cel-t-tit small.ok { color: #137A33; }
  .cel-t-mas { width: 44px; height: 44px; display: grid; place-items: center; color: var(--cel-2); }
  .cel-t-mas svg { width: 20px; height: 20px; }
  .cel-vacio { font-size: 15px; color: var(--cel-2); padding: 16px 4px; }
  .cel-reu { grid-template-columns: 44px minmax(0, 1fr); }
  .cel-reu-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--cel-violeta); }
  .cel-reu-ico svg { width: 22px; height: 22px; }
  .cel-reu a.cel-t-tit:hover { text-decoration: none; }

  /* Agenda, Asesorados y Perfil */
  .cel-cab-simple { margin-bottom: 16px; }
  .cel-cab-simple h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
  .cel-dia { margin-bottom: 18px; }
  .cel-dia h2 { margin: 0 2px 8px; } .cel-dia h2 small { font-size: 14px; font-weight: 400; color: var(--cel-2); letter-spacing: 0; margin-left: 6px; }
  .cel-ases { list-style: none; display: grid; gap: 8px; }
  .cel-ases a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px 10px 16px; border-radius: 20px; background: var(--cel-vidrio); border: 1px solid var(--cel-borde);
    box-shadow: var(--cel-sombra); color: var(--cel-tinta); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .cel-ases-n { flex: 1; min-width: 0; } .cel-ases-n b { display: block; font-size: 16px; } .cel-ases-n small { display: block; font-size: 13px; color: var(--cel-2); line-height: 1.35; }
  .cel-ases-ir { color: var(--cel-violeta); width: 20px; flex: none; } .cel-ases-ir svg { width: 20px; height: 20px; }
  .cel-menu a { font-size: 16px; font-weight: 700; }
  .cel-vidrio { background: var(--cel-vidrio); border: 1px solid var(--cel-borde); border-radius: 24px; padding: 16px; box-shadow: var(--cel-sombra); margin-top: 16px; }
  .cel-vidrio h2 { font-size: 18px; margin-bottom: 10px; }
  .cel-perfil { background: var(--cel-vidrio); border: 1px solid var(--cel-borde); border-radius: 24px; padding: 18px 16px 8px 30px; box-shadow: var(--cel-sombra); }
  body.cel-app .cel-perfil .v3-lado { display: block; position: static; max-height: none; overflow: visible; margin: 0; padding: 0; }
  .cel-buscar { width: 100%; font-size: 16px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid #7D868E; margin: 4px 0 12px; }
  .cel-sub { font-size: 15px; margin: 12px 0 8px; }

  /* Barra inferior fija: 44 px o más de área táctil y el borde seguro del iPhone */
  .cel-nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    background: rgba(255, 255, 255, .86); border: 1px solid var(--cel-borde); border-radius: 28px; padding: 6px; box-shadow: 0 12px 36px rgba(76, 70, 180, .2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .cel-nav-i { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; border-radius: 22px; color: #5A5775; font-size: 12px; font-weight: 600; text-decoration: none !important; }
  .cel-nav-ico { width: 26px; height: 26px; } .cel-nav-ico svg { width: 26px; height: 26px; }
  .cel-nav-i.on { color: var(--cel-violeta); background: #ECE9FE; }
  .cel-nav-mas { justify-self: center; width: 62px; height: 62px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(140deg, #5B5FEF, #6E4FE6); box-shadow: 0 10px 24px rgba(91, 75, 232, .45); }
  .cel-nav-mas svg { width: 28px; height: 28px; }
  body.con-capa .cel-nav { display: none; } /* con una hoja abierta, la barra no se monta encima */
}
@media (max-width: 370px) {
  .cel-hola h1 { font-size: 26px; } .cel-foto { width: 84px; height: 84px; }
  .cel-kpi { padding: 12px 10px; } .cel-kpi b { font-size: 22px; }
  .cel-nav-i { font-size: 11px; }
}

/* ——— Que nada se salga de su espacio (2026-11-24) ———
   1024–1279: «Guardar ↵» de la fila de crear (Mi trabajo) quedaba cortado; ahora baja de línea.
   Videos a 1024: la columna «Publicado» se pasaba 7 px; las columnas pueden encogerse y la fecha parte línea. */
@media (max-width: 1279px) { .v3-span8 .v3-nueva { flex-wrap: wrap; row-gap: var(--e2); } }
.v3-colk { min-width: 0; }
.v3-colk-cab { flex-wrap: wrap; row-gap: var(--e1); }
.v3-tarj-pie .v3-fch { white-space: normal; }
