:root {
  --bg: #0b1f2a;
  --bg2: #123445;
  --card: #ffffff;
  --ink: #0b1f2a;
  --muted: #5b7180;
  --accent: #16b8a6;
  --accent-ink: #04332e;
  --line: #e3eaef;
  --danger: #e25555;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(4, 28, 40, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 15% -10%, var(--bg2), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, #0e6b63, transparent 55%), var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eafbf8;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
  font-size: 20px;
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-weight: 900;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }

.drop {
  border: 2px dashed #c4d3db;
  border-radius: 14px;
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #f7fafb;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #effbf9; }
.drop .big { font-weight: 600; }
.drop .small { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.drop input { display: none; }

.file-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px;
}
.file-row .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .meta { color: var(--muted); font-size: 12px; }
.file-row .x { margin-left: auto; color: var(--muted); cursor: pointer; border: none; background: none; font-size: 18px; }

.opts { margin-top: 16px; display: grid; gap: 12px; }
label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; }
select, input[type="text"], input[type="password"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; color: var(--ink); background: #fff;
}
select:focus, input:focus { outline: 2px solid #c7efe9; border-color: var(--accent); }

button.primary {
  width: 100%; margin-top: 18px; padding: 13px;
  background: var(--accent); color: #042b27; border: none; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
button.primary:disabled { opacity: .5; cursor: not-allowed; }

.progress { margin-top: 16px; display: none; }
.progress.show { display: block; }
.bar { height: 8px; background: #eef3f5; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.progress .pct { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }

.result { display: none; margin-top: 18px; }
.result.show { display: block; }
.link-box { display: flex; gap: 8px; margin-top: 8px; }
.link-box input { font-size: 13px; }
.link-box button { padding: 0 14px; border: 1px solid var(--line); background: #f4f8f9; border-radius: 10px; cursor: pointer; font-weight: 600; }
.ok { color: #0c8f7f; font-weight: 600; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; }

.foot { color: #9fb6c1; font-size: 12px; margin-top: 18px; text-align: center; }
.foot a { color: #cdeee8; }

/* Página de descarga */
.dl-icon { width: 54px; height: 54px; border-radius: 14px; background: #effbf9; color: var(--accent); display:flex; align-items:center; justify-content:center; font-size: 26px; margin: 0 auto 14px; }
.center { text-align: center; }
.report { margin-top: 14px; text-align: center; }
.report a { color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.hidden { display: none !important; }
