/* PJ · Mateo · Resumen del expediente (1:2015) */
#mateo .t { flex: none; }
#mateo .marco { position: absolute; left: 40px; top: 32px; width: 1304px; height: 836px; display: flex; gap: 40px; }
#mateo .icono { display: flex; padding: 8px; border-radius: 10px; }
#mateo .icono img { width: 20px; height: 20px; }

/* Chat / Historial */
#mateo .historial { display: flex; flex-direction: column; gap: 4px; padding-right: 40px; border-right: 1px solid rgba(0, 45, 98, 0.1); }

#mateo .conversacion { flex: 1 0 0; min-width: 1px; display: flex; align-items: flex-start; justify-content: center; gap: 24px; }

/* Chat */
#mateo .chat { width: 800px; height: 836px; flex: none; display: flex; flex-direction: column; gap: 24px; }
#mateo .chat > * { flex-shrink: 0; }
#mateo .cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
#mateo .cabecera .titulos { flex: 1 0 0; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
#mateo .cabecera h2 { margin: 0; font: 500 22px/28px var(--sans); letter-spacing: -0.33px; color: var(--azul-bandera); }
#mateo .cabecera p { font: 400 14px/21px var(--sans); color: #546679; }
#mateo .cabecera .acciones { display: flex; align-items: center; gap: 8px; }

/* Mensajes scroll (overflow-y auto in the frame); the scrollbar stays hidden so
   the first view matches the design. */
#mateo .mensajes { flex: 1 0 0; min-height: 1px; display: flex; flex-direction: column; gap: 24px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
#mateo .mensajes::-webkit-scrollbar { display: none; }
#mateo .mensajes > *, #mateo .respuesta > *, #mateo .burbuja > *, #mateo .contenido > * { flex-shrink: 0; }
#mateo .usuario { display: flex; justify-content: flex-end; }
#mateo .usuario p { max-width: 520px; padding: 12px 16px; border-radius: 16px 4px 16px 16px; background: var(--azul-bandera); font: 400 14px/21px var(--sans); color: #fff; }

#mateo .respuesta { display: flex; flex-direction: column; gap: 10px; }
#mateo .quien { display: flex; align-items: center; gap: 8px; }
#mateo .quien .mark { position: relative; width: 24px; height: 24px; flex: none; }
#mateo .quien .mark img { position: absolute; left: -4.5px; top: -4.5px; width: 33px; height: 33px; }
#mateo .quien > b { font: 500 14px/21px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
#mateo .modo { padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; background: rgba(0, 45, 98, 0.06); font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: #546679; white-space: nowrap; }

#mateo .burbuja { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 4px 16px 16px 16px; background: #fff; overflow: hidden; }
#mateo .razono { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #edf1f6; white-space: nowrap; }
#mateo .razono > img { width: 14px; height: 14px; }
#mateo .razono > img.caret { width: 12px; height: 12px; }
#mateo .razono b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); }
#mateo .razono .t:not(b) { font: 400 12px/17px var(--sans); color: #5d6e80; }

#mateo .contenido { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
#mateo .contenido h3 { margin: 0; font: 500 18px/25px var(--sans); color: var(--azul-bandera); }
#mateo .parrafo { display: flex; align-items: flex-start; gap: 10px; overflow: hidden; }
#mateo .parrafo p { flex: 1 0 0; min-width: 1px; font: 400 14px/21px var(--sans); color: var(--azul-bandera); }
#mateo .parrafo.dos { flex-direction: column; gap: 6px; height: 68px; }
#mateo .parrafo.dos p { width: 100%; min-height: 1px; }
#mateo .cita { flex: none; margin-top: 2px; padding: 1px 5px; border-radius: 5px; background: rgba(0, 45, 98, 0.08); font: 500 11px/16px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
#mateo .sin-fuente { flex: none; padding: 2px 8px; border-radius: 999px; background: #edf1f6; font: 400 11px/16px var(--sans); color: #546679; white-space: nowrap; }
#mateo .lista { display: flex; flex-direction: column; gap: 14px; }
#mateo .punto { display: flex; align-items: flex-start; gap: 10px; overflow: hidden; }
#mateo .punto .vineta { width: 6px; height: 13px; flex: none; }
#mateo .punto .texto, #mateo .falta .texto { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; color: var(--azul-bandera); }
#mateo .punto .texto b, #mateo .falta .texto b { font: 600 13px/20px var(--sans); white-space: nowrap; }
#mateo .punto .texto p { font: 400 14px/21px var(--sans); }
#mateo .falta { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 12px; border-radius: 10px; background: #f7ecd9; overflow: hidden; }
#mateo .falta .ico { width: 16px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
#mateo .falta .ico img { width: 16px; height: 16px; }
#mateo .falta .texto p { font: 400 12px/17px var(--sans); }

#mateo .detalles { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 10px; background: #fff; overflow: hidden; }
#mateo .origenes { display: flex; align-items: center; overflow: hidden; }
#mateo .origenes span { width: 26px; height: 26px; margin-right: -6px; border: 2px solid #fff; border-radius: 13px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#mateo .origenes span:last-child { margin-right: 0; }
#mateo .origenes img { width: 14px; height: 14px; }
#mateo .detalles .texto { flex: 1 0 0; min-width: 220px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
#mateo .detalles .texto b { font: 500 13px/20px var(--sans); color: var(--azul-bandera); }
#mateo .detalles .texto span { font: 400 12px/17px var(--sans); color: #546679; }
#mateo .materia { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(0, 45, 98, 0.08); white-space: nowrap; }
#mateo .materia img { width: 12px; height: 12px; }
#mateo .materia b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); }
#mateo .detalles > .caret { width: 14px; height: 14px; }

#mateo .acciones-resp { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 8px; }
#mateo .herramientas { display: flex; align-items: center; padding: 2px; border: 1px solid #fff; border-radius: 10px; background: #fff; }
#mateo .herramientas span { height: 32px; padding: 0 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
#mateo .herramientas img { width: 16px; height: 16px; }
#mateo .boton-borde { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border: 1px solid #808c99; border-radius: 8px; white-space: nowrap; }
#mateo .boton-borde img { width: 14px; height: 14px; }
#mateo .boton-borde img.caret { width: 12px; height: 12px; }
#mateo .boton-borde b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); }
#mateo .acciones-resp .punto-vacio { width: 1px; height: 1px; }
#mateo .hora { flex: 1 0 0; min-width: 140px; font: 400 11px/16px var(--sans); color: #5d6e80; text-align: right; }

#mateo .siguientes { display: flex; flex-direction: column; padding: 6px 4px 4px; border: 1px solid #fff; border-radius: 12px; background: #fff; overflow: hidden; }
#mateo .siguientes .cabeza { padding: 6px 8px 4px; font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--rojo-bandera); white-space: nowrap; }
#mateo .sugerida { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid rgba(0, 45, 98, 0.1); border-radius: 8px; }
#mateo .sugerida > img { width: 16px; height: 16px; flex: none; }
#mateo .sugerida p { flex: 1 0 0; min-width: 1px; font: 400 14px/21px var(--sans); color: var(--azul-bandera); }
#mateo .sugerida .chip { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: #edf1f6; white-space: nowrap; }
#mateo .sugerida .chip img { width: 12px; height: 12px; }
#mateo .sugerida .chip b { font: 500 11px/16px var(--sans); color: #546679; }

/* Composer */
#mateo .composer { display: flex; flex-direction: column; gap: 6px; }
#mateo .caja { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px; border: 1px solid #808c99; border-radius: 16px; background: #fff; filter: drop-shadow(0 4px 8px rgba(0, 45, 98, 0.07)); }
#mateo .boton-ico { width: 32px; height: 32px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
#mateo .boton-ico img { width: 16px; height: 16px; }
#mateo .entrada { flex: 1 0 0; min-width: 1px; font: 400 14px/21px var(--sans); color: #5d6e80; }
#mateo .enviar { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--azul-bandera); display: flex; align-items: center; justify-content: center; }
#mateo .enviar img { width: 18px; height: 18px; }
#mateo .opciones { display: flex; align-items: center; gap: 4px; padding-left: 4px; }
#mateo .opcion { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
#mateo .opcion b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); }
#mateo .opcion img { width: 12px; height: 12px; }
#mateo .aviso { font: 400 12px/17px var(--sans); color: #5d6e80; text-align: center; }

/* Chat / Panel de fuentes */
#mateo .fuentes { width: 320px; flex: none; display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 16px; background: #fff; }
#mateo .fuentes > *, #mateo .grupo > * { flex-shrink: 0; }
#mateo .fuentes .cab { display: flex; align-items: center; gap: 8px; }
#mateo .fuentes .cab > b { font: 500 16px/22px var(--sans); color: var(--azul-bandera); white-space: nowrap; }
#mateo .fuentes .cab .n { min-width: 19px; padding: 0 6px; border-radius: 999px; background: rgba(0, 45, 98, 0.06); font: 500 11px/16px var(--sans); color: #546679; text-align: center; }
#mateo .fuentes .cab .relleno { flex: 1 0 0; }
#mateo .fuentes .cab img { width: 16px; height: 16px; }
#mateo .fuentes .filtros { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 6px; }
#mateo .fuentes .filtros > span { display: flex; padding: 4px 10px; border: 1px solid rgba(0, 45, 98, 0.1); border-radius: 999px; font: 500 12px/17px var(--sans); color: #546679; white-space: nowrap; }
#mateo .fuentes .filtros > .on { border: 0; background: var(--azul-bandera); color: #fff; }
#mateo .grupo { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
#mateo .g-cab { display: flex; align-items: center; gap: 6px; }
#mateo .g-cab b { flex: 1 0 0; min-width: 1px; font: 600 10px/14px var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--rojo-bandera); }
#mateo .g-cab img { width: 12px; height: 12px; }
#mateo .fuente { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 8px; overflow: hidden; }
#mateo .fuente .origen { display: flex; align-items: center; gap: 6px; }
#mateo .fuente .num { width: 18px; height: 18px; border-radius: 5px; background: rgba(0, 45, 98, 0.08); display: flex; align-items: center; justify-content: center; font: 500 11px/16px var(--sans); color: var(--azul-bandera); }
#mateo .fuente .origen img { width: 12px; height: 12px; }
#mateo .fuente .tipo { font: 500 11px/16px var(--sans); color: #546679; white-space: nowrap; }
#mateo .fuente > b { font: 500 12px/17px var(--sans); color: var(--azul-bandera); overflow: hidden; text-overflow: ellipsis; }
#mateo .fuente .emisor { font: 400 11px/16px var(--sans); color: #5d6e80; }
#mateo .grupo > p { font: 400 12px/17px var(--sans); color: #546679; }
#mateo .enlace { display: flex; align-items: center; gap: 4px; font: 500 12px/17px var(--sans); color: #003a99; white-space: nowrap; }
#mateo .enlace img { width: 12px; height: 12px; }
#mateo .regla { height: 1px; background: rgba(0, 45, 98, 0.1); }
#mateo .fuentes .fila { display: flex; align-items: center; gap: 10px; padding: 6px 4px; overflow: hidden; }
#mateo .fuentes .fila > img { width: 16px; height: 16px; flex: none; }
#mateo .fuentes .fila > img.caret { width: 12px; height: 12px; }
#mateo .fuentes .fila .texto { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; }
#mateo .fuentes .fila .texto b { font: 500 13px/20px var(--sans); color: var(--azul-bandera); }
#mateo .fuentes .fila .texto span { font: 400 11px/16px var(--sans); color: #5d6e80; }
