@font-face { font-family: Outfit; src: url("/static/fonts/Outfit-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Urbanist; src: url("/static/fonts/Urbanist-Variable.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }

/* ============ Tokens ============ */
:root {
  color-scheme: light;
  --teal: #076858;
  --teal-600: #0a7d6a;
  --teal-900: #062d30;
  --teal-950: #041f22;
  --yellow: #ffd833;
  --red: #fc3a3a;
  --blue: #007ed3;
  --ink: #14211e;
  --ink-2: #3a4a45;
  --muted: #667771;
  --line: #e2e9e4;
  --line-2: #d3ddd7;
  --canvas: #f3f6f4;
  --paper: #ffffff;
  --mint: #e6f2ed;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px #0b1f1a0d, 0 1px 1px #0b1f1a08;
  --shadow: 0 1px 2px #0b1f1a0a, 0 8px 28px -8px #0b1f1a1f;
  --sidebar-w: 272px;
  --font-body: Urbanist, "Segoe UI", Arial, sans-serif;
  --font-head: Outfit, Urbanist, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, white); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ App shell ============ */
.app-main { min-height: 100vh; display: flex; flex-direction: column; }
.sidebar {
  position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(var(--sidebar-w), 88vw);
  display: flex; flex-direction: column; padding: 22px 16px 16px; overflow-y: auto;
  background: radial-gradient(120% 60% at 0% 0%, #0b4b46 0%, transparent 60%), linear-gradient(180deg, var(--teal-900), var(--teal-950));
  color: #e9f3ef; border-right: 1px solid #ffffff10;
  transform: translateX(-102%); transition: transform .25s cubic-bezier(.3,.7,.2,1);
}
.sidebar.is-open { transform: none; box-shadow: 24px 0 60px #020f1566; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 20px; }
.sidebar-brand { display: block; }
.sidebar-brand img { display: block; width: 156px; height: auto; }
.sidebar-close { position: relative; width: 38px; height: 38px; border: 1px solid #ffffff2a; border-radius: 10px; background: #ffffff0d; cursor: pointer; }
.sidebar-close span { position: absolute; top: 18px; left: 10px; width: 16px; height: 2px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.sidebar-close span + span { transform: rotate(-45deg); }
.nav-label { margin: 6px 12px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8db8ae; }
.nav-label-2 { margin-top: 20px; }
.nav { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 12px; border-radius: 12px; color: #d4e5df; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.nav-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: #ffffff0f; color: #fff; transition: background .15s, color .15s; }
.nav-link[data-accent="yellow"]:hover .nav-ico, .nav-link[data-accent="yellow"][aria-current] .nav-ico { background: var(--yellow); color: #3b3000; }
.nav-link[data-accent="blue"]:hover .nav-ico, .nav-link[data-accent="blue"][aria-current] .nav-ico { background: var(--blue); color: #fff; }
.nav-link[data-accent="red"]:hover .nav-ico, .nav-link[data-accent="red"][aria-current] .nav-ico { background: var(--red); color: #fff; }
.nav-link[data-accent="green"]:hover .nav-ico, .nav-link[data-accent="green"][aria-current] .nav-ico { background: #17a48c; color: #fff; }
.nav-link:hover { background: #ffffff0d; color: #fff; }
.nav-link[aria-current="page"] { background: #ffffff17; color: #fff; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yellow); }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: #ffffff0d; border: 1px solid #ffffff12; }
.sidebar-user form { margin: 0 0 0 auto; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), #ffb800); color: #3b3000; font: 700 13px var(--font-head); }
.user-text { display: grid; min-width: 0; line-height: 1.25; }
.user-text strong { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { font-size: 12px; color: #8db8ae; }
.logout { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #c9ddd6; cursor: pointer; transition: background .15s, color .15s; }
.logout:hover { background: #fc3a3a33; color: #ffd6d6; }
.scrim { position: fixed; z-index: 40; inset: 0; background: #04161ab3; backdrop-filter: blur(2px); }
.menu-open { overflow: hidden; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(16px, 4vw, 40px); background: #f3f6f4e6; backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.topbar-logo { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.crumbs b { color: var(--ink); font-weight: 700; }
.crumbs i { font-style: normal; opacity: .5; }
.topbar-spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--teal); font-size: 12.5px; font-weight: 700; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fbf8f; box-shadow: 0 0 0 3px #1fbf8f33; }

.page { width: min(1120px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 40px) 60px; flex: 1; }
.page-narrow { width: min(980px, 100%); }
.page-foot { padding: 18px clamp(16px, 4vw, 40px) 28px; color: #8a9892; font-size: 12.5px; text-align: center; }

@media (min-width: 960px) {
  .app-main { margin-left: var(--sidebar-w); }
  .sidebar { transform: none; box-shadow: none; }
  .sidebar-close, .menu-toggle, .scrim { display: none !important; }
}

/* ============ Elementos comunes ============ */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--yellow); }
.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.page-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; box-shadow: var(--shadow-sm); }
.page-icon .ico { width: 28px; height: 28px; }
.page-icon.yellow { background: var(--yellow); color: #3b3000; }
.page-icon.blue { background: var(--blue); color: #fff; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 8px; }
.page-head p { max-width: 62ch; color: var(--muted); font-size: 16px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card-head h2 { font-size: 20px; }
.step-count { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; font: 700 14.5px var(--font-body); cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 #ffffff26 inset, 0 6px 16px -6px #076858aa; }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); box-shadow: 0 1px 0 #ffffff26 inset, 0 10px 22px -8px #076858cc; }
.btn-primary:disabled { background: #b5c4be; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-yellow { background: var(--yellow); color: #3b3000; box-shadow: 0 6px 16px -8px #c99f00; }
.btn-yellow:hover { background: #ffe263; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--canvas); }
.btn .ico { width: 18px; height: 18px; }

.note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--mint); border: 1px solid #cfe5dc; color: #2c5a4e; font-size: 13.5px; line-height: 1.5; }
.note .ico { margin-top: 1px; color: var(--teal); }
.status { font-size: 14px; color: var(--ink-2); }
.status-box { display: none; margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.status-box.show { display: block; }
.status-box.info { background: #eaf2fb; color: #1b4f80; }
.status-box.error { background: #fdeceb; color: #922b24; }
.status-box.success { background: #e3f4ea; color: #17613f; }

/* ============ Inicio ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: clamp(28px, 5vw, 60px);
  color: #f3faf7; background: linear-gradient(120deg, #07564a 0%, #073f43 52%, #082c3d 100%);
  box-shadow: 0 24px 50px -24px #052a2e99;
}
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 90% at 88% 10%, #007ed355, transparent 60%), radial-gradient(40% 70% at 10% 110%, #ffd83330, transparent 60%), linear-gradient(#ffffff09 1px, transparent 1px), linear-gradient(90deg, #ffffff09 1px, transparent 1px); background-size: auto, auto, 44px 44px, 44px 44px; mask-image: linear-gradient(100deg, #000 40%, #0008); }
.hero-flags { position: absolute; z-index: -1; right: clamp(-30px, 2vw, 20px); top: 50%; width: clamp(150px, 21vw, 250px); transform: translateY(-50%) rotate(6deg); opacity: .95; filter: drop-shadow(0 20px 30px #0006); }
.hero .eyebrow { color: var(--yellow); }
.hero-copy { max-width: min(540px, 100%); }
.hero h1 { max-width: 11ch; color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 500; letter-spacing: -.035em; margin-bottom: 14px; }
.hero p.lead { max-width: 40ch; color: #c5dad4; font-size: clamp(15px, 1.6vw, 17.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { color: #e6f2ee; border-color: #ffffff3d; }
.hero .btn-ghost:hover { background: #ffffff14; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: clamp(30px, 5vw, 46px) 0 18px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.section-head p { color: var(--muted); font-size: 14px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.tool-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; opacity: .1; background: var(--tone); transition: opacity .2s, transform .3s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); }
.tool-card:hover::after { opacity: .18; transform: scale(1.15); }
.tool-card[data-tone="yellow"] { --tone: #f0bd00; --tone-soft: #fff6cf; --tone-ink: #5b4700; }
.tool-card[data-tone="red"] { --tone: var(--red); --tone-soft: #ffe8e8; --tone-ink: #9b1c1c; }
.tool-card[data-tone="blue"] { --tone: var(--blue); --tone-soft: #e1f0fb; --tone-ink: #0a4f85; }
.tool-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--tone-soft); color: var(--tone-ink); }
.tool-ico .ico { width: 27px; height: 27px; }
.tool-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.tool-card h3 { font-size: 23px; letter-spacing: -.02em; }
.tool-card p.desc { color: var(--muted); font-size: 15px; }
.tool-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.tool-go .ico { width: 18px; height: 18px; transition: transform .2s; }
.tool-card:hover .tool-go .ico { transform: translateX(5px); }
.tool-card.soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; justify-content: center; align-items: center; text-align: center; min-height: 240px; pointer-events: none; }
.tool-card.soon::after { display: none; }
.soon-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px dashed #b5c4be; color: #8a9a94; font-size: 26px; }
.tool-card.soon h3 { font-size: 18px; color: var(--ink-2); }
.tool-card.soon p { color: var(--muted); font-size: 14px; }

/* ============ Rentabilidades ============ */
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 250px; padding: 28px; text-align: center; border: 2px dashed #b9c8c1; border-radius: 16px; background: linear-gradient(180deg, #fbfdfc, #f4f8f6); transition: border-color .18s, background .18s, transform .18s; }
.drop:hover { border-color: var(--teal); }
.drop.drag { border-color: var(--teal); background: #eaf5f0; transform: scale(1.01); }
.drop-ico { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 12px; border-radius: 18px; background: var(--mint); color: var(--teal); }
.drop-ico .ico { width: 30px; height: 30px; }
.drop strong { font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.drop > span { color: var(--muted); font-size: 14px; }
.drop .btn { margin-top: 16px; min-height: 42px; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.picked { display: none; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--mint); border: 1px solid #cfe5dc; overflow-wrap: anywhere; }
.picked.visible { display: flex; }
.picked-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--teal); color: #fff; font: 800 10px var(--font-head); letter-spacing: .04em; }
.picked b { display: block; font-size: 11px; letter-spacing: .1em; color: var(--teal); text-transform: uppercase; }
.picked span#filename { font-weight: 700; font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.actions .btn { min-width: 200px; }
.fine { color: var(--muted); font-size: 13px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: #3b3000; font: 700 15px var(--font-head); position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px); }
.steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.guide .note { margin-top: 22px; }

/* ============ Cruce ============ */
.file-grid, .config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-box { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 176px; padding: 20px; border: 2px dashed #b9c8c1; border-radius: 16px; background: linear-gradient(180deg, #fbfdfc, #f4f8f6); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.file-box:hover, .file-box:focus-within { border-color: var(--teal); background: #f0f8f4; }
.file-box.loaded { border-style: solid; border-color: #7fc2a9; background: #effaf4; }
.file-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 13px; background: var(--mint); color: var(--teal); }
.file-box:nth-child(2) .file-icon { background: #e1f0fb; color: var(--blue); }
.file-label { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.file-hint { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.file-hint b { color: var(--ink-2); }
.file-name { width: 100%; margin-top: auto; padding: 8px 11px; overflow: hidden; border-radius: 9px; background: #ffffffc0; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.section-copy { margin: -6px 0 18px; color: var(--muted); }
.config-side { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.config-side legend { padding: 0 8px; font: 600 15px var(--font-head); }
.config-side label { display: block; min-width: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.config-side select, .config-side input, .field input { display: block; width: 100%; height: 44px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 600 14px var(--font-body); transition: border-color .15s, box-shadow .15s; }
.config-side select:focus, .config-side input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px #07685822; }
.inline-fields { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.stat strong { display: block; font: 600 clamp(26px, 3.4vw, 36px)/1.1 var(--font-head); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat.match { background: #eaf7f0; border-color: #c4e6d4; }
.stat.match strong { color: var(--teal); }
.stat.missing { background: #fff6e3; border-color: #f3e0ae; }
.stat.missing strong { color: #a96a00; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 22px; }
.result-foot p { max-width: 58ch; color: var(--muted); font-size: 14px; }
.rule-note { margin-top: 18px; color: #7d8c86; font-size: 13px; padding-inline: 4px; }

/* ============ Login ============ */
.login-body { background: var(--teal-950); }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.login-form-side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 5vw, 64px); background: var(--paper); }
.login-card { width: min(420px, 100%); margin: 0 auto; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 6vh, 56px); }
.login-logo img { display: block; height: 72px; width: auto; margin-left: -4px; }
.login-card h1 { font-size: clamp(32px, 4vw, 42px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 10px; }
.login-card .sub { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 15px; border-radius: 12px; background: #fdeceb; border: 1px solid #f7cdca; color: #922b24; font-size: 14px; font-weight: 600; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.input-wrap { position: relative; }
.input-wrap > .ico { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #8a9a94; pointer-events: none; transition: color .15s; }
.input-wrap input { width: 100%; height: 52px; margin: 0; padding: 0 48px 0 46px; border: 1.5px solid var(--line-2); border-radius: 13px; background: #fbfcfb; color: var(--ink); font: 600 16px var(--font-body); transition: border-color .15s, box-shadow .15s, background .15s; }
.input-wrap input::placeholder { color: #a3b0ab; font-weight: 500; }
.input-wrap input:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px #07685820; }
.input-wrap:focus-within > .ico { color: var(--teal); }
.reveal { position: absolute; right: 7px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); border: 0; border-radius: 10px; background: transparent; color: #7d8d87; cursor: pointer; }
.reveal:hover { background: var(--canvas); color: var(--ink); }
.reveal .off { display: none; }
.reveal[aria-pressed="true"] .on { display: none; }
.reveal[aria-pressed="true"] .off { display: block; }
.check { display: flex; align-items: center; gap: 10px; margin: 2px 0 24px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.login-card .btn { width: 100%; min-height: 54px; font-size: 16px; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spin { display: block; }
.btn.loading .lbl-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-foot { margin-top: 34px; text-align: center; color: #8a9892; font-size: 13px; }
.login-art { display: none; position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #e9eeec; }
.login-art img.art-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 17% 50%; }
.login-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #04201f00 35%, #04201fd9 100%), linear-gradient(90deg, #04201f55, transparent 40%); }
.art-copy { position: absolute; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 5vh, 56px); }
.art-copy .dots { display: flex; gap: 8px; margin-bottom: 18px; }
.art-copy .dots i { width: 12px; height: 12px; border-radius: 50%; }
.art-copy h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 10px; }
.art-copy p { color: #d3e6e0; max-width: 42ch; font-size: 15.5px; }
@media (min-width: 900px) { .login { grid-template-columns: minmax(420px, 5fr) 6fr; } .login-art { display: block; } }

/* ============ Responsive ============ */
@media (max-width: 959px) { .topbar-logo { display: block; } .topbar-logo img { display: block; height: 40px; width: auto; } .crumbs { display: none; } }
@media (max-width: 820px) { .workspace { grid-template-columns: 1fr; } .guide { order: 2; } .hero-flags { opacity: .22; right: -40px; } }
@media (max-width: 650px) {
  .file-grid, .config-grid { grid-template-columns: 1fr; }
  .page-head { gap: 14px; } .page-icon { width: 46px; height: 46px; border-radius: 13px; } .page-icon .ico { width: 24px; height: 24px; }
  .result-foot { align-items: stretch; flex-direction: column; } .result-foot .btn, .action-row .btn, .actions .btn { width: 100%; }
  .stats { gap: 8px; } .stat { padding: 13px 10px; } .stat span { font-size: 11.5px; }
  .inline-fields { grid-template-columns: 1fr; }
  .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ============ Herramientas en marco (Radar) ============ */
.app-main.is-frame { height: 100vh; height: 100dvh; min-height: 0; }
.tool-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: var(--canvas); }
