/* Fractal Drive — misma interfaz de Fractal Desk: negro, puntos, cromo y píldoras. */
/* Archivo (SIL Open Font License 1.1), incluida para no depender de otros servidores. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --ink: #F4F4F5;
  --ink-2: #B4B4BA;
  --ink-3: #8B8B92;
  --negro: #000000;
  --carbon: #0B0B0C;
  --grafito: #141416;
  --gris-1: #1D1D20;
  --gris-2: #2A2A2E;
  --gris-3: #3A3A3F;
  --perla: #E6E6E8;
  --verde: #A6F0C0;
  --red: #E5484D;
  --glass: rgba(20,20,22,.72);
  --glass-strong: rgba(20,20,22,.92);
  --hair: rgba(255,255,255,.10);
  --hair-2: rgba(255,255,255,.17);
  --shadow: 0 30px 70px -40px rgba(0,0,0,1);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: #000;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 52px; line-height: 1.04; font-weight: 540; font-stretch: 96%; letter-spacing: -0.035em; max-width: 15ch; }
h2 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--perla); outline-offset: 3px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Botones ---------------- */
.btn {
  font: inherit; font-weight: 560; font-size: 15px; line-height: 1;
  border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s, transform .12s var(--ease), box-shadow .2s, opacity .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { cursor: not-allowed; opacity: .35; }
.btn sup { font-family: var(--mono); font-size: 9px; font-weight: 500; opacity: .55; align-self: flex-start; margin-top: -3px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-xs { padding: 9px 13px; font-size: 13px; gap: 6px; }
.btn-xs .ic { width: 16px; height: 16px; }
.btn-lg { padding: 18px 26px; font-size: 16px; }
.btn-primary { color: #000; background: linear-gradient(180deg, #F2F2F3, #D9D9DC); box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(0,0,0,.5); }
.btn-primary:hover:not(:disabled) { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 4px 16px rgba(0,0,0,.6); }
.btn-ghost { color: var(--ink); background: var(--grafito); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-ghost:hover { background: var(--gris-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn-negro { color: var(--ink); background: #000; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.btn-negro:hover { background: var(--gris-1); }

.icon-btn {
  position: relative; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 0; cursor: pointer;
  display: inline-grid; place-items: center;
  color: var(--ink); background: var(--grafito); box-shadow: inset 0 0 0 1px var(--hair);
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .12s var(--ease), box-shadow .2s;
}
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--gris-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 32px; height: 32px; background: transparent; box-shadow: none; color: var(--ink-3); }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn.sm:hover { color: var(--ink); background: var(--gris-1); }
.icon-btn.armado, .icon-btn.armado:hover { color: #fff; background: var(--red); box-shadow: none; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------------- Campos ---------------- */
input[type="text"], input[type="password"], input:not([type]), textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--grafito); border: 1px solid var(--hair);
  border-radius: 999px; padding: 13px 18px; min-width: 0; flex: 1;
  transition: border-color .2s, box-shadow .2s;
}
textarea { border-radius: 20px; resize: vertical; min-height: 88px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus { outline: none; border-color: var(--hair-2); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
label.check { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: #E6E6E8; margin: 0; }
.row { display: flex; gap: 10px; }
.row-wrap { display: flex; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 560; white-space: nowrap;
  color: var(--ink-2); background: var(--grafito); box-shadow: inset 0 0 0 1px var(--hair);
}
.pill .ic { width: 16px; height: 16px; }

.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 560;
  color: var(--ink); background: rgba(20,20,22,.96);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 16px 34px -16px #000;
  animation: toast-in .25s ease-out;
}
.toast .ic { width: 18px; height: 18px; }
.toast[data-tono="ok"] .ic { color: var(--verde); }
.toast[data-tono="error"] { color: #FFB4B6; box-shadow: inset 0 0 0 1px rgba(229,72,77,.45), 0 16px 34px -16px #000; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------- Marca y estructura ---------------- */
.screen { min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px clamp(18px, 3vw, 32px); position: relative; z-index: 2; }
.topbar-der { margin-left: auto; display: flex; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 26px; height: 26px; display: block; transition: transform .9s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-word { height: 18px; width: auto; display: block; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.foot { display: flex; gap: 48px; padding: 20px clamp(24px, 5vw, 64px) 28px; position: relative; z-index: 2; }
.foot span:first-child { color: var(--ink); font-family: var(--font); font-size: 15px; letter-spacing: 0; line-height: 1.05; font-weight: 450; }
.dash { display: inline-block; width: 34px; height: 1px; background: var(--ink-3); vertical-align: middle; margin: 0 6px; }

/* Tubo cromado */
.tube { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.tube path { stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: tube-draw 3.2s var(--ease) .2s forwards; }
.tube-a { stroke: #0e1012; stroke-width: 34; }
.tube-b { stroke: url(#cromo); stroke-width: 26; }
.tube-c { stroke: rgba(255,255,255,.55); stroke-width: 3; transform: translate(-4px,-6px); filter: blur(1.2px); }
.tube g { animation: tube-float 14s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes tube-draw { to { stroke-dashoffset: 0; } }
@keyframes tube-float { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-18px,12px) rotate(-1.2deg); } }

/* ---------------- Cargando ---------------- */
.cargando { display: grid; place-content: center; justify-items: center; gap: 16px; }
.cargando-logo { width: 54px; height: 54px; animation: girar 2.4s var(--ease) infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------------- Entrar ---------------- */
.inicio { position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.inicio::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.74) 38%, rgba(0,0,0,0) 64%); }
.home-top { justify-content: space-between; padding: 26px clamp(24px, 5vw, 64px); }
.home-grid { position: relative; z-index: 2; display: grid; align-items: center; padding: 24px clamp(20px, 5vw, 72px) 24px; max-width: 1360px; width: 100%; margin: 0 auto; }
.home-copy { display: grid; gap: 24px; justify-items: start; max-width: 560px; }
.create { width: 100%; max-width: 500px; display: grid; gap: 8px; }
.create .row { padding: 5px; border-radius: 999px; background: var(--grafito); box-shadow: inset 0 0 0 1px var(--hair); }
.create .row input { background: transparent; border: 0; }
.create .row input:focus { box-shadow: none; }
.apilado { display: grid; gap: 8px; }
.apilado label:not(:first-child) { margin-top: 8px; }
.notice { font-size: 15px; color: var(--ink); background: var(--gris-1); box-shadow: inset 0 0 0 1px var(--hair-2); padding: 10px 16px; border-radius: 18px; max-width: 500px; }
.notice[data-tono="error"] { color: #FFB4B6; background: #1A0B0C; box-shadow: inset 0 0 0 1px rgba(229,72,77,.4); }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 14px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks .ic { width: 18px; height: 18px; color: var(--ink); }

/* ---------------- Panel ---------------- */
.panel { position: relative; overflow-x: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.tube-panel { opacity: .28; height: 900px; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.2), #000 95%); }
.usado { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.usado b { color: var(--ink); font-weight: 500; }
.panel-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
  padding: 10px clamp(18px, 4.5vw, 64px) 40px; max-width: 1440px; width: 100%; margin: 0 auto;
}
.nuevo { display: grid; gap: 22px; position: sticky; top: 18px; }
.bloque { display: grid; gap: 18px; }
.bloque h1 { font-size: clamp(34px, 3.6vw, 48px); max-width: 15ch; }
.bloque .lede { font-size: 16px; }
.campos { display: grid; gap: 8px; }
.campos label:not(.check) { margin-top: 8px; }
.campos label.check { margin-top: 10px; }
.campos input, .campos textarea { width: 100%; }

/* Selector tipo píldora (igual a Fractal Desk) */
.seg { display: inline-flex; padding: 5px; gap: 2px; border-radius: 999px; background: linear-gradient(180deg, #1b1b1e, #0f0f11); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255,255,255,.06); justify-self: start; max-width: 100%; }
.tool {
  font: inherit; font-size: 14px; font-weight: 520;
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s, box-shadow .3s;
}
.tool .ic { width: 18px; height: 18px; }
.tool:hover:not([aria-checked="true"]):not([aria-selected="true"]) { background: rgba(255,255,255,.05); }
.tool[aria-checked="true"], .tool[aria-selected="true"] { color: #000; background: linear-gradient(180deg, #F2F2F3, #D9D9DC); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(0,0,0,.5); }
.seg-sm { padding: 4px; }
.seg-sm .tool { padding: 7px 13px; font-size: 13px; }

/* Zona para soltar archivos */
.drop {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 34px 22px 30px; border-radius: 28px;
  border: 1.5px dashed var(--hair-2); background: rgba(14,14,16,.75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; margin: 0;
  font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-3);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.drop strong { font-size: 19px; font-weight: 540; letter-spacing: -0.01em; color: var(--ink); }
.drop:hover { border-color: rgba(255,255,255,.35); }
.drop.encima { border-color: var(--perla); background: rgba(40,40,44,.85); transform: scale(1.01); }
.drop:focus-within { outline: 2px solid var(--perla); outline-offset: 3px; }
.drop::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 190px; height: 190px; opacity: .05; background: url("logo.svg") center / contain no-repeat; animation: girar 28s linear infinite; pointer-events: none; }
.drop-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #000; background: linear-gradient(180deg, #F2F2F3, #D9D9DC); box-shadow: inset 0 1px 0 #fff, 0 10px 26px -10px rgba(0,0,0,.9); margin-bottom: 8px; transition: transform .3s var(--ease); }
.drop:hover .drop-ic, .drop.encima .drop-ic { transform: translateY(-3px); }
.drop-ic .ic { width: 24px; height: 24px; }

/* Filas de archivos */
.lista, .filas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fila {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 10px; border-radius: 18px;
  background: var(--grafito); box-shadow: inset 0 0 0 1px var(--hair);
}
.fila-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gris-1); color: var(--ink-2); }
.fila-ic .ic { width: 18px; height: 18px; }
.fila-txt { min-width: 0; display: grid; gap: 1px; }
.fila-nombre { font-size: 14px; font-weight: 520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-acc { display: flex; gap: 6px; align-items: center; }
.barra { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--perla); transition: width .35s linear; }
.fila[data-estado="subiendo"] { background: linear-gradient(90deg, rgba(255,255,255,.06) var(--p, 0%), var(--grafito) var(--p, 0%)); }
.fila[data-estado="listo"] .barra { opacity: 0; }
.fila[data-estado="listo"] .fila-ic { color: #000; background: var(--perla); }
.fila[data-estado="error"] { box-shadow: inset 0 0 0 1px rgba(229,72,77,.45); }
.fila[data-estado="error"] .fila-meta { color: #FF9A9D; }
.fila[data-estado="pausa"] .fila-meta { color: var(--perla); }
.fila.es-nuevo { box-shadow: inset 0 0 0 1px rgba(166,240,192,.45); }

/* Enlace listo */
.resultado {
  position: relative; overflow: hidden;
  display: grid; gap: 16px; justify-items: start;
  padding: 28px; border-radius: 28px;
  background: rgba(11,11,12,.94); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow);
  animation: entrar .5s var(--ease);
}
.resultado::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; opacity: .06; background: url("logo.svg") center / contain no-repeat; animation: girar 28s linear infinite; pointer-events: none; }
.resultado h2 { font-size: 28px; font-weight: 540; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.resultado .lista { width: 100%; padding-top: 16px; border-top: 1px solid var(--hair); }
.resultado .lista:empty { display: none; }
.link-box { width: 100%; font-family: var(--mono); font-size: 13px; word-break: break-all; padding: 13px 18px; border-radius: 16px; color: var(--perla); background: #000; box-shadow: inset 0 0 0 1px var(--hair); user-select: all; }
.res-nota { font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.res-nota[data-tono="ok"] { color: var(--verde); }
.res-clave { font-size: 14px; color: var(--ink-2); padding: 10px 14px; border-radius: 14px; background: var(--gris-1); }
.res-clave b { font-family: var(--mono); color: var(--ink); letter-spacing: .04em; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }

/* Tarjetas de enlaces */
.enlaces { display: grid; gap: 16px; min-width: 0; }
.enlaces-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tarjeta {
  display: grid; gap: 14px; padding: 20px; border-radius: 28px;
  background: rgba(11,11,12,.92); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow);
  animation: entrar .45s var(--ease) both;
}
.t-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-vence { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.t-vence[data-pronto="true"] { color: #FFB4B6; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tag .ic { width: 12px; height: 12px; }
.tag-buzon { color: #000; background: var(--perla); box-shadow: none; }
.tag-nuevo { color: #000; background: var(--verde); box-shadow: none; }
.tarjeta h3 { font-size: 22px; font-weight: 540; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.t-meta { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.t-meta b { color: var(--ink-2); font-weight: 560; }
.t-link { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px var(--hair); }
.t-link code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--perla); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-acc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.t-acc .sep { flex: 1; }
.t-archivos { display: grid; gap: 8px; }
.t-archivos .lista { max-height: 340px; overflow-y: auto; padding-right: 2px; }
.t-mas { justify-self: start; font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.t-vacio { font-size: 13px; color: var(--ink-3); padding: 12px 14px; border-radius: 16px; background: var(--grafito); }
.vacio { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; text-align: center; color: var(--ink-3); border-radius: 28px; border: 1px dashed var(--hair-2); }
.vacio-logo { width: 46px; height: 46px; opacity: .5; background: url("logo.svg") center / contain no-repeat; animation: girar 18s linear infinite; }

/* Diálogo */
.dialogo { border: 0; padding: 26px; border-radius: 28px; width: min(420px, calc(100vw - 32px)); color: var(--ink); background: var(--carbon); box-shadow: inset 0 0 0 1px var(--hair-2), 0 40px 90px -30px #000; }
.dialogo::backdrop { background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialogo h2 { font-size: 22px; font-weight: 540; letter-spacing: -0.02em; margin-bottom: 6px; }
.dialogo .row-wrap { margin-top: 14px; }

/* ---------------- Clientes: fondo gris niebla con grano ---------------- */
.fog {
  background:
    radial-gradient(90% 70% at 85% 100%, rgba(120,92,86,.55), transparent 60%),
    radial-gradient(80% 60% at 0% 0%, rgba(205,210,216,.8), transparent 60%),
    linear-gradient(170deg, #A7ACB2 0%, #8D939B 50%, #6F6A6C 100%);
  position: relative; display: grid; grid-template-rows: auto 1fr auto;
}
.fog::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fog > * { position: relative; z-index: 1; }
.fog .topbar .brand { padding: 9px 12px 9px 13px; border-radius: 999px; background: #000; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.fog .topbar .pill { margin-left: auto; background: #000; color: var(--ink-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.fog .foot span:first-child { color: #0A0A0A; }
.fog .foot { color: rgba(0,0,0,.55); }
.fog .dash { background: rgba(0,0,0,.45); }

.cli-grid {
  display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start;
  padding: 10px clamp(16px, 3vw, 32px) 24px; max-width: 1440px; width: 100%; margin: 0 auto;
}
.cli-col { display: grid; gap: 20px; align-content: start; padding-top: 14px; min-width: 0; }
.cli-col h1 { color: #0A0A0A; font-size: clamp(36px, 4vw, 54px); max-width: 13ch; overflow-wrap: anywhere; }
.cli-col .lede { color: rgba(0,0,0,.68); white-space: pre-wrap; overflow-wrap: anywhere; }
.cli-col > .mono { color: rgba(0,0,0,.6); }
.card-negra { display: grid; gap: 12px; justify-items: start; padding: 22px; border-radius: 28px; background: #000; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); animation: entrar .45s var(--ease); }
.card-negra p { font-size: 14px; color: var(--ink-2); }
.card-negra .row { width: 100%; }
.card-negra .btn-lg { width: 100%; }
.card-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #000; background: var(--perla); }
.fineprint { font-size: 13px; color: var(--ink-3) !important; }
.contacto { display: inline-flex; align-items: center; gap: 8px; color: rgba(0,0,0,.72); font-size: 14px; font-weight: 520; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.contacto .ic { width: 16px; height: 16px; }

.visor {
  display: grid; align-content: start; gap: 4px;
  border-radius: 36px; background: #000; color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  overflow: hidden; min-height: 62vh; padding-bottom: 10px;
  animation: entrar .5s var(--ease);
}
.visor-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.visor-prev { margin: 0 10px 6px; border-radius: 26px; overflow: hidden; background: var(--carbon); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.visor-prev video, .visor-prev img, .visor-prev audio { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.visor-prev audio { height: auto; width: calc(100% - 40px); background: transparent; }
.visor .filas { padding: 0 10px; }
.visor .fila { background: var(--grafito); }
.fila.activa { box-shadow: inset 0 0 0 1px var(--perla); }
.visor-sec { margin-top: 10px; border-top: 1px solid var(--hair); }
.visor-vacio { margin: 10px; padding: 48px 20px; text-align: center; font-size: 14px; color: var(--ink-3); border-radius: 26px; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: 20px 20px; }

/* Pasos (igual al invitado de Fractal Desk) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.step { counter-increment: st; position: relative; display: grid; gap: 10px; padding: 18px 18px 18px 64px; border-radius: 24px; background: rgba(0,0,0,.10); color: rgba(0,0,0,.75); transition: background .3s var(--ease); }
.step h2 { font-size: 17px; }
.step::before { content: "0" counter(st); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: rgba(0,0,0,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.step p { font-size: 14px; color: rgba(0,0,0,.55); }
.step[data-state="todo"] { background: rgba(0,0,0,.07); }
.step[data-state="todo"] h2 { color: rgba(0,0,0,.5); }
.step[data-state="todo"] .row, .step[data-state="todo"] .drop, .step[data-state="todo"] p { display: none; }
.step[data-state="current"] { background: #000; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.step[data-state="current"] p { color: var(--ink-2); }
.step[data-state="current"]::before { color: #000; background: var(--perla); box-shadow: none; }
.step[data-state="done"] { background: rgba(0,0,0,.18); }
.step[data-state="done"] h2 { color: rgba(0,0,0,.8); }
.step[data-state="done"]::before { content: "✓"; font-family: var(--font); font-size: 14px; color: var(--perla); background: #000; }
.step[data-state="done"] .drop, .step[data-state="done"] p:not(.siempre) { display: none; }
.step[data-state="done"] .row input { background: rgba(0,0,0,.08); border-color: transparent; color: #000; }
.step[data-state="done"] .row input::placeholder { color: rgba(0,0,0,.45); }
#paso-1[data-state="done"] p { display: none; }
.drop-claro { background: var(--grafito); }

/* Aviso */
.aviso-centro { display: grid; gap: 20px; justify-items: start; align-content: center; padding: 24px clamp(20px, 6vw, 96px); max-width: 900px; }
.aviso-centro h1 { color: #0A0A0A; font-size: clamp(38px, 5vw, 64px); max-width: 16ch; }
.aviso-centro .lede { color: rgba(0,0,0,.68); }
.aviso-centro .mono { color: rgba(0,0,0,.6); }

/* ---------------- Movimiento reducido ---------------- */
@media (prefers-reduced-motion: reduce) {
  .tube path { animation: none; stroke-dashoffset: 0; }
  .tube g, .drop::after, .resultado::after, .vacio-logo, .cargando-logo { animation: none; }
  .tarjeta, .resultado, .card-negra, .visor { animation: none; }
}

/* ---------------- Pantallas pequeñas ---------------- */
@media (max-width: 1080px) {
  .panel-grid { grid-template-columns: 1fr; }
  .nuevo { position: static; }
  .cli-grid { grid-template-columns: 1fr; }
  .visor { min-height: 0; }
  h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .top-tag { display: none; }
  .topbar { flex-wrap: wrap; }
  .topbar-der .btn span, .topbar-der .btn { font-size: 13px; }
  #btn-clave { display: none; }
  .usado { order: 3; width: 100%; justify-content: center; }
  .create .row { border-radius: 24px; }
  .row { flex-direction: column; }
  .row .btn { width: 100%; }
  .foot { gap: 24px; }
  .resultado { padding: 22px; }
  .resultado .row-wrap .btn { flex: 1; }
  .tarjeta { padding: 16px; border-radius: 24px; }
  .seg .tool { padding: 9px 12px; font-size: 13px; }
  .fila { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .fila-ic { width: 34px; height: 34px; }
  .fila-acc .btn-xs span { display: none; }
  .fila-acc .btn-xs { padding: 9px; }
  .step { padding: 16px 16px 16px 58px; }
}

/* Botón que abre el selector de archivos (es un label por dentro) */
label.btn { font-family: var(--font); font-size: 13px; font-weight: 560; letter-spacing: 0; text-transform: none; color: var(--ink); }
