/* Caribú Transfer */
:root {
  --bg: #0A0D0F;
  --bg-2: #0F1417;
  --card: #141A1E;
  --fg: #F0EDE6;
  --mute: rgba(240, 237, 230, .66);
  --dim: rgba(240, 237, 230, .5);
  --line: rgba(240, 237, 230, .08);
  --line-2: rgba(240, 237, 230, .16);
  --acc: #53B5D0;
  --warn: #E2B15B;
  --danger: #E27163;
  --display: 'Bebas Neue', 'Oswald', sans-serif;
  --body: 'Outfit', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--acc); color: var(--bg); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }

/* ── tipografía */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .92;
  text-transform: uppercase;
}
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.mute { color: var(--mute); }
.dim { color: var(--dim); }

/* ── marca */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 28px; height: 28px; display: block; }
.brand span {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .14em;
  line-height: 1;
  padding-top: 2px;
}
.brand span i { font-style: normal; color: var(--dim); }

/* ── campos */
.field { display: block; }
.field + .field { margin-top: 28px; }
.field .label { display: block; margin-bottom: 6px; }
.input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 8px 0 10px;
  font-size: 17px;
  font-weight: 300;
  outline: none;
  transition: border-color .2s var(--ease);
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--fg); }
textarea.input { resize: none; min-height: 44px; line-height: 1.5; field-sizing: content; max-height: 220px; }

/* ── botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .15s var(--ease), opacity .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { background: #6cc4dc; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn svg { width: 17px; height: 17px; flex: none; }

.link {
  color: var(--mute);
  font-size: 13px;
  padding: 4px 0;
  transition: color .15s;
  text-decoration: none;
}
.link:hover { color: var(--fg); }
.link.danger:hover, .link.armed { color: var(--danger); }

/* segmentado */
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--mute);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  transition: all .15s var(--ease);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }

/* barra de progreso */
.bar { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .3s linear; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--fg);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
  z-index: 50;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* aparición */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═════════════════════════ login */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.login form { width: 100%; max-width: 340px; }
.login .mark { width: 64px; height: 64px; display: block; margin: 0 auto 18px; }
.login h1 { text-align: center; font-size: 22px; letter-spacing: .22em; margin-bottom: 56px; }
.login h1 i { font-style: normal; color: var(--dim); }
.login .btn { margin-top: 44px; }
.login .err { color: var(--danger); font-size: 14px; margin-top: 16px; min-height: 22px; text-align: center; }

/* ═════════════════════════ panel */
.shell { max-width: 760px; margin: 0 auto; padding: 0 24px 120px; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.top .who { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--mute); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  position: relative;
  padding: 14px 0 16px;
  color: var(--dim);
  font-size: 14px;
  white-space: nowrap;
  transition: color .15s;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); }
.tabs button[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg);
}
.tabs sup { font-size: 10px; color: var(--acc); margin-left: 3px; }

/* zona de carga */
.drop {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 300px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
  padding: 40px 24px;
}
.drop:hover, .drop.over { box-shadow: inset 0 0 0 1px var(--acc); background: rgba(83, 181, 208, .035); }
.drop .plus {
  width: 54px; height: 54px; margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), box-shadow .2s;
}
.drop:hover .plus, .drop.over .plus { transform: rotate(90deg); box-shadow: inset 0 0 0 1px var(--acc); }
.drop .plus svg { width: 20px; height: 20px; }
.drop h2 { font-size: clamp(30px, 6vw, 44px); }
.drop p { margin-top: 10px; color: var(--mute); font-size: 14px; }
.drop.compact { min-height: 0; padding: 18px; }
.drop.compact .plus { width: 30px; height: 30px; margin: 0; }
.drop.compact .plus svg { width: 14px; height: 14px; }
.drop.compact > div { display: flex; align-items: center; gap: 14px; }
.drop.compact h2 { font-family: var(--body); text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--mute); }
.drop.compact p { display: none; }

/* overlay de arrastre en toda la ventana */
.dragveil {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 13, 15, .92);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--acc);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dragveil.on { opacity: 1; }
.dragveil h2 { font-size: clamp(40px, 9vw, 96px); }

/* lista de archivos (a subir) */
.files { margin-top: 28px; }
.file {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  position: relative;
}
.file:first-child { border-top: 1px solid var(--line); }
.file .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .s { color: var(--mute); }
.file .x { width: 24px; height: 24px; display: grid; place-items: center; color: var(--dim); border-radius: 50%; }
.file .x:hover { color: var(--fg); background: var(--line); }
.file .x svg { width: 12px; height: 12px; }
.file .p { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: transparent; }
.file .p i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .3s linear; }
.file.done .x { color: var(--acc); }
.files .sum { display: flex; justify-content: space-between; padding-top: 12px; font-size: 13px; color: var(--dim); }

.form { margin-top: 48px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form .row .field + .field { margin-top: 0; }
.form .actions { margin-top: 48px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } .form .row .field + .field { margin-top: 28px; } }

/* progreso */
.progress { margin-top: 48px; }
.progress .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.progress .pct { font-family: var(--display); font-size: 56px; line-height: .8; }
.progress .meta { margin-top: 14px; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.progress .warn { color: var(--warn); }

/* listo */
.done { padding-top: 12px; }
.done h2 { font-size: clamp(64px, 14vw, 120px); }
.done p { margin-top: 14px; color: var(--mute); }
.linkbox {
  margin-top: 40px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.linkbox code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 14px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--fg);
}
.linkbox .btn { height: 42px; padding: 0 20px; }
.done .more { margin-top: 22px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* listas */
.list { border-top: 1px solid var(--line); }
.item { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; }
.item h3 { font-weight: 400; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.item .size { color: var(--mute); font-size: 14px; text-align: right; }
.item .meta { font-size: 13px; color: var(--mute); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item .meta .sep { color: var(--dim); }
.item .acts { display: flex; gap: 18px; justify-content: flex-end; align-items: center; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 2px; vertical-align: 1px; }
.dot.off { background: var(--dim); }
.dot.warn { background: var(--warn); }
.item.expired h3 { color: var(--mute); }
.empty { padding: 64px 0; text-align: center; color: var(--dim); font-size: 14px; }
@media (max-width: 560px) {
  .item { grid-template-columns: 1fr; }
  .item .size { text-align: left; }
  .item .acts { justify-content: flex-start; }
}

/* clientes */
.newclient { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end; margin-bottom: 48px; }
.newclient .field + .field { margin-top: 0; }
.newclient .btn { height: 44px; }
@media (max-width: 560px) { .newclient { grid-template-columns: 1fr; } }
.cred {
  margin-bottom: 48px;
  padding: 28px;
  border-radius: 6px;
  background: var(--card);
}
.cred dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; margin: 20px 0 24px; font-size: 15px; }
.cred dt { color: var(--dim); font-size: 13px; padding-top: 1px; }
.cred dd code { font: 400 15px ui-monospace, 'SF Mono', Menlo, monospace; }
.cred .foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.cred .btn { height: 42px; }

.note { margin-top: 20px; font-size: 13px; color: var(--dim); }

/* ═════════════════════════ entrega pública */
.deliver { max-width: 680px; margin: 0 auto; padding: 0 24px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.deliver header { height: 96px; display: flex; align-items: center; }
.deliver main { flex: 1; padding: 6vh 0 80px; }
.deliver h1 { font-size: clamp(56px, 12vw, 112px); margin: 14px 0 20px; overflow-wrap: anywhere; }
.deliver .facts { color: var(--mute); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.deliver .facts .sep { color: var(--dim); }
.deliver .msg { margin-top: 32px; font-size: 17px; font-weight: 300; line-height: 1.6; max-width: 54ch; white-space: pre-line; }
.deliver .cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.deliver .cta .hint { font-size: 13px; color: var(--dim); }
.deliver .dl { margin-top: 56px; border-top: 1px solid var(--line); }
.dlrow { border-bottom: 1px solid var(--line); }
.dlrow .r { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; }
.dlrow .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.dlrow .s { color: var(--mute); font-size: 14px; }
.dlrow .a { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: all .15s var(--ease);
  text-decoration: none;
}
.icon-btn:hover { background: var(--fg); color: var(--bg); box-shadow: none; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.on { background: var(--fg); color: var(--bg); }
.dlrow .pv { padding: 0 0 18px; }
.dlrow .pv video, .dlrow .pv img { width: 100%; max-height: 70vh; display: block; background: #000; border-radius: 4px; }
.dlrow .pv .nope { font-size: 13px; color: var(--dim); padding: 4px 0 4px; }
.deliver footer { padding: 28px 0 36px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }
.deliver footer a { text-decoration: none; }
.deliver footer a:hover { color: var(--fg); }

.gone { padding-top: 10vh; }
.gone h1 { font-size: clamp(56px, 12vw, 104px); }
.gone p { margin-top: 18px; color: var(--mute); max-width: 44ch; }
.gone .cta { margin-top: 40px; }

.skeleton { color: var(--dim); font-size: 14px; padding-top: 10vh; }
@media (max-width: 560px) {
  .dlrow .n, .file .n { white-space: normal; overflow-wrap: anywhere; }
  .deliver .cta .hint { flex-basis: 100%; }
}

/* fondo con foto aleatoria (ingreso y página de entrega) */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.backdrop i {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 30s linear;
}
.backdrop.on i { opacity: 1; transform: scale(1); }
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 15, .62) 0%, rgba(10, 13, 15, .74) 40%, rgba(10, 13, 15, .93) 75%, var(--bg) 100%);
}
body:has(.login) .backdrop::after {
  background: radial-gradient(ellipse 80% 60% at center, rgba(10, 13, 15, .88) 0%, rgba(10, 13, 15, .76) 55%, rgba(10, 13, 15, .58) 100%);
}
/* panel: misma foto, velo más parejo para trabajar cómodo */
body:has(.shell) .backdrop::after {
  background: linear-gradient(180deg, rgba(10, 13, 15, .8) 0%, rgba(10, 13, 15, .86) 50%, rgba(10, 13, 15, .93) 100%);
}
.drop { background: rgba(10, 13, 15, .35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.btn.ready { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(83, 181, 208, .5); } 50% { box-shadow: 0 0 0 8px rgba(83, 181, 208, 0); } }
.icon-btn:disabled { opacity: .5; }
