/* SACC — tema oscuro base. Los tokens en :root centralizan la paleta para la etapa de diseño. */
:root {
  --bg: #0d1117;
  --bg-elev: #131a23;
  --surface: #18212d;
  --surface-2: #1f2a38;
  --border: #2a3646;
  --text: #e6ebf2;
  --text-muted: #8b98a9;
  --accent: #3b82f6;
  --accent-hover: #5b9bff;
  --accent-soft: rgba(59, 130, 246, .14);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius: 10px;
  --sidebar-w: 248px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; inset: 0 auto 0 0;
  z-index: 20;
  transition: transform .2s ease;
}
.brand { display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1.25rem 1rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1e3a8a);
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .8rem;
}
.brand-name { font-weight: 700; letter-spacing: .08em; }
.brand-sub { font-size: .72rem; color: var(--text-muted); line-height: 1.2; }
.nav { padding: .5rem .75rem; flex: 1; overflow-y: auto; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 1rem .6rem .4rem; }
.nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; color: var(--text-muted); font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent-hover); }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-foot { border-top: 1px solid var(--border); padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: .75rem; font-weight: 600;
}
.user-meta { flex: 1; min-width: 0; }
.user-meta div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem;
  border-bottom: 1px solid var(--border); background: rgba(13, 17, 23, .85); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.topbar .title { font-weight: 600; flex: 1; }
.btn.menu-toggle { display: none; }
.content { padding: 1.75rem; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card + .card { margin-top: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .label { color: var(--text-muted); font-size: .8rem; }
.stat .value { font-size: 1.75rem; font-weight: 700; margin-top: .25rem; }
.stat.accent { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
  padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
}
.btn:hover { border-color: var(--text-muted); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); color: #05210f; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-warning { background: transparent; border-color: var(--warning); color: var(--warning); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date],
input[type=file], select, textarea {
  width: 100%; padding: .6rem .75rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; align-items: end; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; }

/* Estados */
.badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge-BORRADOR { background: rgba(139, 152, 169, .15); color: var(--text-muted); }
.badge-EN_TRAMITE { background: rgba(56, 189, 248, .14); color: var(--info); }
.badge-OBSERVADA { background: rgba(245, 158, 11, .14); color: var(--warning); }
.badge-APROBADA { background: rgba(34, 197, 94, .14); color: var(--success); }
.badge-RECHAZADA { background: rgba(239, 68, 68, .14); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }

.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* Alertas */
.flashes { margin-bottom: 1.25rem; display: grid; gap: .5rem; }
.alert { padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.alert-success { border-color: rgba(34, 197, 94, .4); color: #86efac; }
.alert-danger { border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.alert-warning { border-color: rgba(245, 158, 11, .4); color: #fcd34d; }
.alert-info { border-color: rgba(56, 189, 248, .4); color: #7dd3fc; }

/* Detalle */
.dl { display: grid; grid-template-columns: 170px 1fr; gap: .55rem 1rem; margin: 0; }
.dl dt { color: var(--text-muted); }
.dl dd { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.checklist li { display: flex; align-items: center; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.dot.ok { background: var(--success); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .2rem; }
.ai-box { border-left: 3px solid var(--accent); }
.ai-box ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.empty { text-align: center; color: var(--text-muted); padding: 2rem 1rem; }

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, .18), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(30, 58, 138, .25), transparent 60%),
    var(--bg);
}
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.login-card .brand { padding: 0 0 1.5rem; }
.login-card .field { margin-bottom: 1rem; }
.login-foot { margin-top: 1.5rem; text-align: center; font-size: .75rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-main, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .main { margin-left: 0; }
  .btn.menu-toggle { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .5rem; }
}

/* =========================================================================
   UX: transiciones, microinteracciones y controles personalizados
   ========================================================================= */
:root {
  color-scheme: dark; /* calendarios, scrollbars y controles nativos en oscuro */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .22s;
}

/* ---------- Transición entre páginas ----------
   Navegadores con View Transitions (Chrome/Edge): fundido entre documentos,
   la barra lateral queda fija y solo se anima el contenido. */
@view-transition { navigation: auto; }
.sidebar { view-transition-name: sidebar; }
.content { view-transition-name: contenido; }
::view-transition-old(contenido) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(contenido) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Resto de navegadores: entrada escalonada del contenido y salida al navegar (ver app.js). */
.content > * { animation: entrar .4s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .04s; }
.content > *:nth-child(3) { animation-delay: .08s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
body.saliendo .content { opacity: 0; transform: translateY(-6px); transition: opacity .15s, transform .15s; }

/* Barra de progreso superior durante la navegación */
.nav-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--info));
  box-shadow: 0 0 10px var(--accent);
  transition: width .6s var(--ease);
}
body.saliendo .nav-progress { width: 75%; }

/* Login */
.login-card { animation: login-in .55s var(--ease) both; }
@keyframes login-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ---------- Navegación lateral ---------- */
.nav a { position: relative; transition: background var(--dur), color var(--dur), padding-left var(--dur) var(--ease); }
.nav a:hover { padding-left: .95rem; }
.nav a.active::before {
  content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); animation: barra .35s var(--ease) both;
}
@keyframes barra { from { transform: scaleY(0); } }

/* ---------- Botones ---------- */
.btn { position: relative; overflow: hidden; transition: background var(--dur), border-color var(--dur), color var(--dur), transform .12s, box-shadow var(--dur); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover { box-shadow: 0 6px 20px -6px rgba(59, 130, 246, .7); }
.btn-ghost:hover { transform: none; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: rgba(255, 255, 255, .35); animation: ripple .55s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.btn.cargando { pointer-events: none; color: transparent !important; }
.btn.cargando::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Tarjetas, métricas y tablas ---------- */
.card, .stat { transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
a.stat { color: inherit; }
a.stat:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px -12px rgba(59, 130, 246, .45); text-decoration: none; }
tbody tr { transition: background .15s; }
.progress > span { transition: width .8s var(--ease); }

/* ---------- Campos de formulario ---------- */
.field { position: relative; }
.field label { transition: color var(--dur); }
.field:focus-within > label { color: var(--accent-hover); }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date],
select, textarea {
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #3a4a5f; }
input:focus, select:focus, textarea:focus { background-color: var(--bg); box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 24px -14px rgba(59, 130, 246, .8); }
/* Campo completado / con error (las clases las pone app.js) */
.field.ok input, .field.ok select, .field.ok textarea { border-color: rgba(34, 197, 94, .45); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); animation: sacudir .35s; }
@keyframes sacudir { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
::placeholder { color: #5b6878; }

/* Select con flecha propia */
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b98a9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px;
}
select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b9bff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
select option, select optgroup { background: var(--surface); color: var(--text); }

/* Checkbox propio */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; cursor: pointer; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 5px; background: var(--bg-elev);
  display: inline-grid; place-content: center; transition: background var(--dur), border-color var(--dur);
}
input[type=checkbox]::after {
  content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .18s var(--ease);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff;
}
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { transform: scale(1); }
input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Entrada escalonada de los campos */
.form-grid > .field, .filters > .field { animation: entrar .45s var(--ease) both; }
.form-grid > .field:nth-child(1), .filters > .field:nth-child(1) { animation-delay: .06s; }
.form-grid > .field:nth-child(2), .filters > .field:nth-child(2) { animation-delay: .1s; }
.form-grid > .field:nth-child(3), .filters > .field:nth-child(3) { animation-delay: .14s; }
.form-grid > .field:nth-child(4), .filters > .field:nth-child(4) { animation-delay: .18s; }
.form-grid > .field:nth-child(5), .filters > .field:nth-child(5) { animation-delay: .22s; }
.form-grid > .field:nth-child(6), .filters > .field:nth-child(6) { animation-delay: .26s; }
.form-grid > .field:nth-child(n+7), .filters > .field:nth-child(n+7) { animation-delay: .3s; }

/* Contador de caracteres en textarea */
.contador { position: absolute; right: .6rem; bottom: .45rem; font-size: .7rem; color: var(--text-muted); pointer-events: none; }

/* ---------- Carga de archivos ---------- */
input[type=file]::file-selector-button {
  margin-right: .75rem; padding: .4rem .85rem; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
}
input[type=file]::file-selector-button:hover { background: var(--accent); border-color: var(--accent); }

/* Dropzone (app.js envuelve cada input[type=file]) */
.dropzone {
  position: relative; display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border: 1.5px dashed var(--border); border-radius: 10px;
  background: var(--bg-elev); cursor: pointer;
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.dropzone:hover { border-color: var(--accent); background: rgba(59, 130, 246, .05); }
.dropzone:hover .dz-icono { transform: translateY(-2px); }
.dropzone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dropzone.arrastrando { border-color: var(--accent); border-style: solid; background: var(--accent-soft); transform: scale(1.01); }
.dropzone.arrastrando .dz-icono { transform: translateY(-3px) scale(1.1); }
.dz-icono {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hover); transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur);
}
.dz-texto { min-width: 0; flex: 1; }
.dz-titulo { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-titulo b { color: var(--accent-hover); font-weight: 600; }
.dz-sub { font-size: .75rem; color: var(--text-muted); }
.dz-quitar { position: relative; z-index: 2; display: none; }
.dropzone.con-archivo { border-style: solid; border-color: rgba(34, 197, 94, .5); }
.dropzone.con-archivo .dz-icono { background: rgba(34, 197, 94, .15); color: var(--success); animation: pop .35s var(--ease); }
.dropzone.con-archivo .dz-quitar { display: inline-flex; }
.dropzone.invalido { border-color: var(--danger); animation: sacudir .35s; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* ---------- Alertas ---------- */
.alert {
  display: flex; align-items: center; gap: .75rem; overflow: hidden; max-height: 200px;
  animation: alerta-in .4s var(--ease) both;
  transition: opacity .3s, transform .3s, max-height .35s, padding .35s, margin .35s;
}
.alert .cerrar { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 0 .2rem; }
.alert .cerrar:hover { opacity: 1; }
.alert.oculta { opacity: 0; transform: translateX(16px); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
@keyframes alerta-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Responsive (complementa el bloque anterior) ---------- */
.grid > *, .main, .content { min-width: 0; } /* que las tablas anchas scrolleen dentro de su tarjeta */
.topbar .title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th, td .mono, td.mono, .badge { white-space: nowrap; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }
.page-head h1 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
@media (max-width: 820px) {
  body.nav-open::after { opacity: 1; pointer-events: auto; }
  .sidebar { transition: transform .28s var(--ease); }
  .page-head { align-items: stretch; }
  .page-head > .btn, .page-head > .actions { width: 100%; }
  .page-head > .btn { justify-content: center; }
  .card { padding: 1rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .stat .value { font-size: 1.4rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .card-head { flex-wrap: wrap; }
  h1 { font-size: 1.3rem; }
  /* Evita el zoom automático de iOS al enfocar campos */
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr; }
  .stat { padding: .8rem .9rem; }
  .actions > .btn, .actions > form, .actions > form > .btn { flex: 1 1 auto; }
  .actions > form > .btn { width: 100%; }
  .login-card { padding: 1.5rem 1.25rem; }
  .dropzone { padding: .75rem; gap: .7rem; }
  .dz-icono { width: 34px; height: 34px; }
  .dz-sub { display: none; }
  .dropzone.con-archivo .dz-sub { display: block; }
}

/* ---------- Accesibilidad: sin animaciones si el sistema lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important;
  }
}
