
.demo-body{background:#f4f7fa}
.demo-header{background:#fff;border-bottom:1px solid #e2e7ed;position:sticky;top:0;z-index:50}
.demo-nav{height:70px;display:flex;align-items:center;justify-content:space-between}
.demo-header-actions{display:flex;align-items:center;gap:16px}
.demo-header-actions a{font-size:.83rem;font-weight:750;text-decoration:none;color:#344054}
.demo-beta{font-size:.66rem;font-weight:850;letter-spacing:.12em;border:1px solid #cce7df;color:#087a59;background:#eefbf6;border-radius:999px;padding:6px 9px}
.demo-main{padding:54px 0 90px}
.demo-intro{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;margin-bottom:34px}
.demo-intro h1{margin:0;color:var(--navy);font-size:clamp(2.7rem,5vw,4.6rem);letter-spacing:-.05em;line-height:1}
.demo-intro p{color:var(--muted);margin:16px 0 0;max-width:720px}
.privacy-chip{display:flex;align-items:center;gap:12px;background:#ecfaf5;border:1px solid #caeadd;border-radius:17px;padding:14px 16px}
.privacy-chip>span{color:var(--green);font-size:.8rem}
.privacy-chip strong{display:block;font-size:.85rem;color:#165f4a}
.privacy-chip small{display:block;color:#527369;margin-top:2px;max-width:300px}
.demo-workspace,.demo-results{background:#fff;border:1px solid #dfe5ec;border-radius:24px;padding:28px;margin-top:17px}
.demo-step-title{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}
.demo-step-title>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:var(--navy);color:#fff;font-weight:850}
.demo-step-title h2{margin:0;color:var(--navy);font-size:1.35rem}
.demo-step-title p{margin:4px 0 0;color:var(--muted);font-size:.87rem}

.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.upload-card{min-height:260px;border:1px dashed #bdc8d4;border-radius:20px;padding:24px;text-align:center;background:#fbfcfd;transition:border-color .2s ease,background .2s ease,transform .2s ease}
.upload-card.is-drag{border-color:var(--cyan);background:#f0fbfd;transform:translateY(-2px)}
.upload-card.is-loaded{border-style:solid;border-color:#b9dfd2;background:#f9fffc}
.upload-label{font-size:.65rem;font-weight:850;letter-spacing:.13em;color:#7b8795}
.upload-icon{margin:17px auto 13px;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#edf3ff;color:var(--blue);font-weight:900}
.upload-card h3{margin:0 0 5px;color:var(--navy);font-size:1rem}
.upload-card p{margin:0 0 19px;color:var(--muted);font-size:.8rem}
.file-button{cursor:pointer;width:auto;min-height:43px}
.sheet-choice{display:block;margin:16px auto 0;text-align:left;max-width:340px}
.sheet-choice span{display:block;font-size:.69rem;font-weight:800;color:#5b6776;margin-bottom:5px}
.sheet-choice select{width:100%;height:40px;border:1px solid #ccd6df;border-radius:10px;background:#fff;padding:0 10px}
.sample-row{margin-top:14px;padding:17px 18px;border-radius:16px;background:#f4f7fa;display:flex;align-items:center;justify-content:space-between;gap:20px}
.sample-row strong{display:block;color:var(--navy);font-size:.88rem}
.sample-row span{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
.sample-row .button{width:auto;min-height:42px}
.xlsx-status{margin:12px 3px 0;color:#758191;font-size:.74rem}

.key-pairs{display:grid;gap:10px}
.key-pair{display:grid;grid-template-columns:130px 1fr 1fr;gap:14px;align-items:end;padding:14px 15px;background:#f8fafc;border:1px solid #e3e8ee;border-radius:15px}
.key-pair>b{align-self:center;color:var(--navy);font-size:.82rem}
.key-pair>b small{display:block;color:#8a94a1;font-weight:600;margin-top:2px}
.key-pair label span{display:block;font-size:.7rem;font-weight:800;color:#5b6776;margin-bottom:5px}
.key-pair select{width:100%;height:43px;border:1px solid #cfd7e1;border-radius:10px;background:#fff;padding:0 10px;color:var(--navy)}
.key-pair select:disabled{background:#f1f3f5;color:#9aa3ae}

.normalization-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.check-control{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #e0e6ec;border-radius:14px;background:#fafbfd;cursor:pointer}
.check-control input{margin-top:3px}
.check-control b{display:block;color:var(--navy);font-size:.78rem}
.check-control small{display:block;color:#788493;font-size:.69rem;margin-top:3px;line-height:1.35}

.column-selector{margin-top:20px;border:1px solid #e0e6ec;border-radius:17px;overflow:hidden}
.column-selector-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:16px 18px;background:#f7f9fb;border-bottom:1px solid #e0e6ec}
.column-selector-head h3{margin:0;color:var(--navy);font-size:.95rem}
.column-selector-head p{margin:3px 0 0;color:var(--muted);font-size:.73rem}
.column-actions{display:flex;gap:6px}
.column-actions button{border:1px solid #cad4df;background:#fff;border-radius:999px;padding:6px 10px;font-size:.68rem;font-weight:800;color:#536071;cursor:pointer}
.column-checks{display:flex;flex-wrap:wrap;gap:8px;padding:16px}
.column-check{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #d9e1e8;border-radius:999px;background:#fff;font-size:.72rem;color:#4d5968;cursor:pointer}
.empty-columns{font-size:.78rem;color:#8993a0}

.compare-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.compare-actions .button{width:auto}
.demo-error{padding:12px 14px;border-radius:12px;background:#fff1f1;color:#9b2424;border:1px solid #f1c8c8;margin:15px 0 0;font-size:.85rem}

.result-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}
.result-metrics article{padding:17px;border-radius:15px;background:#f6f8fa}
.result-metrics strong{display:block;color:var(--blue);font-size:1.45rem;line-height:1}
.result-metrics span{display:block;color:#687486;font-size:.73rem;margin-top:6px}
.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 15px}
.filter-pills{display:flex;gap:6px;flex-wrap:wrap}
.filter-pills button{border:1px solid #d7dee6;background:#fff;color:#5b6675;border-radius:999px;padding:7px 10px;font:inherit;font-size:.72rem;font-weight:750;cursor:pointer}
.filter-pills button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.export-button{width:auto;min-height:43px;white-space:nowrap}
.result-table-wrap{overflow:auto;border:1px solid #e1e6ec;border-radius:15px}
.result-table{width:100%;border-collapse:collapse;min-width:1150px;font-size:.76rem}
.result-table th{position:sticky;top:0;background:#f4f6f8;color:#596575;text-align:left;padding:11px;border-bottom:1px solid #dfe5ec;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase}
.result-table td{padding:11px;border-bottom:1px solid #edf0f3;vertical-align:top;color:#435064}
.result-table tr:last-child td{border-bottom:0}
.status-pill{display:inline-flex;border-radius:999px;padding:5px 7px;font-size:.62rem;font-weight:850;letter-spacing:.06em;white-space:nowrap}
.status-COINCIDE{background:#e9f8f2;color:#087b59}
.status-CAMBIO{background:#fff4d9;color:#87620b}
.status-SOLO_A,.status-SOLO_B{background:#edf3ff;color:#2a4e9a}
.status-DUPLICADO{background:#ffeded;color:#9a2d2d}
.cell-preview{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-cell{max-width:340px;white-space:normal;line-height:1.4}
.table-note{font-size:.72rem;color:#7c8794;margin:10px 3px 0}
.demo-limit{margin-top:18px;padding:20px 22px;border-left:3px solid var(--cyan);background:#eef7fa;border-radius:0 15px 15px 0}
.demo-limit strong{font-size:.74rem;letter-spacing:.1em;color:var(--blue)}
.demo-limit p{margin:5px 0 0;color:#586676;font-size:.82rem}

@media(max-width:900px){
  .normalization-grid{grid-template-columns:1fr 1fr}
  .key-pair{grid-template-columns:1fr 1fr}
  .key-pair>b{grid-column:1/-1}
}
@media(max-width:780px){
  .demo-intro{grid-template-columns:1fr}
  .upload-grid{grid-template-columns:1fr}
  .result-metrics{grid-template-columns:repeat(2,1fr)}
  .result-toolbar{align-items:stretch;flex-direction:column}
  .export-button{width:100%}
  .sample-row{align-items:stretch;flex-direction:column}
  .sample-row .button{width:100%}
  .demo-header-actions a{display:none}
  .brand-name{font-size:.76rem}
  .column-selector-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .normalization-grid,.key-pair{grid-template-columns:1fr}
}


/* V1.4.0 — mapeo A↔B y prevuelo */
.preflight-panel{margin-top:20px;border:1px solid #dce4eb;border-radius:17px;overflow:hidden}
.preflight-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid #e1e7ed}
.preflight-head h3{margin:0;color:var(--navy);font-size:.95rem}
.preflight-head p{margin:3px 0 0;color:var(--muted);font-size:.73rem}
.preflight-state{font-size:.67rem;font-weight:850;letter-spacing:.08em;border-radius:999px;padding:6px 9px;background:#edf1f5;color:#6c7785}
.preflight-state.good{background:#e9f8f2;color:#087a59}
.preflight-state.warn{background:#fff4d9;color:#87620b}
.preflight-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e5eaf0}
.preflight-metrics div{background:#fff;padding:15px 17px}
.preflight-metrics span{display:block;color:#788493;font-size:.68rem}
.preflight-metrics strong{display:block;color:var(--navy);font-size:1.15rem;margin-top:4px}

.mapping-list{display:grid;gap:8px;padding:16px}
.mapping-row{display:grid;grid-template-columns:1fr 38px 1fr 42px;gap:9px;align-items:center}
.mapping-row select{height:42px;border:1px solid #cfd7e1;border-radius:10px;background:#fff;padding:0 10px;color:var(--navy);min-width:0}
.mapping-arrow{text-align:center;color:var(--blue);font-weight:900}
.mapping-remove{width:36px;height:36px;border-radius:10px;border:1px solid #d9e0e7;background:#fff;color:#7c8794;font-weight:900;cursor:pointer}
.mapping-remove:hover{color:#9a2d2d;border-color:#e7c3c3}
.mapping-note{margin:0;padding:0 16px 15px;color:#7b8694;font-size:.7rem}

@media(max-width:760px){
  .preflight-metrics{grid-template-columns:1fr 1fr}
  .mapping-row{grid-template-columns:1fr 28px 1fr 36px}
}
@media(max-width:520px){
  .preflight-head{align-items:flex-start;flex-direction:column}
  .mapping-row{grid-template-columns:1fr 28px 1fr}
  .mapping-remove{grid-column:1/-1;width:100%}
}


/* V1.5.0 — perfiles, búsqueda y reporte */
.profiles-panel{margin-top:20px;border:1px solid #dce4eb;border-radius:17px;overflow:hidden;background:#fff}
.profiles-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#f8fafc;border-bottom:1px solid #e1e7ed}
.profiles-head h3{margin:0;color:var(--navy);font-size:.95rem}
.profiles-head p{margin:3px 0 0;color:var(--muted);font-size:.73rem}
.profile-local-badge{font-size:.62rem;font-weight:850;letter-spacing:.1em;border-radius:999px;padding:6px 9px;background:#edf3ff;color:#2a4e9a}
.profiles-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto auto;gap:8px;align-items:end;padding:16px 18px 8px}
.profile-select-wrap span,.profile-save-row label span{display:block;font-size:.69rem;font-weight:800;color:#5b6776;margin-bottom:5px}
.profile-select-wrap select,.profile-save-row input{width:100%;height:42px;border:1px solid #cfd7e1;border-radius:10px;background:#fff;padding:0 10px;color:var(--navy);font:inherit}
.profile-btn{height:42px;border:1px solid #cfd7e1;border-radius:10px;background:#fff;padding:0 12px;color:#4f5c6d;font-weight:750;font-size:.72rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.profile-btn:hover{border-color:#aeb9c5;color:var(--navy)}
.profile-danger:hover{border-color:#e3bcbc;color:#9a2d2d}
.profile-import{cursor:pointer}
.profile-save-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;padding:8px 18px 12px}
.profile-save-row .button{width:auto;min-height:42px}
.profile-message{min-height:18px;margin:0;padding:0 18px 15px;color:#687486;font-size:.72rem}
.profile-message.good{color:#087a59}.profile-message.warn{color:#94680b}.profile-message.bad{color:#9a2d2d}

.executive-summary{margin:18px 0;border:1px solid #dce4eb;border-radius:18px;overflow:hidden;background:#fff}
.executive-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px;background:linear-gradient(135deg,#f7f9fc,#eef5fa)}
.executive-kicker{display:block;color:var(--blue);font-size:.62rem;font-weight:850;letter-spacing:.12em}
.executive-head h3{margin:5px 0 3px;color:var(--navy);font-size:1.15rem}
.executive-head p{margin:0;color:#6f7b8b;font-size:.75rem}
.executive-actions{display:flex;gap:7px;flex-wrap:wrap}
.executive-actions button{border:1px solid #cbd5df;background:#fff;border-radius:10px;padding:8px 11px;color:#4f5c6d;font-size:.7rem;font-weight:800;cursor:pointer}
.executive-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e5eaf0}
.executive-grid div{background:#fff;padding:15px 18px}
.executive-grid span{display:block;color:#788493;font-size:.68rem}
.executive-grid strong{display:block;color:var(--blue);font-size:1.2rem;margin-top:4px}

.result-search{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:16px 0}
.result-search label{flex:1;max-width:620px}
.result-search label span{display:block;color:#5b6776;font-size:.69rem;font-weight:800;margin-bottom:5px}
.result-search input{width:100%;height:42px;border:1px solid #cfd7e1;border-radius:11px;padding:0 12px;font:inherit;color:var(--navy);background:#fff}
.result-search>span{color:#7a8593;font-size:.72rem;padding-bottom:10px}

@media(max-width:900px){
  .profiles-controls{grid-template-columns:1fr 1fr 1fr}
  .profile-select-wrap{grid-column:1/-1}
  .executive-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .profiles-head,.executive-head{align-items:flex-start;flex-direction:column}
  .profiles-controls{grid-template-columns:1fr 1fr}
  .profile-save-row{grid-template-columns:1fr}
  .profile-save-row .button{width:100%}
  .result-search{align-items:stretch;flex-direction:column}
  .result-search label{max-width:none}
}
@media print{
  .demo-header,.demo-intro,.demo-workspace,.result-toolbar,.result-search,.demo-limit,.table-note{display:none!important}
  .demo-body,.demo-main{background:#fff!important;padding:0!important}
  .demo-results{border:0!important;margin:0!important;padding:0!important}
  .result-table-wrap{overflow:visible!important;border:1px solid #ddd!important}
  .result-table{min-width:0!important;font-size:9px!important}
  .executive-summary{break-inside:avoid}
}


.smart-intake-panel{
  width:100%;
  display:grid;
  gap:8px;
  margin-top:14px;
  padding:12px;
  border:1px solid #cfe0eb;
  border-radius:12px;
  background:#f8fbfd;
  text-align:left;
}
.smart-intake-panel[hidden]{display:none}
.smart-intake-kicker{
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.12em;
  color:#1E3A8A;
}
.smart-intake-panel strong{font-size:.78rem;color:#0D1B2A}
.smart-intake-panel select,
.smart-intake-panel input{
  width:100%;
  min-height:36px;
  border:1px solid #cbd7e2;
  border-radius:9px;
  background:#fff;
  padding:7px 9px;
  font:inherit;
}
.smart-intake-manual{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:end;
}
.smart-intake-manual label{font-size:.68rem;color:#667085;font-weight:700}
.smart-intake-manual button{
  min-height:36px;
  border:1px solid #cbd7e2;
  border-radius:9px;
  background:#fff;
  color:#0D1B2A;
  padding:7px 10px;
  font-weight:800;
  cursor:pointer;
}
@media(max-width:650px){.smart-intake-manual{grid-template-columns:1fr}}

.smart-mapping-panel{border:1px solid #cbd9e6;background:#f8fbfd;border-radius:16px;padding:14px;margin:12px 0}
.smart-mapping-head{display:flex;justify-content:space-between;gap:14px;align-items:center}
.smart-mapping-head>div{display:grid;gap:4px}.smart-mapping-head span{font-size:.66rem;font-weight:900;letter-spacing:.14em;color:#1E3A8A}
.smart-mapping-head strong{font-size:.8rem;color:#0D1B2A}.smart-mapping-head button{border:1px solid #1E3A8A;background:#fff;color:#1E3A8A;border-radius:10px;padding:9px 12px;font-weight:850;cursor:pointer}
.smart-mapping-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.smart-mapping-pairs>span{display:flex;align-items:center;gap:5px;flex-wrap:wrap;background:#fff;border:1px solid #e1e8ef;border-radius:9px;padding:8px 9px;font-size:.72rem}
.smart-mapping-pairs small{margin-left:auto;color:#667085}.smart-mapping-warning{background:#fff4dc;color:#805f12;border-radius:9px;padding:9px;margin:9px 0 0;font-size:.7rem;font-weight:700}
.smart-map-empty{color:#667085}
@media(max-width:760px){.smart-mapping-head{align-items:flex-start;flex-direction:column}.smart-mapping-pairs{grid-template-columns:1fr}}
