/* Sistema de tickets — estilos compartidos portal + panel */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--brand, #2563eb); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 20px 0 10px; }
h3 { font-size: 14px; margin: 18px 0 4px; }
.tarjeta > h2:first-child { margin-top: 0; }

.contenedor { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Cabecera */
.topbar { background: var(--brand, #2563eb); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 54px; flex-wrap: wrap; gap: 4px 12px; padding-top: 6px; padding-bottom: 6px; }
.marca { color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.marca:hover { text-decoration: none; }
.marca img { max-height: 34px; }
.etiqueta-panel { background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 7px; font-size: 11px; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a { color: #fff; opacity: .9; }
.nav a:hover { opacity: 1; }
.nav-usuario { opacity: .7; font-size: 13px; }

main { padding: 24px 16px 40px; }

/* Tarjetas y avisos */
.tarjeta { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 22px; margin-bottom: 18px; }
.tarjeta-centrada { max-width: 620px; margin: 0 auto 18px; }
.tarjeta-login { max-width: 380px; margin: 40px auto; }
.tarjeta-tabla { padding: 8px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tarjeta-tabla table { min-width: 640px; }
.aviso { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
/* los avisos de acción acompañan al hacer scroll (p. ej. "Respuesta enviada") */
.aviso-ok, .aviso-error { position: sticky; top: 6px; z-index: 5; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.aviso-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.aviso-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.texto-suave { color: #6b7280; font-size: 13px; }

/* Formularios */
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input, textarea, select {
  width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff;
}
input[type="color"] { padding: 3px; height: 40px; }
input[type="file"] { border: 1px dashed #d1d5db; background: #f9fafb; }
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; }
.fila-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .fila-doble { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.botonera { margin-top: 14px; }
.boton {
  display: inline-block; background: var(--brand, #2563eb); color: #fff; border: 0;
  border-radius: 6px; padding: 10px 22px; font-size: 15px; cursor: pointer; margin-top: 10px;
}
.boton:hover { opacity: .92; text-decoration: none; }
.boton-suave { background: #fff; color: var(--brand, #2563eb); border: 1px solid var(--brand, #2563eb); }
.boton-mini { padding: 4px 10px; font-size: 12px; margin: 0; }
.input-mini { width: 150px; padding: 4px 8px; font-size: 12px; display: inline-block; }
.form-secundario { margin-top: 14px; border-top: 1px solid #f3f4f6; padding-top: 14px; }
.check-nota { font-weight: 400; margin-top: 10px; }
.inline { display: inline; }

/* Badges y chips */
.badge { color: #fff; border-radius: 20px; padding: 3px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-outline { background: #fff !important; border: 1px solid; }
.chip { background: #eef2ff; color: #4338ca; border-radius: 4px; padding: 1px 7px; font-size: 11px; }
.chip-cliente { background: #fef3c7; color: #92400e; }
.chip-nota { background: #fef9c3; color: #854d0e; }
.chip-ok { background: #dcfce7; color: #166534; }
.chip-suave { background: #f3f4f6; color: #6b7280; }

/* Hilo de mensajes: burbujas a un lado y otro, como una conversación */
.hilo { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.hilo .mensaje { max-width: 80%; margin: 0; border-left: 0; border-radius: 14px; }
/* en el panel el agente es "yo" (derecha); en el portal, el cliente */
.hilo-admin .mensaje-agente,
.hilo-portal .mensaje-cliente {
  align-self: flex-end; background: #dbeafe; border: 1px solid #93c5fd;
  border-bottom-right-radius: 4px;
}
.hilo-admin .mensaje-cliente,
.hilo-portal .mensaje-agente {
  align-self: flex-start; background: #fff; border: 1px solid #d1d5db; border-bottom-left-radius: 4px;
}
/* mensajes con vídeo incrustado: burbuja más ancha para que se vea bien */
.hilo .mensaje-ancho { max-width: 92%; width: 92%; }
/* destacar el mensaje recién enviado (llegamos con #mNNN en la URL) */
.hilo .mensaje:target { box-shadow: 0 0 0 3px #34d399; }
.hilo .mensaje-nota {
  align-self: center; max-width: 92%; width: 92%; background: #fefce8;
  border: 1px dashed #eab308; border-radius: 10px;
}
.hilo .hilo-antiguos { align-self: stretch; }
.barra-notas { margin: 0 0 10px; font-size: 13px; text-align: right; }
@media (max-width: 640px) {
  .hilo .mensaje { max-width: 94%; }
  .hilo .mensaje-nota { width: 100%; max-width: 100%; }
}
.hilo-antiguos { margin-bottom: 10px; }
.hilo-antiguos > summary {
  cursor: pointer; text-align: center; color: var(--brand, #2563eb);
  background: #fff; border: 1px dashed #d1d5db; border-radius: 10px;
  padding: 9px; font-size: 13px; list-style: none;
}
.hilo-antiguos > summary::-webkit-details-marker { display: none; }
.hilo-antiguos[open] > summary { margin-bottom: 10px; }
.mensaje { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 14px 18px; margin-bottom: 10px; border-left: 4px solid #e5e7eb; }
.mensaje-agente { border-left-color: var(--brand, #2563eb); }
.mensaje-cliente { border-left-color: #f59e0b; }
.mensaje-nota { border-left-color: #eab308; background: #fefce8; }
.mensaje-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; flex-wrap: wrap; }
.mensaje-borrar { margin-left: auto; }
.mensaje-borrar .boton { margin: 0; padding: 2px 8px; }
.mensaje-cuerpo { white-space: normal; word-wrap: break-word; }
.mensaje-adjuntos { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f3f4f6; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.adjunto-audio { display: flex; flex-direction: column; gap: 2px; }
.adjunto-audio audio { max-width: 380px; width: 100%; height: 40px; }
.adjunto-caducado {
  display: inline-block; background: #f3f4f6; border: 1px dashed #d1d5db; border-radius: 8px;
  padding: 10px 14px; color: #6b7280; font-size: 13px;
}
.nota-caducidad { font-size: 12px; color: #92400e; background: #fffbeb; border-radius: 6px; padding: 3px 8px; align-self: flex-start; }
.adjunto-video { display: flex; flex-direction: column; gap: 2px; }
.adjunto-video video { max-width: 520px; width: 100%; border-radius: 10px; background: #000; }
.previo video { max-width: 240px; max-height: 150px; border: 1px solid #d1d5db; border-radius: 8px; }
.grabadora { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grabadora .boton { margin: 0; }
.vu { width: 130px; height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; }
.vu-nivel { display: block; height: 100%; width: 0; background: #16a34a; transition: width .06s linear; }
.previo audio { height: 36px; max-width: 240px; }
.mensaje-emails { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e5e7eb; font-size: 12px; color: #6b7280; display: flex; flex-direction: column; gap: 2px; }
.adjunto-imagen { display: inline-block; margin: 4px 8px 4px 0; }
.adjunto-imagen img { max-width: 320px; max-height: 240px; border: 1px solid #e5e7eb; border-radius: 8px; display: block; }
@media (max-width: 640px) { .adjunto-imagen img { max-width: 100%; } }
#aviso-adjuntos { display: block; margin-top: 4px; font-size: 12px; color: #16a34a; }

/* Vídeos incrustados y enlaces en los mensajes */
.video-incrustado {
  display: block; position: relative; width: 100%; max-width: 760px; margin: 10px 0 4px;
  padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000;
}
.video-incrustado iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-enlace { display: inline-block; font-size: 12px; margin-bottom: 8px; }
.mensaje-cuerpo a { word-break: break-all; }

/* Formulario de respuesta: enviar arriba, opciones debajo, programar aparte */
.botonera-principal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.botonera-principal .boton { margin: 0; }
.check-inline { margin: 0; font-weight: 400; font-size: 13px; }
.opciones-respuesta {
  border-top: 1px solid #f3f4f6; margin-top: 10px; padding-top: 6px;
}
.opciones-respuesta label { font-size: 12.5px; }
.fila-programar {
  border-top: 1px dashed #e5e7eb; margin-top: 12px; padding-top: 10px; font-size: 13px;
}

/* Barra de formato del editor + leyenda */
.barra-formato { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }
.boton-formato {
  min-width: 30px; padding: 3px 8px; background: #fff; border: 1px solid #d1d5db;
  border-radius: 5px; cursor: pointer; font-size: 13px; line-height: 1.4;
}
.boton-formato:hover { border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); }
.boton-formato mark { background: #fef08a; padding: 0 2px; }
.leyenda-formato { font-size: 11.5px; color: #6b7280; margin-left: 6px; }
.leyenda-formato code { background: #f3f4f6; border-radius: 3px; padding: 0 3px; font-size: 11px; }

/* Formato dentro de los mensajes del hilo */
.mensaje-cuerpo mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
.mensaje-cuerpo code {
  background: #f3f4f6; border-radius: 4px; padding: 1px 5px;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}

/* Editor de mensajes con imágenes en línea */
.editor-mensaje {
  width: 100%; min-height: 130px; padding: 9px 10px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff;
  white-space: pre-wrap; overflow-y: auto; max-height: 420px;
}
.editor-mensaje:focus { outline: 2px solid var(--brand, #2563eb); outline-offset: -1px; }
.editor-mensaje:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none; }
.editor-imagen {
  max-height: 140px; max-width: 240px; border: 1px solid #d1d5db; border-radius: 8px;
  vertical-align: middle; margin: 4px 6px 4px 0; cursor: pointer;
}
.editor-imagen:hover { outline: 2px solid #dc2626; }

/* Previsualización de adjuntos antes de enviar */
.previos-adjuntos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.previo { position: relative; display: inline-flex; align-items: center; }
.previo img { max-height: 90px; max-width: 140px; border: 1px solid #d1d5db; border-radius: 8px; display: block; }
.previo-archivo { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 26px 8px 10px; font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previo-quitar {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; line-height: 18px;
  border: 0; border-radius: 50%; background: #dc2626; color: #fff; font-size: 11px;
  cursor: pointer; padding: 0;
}
.email-fallo { color: #dc2626; font-weight: 600; }
.chip-fallo { background: #fef2f2; color: #b91c1c; }
.chip-programado { background: #dbeafe; color: #1d4ed8; }

/* Panel de seguidores / relaciones / respuestas programadas */
.panel-extra > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.panel-extra[open] > summary { margin-bottom: 10px; }
.extra-bloque { border-top: 1px solid #f3f4f6; padding-top: 10px; margin-top: 10px; }
.extra-bloque:first-of-type { border-top: 0; margin-top: 0; }
.extra-bloque h3 { margin: 0 0 6px; }
.enlace-quitar { background: none; border: 0; color: #dc2626; cursor: pointer; padding: 0 0 0 4px; font-size: 11px; }
.prog-item { background: #f9fafb; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; }
.prog-cuerpo { font-size: 13px; color: #4b5563; margin: 4px 0 6px; }
.historial-emails > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.historial-emails[open] > summary { margin-bottom: 10px; }
.historial-emails table { min-width: 640px; }
.historial-emails { overflow-x: auto; }

/* Cabecera de ticket */
.cabecera-ticket { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cabecera-ticket-badges { display: flex; gap: 8px; align-items: flex-start; }
.cabecera-pagina { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.buscador { display: flex; gap: 8px; flex: 0 1 auto; }
.buscador input { width: 260px; max-width: 100%; min-width: 0; }
.buscador .boton { margin-top: 0; white-space: nowrap; }

/* Gestión estado/prioridad/asignación */
.form-gestion { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-top: 16px; border-top: 1px solid #f3f4f6; padding-top: 4px; }
.form-gestion label { margin-top: 8px; }
.form-gestion-boton .boton { margin: 0; padding: 9px 18px; }
@media (max-width: 700px) { .form-gestion { grid-template-columns: 1fr 1fr; } }

/* Pestañas y filtros de bandeja */
.pestanas { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.pestanas a { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 5px 14px; font-size: 13px; color: #374151; }
.pestanas a:hover { text-decoration: none; border-color: var(--brand, #2563eb); }
.pestanas a.activa { background: var(--brand, #2563eb); border-color: var(--brand, #2563eb); color: #fff; }
.pestanas .contador { opacity: .65; font-size: 11px; }
.filtros-linea { display: flex; gap: 14px; margin-bottom: 14px; font-size: 13px; flex-wrap: wrap; }
.filtros-linea a { color: #6b7280; }
.filtros-linea a.activa { color: var(--brand, #2563eb); font-weight: 700; }

/* Tabla */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; }
td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
tbody tr:hover { background: #f9fafb; cursor: pointer; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; white-space: nowrap; }
.sin-resultados { padding: 20px; text-align: center; }
.celda-acciones { white-space: nowrap; }
.celda-acciones form { margin-right: 6px; }

/* Tablas compactas (gestión de clientes) */
.tabla-compacta { font-size: 13px; }
.tabla-compacta th, .tabla-compacta td { padding: 5px 6px; vertical-align: middle; }
.tabla-compacta input { padding: 4px 7px; font-size: 12.5px; }
.tabla-compacta .col-tel input { max-width: 120px; }
.tabla-compacta .col-limite input { max-width: 62px; }
.tabla-compacta .col-empresa select { max-width: 140px; padding: 4px 6px; font-size: 12.5px; }
.tabla-compacta .col-usuario input { max-width: 110px; }
.tabla-compacta .col-cco input { max-width: 150px; }
.tarjeta-tabla .titulo-tabla { padding: 6px 14px 0; margin: 6px 0 8px; }
.tabla-compacta tbody tr:hover { background: #f9fafb; cursor: default; }
.acciones-flex { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.acciones-flex form { margin: 0; }
.acciones-pass { display: flex; align-items: center; gap: 3px; }
.acciones-pass .input-mini { width: 120px; }
.boton-peligro { color: #dc2626; border-color: #dc2626; }

/* Listado de clientes: exactamente dos líneas compactas por cliente */
.lista-clientes { padding: 2px 0; }
.lista-clientes .sin-resultados { padding: 20px; }
.cliente-item { padding: 5px 14px 6px; border-bottom: 2px solid #d1d5db; }
.cliente-item:last-child { border-bottom: 0; }
.cliente-item:nth-child(even) { background: #fafafa; }
.cliente-item:hover { background: #f3f6ff; }
.cliente-l1 {
  display: grid; grid-template-columns: 1.1fr 1.4fr 0.7fr 0.9fr;
  gap: 8px; margin-bottom: 3px;
}
.cliente-l2 { display: flex; flex-wrap: nowrap; gap: 4px 10px; align-items: flex-end; }
.etiqueta-mini { display: block; font-size: 10px; font-weight: 600; color: #6b7280; margin-bottom: 0; line-height: 1.3; }
.cliente-item input, .cliente-item select { width: 100%; padding: 3px 8px; font-size: 13px; }
.cliente-l2 .campo-cco { width: 210px; flex: 0 0 auto; }
.cliente-l2 .campo-limite { width: 64px; flex: 0 0 auto; }
.cliente-l2 .campo-dato { flex: 0 0 auto; white-space: nowrap; }
.cliente-l2 .campo-dato > span, .cliente-l2 .campo-dato > .chip { display: inline-block; padding: 3px 0; }
.cliente-acciones { margin-left: auto; display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-end; }
.cliente-acciones form { margin: 0; }
.cliente-acciones .input-mini { width: 112px; padding: 4px 7px; font-size: 12px; }
.cliente-acciones .boton-mini { padding: 4px 8px; font-size: 12px; white-space: nowrap; margin: 0; }
@media (max-width: 1100px) {
  .cliente-l2 { flex-wrap: wrap; }
  .cliente-acciones { margin-left: 0; }
}
@media (max-width: 700px) {
  .cliente-l1 { grid-template-columns: 1fr 1fr; }
}

/* Cabecera del panel con color propio + contador de sesión */
.topbar-admin { background: var(--brand-admin, #111827); }
.nav-boton {
  background: rgba(255,255,255,.15); border: 0; border-radius: 12px;
  padding: 2px 9px; font-size: 14px; cursor: pointer; line-height: 1.4;
}
.nav-boton:hover { background: rgba(255,255,255,.3); }
.nav-sesion {
  opacity: .8; font-size: 12px; background: rgba(255,255,255,.15);
  border-radius: 12px; padding: 2px 9px; white-space: nowrap;
}

/* Informes */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.07); padding: 14px; text-align: center; }
.kpi strong { display: block; font-size: 22px; color: var(--brand, #2563eb); }
.kpi span { font-size: 12px; color: #6b7280; }
.tabla-informe { min-width: 0 !important; }
.tabla-informe .col-nombre { width: 40%; }
.tabla-informe .col-num { width: 50px; text-align: right; font-weight: 600; }
.tabla-informe .col-barra { width: 40%; }
.tabla-informe .barra { display: block; height: 12px; border-radius: 6px; background: var(--brand, #2563eb); min-width: 2px; }
.tabla-informe .barra-ok { background: #16a34a; }

/* Pendiente de lectura (respuesta del cliente sin abrir) */
.punto-nuevo {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #dc2626; margin-right: 7px; vertical-align: middle;
  animation: parpadeo 1s ease-in-out infinite;
}
@keyframes parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.fila-sin-leer td { font-weight: 600; background: #fefce8; }

/* Paginación */
.paginacion { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.paginacion .boton { margin: 0; }

/* Barra de progreso flotante de subidas (siempre visible, sobre todo lo demás) */
#tk-progreso {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 99999;
  background: #111827; color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35); min-width: 260px; max-width: 90vw;
  font-size: 13px;
}
.tk-progreso-texto { display: block; margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-progreso-barra { display: block; height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.tk-progreso-nivel { display: block; height: 100%; width: 0; background: #22c55e; transition: width .2s ease; }

/* Pie */
.pie { border-top: 1px solid #e5e7eb; padding: 14px 0; color: #9ca3af; font-size: 12px; text-align: center; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  main { padding: 14px 8px 28px; }
  .contenedor { padding: 0 10px; }
  h1 { font-size: 19px; }

  /* cabecera: marca arriba, menú debajo en dos líneas si hace falta */
  .marca { font-size: 15px; }
  .marca img { max-height: 26px; }
  .nav { gap: 10px 14px; font-size: 14px; width: 100%; }
  .nav-usuario { display: none; }

  .tarjeta { padding: 14px; }
  .tarjeta-login { margin: 20px auto; }

  /* cabeceras de página: título y buscador apilados a lo ancho */
  .cabecera-pagina { flex-direction: column; align-items: stretch; }
  .buscador { width: 100%; }
  .buscador input { width: auto; flex: 1; }

  /* ticket: cabecera y badges apilados */
  .cabecera-ticket { flex-direction: column; }
  .cabecera-ticket-badges { flex-wrap: wrap; }
  .form-gestion { grid-template-columns: 1fr 1fr; }

  /* hilo */
  .mensaje { padding: 12px 12px; }

  /* tablas: celdas más compactas (el scroll lateral ya lo da la tarjeta) */
  th, td { padding: 8px 8px; }
  .tabla-compacta th, .tabla-compacta td { padding: 5px 5px; }

  .boton { padding: 10px 16px; }
  .pestanas a { padding: 5px 11px; font-size: 12.5px; }
}

@media (max-width: 400px) {
  .form-gestion { grid-template-columns: 1fr; }
  .fila-doble { grid-template-columns: 1fr; }
}

.aviso-acceso { font-size: 13px; background: #eff6ff; border-radius: 6px; padding: 5px 10px; display: inline-block; margin: 4px 0 0; }
