*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0F2040;
  --navy-mid: #1A3260;
  --navy-light: #253F78;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --cream: #F8F9FC;
  --cream-dark: #EEF0F6;
  --green: #2E7D5E;
  --green-light: #D4EDE5;
  --red: #C0392B;
  --red-light: #FADBD8;
  --amber: #7B3F00;
  --amber-light: #FEF3E2;
  --text-dark: #0F2040;
  --text-mid: #4A5568;
  --text-light: #8896B0;
  --border: #D4DAE8;
  --shadow: 0 4px 24px rgba(15,32,64,0.10);
  --shadow-lg: 0 8px 40px rgba(15,32,64,0.18);
}

body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text-dark); min-height: 100vh; }

/* ── LOGIN SCREEN ── */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4080 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card { background: #fff; border-radius: 18px; padding: 40px 36px; max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.login-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-logo-icon { width: 40px; height: 40px; background: var(--gold); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.login-logo-text { font-family: 'IBM Plex Serif', serif; font-size: 18px; font-weight: 700; color: var(--navy); }
.login-logo-text span { color: var(--gold); }
.login-subtitle { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.login-field label { font-size: 11px; font-weight: 600; color: var(--text-mid); }
.login-input { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--navy); background: var(--cream); border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 13px; outline: none; width: 100%; }
.login-error { background: var(--red-light); border: 1px solid rgba(192,57,43,0.25); border-radius: 8px; padding: 9px 12px; font-size: 12px; color: var(--red); margin-bottom: 14px; }
.login-btn { width: 100%; padding: 13px; background: var(--navy); color: #fff; border: none; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; }

/* ── HEADER ── */
header {
  background: var(--navy);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 34px; height: 34px; background: var(--gold); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.logo-text { font-family: 'IBM Plex Serif', serif; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.logo-text span { color: var(--gold); }
.header-right { display: flex; align-items: center; gap: 12px; }
.badge-pro { background: linear-gradient(135deg, var(--gold), #e8b84b); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.header-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.header-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.header-btn.active { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.4); color: var(--gold-light); }

/* ── TABS (main views) ── */
.view { display: none; }
.view.active { display: block; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1e4080 100%);
  padding: 44px 40px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -60px; left: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(46,125,94,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-eyebrow { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding: 4px 14px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25); border-radius: 20px; }
.hero h1 { font-family: 'IBM Plex Serif', serif; color: #fff; font-size: clamp(24px,3.5vw,40px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 480px; margin: 0 auto; line-height: 1.65; }

/* ── MAIN LAYOUT ── */
.app-layout { max-width: 1440px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 76px minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }

/* ── BARRA LATERAL (secciones del formulario) ── */
.side-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; background: var(--navy); border-radius: 16px; padding: 10px 8px; box-shadow: var(--shadow); }
.side-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: none; border-radius: 10px; background: transparent; color: rgba(255,255,255,0.62); font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.side-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.side-btn.active { background: rgba(201,168,76,0.18); color: var(--gold-light); }
.side-badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: var(--navy); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.side-badge:empty { display: none; }
.side-badge.ok { background: var(--green); color: #fff; }
.pane { display: none; }
.pane.active { display: block; animation: paneIn 0.18s ease-out; }
@keyframes paneIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.action-panel { margin-top: 16px; }
.account-add-row .span2 { grid-column: span 2; }
#pane-adjuntos .btn-add-account { margin-bottom: 10px; }
.inquiry-warning { background: var(--red-light); color: var(--red); font-size: 12px; font-weight: 600; padding: 9px 22px; border-bottom: 1px solid rgba(192,57,43,0.25); }

/* ── PANEL ── */
.panel { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { padding: 18px 22px 14px; border-bottom: 1px solid var(--cream-dark); display: flex; align-items: center; gap: 10px; }
.panel-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.panel-icon.blue { background: #EBF0FC; }
.panel-icon.gold { background: rgba(201,168,76,0.12); }
.panel-icon.green { background: var(--green-light); }
.panel-header-text h2 { font-family: 'IBM Plex Serif', serif; font-size: 15px; font-weight: 600; color: var(--navy); }
.panel-header-text p { font-size: 11px; color: var(--text-light); margin-top: 1px; }
.panel-body { padding: 22px; }

/* ── FORM SECTIONS ── */
.form-section { margin-bottom: 20px; }
.section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-light); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--cream-dark); display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; width: 3px; height: 11px; background: var(--gold); border-radius: 2px; display: inline-block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.span2 { grid-column: span 2; }
label { font-size: 11px; font-weight: 600; color: var(--text-mid); letter-spacing: 0.3px; }
label .req { color: var(--red); margin-left: 2px; }
input, select, textarea {
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-dark);
  background: var(--cream); border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 11px; transition: border-color 0.15s, box-shadow 0.15s; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-light); background: #fff; box-shadow: 0 0 0 3px rgba(37,63,120,0.1); }
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238896B0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.form-section.spaced { margin-top: 18px; }
.section-hint { font-size: 11px; color: var(--text-light); margin-bottom: 10px; }
.field-hint { font-size: 9px; color: var(--text-light); }
.label-note { font-weight: 400; color: var(--text-light); font-size: 10px; }
.panel-spacer { margin-bottom: 20px; }
.saved-client-box { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.saved-client-box label { display: block; margin-bottom: 6px; }
.saved-client-box .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saved-client-box select { flex: 1; min-width: 180px; }
#state { text-transform: uppercase; }
.bureau-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
#personality-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
#letter-format-grid, #font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#dispute-round { width: auto; min-width: 160px; }

/* ── ACCOUNTS (multi-account) ── */
.accounts-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.account-card {
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--cream);
  overflow: hidden; transition: border-color 0.15s;
}
.account-card.active { border-color: var(--navy-light); background: #fff; box-shadow: 0 2px 12px rgba(15,32,64,0.08); }
.account-card-header {
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.account-card-title { display: flex; align-items: center; gap: 8px; }
.account-num-badge { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.account-name-preview { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.account-methods-preview { font-size: 10px; color: var(--text-light); margin-top: 1px; font-family: 'IBM Plex Mono', monospace; }
.account-card-actions { display: flex; gap: 6px; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 3px 5px; border-radius: 5px; transition: background 0.12s; line-height: 1; }
.btn-icon:hover { background: var(--cream-dark); }
.account-card-body { padding: 0 14px 14px; display: none; }
.account-card.active .account-card-body { display: block; }

/* ── METHODS (multi-select per account) ── */
.method-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.mtt { padding: 8px 4px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--cream); cursor: pointer; text-align: center; transition: all 0.15s; }
.mtt .mtt-icon { font-size: 15px; display: block; margin-bottom: 2px; }
.mtt .mtt-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mtt:hover { border-color: var(--navy-light); background: #fff; }
.mtt.active-letter { border-color: var(--navy); background: #EBF0FC; color: var(--navy); }
.mtt.active-ftc { border-color: var(--amber); background: var(--amber-light); color: var(--amber); }
.mtt.active-cfpb { border-color: var(--green); background: var(--green-light); color: var(--green); }

.method-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.method-chk {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--cream);
  cursor: pointer; transition: all 0.12s; user-select: none;
}
.method-chk:hover { border-color: var(--navy-light); background: #fff; }
.method-chk.checked { border-color: var(--navy); background: #EBF0FC; }
.method-chk input[type="checkbox"] { display: none; }
.method-chk-dot { width: 15px; height: 15px; border: 1.5px solid var(--border); border-radius: 4px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all 0.12s; }
.method-chk.checked .method-chk-dot { background: var(--navy); border-color: var(--navy); }
.method-chk.checked .method-chk-dot::after { content: '✓'; color: #fff; font-size: 9px; font-weight: 700; }
.method-chk-text .code { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-light); display: block; margin-bottom: 1px; }
.method-chk.checked .method-chk-text .code { color: var(--navy); }
.method-chk-text .name { font-size: 11px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.method-chk-text .desc { font-size: 10px; color: var(--text-light); line-height: 1.3; }

.btn-add-account {
  width: 100%; padding: 10px; border: 1.5px dashed var(--border); background: transparent;
  border-radius: 10px; color: var(--text-light); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; display: flex;
  align-items: center; justify-content: center; gap: 6px;
}
.btn-add-account:hover { border-color: var(--navy-light); color: var(--navy); background: #EBF0FC; }

.account-add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-divider-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--cream-dark); }
.panel-divider-section .btn-add-account { margin-bottom: 10px; }
.draft-row { display: flex; gap: 8px; margin-bottom: 10px; }
.draft-row > :first-child { flex: 1; justify-content: center; }
.draft-row select { flex: 1; }

/* ── BUREAU CHECKBOXES ── */
.bureau-chk {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text-dark); transition: all 0.15s;
  user-select: none;
}
.bureau-chk:hover { border-color: var(--navy-light); background: #EBF0FC; }
.bureau-dot {
  width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s;
  flex-shrink: 0;
}
.bureau-chk.checked { border-color: var(--navy); background: #EBF0FC; }
.bureau-chk.checked .bureau-dot { background: var(--navy); border-color: var(--navy); }
.bureau-chk.checked .bureau-dot::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }


/* ── GENERATE BUTTON ── */
.btn-generate {
  width: 100%; padding: 14px; background: var(--navy); color: #fff; border: none;
  border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
  gap: 8px; letter-spacing: 0.3px; margin-top: 6px;
}
.btn-generate:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,32,64,0.25); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn-generate.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── OUTPUT PANEL ── */
.output-panel { position: sticky; top: 82px; }
.output-placeholder { padding: 56px 22px; text-align: center; }
.output-placeholder .ph-icon { font-size: 46px; opacity: 0.35; margin-bottom: 14px; }
.output-placeholder h3 { font-family: 'IBM Plex Serif', serif; font-size: 17px; color: var(--text-mid); margin-bottom: 6px; }
.output-placeholder p { font-size: 12px; color: var(--text-light); max-width: 240px; margin: 0 auto; line-height: 1.6; }
#loading-msg { padding: 20px 22px; text-align: center; color: var(--text-light); font-size: 13px; }

/* Progress bar */
.progress-bar { height: 3px; background: var(--cream-dark); position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); width: 0%; animation: progress-anim 2.5s ease-in-out infinite; }
@keyframes progress-anim { 0% { width: 0%; margin-left: 0; } 50% { width: 70%; margin-left: 0; } 100% { width: 0%; margin-left: 100%; } }

/* Documents tabs (when multiple accounts) */
.doc-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--cream); scrollbar-width: none; }
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tab { padding: 10px 18px; font-size: 12px; font-weight: 600; color: var(--text-light); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.15s; flex-shrink: 0; }
.doc-tab:hover { color: var(--text-dark); }
.doc-tab.active { color: var(--navy); border-bottom-color: var(--navy); background: #fff; }

.doc-meta { padding: 12px 22px; background: var(--cream); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.doc-meta-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.doc-badge.letter { background: #EBF0FC; color: var(--navy); }
.doc-badge.ftc { background: var(--amber-light); color: var(--amber); }
.doc-badge.cfpb { background: var(--green-light); color: var(--green); }
.doc-method { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-light); background: #fff; border: 1px solid var(--border); padding: 2px 7px; border-radius: 4px; }

.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-action {
  padding: 6px 12px; border-radius: 7px; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.13s; display: flex; align-items: center; gap: 4px;
  font-family: 'Inter', sans-serif;
}
.btn-action.outline { background: #fff; border: 1.5px solid var(--border); color: var(--text-mid); }
.btn-action.outline:hover { border-color: var(--navy-light); color: var(--navy); }
.btn-action.solid { background: var(--navy); border: 1.5px solid var(--navy); color: #fff; }
.btn-action.solid:hover { background: var(--navy-mid); }
.btn-action.gold { background: var(--gold); border: 1.5px solid var(--gold); color: var(--navy); }
.btn-action.gold:hover { background: var(--gold-light); }
.btn-action.green { background: var(--green); border: 1.5px solid var(--green); color: #fff; }
.btn-action.green:hover { background: #236649; }
.btn-action.sm { font-size: 12px; }

.doc-content { padding: 24px; max-height: 520px; overflow-y: auto; }
.doc-content-text { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.75; color: var(--text-dark); white-space: pre-wrap; }
.doc-content-text.streaming::after { content: '▋'; animation: blink 0.7s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.char-count { padding: 10px 22px; background: var(--cream); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mid); }
.cc-num.ok { color: var(--green); font-weight: 700; }
.cc-num.over { color: var(--red); font-weight: 700; }

.error-msg { margin: 14px 22px; padding: 10px 14px; background: var(--red-light); border: 1px solid rgba(192,57,43,0.25); border-radius: 8px; color: var(--red); font-size: 12px; display: flex; gap: 8px; align-items: flex-start; }

/* ── USERS VIEW ── */
.users-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.users-table th, .users-table td { padding: 12px 16px; text-align: left; font-size: 13px; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.users-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); background: var(--cream); }
.users-table tr:last-child td { border-bottom: none; }
.users-table select { font-size: 13px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; }

/* ── HISTORY VIEW ── */
.history-view { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.history-header h2 { font-family: 'IBM Plex Serif', serif; font-size: 22px; color: var(--navy); }
.history-empty { text-align: center; padding: 80px 24px; color: var(--text-light); }
.history-empty .he-icon { font-size: 48px; opacity: 0.3; margin-bottom: 14px; }
.history-empty h3 { font-size: 17px; color: var(--text-mid); margin-bottom: 6px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.history-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: all 0.15s;
}
.history-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.hc-name { font-family: 'IBM Plex Serif', serif; font-size: 15px; font-weight: 600; color: var(--navy); }
.hc-date { font-size: 11px; color: var(--text-light); }
.hc-methods { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.hc-method-badge { font-size: 9px; font-family: 'IBM Plex Mono', monospace; font-weight: 500; padding: 2px 7px; border-radius: 20px; }
.hc-method-badge.letter { background: #EBF0FC; color: var(--navy); }
.hc-method-badge.ftc { background: var(--amber-light); color: var(--amber); }
.hc-method-badge.cfpb { background: var(--green-light); color: var(--green); }
.hc-bureau { font-size: 12px; color: var(--text-mid); }
.hc-accounts { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.hc-actions { display: flex; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cream-dark); }

.hidden { display: none !important; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,32,64,0.65); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 16px; max-width: 740px; width: 100%; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-family: 'IBM Plex Serif', serif; font-size: 17px; color: var(--navy); }
.modal-body { overflow-y: auto; flex: 1; padding: 0; }
.modal-doc-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--cream); overflow-x: auto; }
.modal-doc-content { padding: 24px; }
.modal-doc-text { font-size: 13px; line-height: 1.75; white-space: pre-wrap; color: var(--text-dark); }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { font-size: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: minmax(0,1fr); }
  .side-nav { flex-direction: row; justify-content: space-around; position: static; } /* fija taparía los documentos generados */
  .side-btn { flex: 1; }
  .output-panel { position: static; }
  .method-checkboxes { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-layout { padding: 16px 12px 60px; }
  header { padding: 0 12px; }
  .badge-pro { display: none; }
  .logo-text { font-size: 14px; }
  .header-right { gap: 6px; }
  .header-btn { padding: 6px 8px; font-size: 11px; }
  .bureau-chk { padding-left: 6px; padding-right: 6px; font-size: 11px; min-width: 0; }
  .doc-actions { flex-direction: column; }
  .method-type-tabs { grid-template-columns: repeat(3, 1fr); }
}
