/* =============================================
   COMPARADOR INTELIGENTE DE ARCHIVOS EXCEL
   style.css - Estilos globales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables de color ─────────────────────── */
:root {
  --azul-oscuro:   #12416D;
  --azul-claro:    #2D8598;
  --azul-verdoso:  #88C9B9;
  --naranja:       #F8AD2A;
  --rojo:          #DF252A;

  --bg-primary:    #F4F7FA;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #12416D;

  --text-primary:  #1A2B3C;
  --text-muted:    #6B7C93;
  --text-light:    #A0B0C5;

  --border:        #D8E4F0;
  --shadow-card:   0 2px 12px rgba(18,65,109,0.08);
  --shadow-hover:  0 8px 28px rgba(18,65,109,0.16);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --font-heading:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Modo oscuro */
body.dark-mode {
  --bg-primary:  #0E1822;
  --bg-card:     #162333;
  --text-primary:#E8F0FA;
  --text-muted:  #7A9BBF;
  --text-light:  #4A6A8A;
  --border:      #233A52;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-hover:0 8px 28px rgba(0,0,0,0.5);
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 600; }

/* ── Layout principal ───────────────────────── */
#app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header / Navbar ────────────────────────── */
.app-header {
  background: var(--azul-oscuro);
  color: #fff;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-placeholder:hover { border-color: rgba(255,255,255,0.8); }
.logo-placeholder img { width: 100%; height: 100%; object-fit: contain; }

.brand-text h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--azul-verdoso);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}
.btn-icon:hover { background: rgba(255,255,255,0.2); }

/* ── Main content ───────────────────────────── */
.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Pantalla de carga (Upload Screen) ─────── */
#screen-upload { display: block; }
#screen-results { display: none; }

.upload-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.5s ease;
}
.upload-hero h2 {
  font-size: 1.75rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.4rem;
}
.dark-mode .upload-hero h2 { color: var(--azul-verdoso); }
.upload-hero p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Zonas de arrastre ──────────────────────── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.drop-zone {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--azul-claro);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.drop-zone.file-loaded {
  border-color: var(--azul-verdoso);
  border-style: solid;
}

.drop-zone-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.dz-a .drop-zone-label { background: rgba(18,65,109,0.1); color: var(--azul-oscuro); }
.dz-b .drop-zone-label { background: rgba(45,133,152,0.1); color: var(--azul-claro); }
.dark-mode .dz-a .drop-zone-label { background: rgba(136,201,185,0.15); color: var(--azul-verdoso); }

.drop-zone-icon {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.drop-zone:hover .drop-zone-icon { color: var(--azul-claro); transform: scale(1.1); }

.drop-zone h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.drop-zone p  { font-size: 0.83rem; color: var(--text-muted); }

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Información del archivo cargado */
.file-info {
  display: none;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: rgba(136,201,185,0.12);
  border-radius: var(--radius-md);
  text-align: left;
  width: 100%;
  animation: fadeIn 0.3s ease;
}
.file-loaded .file-info { display: block; }
.file-loaded .drop-prompt { display: none; }

.file-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.file-info-row i { color: var(--azul-claro); }
.file-info-badge {
  font-size: 0.75rem;
  background: var(--azul-verdoso);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}

/* ── Botón principal ────────────────────────── */
.btn-compare-wrap {
  text-align: center;
  margin: 1.5rem 0;
}

.btn-compare {
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(18,65,109,0.35);
  position: relative;
  overflow: hidden;
}
.btn-compare::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn-compare:hover::after { background: rgba(255,255,255,0.1); }
.btn-compare:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(18,65,109,0.45); }
.btn-compare:active { transform: translateY(0); }
.btn-compare:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ── Instrucciones / Info ────────────────────── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.info-card i { font-size: 2rem; margin-bottom: 0.7rem; display: block; }
.info-card h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.info-card p  { font-size: 0.78rem; color: var(--text-muted); }

/* ── Loader / Progreso ──────────────────────── */
#loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,24,34,0.82);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
#loader-overlay.active { display: flex; }

.loader-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  text-align: center;
  min-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: scaleIn 0.3s ease;
}
.loader-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--azul-claro);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.2rem;
}
.loader-box h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.loader-box p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.progress-bar-wrap {
  background: var(--border);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--azul-claro), var(--azul-verdoso));
  transition: width 0.3s ease;
  width: 0%;
}
.progress-pct { font-size: 0.82rem; color: var(--text-muted); }

/* ── KPI Cards ──────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.4s ease;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border-left: 4px solid transparent;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  opacity: 0.07;
  transform: translate(15px,-15px);
}

.kpi-card.color-a   { border-color: var(--azul-oscuro); }
.kpi-card.color-a::before { background: var(--azul-oscuro); }
.kpi-card.color-b   { border-color: var(--azul-claro); }
.kpi-card.color-b::before { background: var(--azul-claro); }
.kpi-card.color-ok  { border-color: var(--azul-verdoso); }
.kpi-card.color-ok::before { background: var(--azul-verdoso); }
.kpi-card.color-par { border-color: var(--naranja); }
.kpi-card.color-par::before { background: var(--naranja); }
.kpi-card.color-no  { border-color: var(--rojo); }
.kpi-card.color-no::before { background: var(--rojo); }

.kpi-label {
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.kpi-value {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.kpi-sub { font-size: 0.76rem; color: var(--text-muted); }

/* ── Sección de gráficas ────────────────────── */
.charts-section {
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--azul-claro); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.5s ease;
}
.chart-card h4 {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-card canvas { max-height: 240px; }

/* Heatmap */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
.heatmap-cell {
  border-radius: var(--radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  transition: var(--transition);
}
.heatmap-cell:hover { transform: scale(1.03); }
.heatmap-label { font-size: 0.72rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.heatmap-val   { font-size: 1.6rem; font-weight: 700; color: #fff; font-family: var(--font-heading); }
.heatmap-pct   { font-size: 0.72rem; color: rgba(255,255,255,0.7); }

/* ── Tabla de resultados ─────────────────────── */
.table-section { margin-bottom: 2rem; }

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.9rem;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
  font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--text-light); }
.search-box i { color: var(--text-muted); }

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}
.chip:hover { border-color: var(--azul-claro); color: var(--azul-claro); }
.chip.active { background: var(--azul-oscuro); color: #fff; border-color: var(--azul-oscuro); }
.chip.active.naranja  { background: var(--naranja); border-color: var(--naranja); }
.chip.active.rojo     { background: var(--rojo); border-color: var(--rojo); }
.chip.active.verdoso  { background: var(--azul-verdoso); border-color: var(--azul-verdoso); }

.table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.results-table th {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.results-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr:hover { background: rgba(136,201,185,0.07); }

/* Badges de estado */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-total    { background: rgba(136,201,185,0.2); color: #0D6E55; }
.badge-parcial2 { background: rgba(248,173,42,0.2);  color: #9A6600; }
.badge-parcial1 { background: rgba(248,140,42,0.2);  color: #8A4800; }
.badge-none     { background: rgba(223,37,42,0.15);  color: #A01016; }
.badge-solo-a   { background: rgba(18,65,109,0.12);  color: #12416D; }
.badge-solo-b   { background: rgba(45,133,152,0.12); color: #2D8598; }
.dark-mode .badge-total    { background: rgba(136,201,185,0.25); color: #88C9B9; }
.dark-mode .badge-parcial2 { background: rgba(248,173,42,0.25);  color: #F8AD2A; }
.dark-mode .badge-none     { background: rgba(223,37,42,0.25);   color: #FF6B6E; }
.dark-mode .badge-solo-a   { background: rgba(136,185,220,0.2);  color: #88B9DC; }
.dark-mode .badge-solo-b   { background: rgba(45,180,200,0.2);   color: #5BC8D8; }

/* Progress bar en tabla */
.match-bar-wrap { display: flex; align-items: center; gap: 6px; }
.match-bar {
  flex: 1;
  height: 5px;
  border-radius: 10px;
  background: var(--border);
  overflow: hidden;
}
.match-bar-fill { height: 100%; border-radius: 10px; }
.match-bar-val  { font-size: 0.75rem; font-weight: 600; min-width: 30px; }

/* Paginación */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
}
.pagination-info { color: var(--text-muted); }
.page-btns { display: flex; gap: 4px; }
.page-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.8rem;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--azul-oscuro);
  color: #fff;
  border-color: var(--azul-oscuro);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Reporte ejecutivo ──────────────────────── */
.report-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
.report-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-card h3 i { color: var(--azul-claro); }
.report-text { font-size: 0.92rem; line-height: 1.7; color: var(--text-primary); }

/* ── Botones de exportación ─────────────────── */
.export-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
  justify-content: space-between;
}
.export-bar-left { display: flex; gap: 0.8rem; }

.btn-export {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-export.excel {
  background: rgba(17,128,74,0.1);
  color: #11804A;
  border-color: #11804A;
}
.btn-export.excel:hover { background: #11804A; color: #fff; }
.btn-export.pdf {
  background: rgba(223,37,42,0.1);
  color: var(--rojo);
  border-color: var(--rojo);
}
.btn-export.pdf:hover { background: var(--rojo); color: #fff; }
.btn-export.reset {
  background: rgba(18,65,109,0.1);
  color: var(--azul-oscuro);
  border-color: var(--azul-oscuro);
}
.btn-export.reset:hover { background: var(--azul-oscuro); color: #fff; }
.dark-mode .btn-export.reset { color: var(--azul-verdoso); border-color: var(--azul-verdoso); }

/* ── Toast / Notificaciones ─────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border-left: 4px solid var(--azul-claro);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  animation: slideInRight 0.3s ease;
  color: var(--text-primary);
}
.toast.success { border-color: var(--azul-verdoso); }
.toast.error   { border-color: var(--rojo); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--azul-verdoso); }
.toast.error i   { color: var(--rojo); }

/* ── Tooltip ────────────────────────────────── */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--azul-oscuro);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Empty state ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; }

/* ── Divider ────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── Animaciones ────────────────────────────── */
@keyframes fadeIn        { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInDown    { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:none; } }
@keyframes scaleIn       { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:none; } }
@keyframes slideInRight  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
@keyframes spin          { to { transform:rotate(360deg); } }
@keyframes pulse         { 0%,100% { opacity:1; } 50% { opacity:0.55; } }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .upload-grid, .charts-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .app-header { padding: 0 1rem; }
  .app-main   { padding: 1rem 1rem 2rem; }
  .kpi-grid   { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow-x: auto; }
  .results-table { min-width: 700px; }
  .brand-text span { display: none; }
}

/* ── Sección Distrito ── */
.distrito-section { margin: 1.5rem 0; }
.distrito-hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 1rem; }
.distrito-badge {
  font-size: 0.75rem; font-weight: 600; padding: 2px 10px;
  background: var(--azul-claro); color: #fff;
  border-radius: 20px; margin-left: auto;
}
.distrito-drop-wrap { display: flex; gap: 1rem; align-items: flex-start; }
.distrito-drop-wrap .drop-zone { flex: 0 0 320px; min-height: 120px; }
.distrito-files-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.distrito-file-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  font-size: 0.8rem;
}
.distrito-file-item .dfi-name { flex: 1; font-weight: 500; word-break: break-all; }
.distrito-file-item .dfi-records {
  font-size: 0.75rem; padding: 2px 8px;
  background: var(--azul-verdoso); color: #fff; border-radius: 12px;
}
.distrito-file-item .dfi-remove {
  cursor: pointer; color: var(--rojo); font-size: 1rem;
  background: none; border: none; padding: 2px 6px;
}
