/* Usuarios del panel (admin de Lexy) y la banda de la cuenta demo — 27-10-2026.
   Hoja aparte porque la CSP del panel (style-src 'self') bloquea cualquier estilo en línea:
   ni <style> inyectado ni atributos style="". estilos.css es compartido y no se toca. */
#usuarios-lexy .ficha-usuario { margin: 10px 0; padding: 14px 16px; border: 1px solid #E6EDF3; border-radius: 14px; background: #fff; }
#usuarios-lexy .ficha-usuario h4 { margin: 0 0 6px; font-size: 16px; }
#usuarios-lexy .ficha-datos { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; color: #66748A; margin-bottom: 8px; }
#usuarios-lexy .casillas-roles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 10px; }
#usuarios-lexy .casillas-roles .casilla { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
#usuarios-lexy .lista-roles { margin: 8px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #4A5568; }
#usuarios-lexy .formulario.en-linea { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
#usuarios-lexy .formulario.en-linea input { flex: 1; min-width: 0; }
#usuarios-lexy .etiqueta.tenue { background: #EEF2F6; color: #66748A; }
#banda-demo { margin: 0; border-radius: 0; text-align: center; font-size: 14px; padding: 8px 12px; background: #FFF7E6; color: #5C4A12; border-bottom: 1px solid #F2D27A; }



.chat-lex { min-height: 180px; max-height: 52vh; overflow: auto; border: 1px solid #E6EDF3; border-radius: 14px; padding: 12px 14px; background: #F8FAFC; margin: 0 0 14px; }
.cajon-cuerpo .chat-lex { max-height: 46vh; }
.chat-lex:empty::before { content: "Escribe o dicta tu consulta. Puedes adjuntar un PDF o una imagen."; color: #8A98A8; font-size: 14px; }
.campo-con-voz { display: flex; gap: 8px; align-items: flex-start; }
.campo-con-voz textarea, .campo-con-voz input { flex: 1; min-width: 0; }
.campo-con-voz .boton.chico { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.acciones-lex { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0 12px; }
.acciones-lex .pista { margin: 0; }

/* El marco de una herramienta del sitio dentro del panel (due diligence; 27-10-2026, v93).
   La CSP no permite style="" en el HTML: por eso las medidas viven aquí. */
.marco-herramienta { padding: 0; overflow: hidden; }
.marco-herramienta-iframe { width: 100%; height: 78vh; min-height: 640px; border: 0; display: block; background: #fff; }



.mk-vig { margin-top: 10px; }
.mk-vig-cab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #4A5568; margin-bottom: 4px; flex-wrap: wrap; }
.mk-vig.renovar .mk-vig-cab, .mk-vig.en_gracia .mk-vig-cab { color: #A3122F; font-weight: 600; }
.mk-barra { height: 10px; border-radius: 999px; background: #E3E8EF; overflow: hidden; }
.mk-barra-lleno { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #0A578B, #45BFC7); transition: width .6s; }
.mk-vig.renovar .mk-barra-lleno { background: linear-gradient(90deg, #F2B705, #C4073A); }
.mk-vig.en_gracia .mk-barra-lleno, .mk-vig.vencida .mk-barra-lleno { background: #C4073A; }
.mk-informe { white-space: pre-wrap; font: inherit; }


.consulta-flotante { display: inline-flex; align-items: center; gap: 9px; padding-left: 12px; }
.consulta-flotante-logo { width: 22px; height: 28px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; box-sizing: content-box; }


.rl-ficha { display: flex; gap: 14px; align-items: flex-start; }
.rl-cuerpo { flex: 1; min-width: 0; }
.rl-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #E3EDF5; color: #0A578B;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.rl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-avatar.grande { width: 112px; height: 112px; font-size: 34px; }
.mi-foto-fila { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mi-foto-fila label.boton { cursor: pointer; display: inline-block; }
@media (max-width: 560px) { .rl-ficha { flex-direction: column; } .rl-avatar { width: 72px; height: 72px; } }

/* 27-10-2026 (noche). Lo que antes iba en style="" (la CSP lo bloqueaba y nunca se aplicó). */
html[data-empresa="lexy"] .clicable { cursor: pointer; }
html[data-empresa="lexy"] .clicable:hover { border-color: #9EC3DE; box-shadow: 0 2px 10px rgba(10, 87, 139, .08); }
html[data-empresa="lexy"] .cl-linea { margin-bottom: 6px; }
html[data-empresa="lexy"] .cl-datos { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
html[data-empresa="lexy"] .pl-nota { margin-top: 4px; font-size: 12.5px; }
html[data-empresa="lexy"] .cal-evento { margin: 4px 0; }
html[data-empresa="lexy"] .cal-barra { align-items: center; }
html[data-empresa="lexy"] .cal-mes { align-self: center; min-width: 9em; text-align: center; }
html[data-empresa="lexy"] .cal-todos { margin-left: auto; }
html[data-empresa="lexy"] .cal-conectar { margin-top: 22px; }
html[data-empresa="lexy"] .cal-url { margin-top: 12px; }
html[data-empresa="lexy"] .cal-url-fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
html[data-empresa="lexy"] .cal-url-fila code { flex: 1 1 260px; min-width: 0; word-break: break-all; background: #F3F6F9; border: 1px solid #E1E8EF; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }



html[data-empresa="lexy"] .acciones + .ficha, html[data-empresa="lexy"] .acciones + .vacio,
html[data-empresa="lexy"] .acciones + article, html[data-empresa="lexy"] .acciones + section,
html[data-empresa="lexy"] .acciones + .pr-lista, html[data-empresa="lexy"] .acciones + table,


html[data-empresa="lexy"] .acciones + #tr-lista { margin-top: 18px; }
html[data-empresa="lexy"] .explicacion + .acciones { margin-top: 6px; }


.mk-ficha { display: flex; gap: 16px; align-items: flex-start; }
.mk-cuerpo { flex: 1; min-width: 0; }
.mk-logo { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; border: 1px solid #E1E8EF; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #0A578B; font-weight: 800; font-size: 26px; }
.mk-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.mk-logo.pdf { font-size: 13px; letter-spacing: .06em; background: #F3F6F9; }
.mk-logo.grande { width: 220px; height: 160px; padding: 12px; margin: 6px 0 10px; font-size: 40px; }
@media (max-width: 560px) { .mk-logo { width: 56px; height: 56px; } .mk-logo.grande { width: 100%; height: 180px; } }


#inicial.con-foto { padding: 0; overflow: hidden; }
#inicial.con-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }


.tg-pasos { background: #F3F8FC; border: 1px solid #D6E6F2; border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.tg-pasos p { margin: 6px 0; }


.kp-doble { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.kp-form { max-width: none; }


.kp-seccion { margin: 20px -19px 14px; padding: 8px 19px; background: #EAF3FA; color: #0A3D62; font-size: 13.5px;
  font-weight: 700; border-top: 1px solid #D6E6F2; border-bottom: 1px solid #D6E6F2; }
.kp-form > .kp-seccion:first-child { margin-top: -19px; border-top: 0; border-radius: var(--radio) var(--radio) 0 0; }
.kp-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.kp-campo { min-width: 0; }
.kp-ancho { grid-column: 1 / -1; }
.kp-campo > label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kp-opcional { font-size: 11.5px; font-weight: 500; color: #4A5A6E; white-space: nowrap; }
.kp-form button[type=submit] { width: 100%; margin-top: 8px; }
.kp-previa { position: sticky; top: 12px; background: #EEF2F6; border: 1px solid #DCE4EC; border-radius: 14px; padding: 10px; }
.kp-cabeza { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 8px; font-size: 12.5px; color: #4A5A6E; font-weight: 600; }
.kp-avance { font-weight: 500; color: #4A5A6E; }   
.kp-hoja { background: #fff; border-radius: 6px; box-shadow: 0 1px 8px rgba(16, 42, 67, .10); padding: 28px 30px; max-height: calc(100vh - 140px); overflow: auto;
  font: 13.5px/1.65 Georgia, "Times New Roman", serif; color: #1E2A36; text-align: justify; }
.kp-hoja p { margin: 0 0 11px; }
.kp-titulo { font: 700 15px/1.4 Georgia, serif; text-align: center; margin: 0 0 16px; letter-spacing: .02em; }
.kp-tabla { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 12.5px; text-align: left; }
.kp-tabla td { border: 1px solid #D5DDE5; padding: 5px 8px; vertical-align: top; }
.kp-tabla td:first-child { width: 38%; font-weight: 700; background: #F6F8FA; }
.kp-c { border-radius: 3px; padding: 0 2px; transition: background-color .2s; }
.kp-c.lleno { color: #0A578B; font-weight: 600; background: #EAF3FA; }
.kp-c.vacio { background: #FFF1B8; border-bottom: 1px solid #E8C547; }
.kp-c.activo { background: #FFD84D; color: #1E2A36; box-shadow: 0 0 0 2px #F2B705; }
@media (max-width: 1100px) {
  .kp-doble { grid-template-columns: 1fr; }
  .kp-previa { position: static; }
  .kp-hoja { max-height: 70vh; padding: 20px 18px; }
}





html.enmarcado[data-empresa="lexy"] .lx-lado { margin: 0 0 24px; align-self: start; }
html.enmarcado[data-empresa="lexy"] .entrar > form { align-self: start; }
@media (max-width: 900px) { html.enmarcado[data-empresa="lexy"] .lx-lado { margin: 0 0 20px; } }


.mk-estudio { background: #F3F8FC; border: 1px solid #D6E6F2; border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; font-size: 14.5px; line-height: 1.6; }
.mk-estudio details { margin-top: 8px; }
.mk-estudio summary { cursor: pointer; font-weight: 600; color: #0A578B; }
.mk-estudio-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.mk-estudio-qr img { width: 140px; height: auto; border-radius: 10px; }
.mk-estudio-qr p { flex: 1 1 220px; margin: 0; }
.mk-estudio .pista { margin: 8px 0 0; }


.tr-resumen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.tr-resumen > div { background: #fff; border: 1px solid #E1E8EF; border-radius: 14px; padding: 12px 14px; }
.tr-resumen b { display: block; font-size: 24px; color: #0A578B; line-height: 1.1; }
.tr-resumen span { font-size: 12.5px; color: #66748A; }
.tr-resumen .alerta b { color: #C4073A; }
.tr-barra { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 4px; }
.tr-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #4A5A6E; font-weight: 600; min-width: 200px; }
.tr-campo select { min-width: 220px; }
.tr-todos { margin-left: auto; }
.tr-ficha { display: flex; gap: 16px; align-items: flex-start; }
.tr-cuerpo { flex: 1; min-width: 0; }
.tr-ent { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; font-size: 13px; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #0A578B, #45BFC7); padding: 4px; }
.tr-ent.tr-proceso { background: linear-gradient(135deg, #0A2F4F, #5B6B7A); }
.tr-ent.tr-otro { background: #8A99A8; }
.tr-ultima { margin: 4px 0 0; }
.tr-estrella { color: #F2B705; }
.tr-sub { margin: 18px 0 8px; font-size: 15px; color: #4A5A6E; }
.tr-cabeza { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.tr-cabeza > div:nth-child(2) { flex: 1; min-width: 0; }
.tr-cabeza h2 { margin-top: 0; }
.tr-estrella-b { border: 1px solid #DCE6EF; background: #fff; color: #B8C3CE; font-size: 22px; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.tr-estrella-b.activa { color: #F2B705; border-color: #F2B705; }
.tr-fechas { margin-top: 10px; }
.tr-notas { white-space: pre-wrap; background: #F7FAFC; border-radius: 10px; padding: 10px 12px; }
.tr-act-form { margin: 8px 0 14px; }
.tr-linea { list-style: none; margin: 0 0 18px; padding: 0 0 0 18px; border-left: 3px solid #D6E6F2; }
.tr-linea li { position: relative; padding: 2px 0 14px 8px; }
.tr-linea li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: #0A578B; border: 3px solid #fff; box-shadow: 0 0 0 1px #D6E6F2; }
.tr-linea time { font-size: 12.5px; color: #66748A; font-weight: 600; }
.tr-linea p { margin: 2px 0 6px; }
.tr-linea .tr-vacia::before { background: #B8C3CE; }
.tr-editar { margin: 6px 0 16px; }
.tr-en-procesos { margin-top: 26px; padding-top: 16px; border-top: 1px solid #E1E8EF; }
.tr-en-procesos-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-en-procesos-cab h3 { margin: 0; }
@media (max-width: 560px) {
  .tr-ficha, .tr-cabeza { flex-direction: column; }
  .tr-ent { width: 56px; height: 56px; font-size: 11px; }
  .tr-campo, .tr-campo select { min-width: 0; width: 100%; }
  .tr-todos { margin-left: 0; }
}



.gg-caja { margin-top: 14px; }
.gg-o { display: flex; align-items: center; gap: 10px; color: #8A99A8; font-size: 12.5px; margin-bottom: 12px; }
.gg-o::before, .gg-o::after { content: ""; flex: 1; height: 1px; background: #E1E8EF; }
.gg-boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 11px 16px;
  border: 1px solid #DADCE0; border-radius: 10px; background: #fff; color: #3C4043 !important; font-weight: 600; font-size: 15px;
  text-decoration: none !important; transition: background .15s, box-shadow .15s; }
.gg-boton:hover { background: #F8FAFD; box-shadow: 0 1px 4px rgba(60, 64, 67, .18); }
.gg-g { width: 20px; height: 20px; flex: 0 0 auto; }
.gg-nota { font-size: 12px; color: #66748A; margin: 8px 0 0; text-align: center; }
.gg-velo { position: fixed; inset: 0; background: rgba(10, 47, 79, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gg-dialogo { background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 24px 24px 18px;
  box-shadow: 0 24px 60px rgba(10, 47, 79, .35); }
.gg-dialogo h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; color: #0A2F4F; }
.gg-quien { margin: 0 0 14px; color: #4A5568; }
.gg-dialogo select { width: 100%; margin-bottom: 14px; }
.gg-casilla span { font-size: 13px; line-height: 1.55; }
.gg-acciones { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }


.lex-medidor { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #E6EDF3; border-radius: 12px; background: #fff; }
.lex-medidor-fila { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #4A5568; }
.lex-medidor-fila strong { color: #0A2F4F; }
.lex-medidor progress { display: block; width: 100%; height: 8px; margin: 8px 0 6px; border: 0; border-radius: 6px; background: #E6EDF3; overflow: hidden; -webkit-appearance: none; appearance: none; }
.lex-medidor progress::-webkit-progress-bar { background: #E6EDF3; border-radius: 6px; }
.lex-medidor progress::-webkit-progress-value { background: #0A578B; border-radius: 6px; }
.lex-medidor progress::-moz-progress-bar { background: #0A578B; border-radius: 6px; }
.lex-medidor .pista { margin: 0; }
.lex-citas { margin: -2px 0 8px; padding: 8px 12px; border-left: 3px solid #6BC41F; background: #F3F8EE; border-radius: 0 10px 10px 0; font-size: 13.5px; max-width: 92%; }
.lex-citas-titulo { display: block; color: #4A5568; font-weight: 600; margin-bottom: 4px; }
.lex-citas ul { margin: 0; padding-left: 18px; }
.lex-citas li { margin: 2px 0; }
.lex-citas a { color: #0A578B; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.lex-voz { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lex-uso { margin: 8px 0 0; }
.lex-uso summary { cursor: pointer; font-weight: 600; color: #0A578B; }   




.gg-caja .gg-boton + .gg-boton { margin-top: 10px; }
.gg-boton span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-boton:focus-visible { outline: 3px solid #9EC3DE; outline-offset: 2px; }
@media (max-width: 380px) { .gg-boton { padding: 10px 12px; font-size: 14.5px; } }






.lx-video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 640px; margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #0b1f33; }
.lx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lx-video-boton { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; cursor: pointer; background: transparent; color: #fff; font: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.lx-video-boton img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.lx-video-boton span { position: relative; background: rgba(10, 87, 139, .92); border-radius: 10px; padding: 10px 16px; }
.lx-video-boton:hover span, .lx-video-boton:focus-visible span { background: #0E6AB2; }
.lx-video-boton:focus-visible { outline: 3px solid #6BC41F; outline-offset: -3px; }
.lx-video-boton:disabled { cursor: progress; }
.lx-video-pista { font-size: 12.5px; color: var(--gris2); margin: -4px 0 14px; }
.lx-video-muestra { font-size: 13px; margin: -8px 0 14px; }




.gg-acciones { position: sticky; bottom: -18px; background: #fff; padding: 10px 0; margin-bottom: -10px; }



@media (max-width: 900px) {
  html:not(.enmarcado)[data-empresa="lexy"] .entrar > form,
  html:not(.enmarcado)[data-empresa="lexy"] .lx-lado { width: min(calc(100% - 32px), 520px); justify-self: center; }
}


@media (pointer: coarse) { html[data-empresa="lexy"] .tr-campo select { font-size: 16px; font-weight: 400; } }
