/* Recepcion de Mercaderia — estilo compartido.
   Mobile-first, inspirado en el lenguaje visual de Apple/iOS: fondo tipo
   "grouped list", tarjetas flotantes elevadas por sombra (sin bordes duros),
   controles con relleno, botones tipo capsula y superficies de vidrio
   esmerilado (blur) en la barra de navegacion y los menus. */

:root {
  --azul-oscuro: #1f427d;
  --azul: #2f5f9e;
  --azul-claro: #eaf1fb;
  --verde: #16a34a;
  --verde-claro: #f0fdf4;
  --ambar: #d97706;
  --ambar-claro: #fffbeb;
  --rojo: #dc2626;
  --rojo-claro: #fef2f2;
  --violeta: #7c4fd1;
  --texto: #1c1c1e;
  --texto-tenue: #48484a;
  --texto-suave: #6e6e73;
  --borde: #e5e5ea;
  --borde-sutil: rgba(60, 60, 67, .1);
  --fondo: #f2f2f7;
  --blanco: #ffffff;
  --radio: 18px;
  --radio-chico: 12px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px rgba(15, 23, 42, .07);
  --sombra-suave: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.telefono {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--fondo);
  display: flex;
  flex-direction: column;
}

/* ── Encabezado: barra de navegacion translucida (vidrio esmerilado) ── */
.app-header {
  background: linear-gradient(180deg, rgba(38, 78, 143, .92), rgba(31, 66, 125, .88));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.app-header .titulo {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  flex: 1;
  text-align: center;
}

.app-header button {
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .15s ease;
}

.app-header button:active { background: rgba(255,255,255,.18); }

/* Menu deslizante — panel de vidrio esmerilado */
.menu-fondo {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 40;
  display: none;
}
.menu-fondo.abierto { display: block; }

.menu-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 80%;
  max-width: 310px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  z-index: 41;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 30px rgba(0,0,0,.18);
}
.menu-panel.abierto { transform: translateX(0); }

.menu-cabecera {
  background: linear-gradient(160deg, #2a548f, var(--azul-oscuro));
  padding: 22px 18px;
  color: #fff;
}
.menu-cabecera img { height: 26px; }
.menu-cabecera .nombre { margin-top: 12px; font-weight: 600; font-size: 15px; }
.menu-cabecera .rol { font-size: 12px; opacity: .75; margin-top: 1px; }

.menu-panel nav { flex: 1; padding: 10px; overflow-y: auto; }
.menu-panel a, .menu-panel button.enlace {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  color: var(--texto);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  background: none;
  border: none;
  border-radius: var(--radio-chico);
  font-family: inherit;
  cursor: pointer;
  transition: background-color .12s ease;
}
.menu-panel a svg, .menu-panel button.enlace svg { color: var(--azul-oscuro); flex-shrink: 0; }
.menu-panel a:active, .menu-panel button.enlace:active { background: rgba(60,60,67,.08); }
.menu-panel .separador { height: 1px; background: var(--borde-sutil); margin: 8px 6px; }
.menu-panel .salir { color: var(--rojo); }
.menu-panel .salir svg { color: var(--rojo); }

/* ── Contenido ── */
.contenido {
  flex: 1;
  padding: 16px;
  padding-bottom: 96px;
}

/* ── Pasos (wizard) ── */
.pasos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borde-sutil);
}
.paso-circulo {
  width: 27px; height: 27px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--borde); color: var(--texto-suave);
  flex-shrink: 0;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.paso-circulo.activo {
  background: linear-gradient(160deg, #3a6bab, var(--azul-oscuro));
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 66, 125, .4);
}
.paso-circulo.completo { background: var(--verde); color: #fff; }
.paso-linea { width: 14px; height: 2px; background: var(--borde); flex-shrink: 0; border-radius: 1px; }
.paso-titulo {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  padding: 14px 16px 6px;
  color: var(--texto);
}

/* ── Tarjetas y campos ── */
.tarjeta {
  background: #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 18px;
  margin-bottom: 14px;
}

.campo { margin-bottom: 16px; }
.campo:last-child { margin-bottom: 0; }
.campo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-tenue);
  margin-bottom: 6px;
}
.campo label .req { color: var(--rojo); }
.campo .ayuda { font-size: 12px; color: var(--texto-suave); margin-top: 5px; }
.campo .error-campo { font-size: 12px; color: var(--rojo); margin-top: 5px; display: none; }
.campo.con-error .error-campo { display: block; }
.campo.con-error input, .campo.con-error select, .campo.con-error textarea {
  box-shadow: 0 0 0 1.5px var(--rojo) inset;
}

input[type=text], input[type=search], input[type=password], input[type=email],
input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radio-chico);
  font-size: 15px;
  font-family: inherit;
  background: var(--fondo);
  color: var(--texto);
  transition: background-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--azul);
}
textarea { resize: vertical; min-height: 72px; }

.campo-con-boton { display: flex; gap: 8px; }
.campo-con-boton input { flex: 1; }
.btn-icono {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  color: var(--azul-oscuro);
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .65) 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn-icono:active {
  transform: scale(.94);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.sap-info {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: var(--radio-chico);
  font-size: 13px;
  display: none;
}
.sap-info.mostrar { display: block; }
.sap-info.ok { background: var(--verde-claro); color: #14532d; }
.sap-info.error { background: var(--ambar-claro); color: #78350f; }

/* ── Si/No ── */
.si-no { display: flex; gap: 20px; margin-top: 4px; }
.si-no label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 14px; color: var(--texto);
  cursor: pointer;
}
.si-no input[type=radio] { width: 19px; height: 19px; accent-color: var(--texto-suave); }
.si-no label.marcado-si input { accent-color: var(--verde); }
.si-no label.marcado-no input { accent-color: var(--rojo); }

/* ── Botones — capsulas de "vidrio liquido": gradiente translucido, brillo
   superior y desenfoque, como los controles de iOS/macOS. ── */
.botonera {
  display: flex; gap: 10px;
  margin-top: 20px;
}
.btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  transition: transform .1s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.98); }

.btn-primario {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #3a6bab 0%, var(--azul-oscuro) 100%);
  box-shadow:
    0 8px 20px rgba(31, 66, 125, .35),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .08);
}
.btn-primario:active:not(:disabled) {
  box-shadow:
    0 3px 10px rgba(31, 66, 125, .3),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.btn-secundario {
  color: var(--azul-oscuro);
  border-color: rgba(60, 60, 67, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .68) 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255, 255, 255, .75);
}
.btn-secundario:active:not(:disabled) {
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-peligro {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #e05555 0%, var(--rojo) 100%);
  box-shadow:
    0 8px 20px rgba(220, 38, 38, .3),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .08);
}
.btn-peligro:active:not(:disabled) {
  box-shadow: 0 3px 10px rgba(220, 38, 38, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-texto {
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--azul); flex: none; padding: 8px 6px; box-shadow: none;
  border-radius: var(--radio-chico);
}

.btn-flotante-agregar {
  color: var(--azul-oscuro);
  border: 1px solid rgba(31, 66, 125, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(234, 241, 251, .6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-flotante-agregar:active:not(:disabled) { box-shadow: inset 0 1px 3px rgba(31, 66, 125, .12); }

/* barra de botones fija abajo — tambien en vidrio esmerilado */
.barra-inferior {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--borde-sutil);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  z-index: 20;
}

/* ── Fotos ── */
.foto-item { margin-bottom: 18px; }
.foto-item:last-child { margin-bottom: 0; }
.foto-titulo { font-size: 13.5px; font-weight: 600; color: var(--texto-tenue); margin-bottom: 7px; }
.foto-titulo .opcional { font-weight: 400; color: var(--texto-suave); font-size: 12px; }
.foto-fila { display: flex; gap: 10px; align-items: stretch; }
.foto-miniatura {
  width: 84px; height: 84px;
  border-radius: 14px;
  background: var(--fondo);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--borde-sutil);
}
.foto-miniatura img { width: 100%; height: 100%; object-fit: cover; }
.foto-miniatura .vacio { font-size: 11px; color: var(--texto-suave); text-align: center; padding: 4px; }
.foto-miniatura .quitar {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(28,28,30,.55); color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.foto-acciones { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.btn-camara {
  border: 1px solid rgba(31, 66, 125, .2);
  color: var(--azul-oscuro);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(234, 241, 251, .55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 8px rgba(15, 23, 42, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .1s ease, box-shadow .15s ease;
}
.btn-camara:active {
  transform: scale(.97);
  box-shadow: inset 0 1px 2px rgba(31, 66, 125, .12);
}
.foto-estado { font-size: 12px; color: var(--texto-suave); }
.foto-estado.subida { color: var(--verde); }
.foto-estado.subiendo { color: var(--ambar); }

/* ── Incidencias ── */
.incidencia-card {
  background: var(--fondo);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}
.incidencia-card .quitar-incidencia {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--rojo);
  cursor: pointer;
}
.tabla-incidencias { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.tabla-incidencias th, .tabla-incidencias td {
  text-align: left; padding: 8px 6px; border-top: 1px solid var(--borde-sutil);
  color: var(--texto-tenue);
}
.tabla-incidencias th { color: var(--texto-suave); font-weight: 600; border-top: none; }

/* ── Estado final ── */
.estado-final-cards { display: flex; flex-direction: column; gap: 10px; }
.estado-final-card {
  border: 1.5px solid var(--borde);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.estado-final-card input { margin-top: 3px; }
.estado-final-card .titulo { font-weight: 700; font-size: 14px; }
.estado-final-card .desc { font-size: 12.5px; color: var(--texto-suave); margin-top: 2px; }
.estado-final-card.hab.marcado { border-color: var(--verde); background: var(--verde-claro); }
.estado-final-card.hab.marcado .titulo { color: #14532d; }
.estado-final-card.obs.marcado { border-color: var(--ambar); background: var(--ambar-claro); }
.estado-final-card.obs.marcado .titulo { color: #78350f; }
.estado-final-card.no.marcado { border-color: var(--rojo); background: var(--rojo-claro); }
.estado-final-card.no.marcado .titulo { color: #7f1d1d; }

/* ── Badges de estado ── */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-hab { background: var(--verde-claro); color: #14532d; }
.badge-obs { background: var(--ambar-claro); color: #78350f; }
.badge-no { background: var(--rojo-claro); color: #7f1d1d; }
.badge-borrador { background: var(--borde); color: var(--texto-tenue); }

/* ── Checklist de validacion ── */
.checklist-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borde-sutil);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-icono {
  width: 23px; height: 23px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.checklist-icono.ok { background: var(--verde); }
.checklist-icono.falta { background: var(--rojo); font-size: 13px; font-weight: 800; }
.checklist-texto .etiqueta { font-weight: 600; font-size: 13.5px; }
.checklist-texto .detalle { font-size: 12px; color: var(--texto-suave); margin-top: 2px; }

.panel-resultado {
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  font-weight: 600;
}
.panel-resultado.ok { background: var(--verde-claro); color: #14532d; }
.panel-resultado.pendiente { background: var(--ambar-claro); color: #78350f; }

/* ── Pantalla de cierre / correo ── */
.progreso-correo { text-align: center; padding: 22px 4px; }
.progreso-correo .icono {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--azul-claro); color: var(--azul-oscuro);
}
.progreso-correo .icono.exito { background: var(--verde-claro); color: var(--verde); }
.progreso-lista { text-align: left; margin-top: 20px; }
.progreso-paso {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; font-size: 13.5px; color: var(--texto-suave);
}
.progreso-paso .marca {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--borde);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.progreso-paso.listo { color: var(--texto); }
.progreso-paso.listo .marca { background: var(--verde); border-color: var(--verde); }

/* ── Login ── */
.pantalla-login {
  min-height: 100vh;
  display: flex; flex-direction: column;
  max-width: 420px; margin: 0 auto;
}
.login-panel-superior {
  background: linear-gradient(165deg, #2a548f 0%, var(--azul-oscuro) 55%, #163259 100%);
  padding: 52px 24px 46px;
  text-align: center;
}
.login-panel-superior img { height: 44px; }
.login-panel-superior .subtitulo { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 12px; letter-spacing: .01em; }
.login-formulario {
  flex: 1; background: #fff; padding: 30px 24px; border-radius: 28px 28px 0 0; margin-top: -22px;
  box-shadow: 0 -8px 30px rgba(15,23,42,.08);
}
.login-formulario h1 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 20px; }

/* ── Menu / home ── */
.home-boton {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: none;
  border-radius: var(--radio);
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--texto);
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  text-align: left;
  transition: transform .1s ease, box-shadow .15s ease;
}
.home-boton:active { transform: scale(.985); box-shadow: var(--sombra-suave); }
.home-boton-icono {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25);
}
.home-boton-icono.i-azul { background: linear-gradient(160deg, #3a6bab, var(--azul-oscuro)); }
.home-boton-icono.i-verde { background: linear-gradient(160deg, #16b487, #0d8f6b); }
.home-boton-icono.i-violeta { background: linear-gradient(160deg, #9166dd, var(--violeta)); }
.home-boton-icono.i-ambar { background: linear-gradient(160deg, #f0a94e, var(--ambar)); }
.home-boton .titulo { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.home-boton .desc { font-size: 12.5px; color: var(--texto-suave); margin-top: 2px; }

/* ── Historial ── */
.filtros-panel {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra-suave);
  padding: 16px; margin-bottom: 14px; display: none;
}
.filtros-panel.abierto { display: block; }
.filtros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.historial-card {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra-suave);
  padding: 15px; margin-bottom: 12px; cursor: pointer;
  transition: transform .1s ease;
}
.historial-card:active { transform: scale(.985); }
.historial-card .fila-superior { display: flex; justify-content: space-between; align-items: center; }
.historial-card .entrada { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }

/* .dato se usa tanto en las tarjetas del historial como en el detalle de una recepcion */
.dato { font-size: 12.5px; color: var(--texto-tenue); margin-top: 7px; display: flex; justify-content: space-between; gap: 10px; }
.dato .etiqueta { color: var(--texto-suave); flex-shrink: 0; }

.paginacion { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.paginacion button {
  border: none; background: #fff; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  box-shadow: var(--sombra-suave);
  color: var(--azul-oscuro);
}
.paginacion button:disabled { opacity: .35; }
.paginacion .num { font-size: 13px; color: var(--texto-tenue); font-weight: 500; }

/* ── Usuarios ── */
.usuario-fila {
  display: flex; flex-direction: column; gap: 9px;
  padding: 13px 0; border-bottom: 1px solid var(--borde-sutil);
}
.usuario-fila:last-child { border-bottom: none; }
.usuario-fila .nombre { font-weight: 600; font-size: 14px; }
.usuario-fila .meta { font-size: 12px; color: var(--texto-suave); }
.usuario-fila .acciones { display: flex; gap: 7px; flex-wrap: wrap; }
.usuario-fila .acciones button {
  border: none; background: var(--fondo); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 500; cursor: pointer; flex: 1 1 auto;
  color: var(--azul-oscuro);
}
.usuario-inactivo { opacity: .5; }

/* ── Utilidades ── */
.oculto { display: none !important; }
.centrado { text-align: center; }
.mensaje-error {
  background: var(--rojo-claro); color: #7f1d1d;
  border-radius: var(--radio-chico); padding: 11px 13px; font-size: 13px; margin-bottom: 14px;
}
.mensaje-info {
  background: var(--azul-claro); color: var(--azul-oscuro);
  border-radius: var(--radio-chico); padding: 11px 13px; font-size: 13px; margin-bottom: 14px;
}
.cargando { text-align: center; color: var(--texto-suave); padding: 30px 0; font-size: 13.5px; }
.vacio-lista { text-align: center; color: var(--texto-suave); padding: 30px 16px; font-size: 13.5px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girar .7s linear infinite;
  display: inline-block;
}
@keyframes girar { to { transform: rotate(360deg); } }
