/*
 * FileStream — estilo "tarjeta sobre wallpaper": fondo a pantalla completa con la campaña publicitaria,
 * tarjeta blanca redondeada a la izquierda con el flujo de envío (añadir → transferir → enlace) y la
 * vista de descarga para quien recibe el enlace.
 */
@font-face {
  font-family: FSDisc;
  src: url(fsdisc.woff2) format("woff2");
}

:root {
  --fs-primario: #2f6bff;
  --fs-primario-hover: #1f55d6;
  --fs-texto: #17191c;
  --fs-gris: #6b7280;
  --fs-gris-claro: #9ca3af;
  --fs-linea: #e5e7eb;
  --fs-fondo-suave: #f3f4f6;
  --fs-rojo: #dc2626;
  --fs-verde: #16a34a;
  --fs-radio: 22px;
  --fs-card-w: clamp(520px, 52vw, 780px); /* lo bastante ancha para que el enlace quede en dos líneas */
}

* { box-sizing: border-box; }

html, body {
  margin: 0; min-height: 100%;
  background: #111;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fs-texto);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- wallpaper a pantalla completa */
.fs-wp {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; pointer-events: none;
}
#fs-wp-link { position: fixed; inset: 0; z-index: 0; display: block; }
/* puntos del carrusel de wallpapers, centrados abajo: uno por campaña, pulsar = ir a esa */
#fs-wp-dots { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 34px; border-radius: 999px;
  background: rgba(0, 0, 0, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#fs-wp-dots:empty { display: none; }
.fs-dot { width: 16px; height: 16px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fs-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: transform .2s, background .2s; }
.fs-dot:hover::before { background: rgba(255, 255, 255, .85); }
.fs-dot.activo::before { background: #fff; transform: scale(1.3); }
.fs-dot:focus-visible { outline: none; }
.fs-dot:focus-visible::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- la tarjeta */
.fs-card {
  position: fixed; left: 64px; top: 84px; z-index: 1;
  width: var(--fs-card-w); height: calc(100vh - 180px); max-height: calc(100vh - 40px); min-height: 520px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--fs-radio);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .12);
  padding: 22px 26px 22px;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s, background .15s;
}
.fs-card { container: fscard / inline-size; }
.fs-card.fs-drop-hover { outline-color: var(--fs-primario); background: #f5f8ff; }
.fs-zona-oculta { position: absolute; width: 0; height: 0; overflow: hidden; }
.fs-zona-oculta .fs-dropzone { width: 0; height: 0; overflow: hidden; padding: 0; border: 0; }

.fs-logo-box { height: 38px; margin-bottom: 14px; flex: none; display: flex; align-items: center; justify-content: space-between; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.fs-grip { flex: none; color: #1b9bd8; display: inline-flex; padding: 6px; border-radius: 8px; }
.fs-grip svg { width: 18px; height: 18px; fill: currentColor; }
.fs-logo-box:hover .fs-grip { color: #1b9bd8; background: var(--fs-fondo-suave); }
.fs-card.fs-arrastrando { cursor: grabbing; transition: none; box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12); }
.fs-resizer { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; cursor: nwse-resize; color: #1b9bd8; touch-action: none; z-index: 2; }
.fs-resizer::before { content: ""; position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 0 3px 0; }
.fs-resizer:hover, .fs-card.fs-redimensionando .fs-resizer { color: #1587c0; }
.fs-card.fs-redimensionando { transition: none; user-select: none; -webkit-user-select: none; }
.fs-card.fs-arrastrando .fs-logo-box { cursor: grabbing; }
.fs-wordmark { display: block; flex: none; height: 38px; line-height: 38px; font-weight: 800; letter-spacing: -.02em; color: #244e85; font-size: 30px; }
.fs-wordmark b { color: #1b9bd8; font-size: 24px; font-weight: 800; }

/* cabeceras */
.fs-head { flex: none; }
.fs-head-nuevo { display: flex; align-items: center; gap: 16px; padding: 6px 0 18px; }
.fs-plus {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--fs-primario); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  box-shadow: 0 8px 20px rgba(47, 107, 255, .35); transition: transform .15s, background .15s;
}
.fs-plus:hover { background: var(--fs-primario-hover); transform: scale(1.04); }
.fs-plus svg { width: 26px; height: 26px; fill: currentColor; }
.fs-add-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.fs-add-sub { display: inline-block; margin-top: 2px; font-size: 14px; color: var(--fs-gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fs-add-sub:hover { color: var(--fs-texto); }

.fs-head-centro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 10px; }
.fs-h2 { margin: 14px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.fs-sub { margin: 0; color: var(--fs-gris); font-size: 14px; }
.fs-listo-name { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #244e85; }
.fs-listo-name svg { flex: none; width: 20px; height: 20px; fill: currentColor; position: relative; top: -1px; left: 1px; }
.fs-listo-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* anillo de progreso */
.fs-ring { position: relative; width: 132px; height: 132px; }
.fs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fs-ring-bg { fill: none; stroke: var(--fs-linea); stroke-width: 9; }
.fs-ring-fg { fill: none; stroke: var(--fs-primario); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .5s ease; }
.fs-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

.fs-check {
  width: 88px; height: 88px; border-radius: 50%; background: var(--fs-verde); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(22, 163, 74, .3);
}
.fs-check svg { width: 44px; height: 44px; fill: currentColor; }
.fs-recv-icon { width: 76px; height: 76px; border-radius: 50%; background: #eef3ff; color: var(--fs-primario); display: flex; align-items: center; justify-content: center; }
.fs-recv-icon svg { width: 36px; height: 36px; fill: currentColor; }
.fs-recv-lock { background: #fff4e5; color: #d97706; }
.fs-recv-bad { background: #fee2e2; color: var(--fs-rojo); }

/* campos */
.fs-fields { flex: none; border-top: 1px solid var(--fs-linea); }
.fs-field { display: block; padding: 10px 0; border-bottom: 1px solid var(--fs-linea); }
.fs-field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; }
.fs-field-label { display: block; font-size: 12px; color: var(--fs-gris); letter-spacing: .02em; text-transform: uppercase; font-weight: 600; }
.fs-field-row .fs-field-label { flex: 1; }
.fs-input-line {
  display: block; width: 100%; border: 0; outline: none; background: transparent; padding: 4px 0 0;
  font: inherit; font-size: 16px; color: var(--fs-texto);
}
.fs-input-line::placeholder { color: var(--fs-gris-claro); }
.fs-field-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; color: var(--fs-texto); padding: 4px 0;
}
.fs-field-btn svg { width: 14px; height: 14px; fill: var(--fs-gris); }
.fs-field-cal { position: relative; }
.fs-cal {
  position: absolute; right: 0; top: calc(100% - 2px); z-index: 30; width: 296px; padding: 12px 12px 10px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .05);
}
.fs-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fs-cal-title { font-size: 14px; font-weight: 700; color: var(--fs-texto); }
.fs-cal-nav {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font: inherit; font-size: 22px; line-height: 1; color: var(--fs-texto);
}
.fs-cal-nav:hover:not(:disabled) { background: var(--fs-fondo-suave); }
.fs-cal-nav:disabled { opacity: .25; cursor: default; }
.fs-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.fs-cal-dow { font-size: 11px; font-weight: 600; color: var(--fs-gris); text-align: center; padding: 4px 0 6px; text-transform: uppercase; }
.fs-cal-day {
  height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--fs-texto);
}
.fs-cal-day:hover:not(:disabled) { background: #eaf2fb; }
.fs-cal-day:disabled { color: #c3c8d0; cursor: default; }
.fs-cal-day.fs-cal-hoy { font-weight: 700; color: var(--fs-primario); }
.fs-cal-day.fs-cal-sel, .fs-cal-day.fs-cal-sel:hover { background: var(--fs-primario); color: #fff; }

.fs-switch {
  position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: #d1d5db; cursor: pointer;
  transition: background .2s; flex: none; padding: 0;
}
.fs-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.fs-switch[aria-checked="true"] { background: var(--fs-primario); }
.fs-switch[aria-checked="true"] span { left: 21px; }

.fs-field-pw { padding: 10px 0 12px; }
.fs-pw-wrap { position: relative; }
.fs-pw-wrap .fs-input-line, .fs-pw-wrap .fs-input { padding-right: 36px; }
.fs-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--fs-gris); display: flex; align-items: center; justify-content: center; }
.fs-eye svg { width: 18px; height: 18px; fill: currentColor; }
.fs-hint { margin-top: 6px; font-size: 12px; color: var(--fs-gris); }
.fs-hint.fs-err { color: var(--fs-rojo); }
.fs-pw-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.fs-input {
  width: 100%; height: 48px; border: 1px solid var(--fs-linea); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px;
  outline: none; background: #fff;
}
.fs-input:focus { border-color: var(--fs-primario); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.fs-pw-form { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.fs-error { min-height: 18px; font-size: 13px; color: var(--fs-rojo); text-align: left; }

/* lista de ficheros */
.fs-list { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 4px -8px 0; padding: 0 8px; }
.fs-row-file {
  display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 10px 8px;
  padding: 7px 0; border-bottom: 1px solid var(--fs-linea);
}
/* miniatura (o icono según el tipo) a la izquierda de cada fichero */
.fs-thumb {
  width: 44px; height: 44px; border-radius: 10px; background: var(--fs-fondo-suave); overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--fs-gris);
}
.fs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-thumb svg { width: 22px; height: 22px; fill: currentColor; }
.fs-thumb.fs-thumb-img { color: #2563eb; }
.fs-thumb.fs-thumb-video { color: #7c3aed; }
.fs-thumb.fs-thumb-audio { color: #db2777; }
.fs-thumb.fs-thumb-pdf { color: #dc2626; }
.fs-thumb.fs-thumb-word { color: #2b579a; }
.fs-thumb.fs-thumb-excel { color: #217346; }
.fs-thumb.fs-thumb-ppt { color: #d24726; }
.fs-thumb.fs-thumb-zip { color: #b45309; }
.fs-thumb.fs-thumb-code { color: #0f766e; }
.fs-row-file:last-child { border-bottom: 0; }
.fs-txt { min-width: 0; }
.fs-n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-m { font-size: 12px; color: var(--fs-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-m svg.fs-dir { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; fill: var(--fs-gris-claro); }
.fs-row-file.err .fs-m { color: var(--fs-rojo); }
.fs-row-file.av-mal .fs-m { color: var(--fs-rojo); }
.fs-row-file.av-mal .fs-n { text-decoration: line-through; opacity: .7; }
.fs-row-file.av-espera .fs-m { color: var(--fs-gris); font-style: italic; }
.fs-row-file.av-mal, .fs-row-file.av-espera { cursor: default; }
.fs-act button:disabled { opacity: .5; cursor: not-allowed; }
.fs-bar { height: 3px; border-radius: 2px; background: var(--fs-linea); margin-top: 6px; overflow: hidden; }
.fs-bar > div { height: 100%; width: 0; background: var(--fs-primario); transition: width .4s; }
.fs-row-file.done .fs-bar, .fs-row-file.queued .fs-bar, .fs-row-file.avail .fs-bar { display: none; }
.fs-act { display: flex; align-items: center; justify-content: center; }
.fs-act button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--fs-gris); display: flex; align-items: center; justify-content: center; }
.fs-act button:hover { background: var(--fs-fondo-suave); color: var(--fs-texto); }
.fs-act button svg { width: 17px; height: 17px; fill: currentColor; }
.fs-act .fs-ok { color: var(--fs-verde); }
.fs-act .fs-ok:hover { background: transparent; color: var(--fs-verde); cursor: default; }

/* progreso de descarga */
.fs-dl { flex: none; padding-top: 10px; }
.fs-dl-bar { height: 6px; border-radius: 3px; background: var(--fs-linea); overflow: hidden; }
.fs-dl-bar > div { height: 100%; width: 0; background: var(--fs-primario); transition: width .25s; }
.fs-dl-txt { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--fs-gris); }
.fs-dl-txt span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-spin { animation: fs-spin .9s linear infinite; }
.fs-primary.fs-busy:disabled { background: var(--fs-primario); opacity: .85; cursor: progress; }
.fs-secondary.fs-busy:disabled { opacity: .85; cursor: progress; }
.fs-card.fs-descargando .fs-act button { pointer-events: none; opacity: .45; }

/* pie de la tarjeta */
.fs-foot { flex: none; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.fs-status { min-height: 18px; font-size: 13px; color: var(--fs-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-status.fs-err { color: var(--fs-rojo); }
.fs-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--fs-primario); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s;
}
.fs-primary:hover { background: var(--fs-primario-hover); }
.fs-primary:active { transform: scale(.99); }
.fs-primary:disabled { background: #cbd5e1; cursor: default; }
.fs-primary svg { width: 18px; height: 18px; fill: currentColor; }
.fs-primary.fs-small { width: auto; height: 40px; padding: 0 18px; font-size: 14px; }
.fs-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1;
  height: 42px; border: 1px solid var(--fs-linea); border-radius: 999px; background: #fff; color: var(--fs-texto);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 10px; white-space: nowrap;
}
.fs-secondary:hover { background: var(--fs-fondo-suave); }
.fs-secondary svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.fs-secondary.activo { border-color: var(--fs-primario); color: var(--fs-primario); background: #eef3ff; }
.fs-actions { display: flex; gap: 8px; }
.fs-text { border: 0; background: transparent; color: var(--fs-gris); cursor: pointer; font-size: 14px; }
.fs-text:hover { color: var(--fs-texto); }
.fs-text-link { display: block; text-align: center; font-size: 14px; color: var(--fs-gris); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border: 0; background: transparent; width: 100%; }
.fs-text-link:hover { color: var(--fs-texto); }

.fs-linkbox { display: flex; align-items: stretch; gap: 8px; }
.fs-linkwrap { flex: 1; min-width: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--fs-linea); border-radius: 14px; background: var(--fs-fondo-suave); }
.fs-linkwrap:focus-within { border-color: var(--fs-primario); }
/* el enlace va en monoespaciada: con ella el ancho en «ch» es exacto y se reparte en dos líneas iguales y centradas (app.js ajusta tamaño y ancho) */
.fs-link-input { box-sizing: content-box; width: 100%; max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; resize: none; overflow: hidden; display: block; outline: none; text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 12px; line-height: 1.45; color: var(--fs-texto);
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.fs-copy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 18px; border: 0; border-radius: 14px; background: #1b9bd8; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; flex: none; transition: background .15s; }
.fs-copy:hover { background: #1587c0; }
.fs-linkbox .fs-copy { align-self: stretch; }
.fs-copy svg { width: 15px; height: 15px; fill: currentColor; }
.fs-copy.copiado { background: var(--fs-verde); box-sizing: border-box; padding: 0 8px; font-size: 12px; line-height: 1.2; text-align: center; }
.fs-copy.copiado svg { display: none; }
.fs-copy.copiado span { white-space: normal; }

/* ---------------------------------------------------------------- barra superior: idioma y cuenta */
.fs-logo-box { gap: 12px; }
.fs-topbar { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 14px; min-width: 0; flex: 0 1 auto; cursor: default; }
.fs-topbar #langBox { flex: 0 1 auto; }
.fs-topbar #cuentaBox { flex: 0 1 auto; }
.fs-topbar #btnLang { max-width: 150px; }
.fs-topbar #btnCuenta { max-width: 190px; }
.fs-menu { position: relative; display: flex; min-width: 0; }
.fs-topbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: #1b9bd8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; outline: none;
  max-width: 200px; white-space: nowrap;
}
.fs-topbtn:hover, .fs-topbtn[aria-expanded="true"], .fs-topbtn:focus-visible { background: var(--fs-fondo-suave); }
.fs-topbtn { min-width: 0; flex: 0 1 auto; }
.fs-iconbtn { width: 34px; padding: 0; justify-content: center; flex: none; }
#envName, #langName { display: none; }
/* según el ancho útil de la tarjeta (ella menos su relleno de 52px): con ella a 560px aparece «Mis envíos» junto al reloj y a 680px el nombre del idioma */
.fs-topbar #btnLang { padding: 0 8px; }
@container fscard (min-width: 508px) { #envName { display: inline; } .fs-iconbtn { width: auto; padding: 0 10px 0 8px; } }
@container fscard (min-width: 628px) { #langName { display: inline; } .fs-topbar #btnLang { padding: 0 12px 0 10px; } }
.fs-iconbtn[hidden] { display: none; }
.fs-topbtn span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fs-topbtn .fs-globe, .fs-topbtn .fs-ico { width: 20px; height: 20px; color: #1b9bd8; fill: currentColor; flex: none; }
.fs-topbtn .fs-chev { width: 12px; height: 12px; fill: #1b9bd8; flex: none; margin-left: -2px; }
.fs-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 190px; max-height: calc(100vh - 90px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); padding: 6px;
}
.fs-menu-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 9px;
  padding: 9px 12px; font: inherit; font-size: 14px; color: var(--fs-texto); cursor: pointer; text-align: left; white-space: nowrap;
}
.fs-menu-list button:hover, .fs-menu-list button:focus-visible { background: var(--fs-fondo-suave); outline: none; }
.fs-menu-list button svg { width: 16px; height: 16px; fill: var(--fs-gris); flex: none; }
.fs-menu-list button.activo { font-weight: 700; color: var(--fs-primario); }
.fs-menu-list button.activo::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--fs-primario); }
.fs-menu-list hr { border: 0; border-top: 1px solid var(--fs-linea); margin: 6px 0; }

/* ---------------------------------------------------------------- cuenta (formularios en la tarjeta) */
.fs-cuenta { padding: 6px 0 0; }
.fs-cuenta .fs-h2 { margin: 6px 0 2px; }
.fs-cuenta .fs-sub { margin-bottom: 8px; }
.fs-sso { margin: 10px 0 2px; }
.fs-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 999px;
  border: 1px solid var(--fs-linea); background: #fff; color: var(--fs-texto); font-size: 15px; font-weight: 600; text-decoration: none;
}
.fs-google:hover { background: var(--fs-fondo-suave); }
.fs-google img { width: 20px; height: 20px; flex: none; }
.fs-sso-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--fs-gris-claro); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fs-sso-sep::before, .fs-sso-sep::after { content: ""; flex: 1; border-top: 1px solid var(--fs-linea); }
.fs-cuenta-form { display: flex; flex-direction: column; }
.fs-cuenta-form .fs-field { border-bottom: 1px solid var(--fs-linea); }
.fs-cuenta-form .fs-primary, .fs-cuenta-form .fs-secondary { flex: none; width: 100%; }
.fs-cuenta-form .fs-primary { margin-top: 18px; }
.fs-cuenta-form .fs-error { margin-top: 8px; }
.fs-secondary.fs-danger { height: 46px; margin-top: 12px; font-size: 14px; color: var(--fs-rojo); border-color: #fecaca; }
.fs-secondary.fs-danger:hover { background: #fef2f2; }
.fs-cuenta-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 14px; }
.fs-cuenta-links a { color: var(--fs-gris); text-decoration: underline; text-underline-offset: 3px; }
.fs-cuenta-links a:hover { color: var(--fs-texto); }
.fs-foot-links { display: flex; justify-content: center; gap: 18px; }
.fs-foot-links .fs-text-link { width: auto; }

/* ---------------------------------------------------------------- mis envíos */
.fs-head-hist { padding-bottom: 4px; }
.fs-row-exp {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--fs-linea);
  cursor: pointer; border-radius: 8px;
}
.fs-row-exp:hover { background: var(--fs-fondo-suave); }
.fs-row-exp .fs-n svg { width: 13px; height: 13px; fill: var(--fs-gris); vertical-align: -1px; margin-left: 6px; }
.fs-row-exp .fs-exp-cad { font-size: 12px; color: var(--fs-gris); white-space: nowrap; }
.fs-row-exp.caducado .fs-n, .fs-row-exp.caducado .fs-m { color: var(--fs-gris-claro); }
.fs-vacio { padding: 30px 10px; text-align: center; color: var(--fs-gris); font-size: 14px; }

/* pie de página: una sola línea, fijo en la esquina inferior izquierda del navegador */
.fs-page-foot {
  position: fixed; left: 64px; bottom: 12px; z-index: 5; /* alineado con el borde izquierdo de la tarjeta por defecto */
  max-width: calc(100vw - 80px);
  color: #fff; font-size: 12px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .6);
  text-align: left; white-space: nowrap;
}
.fs-page-foot a { color: #fff; text-decoration: none; opacity: .85; }
.fs-page-foot a:hover { opacity: 1; text-decoration: underline; }
.fs-foot-sep { margin: 0 6px; opacity: .6; }

/* ---------------------------------------------------------------- aviso de cookies */
.fs-cookies {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; box-sizing: border-box; width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 48px); overflow: auto; padding: 18px 20px 12px; background: #fff; color: var(--fs-texto);
  border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .06); font-size: 14px; line-height: 1.45;
}
.fs-cookies[hidden] { display: none; }
.fs-cook-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.fs-cook-text { margin: 0 0 14px; color: var(--fs-gris); }
.fs-cook-cfg { margin: 0 0 14px; border-top: 1px solid var(--fs-linea); }
.fs-cook-cfg[hidden] { display: none; }
.fs-cook-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--fs-linea); }
.fs-cook-row strong { display: block; margin-bottom: 2px; font-size: 14px; }
.fs-cook-row p { margin: 0; font-size: 13px; color: var(--fs-gris); }
.fs-cook-fijo { flex: none; padding-top: 2px; font-size: 12px; font-weight: 600; color: var(--fs-verde); white-space: nowrap; }
.fs-cook-save { margin-top: 12px; height: 44px; font-size: 15px; }
.fs-cook-btns { display: flex; gap: 8px; }
.fs-cook-btns .fs-secondary { flex: 1; height: 44px; font-size: 14px; white-space: normal; line-height: 1.15; padding: 0 12px; }
.fs-cook-more { margin-top: 6px; padding: 6px 0; }

/* ---------------------------------------------------------------- pantallas estrechas */
@media (max-width: 760px) {
  .fs-card { position: relative; left: 0 !important; top: 0 !important; transform: none; width: auto; height: auto; margin: 12px 12px 110px; max-height: none; min-height: calc(100vh - 140px); }
  .fs-logo-box { cursor: default; }
  .fs-grip { display: none; }
  .fs-topbtn { max-width: 34vw; }
  body { padding: 0; }
  .fs-page-foot { left: 12px; right: 12px; bottom: 10px; max-width: none; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
  .fs-page-foot .fs-foot-sep { margin: 0 3px; }
  #fs-wp-dots { bottom: 60px; }
  .fs-resizer { display: none; }
  .fs-cookies { right: 12px; left: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 24px); }
  .fs-actions { flex-wrap: wrap; }
}

/* Vista previa (doble clic en un fichero) */
.fs-row-file.done, .fs-row-file.avail { cursor: zoom-in; }
.fs-prev { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 18, 24, .72); }
.fs-prev[hidden] { display: none; }
.fs-prev-box { display: flex; flex-direction: column; width: min(1000px, 100%); height: min(760px, 100%); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.fs-prev-head { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--fs-linea); }
.fs-prev-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-prev-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #1b9bd8; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fs-prev-btn:hover { background: var(--fs-fondo-suave); color: #1587c0; }
.fs-prev-btn svg { width: 18px; height: 18px; fill: currentColor; }
.fs-prev-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--fs-fondo-suave); overflow: auto; }
.fs-prev-body img, .fs-prev-body video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.fs-prev-body audio { width: min(520px, 90%); }
.fs-prev-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fs-prev-body pre { align-self: stretch; width: 100%; margin: 0; padding: 16px 18px; background: #fff; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; overflow: auto; }
.fs-prev-body .fs-prev-msg { padding: 24px; color: var(--fs-gris); text-align: center; }
.fs-prev-prog { flex: none; padding: 10px 18px 12px; border-top: 1px solid var(--fs-linea); }
.fs-prev-prog[hidden] { display: none; }
.fs-prev-prog .fs-dl-bar > div { background: #1b9bd8; }
.fs-prev-prog.fs-indet .fs-dl-bar > div { width: 35% !important; animation: fs-indet 1.1s ease-in-out infinite alternate; }
@keyframes fs-indet { from { margin-left: 0; } to { margin-left: 65%; } }
@media (max-width: 600px) { .fs-prev { padding: 0; } .fs-prev-box { border-radius: 0; height: 100%; } }

/* consejo flotante al pasar por un fichero con vista previa */
.fs-prevtip { position: fixed; z-index: 70; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: rgba(23, 25, 28, .94); color: #fff; font-size: 12px; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.fs-prevtip[hidden] { display: none; }

/* Panel de actividad de un envío */
.fs-act-box { width: min(860px, 100%); height: min(640px, 100%); }
.fs-act-notify { flex: none; padding: 10px 18px; border-bottom: 1px solid var(--fs-linea); font-size: 14px; }
.fs-act-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.fs-act-check input { width: 16px; height: 16px; accent-color: #1b9bd8; }
.fs-act-check input:disabled + span { color: var(--fs-gris-claro); }
.fs-act-nota { margin-top: 4px; font-size: 12px; color: var(--fs-gris); }
.fs-act-nota:empty { display: none; }
.fs-act-body { flex: 1; min-height: 0; overflow: auto; }
.fs-act-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fs-act-body th { position: sticky; top: 0; background: #fff; text-align: left; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--fs-gris); border-bottom: 1px solid var(--fs-linea); }
.fs-act-body td { padding: 8px 12px; border-bottom: 1px solid var(--fs-fondo-suave); vertical-align: top; }
.fs-act-body td.fs-ev-fichero { word-break: break-all; }
.fs-act-body td.fs-ev-ip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.fs-act-body .fs-ev { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--fs-fondo-suave); font-size: 12px; white-space: nowrap; }
.fs-act-body .fs-ev-descarga { background: #e0f2fe; color: #075985; }
.fs-act-body .fs-ev-clave { background: #fee2e2; color: #991b1b; }
.fs-act-body .fs-tu { color: var(--fs-gris); font-size: 11px; margin-left: 4px; }
.fs-act-vacio { padding: 40px 18px; text-align: center; color: var(--fs-gris); }
.fs-act-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--fs-linea); }
.fs-act-ret { font-size: 12px; color: var(--fs-gris); }
.fs-act-del { border: 1px solid var(--fs-rojo); background: #fff; color: var(--fs-rojo); border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fs-act-del:hover, .fs-act-del.fs-sure { background: var(--fs-rojo); color: #fff; }
@media (max-width: 600px) { .fs-act-body th:nth-child(4), .fs-act-body td:nth-child(4) { display: none; } }

/* verificación de destinatarios por correo */
#formVerif > div { display: flex; flex-direction: column; gap: 10px; }
#formVerif[hidden], #formVerif > div[hidden] { display: none; }
.fs-codigo { text-align: center; font-size: 24px; letter-spacing: .4em; font-family: ui-monospace, Menlo, Consolas, monospace; padding-left: calc(.4em + 12px); }
.fs-link { background: none; border: 0; padding: 4px; color: #1b9bd8; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; align-self: center; }
.fs-act-dest { flex: none; padding: 10px 18px; border-bottom: 1px solid var(--fs-linea); font-size: 14px; }
.fs-act-destlbl { display: block; margin-bottom: 4px; }
.fs-act-dest textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 44px; max-height: 120px; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--fs-linea); border-radius: 6px; background: transparent; color: inherit; }
.fs-act-destfila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.fs-act-destfila .fs-act-nota { margin: 0; flex: 1; }
.fs-act-destbtn { flex: none; padding: 4px 12px; border-radius: 6px; border: 1px solid #1b9bd8; background: #1b9bd8; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.fs-act-destbtn:disabled { opacity: .5; cursor: default; }
.fs-act-body .fs-ev-verif { background: #dcfce7; color: #166534; }
