/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #0b141a;
  --panel: #111b21;
  --panel-2: #182229;
  --line: #22323c;
  --text: #e9edef;
  --muted: #8696a0;
  --accent: #00a884;
  --accent-soft: #005c4b;
  --ia: #6b4dd6;
  --warn: #f0b232;
  --err: #f15c6d;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  height: 100%;
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
}

button {
  font: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
}

.app {
  flex-direction: column;
  height: 100vh;
  display: flex;
}

.topbar {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  display: flex;
}

.brand {
  letter-spacing: .2px;
  font-weight: 700;
}

.brand span {
  color: var(--accent);
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 8px;
  display: flex;
}

.chip {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #0d1a20;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
}

.chip.ok {
  color: var(--accent);
  border-color: #14483c;
}

.chip.warn {
  color: var(--warn);
  border-color: #4a3a13;
}

.spacer {
  flex: 1;
}

.btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
}

.btn:hover {
  background: #1d2b33;
}

.btn.primary {
  background: var(--accent-soft);
  border-color: #04735c;
}

.btn.primary:hover {
  background: #046b56;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  display: flex;
}

.sidebar h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 8px;
  font-size: 12px;
  display: flex;
}

.btn.small {
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 10px;
  font-size: 11px;
}

.list {
  flex: 1;
  overflow-y: auto;
}

.conv {
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  background: none;
  padding: 12px 16px;
  display: block;
}

.conv:hover {
  background: var(--panel-2);
}

.conv.active {
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

.conv .row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.conv .name {
  font-weight: 600;
}

.conv .preview {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-size: 12px;
  overflow: hidden;
}

.tag {
  color: #b3a3ff;
  background: #241d3d;
  border: 1px solid #372c5c;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
}

.dot {
  background: var(--accent);
  color: #04231c;
  border-radius: 999px;
  margin-left: auto;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  padding: 24px 16px;
  line-height: 1.6;
}

.chat {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.chat-header {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  display: flex;
}

.chat-header .who {
  font-weight: 600;
}

.chat-header .sub {
  color: var(--muted);
  font-size: 12px;
}

.switch {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  display: flex;
}

.switch input {
  display: none;
}

.track {
  background: #2a3942;
  border-radius: 999px;
  width: 42px;
  height: 23px;
  transition: background .15s;
  position: relative;
}

.knob {
  background: #8696a0;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  transition: transform .15s, background .15s;
  position: absolute;
  top: 2px;
  left: 2px;
}

.switch input:checked + .track {
  background: #3a2f66;
}

.switch input:checked + .track .knob {
  background: #b3a3ff;
  transform: translateX(19px);
}

.switch .label {
  font-size: 13px;
}

.messages {
  background: radial-gradient(circle at 20% 10%, #10222a 0, transparent 45%),
    radial-gradient(circle at 80% 80%, #101f26 0, transparent 45%), var(--bg);
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 22px 18px;
  display: flex;
  overflow-y: auto;
}

.msg {
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 10px;
  max-width: 62%;
  padding: 8px 11px;
  line-height: 1.45;
}

.msg.in {
  background: var(--panel-2);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.msg.out {
  background: var(--accent-soft);
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.msg.ai {
  background: #2c2450;
  border: 1px solid #3d3170;
}

.msg.system {
  text-align: center;
  color: #f0c0c0;
  background: #2a1f1f;
  border: 1px solid #4a2c2c;
  align-self: center;
  max-width: 78%;
  font-size: 12px;
}

.meta {
  color: #e9edef8c;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 10px;
  display: flex;
}

.meta .author {
  text-transform: uppercase;
  letter-spacing: .5px;
}

.composer {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  gap: 10px;
  padding: 12px 16px;
  display: flex;
}

.composer textarea {
  resize: none;
  background: var(--panel);
  height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  flex: 1;
  padding: 12px 14px;
}

.composer textarea:focus {
  border-color: var(--accent);
}

.banner {
  color: #f3d38a;
  background: #3a2f13;
  border-top: 1px solid #4a3a13;
  padding: 9px 16px;
  font-size: 12px;
}

.backdrop {
  z-index: 10;
  background: #0009;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  padding: 20px;
}

.modal h3 {
  margin: 0 0 4px;
}

.modal p.hint {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.5;
}

.field {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  display: flex;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

.field input, .field textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  outline: none;
  padding: 10px 12px;
}

.field input:focus, .field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  display: flex;
}

.field select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  outline: none;
  padding: 10px 12px;
}

.preview-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  color: var(--muted);
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.error-box {
  color: #ffb4b4;
  background: #3a1a1a;
  border: 1px solid #6b2b2b;
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.tag.otra {
  color: #fed7aa;
  background: #7c2d12;
}

.banner.alerta {
  color: #fecaca;
  background: #7f1d1d;
  border-color: #b91c1c;
}

.msg .texto {
  white-space: pre-wrap;
}

.adjunto {
  border-radius: 10px;
  max-width: 320px;
  max-height: 320px;
  margin-bottom: 6px;
  display: block;
}

img.adjunto {
  object-fit: cover;
  cursor: zoom-in;
}

video.adjunto, audio.adjunto {
  width: 300px;
  max-width: 100%;
}

.adjunto.archivo {
  color: inherit;
  background: #ffffff14;
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  max-width: none;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
}

.adjunto.archivo:hover {
  background: #ffffff26;
}

.adjunto .peso {
  opacity: .6;
  font-size: 12px;
}

.adjunto.fallido {
  color: #fecaca;
  background: #7f1d1d;
  border-radius: 10px;
  max-width: none;
  padding: 8px 12px;
  font-size: 13px;
}

.btn.adjuntar {
  padding: 0 12px;
  font-size: 18px;
  line-height: 1;
}

.adjunto-envoltura {
  margin-bottom: 6px;
}

.etiqueta-audio {
  opacity: .7;
  margin-bottom: 4px;
  font-size: 12px;
}

.btn.small.ampliar {
  margin-top: 4px;
}

button.adjunto.archivo {
  cursor: pointer;
  font: inherit;
  text-align: left;
  border: none;
}

.adjunto.archivo .nombre {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
}

.visor {
  z-index: 50;
  background: #000c;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.visor-caja {
  background: #111827;
  border-radius: 12px;
  flex-direction: column;
  width: 100%;
  max-width: min(1100px, 95vw);
  max-height: 92vh;
  display: flex;
  overflow: hidden;
}

.visor-barra {
  border-bottom: 1px solid #ffffff1a;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
}

.visor-nombre {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  overflow: hidden;
}

.visor-peso {
  opacity: .6;
  font-size: 12px;
}

.visor-cuerpo {
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 12px;
  display: flex;
  overflow: auto;
}

.visor-cuerpo img, .visor-cuerpo video {
  object-fit: contain;
  max-width: 100%;
  max-height: 78vh;
}

.visor-cuerpo iframe {
  background: #fff;
  border: 0;
  border-radius: 8px;
  width: 100%;
  height: 78vh;
}

.separador {
  cursor: col-resize;
  background: var(--line);
  flex-shrink: 0;
  width: 5px;
  transition: background .12s;
}

.separador:hover, body.redimensionando .separador {
  background: #10b981;
}

body.redimensionando {
  -webkit-user-select: none;
  user-select: none;
  cursor: col-resize;
}

body.redimensionando iframe, body.redimensionando video {
  pointer-events: none;
}

.barra-llamada {
  border-bottom: 1px solid var(--line);
  background: #064e3b;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
}

.barra-llamada.sonando {
  background: #78350f;
  animation: 1.2s ease-in-out infinite latido;
}

@keyframes latido {
  50% {
    background: #92400e;
  }
}

.barra-llamada .punto {
  background: #34d399;
  border-radius: 50%;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
}

.barra-llamada.sonando .punto {
  background: #fbbf24;
}

.barra-llamada .numero {
  opacity: .85;
}

.barra-llamada .rtc {
  opacity: .6;
  font-size: 12px;
}

.btn.peligro {
  color: #fff;
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn.peligro:hover {
  background: #dc2626;
}

.modo-llamadas {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.modo-llamadas select {
  background: var(--panel);
  color: inherit;
  border: 1px solid var(--line);
  font: inherit;
  border-radius: 8px;
  padding: 5px 8px;
}

.transcripcion {
  border-bottom: 1px solid var(--line);
  background: #1e293b;
  max-height: 70px;
  padding: 8px 16px;
  font-size: 13px;
  overflow-y: auto;
}

.modal.ancha {
  width: 96vw;
  max-width: 980px;
  padding: 0;
}

.pestanas {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  display: flex;
}

.pestana {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
}

.pestana.activa {
  color: inherit;
  background: #ffffff1a;
  font-weight: 600;
}

.cuerpo-modal {
  flex-direction: column;
  gap: 12px;
  max-height: 72vh;
  padding: 16px;
  display: flex;
  overflow-y: auto;
}

.pie-modal {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.aviso-modal {
  background: #ffffff14;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.fila-foto {
  align-items: center;
  gap: 16px;
  display: flex;
}

.foto-perfil {
  object-fit: cover;
  border-radius: 50%;
  width: 84px;
  height: 84px;
}

.foto-perfil.vacia {
  color: var(--muted);
  background: #ffffff14;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: flex;
}

.pista {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 12px;
}

.contador {
  color: var(--muted);
  margin-left: 6px;
  font-size: 11px;
}

.contador.pasado {
  color: #f87171;
  font-weight: 600;
}

.dos-columnas {
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  display: grid;
}

.form-plantilla {
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  display: flex;
}

.tabla-plantillas {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.tabla-plantillas th, .tabla-plantillas td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  padding: 8px 6px;
}

.tabla-plantillas .idioma {
  color: var(--muted);
  margin-left: 6px;
  font-size: 11px;
}

.texto-plantilla {
  max-width: 320px;
  color: var(--muted);
}

.chip.mal {
  color: #fecaca;
  background: #7f1d1d;
}

.panel-emojis {
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 20;
  border-radius: 12px;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  display: grid;
  position: absolute;
  bottom: 68px;
  left: 12px;
  box-shadow: 0 10px 30px #00000080;
}

.panel-emojis button {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px;
  font-size: 20px;
  line-height: 1;
}

.panel-emojis button:hover {
  background: #ffffff1f;
}

.composer {
  position: relative;
}

.filtro-linea {
  background: var(--panel);
  color: inherit;
  border: 1px solid var(--line);
  font: inherit;
  border-radius: 8px;
  margin: 0 12px 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.tag.linea {
  color: #bfdbfe;
  background: #1e3a5f;
}

.fila-añadir {
  gap: 8px;
  display: flex;
}

.fila-añadir input {
  flex: 1;
}

.acceso {
  background: radial-gradient(1200px 600px at 50% -10%, #0f3d33 0%, transparent 60%), var(--bg);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: flex;
}

.tarjeta-acceso {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 28px;
  display: flex;
  box-shadow: 0 20px 60px #00000073;
}

.logo-acceso {
  align-self: flex-start;
  width: auto;
  height: 34px;
}

.tarjeta-acceso h1 {
  margin: 4px 0 0;
  font-size: 22px;
}

.tarjeta-acceso .sub {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 13px;
}

.error-acceso {
  color: #fecaca;
  background: #7f1d1d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.btn.ancho {
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.portada {
  background: radial-gradient(1200px 600px at 50% -10%, #0f3d33 0%, transparent 60%), var(--bg);
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-height: 100vh;
  padding: 48px 24px;
  display: flex;
}

.cabecera-portada {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  display: flex;
}

.logo-portada {
  width: auto;
  height: 38px;
}

.cabecera-portada h1 {
  margin: 6px 0 0;
  font-size: 26px;
}

.cabecera-portada p {
  color: var(--muted);
  margin: 0;
}

.tarjetas {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 900px;
  display: grid;
}

.tarjeta-linea {
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  transition: border-color .15s, transform .15s;
  display: flex;
}

.tarjeta-linea:hover {
  border-color: #10b981;
  transform: translateY(-2px);
}

.tarjeta-linea.vacia {
  cursor: default;
  color: var(--muted);
}

.tarjeta-linea .fila {
  align-items: center;
  gap: 8px;
  display: flex;
}

.tarjeta-linea .nombre {
  font-size: 16px;
  font-weight: 600;
}

.tarjeta-linea .numero {
  color: var(--muted);
  font-size: 13px;
}

.tarjeta-linea .pie {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  display: flex;
}

.pie-portada {
  gap: 10px;
  display: flex;
}

.boton-marca {
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  display: flex;
}

.logo-barra {
  width: auto;
  height: 22px;
}

.nombre-app {
  color: var(--muted);
  font-weight: 600;
}

.linea-actual {
  align-items: baseline;
  gap: 8px;
  margin-left: 14px;
  font-weight: 600;
  display: flex;
}

.linea-actual .numero-linea {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.logo-tarjeta {
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  height: 76px;
  margin-bottom: 10px;
  padding: 8px;
}

.logo-empresa {
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  max-width: 150px;
  height: 34px;
  margin-left: 12px;
  padding: 4px;
}

.iniciales {
  color: #5eead4;
  letter-spacing: 1px;
  background: #134e4a;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  display: flex;
}

.logo-tarjeta.iniciales {
  font-size: 26px;
}

.logo-empresa.iniciales {
  width: 34px;
  padding: 0;
  font-size: 14px;
}

details.general {
  color: var(--muted);
  margin-top: 10px;
  font-size: 12px;
}

details.general pre {
  white-space: pre-wrap;
  background: #ffffff0d;
  border-radius: 8px;
  max-height: 200px;
  margin-top: 6px;
  padding: 10px;
  overflow: auto;
}

.msg.llamada {
  color: #d1fae5;
  background: #1e3a2f;
  border-left: 3px solid #10b981;
  align-self: flex-start;
  max-width: 72%;
}

.msg.llamada .texto {
  white-space: pre-wrap;
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/