/*
 * Miiseik · download page.
 * The app's own identity: greys, one navy (--marca) where you act, Source Serif 4 for the name and the
 * titles, Source Sans 3 for everything else. The pictures of the app are built in HTML (data-ui) with
 * the app's real tokens and borders, so they follow the light and dark themes like the app does.
 */

@font-face { font-family: "Source Sans 3"; src: url("fuentes/SourceSans3-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fuentes/SourceSans3-It.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fuentes/SourceSans3-Semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fuentes/SourceSans3-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fuentes/SourceSerif4-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fuentes/SourceSerif4-Semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Page */
  --suelo: #ffffff;
  --tinta: #1a1a1a;
  --tinta-2: #5f5f5f;
  --campo: #f3f3f3;
  --mesa: #e6e6e6;
  --marca: #1b2a4a;
  --marca-hover: #2d4170;
  --sobre-marca: #ffffff;
  --foco: #2b4c8c;
  --campo-marino: #1b2a4a;
  --tinta-marino: #ffffff;
  --tinta-marino-2: #c3cde0;
  --boton-campo: #ffffff;
  --boton-campo-hover: #e4e9f3;
  --sobre-boton-campo: #1b2a4a;

  /* The app (same values as src/app/globals.css) */
  --u-bg: #ffffff;
  --u-bg-muted: #f3f3f3;
  --u-bg-hover: #ebebeb;
  --u-fg: #1a1a1a;
  --u-fg-muted: #5f5f5f;
  --u-border: #cfcfcf;
  --u-border-strong: #8a8a8a;
  --u-brand: #1b2a4a;
  --u-on-brand: #ffffff;
  --u-brand-tint: color-mix(in srgb, var(--u-brand) 10%, var(--u-bg-muted));
  --u-raised: #ffffff;
  --u-editor-bg: #e6e6e6;
  --u-ok: #1d6b2f;
  --u-warn: #8a5a00;
  --u-danger: #b00020;
  --u-titulo: #f3f3f3;
  --u-titulo-tinta: #1a1a1a;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, "Segoe UI", Roboto, sans-serif;
  --m: clamp(20px, 3vw, 44px);
  --g: clamp(16px, 2vw, 28px);
  --sec: clamp(104px, 11vw, 184px);
  --t-1: clamp(38px, 7.4vw, 116px);
  --t-2: clamp(34px, 4.4vw, 64px);
  --t-3: clamp(18px, 1.45vw, 21px);
  --facil: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --suelo: #1b1b1d;
    --tinta: #ececee;
    --tinta-2: #a6a6ad;
    --campo: #232326;
    --mesa: #2a2a2e;
    --marca: #8fa8d6;
    --marca-hover: #a9bde3;
    --sobre-marca: #0f1a30;
    --foco: #8fa8d6;
    --campo-marino: #16223b;
    --tinta-marino: #ececee;
    --tinta-marino-2: #aab8d3;
    --boton-campo: #8fa8d6;
    --boton-campo-hover: #a9bde3;
    --sobre-boton-campo: #0f1a30;

    --u-bg: #1b1b1d;
    --u-bg-muted: #232326;
    --u-bg-hover: #2f2f33;
    --u-fg: #ececee;
    --u-fg-muted: #a6a6ad;
    --u-border: #3b3b40;
    --u-border-strong: #6e6e76;
    --u-brand: #8fa8d6;
    --u-on-brand: #0f1a30;
    --u-brand-tint: color-mix(in srgb, var(--u-brand) 16%, var(--u-bg-muted));
    --u-raised: #26262a;
    --u-editor-bg: #2a2a2e;
    --u-ok: #57c776;
    --u-warn: #e3ac3c;
    --u-danger: #ff7a7a;
    --u-titulo: #202020;
    --u-titulo-tinta: #ffffff;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--suelo); color: var(--tinta); font: 400 17px/1.55 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--marca) 22%, transparent); }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dibujos { position: absolute; width: 0; height: 0; overflow: hidden; }
.saltar { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--suelo); border-radius: 6px; }
.saltar:focus { left: 16px; }

.marco { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--m); }
.grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.c-1-5 { grid-column: 1 / 5; }
.c-1-6 { grid-column: 1 / 6; }
.c-1-7 { grid-column: 1 / 7; }
.c-1-13 { grid-column: 1 / 13; }
.c-6-13 { grid-column: 6 / 13; }
.c-7-13 { grid-column: 7 / 13; }
.c-8-13 { grid-column: 8 / 13; }

.titulo-1, .titulo-2 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
.titulo-1 { font-size: var(--t-1); line-height: .98; letter-spacing: -.032em; }
.titulo-2 { font-size: var(--t-2); line-height: 1.04; letter-spacing: -.024em; margin-bottom: .55em; }
.entrada { font-size: var(--t-3); line-height: 1.45; }
.meta { font-size: 15px; color: var(--tinta-2); margin: 0; }
main p:not([class]), main dd, .pasos, .requisitos { max-width: 64ch; }
.entrada { max-width: 34em; }

/* ---------- buttons ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 6px; background: var(--marca); color: var(--sobre-marca); font: 600 17px/1.2 var(--sans); text-decoration: none; transition: background-color .18s, transform .18s var(--facil); }
.boton:hover { background: var(--marca-hover); }
.boton:active { transform: translateY(1px) scale(.99); }
.boton--chico { padding: 9px 16px; font-size: 15px; }
.boton--claro { background: var(--boton-campo); color: var(--sobre-boton-campo); }
.boton--claro:hover { background: var(--boton-campo-hover); }
.boton[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
.descarga :focus-visible { outline-color: var(--tinta-marino); }

/* ---------- top bar ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: var(--suelo); }
.barra__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.marca { font: 600 24px/1 var(--serif); letter-spacing: .005em; color: var(--marca); text-decoration: none; }
.barra__nav { display: flex; gap: 28px; margin-left: auto; }
.barra__nav a { text-decoration: none; font-size: 16px; padding: 6px 0; transition: color .15s; }
.barra__nav a:hover { text-decoration: underline; }

/* ---------- first screen ---------- */
.portada { padding-top: clamp(32px, 4.6vw, 76px); }
.portada__texto { align-items: end; row-gap: 28px; }
.portada__titulo { grid-column: 1 / 9; }
.portada__lado { grid-column: 9 / 13; padding-bottom: .4em; }
.portada__lado .entrada { margin-bottom: 26px; }
.accion { margin: 0 0 12px; }
.mesa { margin-top: clamp(36px, 4vw, 64px); padding-top: clamp(24px, 3vw, 44px); background: var(--mesa); overflow: hidden; }

/* An interface picture: built at its own width and scaled to fit (pagina.js sets --s and the height). */
.pantalla { position: relative; margin: 0; overflow: hidden; }
.pantalla__lienzo { width: max-content; }
.js .pantalla__lienzo { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform: translateY(var(--subida, 0px)) scale(var(--s, 1)); }
.pantalla--inicio { border-radius: 8px 8px 0 0; }

/* ---------- sections ---------- */
.seccion { padding-block: calc(var(--sec) / 2); }
#como-es { padding-top: var(--sec); }
.seccion--campo { background: var(--campo); padding-block: calc(var(--sec) * .6); }
.col-texto { grid-column: 1 / 5; align-self: center; }
.col-cosa { grid-column: 6 / 13; }

/* The sheet you can write on. */
.hoja { border: 1px solid var(--u-border); border-radius: 10px; overflow: hidden; background: var(--u-bg); color: var(--u-fg); font-size: 15px; }
.hoja__barra { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 10px; border-bottom: 1px solid var(--u-border); }
.hoja__titulo { font-weight: 600; white-space: nowrap; }
.hoja__palabras { margin-left: auto; font-size: 13px; color: var(--u-fg-muted); white-space: nowrap; }
.hoja__mesa { height: clamp(380px, 40vw, 540px); padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 0; background: var(--u-editor-bg); overflow: hidden; }
.hoja__papel { height: 100%; max-width: 660px; margin: 0 auto; padding: clamp(28px, 4vw, 60px) clamp(24px, 4.4vw, 68px) 0; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); transition: box-shadow .2s; }
.hoja__papel:focus-within { box-shadow: 0 0 0 2px var(--foco), 0 1px 3px rgba(0, 0, 0, .14); }
.hoja textarea { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; resize: none; color: #1a1a1a; font: 400 17px/1.6 var(--sans); outline: none; }
.hoja textarea::placeholder { color: #8a8a8a; }

/* Covers. */
.carpetas__cabeza { align-items: end; }
.carpetas__cabeza p { align-self: end; margin-bottom: .35em; }
.tira { margin: clamp(40px, 5vw, 72px) 0 0; overflow: hidden; }
.tira__fila { display: flex; gap: var(--g); width: max-content; padding: 4px 0 40px; transform: translateX(var(--deriva, 0px)); will-change: transform; }
.tira .u-card { width: clamp(150px, 15vw, 228px); flex: none; transition: transform .25s var(--facil), border-color .2s; }
.tira .u-card:hover { transform: translateY(-4px); border-color: var(--u-border-strong); }

/* The formats, set large. */
.formatos { list-style: none; margin: clamp(48px, 6vw, 96px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .02em .36em; font: 400 var(--t-1)/1.02 var(--serif); letter-spacing: -.035em; }
.formatos__pie { margin: 28px 0 0; font-size: var(--t-3); }

/* Where the files live. */
.dialogo { margin: 0; padding: clamp(28px, 4.4vw, 72px); background: var(--campo); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.archivos__texto { align-self: center; }
.datos { margin: 36px 0 0; display: grid; gap: 18px; }
.datos dt { font-weight: 600; }
.datos dd { margin: 0; }

/* The profile. */
.perfil__texto { align-self: center; }
.perfil__texto p:last-child { margin-bottom: 0; }

/* ---------- download ---------- */
.descarga { background: var(--campo-marino); color: var(--tinta-marino); padding-block: var(--sec); }
.descarga .meta { color: var(--tinta-marino-2); }
.descarga__principal .entrada { margin-bottom: 30px; }
.descarga h3 { font: 600 var(--t-3)/1.3 var(--sans); margin: 0 0 14px; }
.descarga__detalle h3 + ol, .descarga__detalle h3 + ul { margin-top: 0; }
.descarga__detalle ul { margin-bottom: 0; }
.descarga__detalle h3:not(:first-child) { margin-top: 44px; }
.pasos, .requisitos { padding-left: 1.25em; display: grid; gap: 10px; }
.pasos li::marker { font-weight: 600; }
.preguntas { margin-top: clamp(72px, 8vw, 128px); }
.preguntas__lista { margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--g); }
.preguntas__lista dt { font-weight: 600; margin-bottom: 4px; }
.preguntas__lista dd { margin: 0; }

/* ---------- footer ---------- */
.pie { padding: clamp(72px, 8vw, 128px) 0 44px; }
.pie__nombre { margin: 0 0 clamp(28px, 4vw, 56px) -.04em; font: 600 clamp(92px, 23vw, 360px)/.8 var(--serif); letter-spacing: -.05em; color: var(--marca); }
.pie__datos p { margin: 0 0 12px; font-size: 15px; color: var(--tinta-2); }

/* ---------- the app, built in HTML (data-ui) ---------- */
[data-ui] { font-family: var(--sans); font-size: 15px; line-height: 1.4; color: var(--u-fg); text-align: left; }
.u-ventana { width: 1200px; height: 760px; display: flex; flex-direction: column; background: var(--u-bg); border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.u-titulo { flex: none; height: 32px; display: flex; align-items: center; gap: 10px; padding-left: 12px; background: var(--u-titulo); color: var(--u-titulo-tinta); font: 12px/1 "Segoe UI", system-ui, sans-serif; }
.u-titulo__botones { width: 138px; height: 32px; margin-left: auto; }
.u-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: 52px 1fr; }
.u-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--u-border); border-top: 1px solid var(--u-border); }
.u-top__marca { min-width: 204px; font: 600 19px/1 var(--serif); letter-spacing: .01em; color: var(--u-brand); }
.u-input { padding: 6px 8px; border: 1px solid var(--u-border-strong); border-radius: 6px; background: var(--u-bg); color: var(--u-fg-muted); }
.u-top__buscar { flex: 1; max-width: 560px; }
.u-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: #2f3b52; color: #ffffff; font-family: var(--serif); font-weight: 600; }
.u-avatar--chico { width: 32px; height: 32px; margin-left: auto; font-size: 15px; }
.u-lado { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; overflow: hidden; background: var(--u-bg-muted); border-right: 1px solid var(--u-border); }
.u-lado__main { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2px; }
.u-lado__item { position: relative; display: block; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.u-lado__main .u-lado__item::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -5px; height: 1px; background: color-mix(in srgb, var(--u-brand) 28%, transparent); }
.u-lado__item--activo { background: var(--u-brand-tint); color: var(--u-brand); font-weight: 600; }
.u-lado__titulo { margin: 16px 10px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--u-fg-muted); }
.u-lado__nota { margin: 14px 10px 0; font-size: 12px; color: var(--u-fg-muted); white-space: normal; }
.u-pagina { padding: 20px 24px; overflow: hidden; }
.u-cabeza { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.u-cabeza--2 { margin-top: 32px; }
.u-h1, .u-h2 { font: 600 20px/1.2 var(--serif); }
.u-cabeza .u-btn { margin-left: auto; }
.u-btn { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--u-border-strong); border-radius: 6px; background: var(--u-bg); white-space: nowrap; }
.u-btn--primario { background: var(--u-brand); color: var(--u-on-brand); border-color: var(--u-brand); }
.u-btn--chico { padding: 3px 8px; font-size: 13px; }
.u-fila, .u-grilla { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.u-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--u-border); border-radius: 6px; background: var(--u-bg); }
.u-cover { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--u-bg-muted); border-bottom: 1px solid var(--u-border); border-radius: 6px 6px 0 0; }
.u-cover svg { width: 100%; height: 100%; }
.u-ph { font-size: 28px; color: var(--u-fg-muted); text-transform: uppercase; }
.u-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px 10px; }
.u-card__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-card__meta { font-size: 12px; color: var(--u-fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-card__menu { position: absolute; top: 6px; right: 6px; padding: 0 8px; font-size: 18px; line-height: 24px; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 6px; }
.u-card__menu--abierto { background: var(--u-bg-hover); border-color: var(--u-border-strong); }
.u-card--menu { z-index: 2; }
.u-menu { position: absolute; top: 38px; left: calc(100% - 38px); z-index: 3; min-width: 220px; display: flex; flex-direction: column; padding: 4px; background: var(--u-raised); border: 1px solid var(--u-border-strong); border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); }
.u-menu span { padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.u-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--u-border); }
.u-menu__marcado { background: var(--u-bg-hover); }
.u-menu__peligro { color: var(--u-danger); }
.u-estado__texto { overflow: hidden; text-overflow: ellipsis; }
.u-estado { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--u-fg-muted); white-space: nowrap; overflow: hidden; }
.u-estado__punto { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--u-border-strong); transition: background-color .2s; }
.u-estado[data-estado="saved"] .u-estado__punto { background: var(--u-ok); }
.u-estado[data-estado="dirty"] .u-estado__punto, .u-estado[data-estado="saving"] .u-estado__punto { background: var(--u-warn); }
.u-estado[data-estado="error"] .u-estado__punto { background: var(--u-danger); }

.u-modal { width: min(100%, 520px); background: var(--u-raised); border: 1px solid var(--u-border-strong); border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .16); }
.u-modal__head { padding: 14px 16px; border-bottom: 1px solid var(--u-border); font-weight: 600; }
.u-modal__body { padding: 16px; }
.u-modal__doc { margin: 0 0 12px; font-size: 14px; color: var(--u-fg-muted); }
.u-opcion { display: flex; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--u-border); border-radius: 6px; }
.u-opcion:last-child { margin-bottom: 0; }
.u-opcion b { font-weight: 600; }
.u-opcion small { display: block; margin-top: 2px; font-size: 13px; color: var(--u-fg-muted); }
.u-opcion--elegida { border-color: var(--u-brand); background: var(--u-brand-tint); }
.u-radio { width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--u-border-strong); background: var(--u-raised); }
.u-opcion--elegida .u-radio { border-color: var(--u-brand); background: var(--u-brand); box-shadow: inset 0 0 0 3px var(--u-raised); }
.u-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--u-border); }

.u-perfil { width: 860px; }
.u-pp { position: relative; overflow: hidden; border: 1px solid var(--u-border); border-radius: 14px; background: var(--u-raised); }
.u-pp__banner { position: absolute; inset: 0; width: 100%; height: 100%; }
/* As in the app: over an image, a soft veil toward the bottom, where the text is, in the image's own tone. */
.u-pp__velo { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(226, 232, 238, 0) 34%, rgba(226, 232, 238, .84) 58%, rgba(232, 237, 242, .95) 100%); }
.u-pp__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 132px 28px 26px; color: #1a1a1a; }
.u-avatar--grande { width: 104px; height: 104px; margin-bottom: 10px; font-size: 44px; border: 4px solid #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.u-pp__nombre { font: 600 30px/1.15 var(--serif); }
.u-pp__usuario { color: #46515c; }
.u-pp__bio { max-width: 520px; margin-top: 6px; font-size: 16px; line-height: 1.5; }
.u-pp__links { align-self: stretch; display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(27, 42, 74, .16); }
.u-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid #cfcfcf; border-radius: 999px; background: #ffffff; color: #1a1a1a; font-size: 14px; }
.u-link__marca { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #ffffff; font-size: 11px; font-weight: 700; }
.u-link__marca--discord { background: #5865f2; }
.u-link__marca--steam { background: #1b2838; }
.u-link__texto { display: flex; flex-direction: column; line-height: 1.15; }
.u-link__texto small { font-size: 11px; color: #5f5f5f; }
.u-fav { margin-top: 26px; }
.u-fav__cabeza { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.u-fav__cabeza small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--u-fg-muted); }
.u-fav__grilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.u-fav__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-fav__item b { margin-top: 6px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-fav__item small { font-size: 12px; color: var(--u-fg-muted); }
.u-fav__cover { aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--u-border); border-radius: 10px; background: var(--u-bg-muted); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.u-fav__cover svg { width: 100%; height: 100%; }
.u-fav__cover--vacia { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--u-bg-hover); }
.u-fav__cover--vacia span { font: 400 18px/1.3 var(--serif); text-align: center; color: var(--u-fg); }

/* ---------- entrances and motion ---------- */
.js [data-entra] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--facil), transform .7s var(--facil); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-entra].visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-entra] { opacity: 1; transform: none; transition: none; }
  .tira__fila, .js .pantalla__lienzo { --deriva: 0px; --subida: 0px; }
  .boton, .tira .u-card { transition: none; }
}

/* ---------- narrower windows ---------- */
@media (max-width: 1080px) {
  .barra__nav { gap: 20px; }
  .portada__titulo { grid-column: 1 / 13; }
  .portada__lado { grid-column: 1 / 9; }
  .col-texto { grid-column: 1 / 13; }
  .col-cosa { grid-column: 1 / 13; margin-top: 36px; }
  .c-1-5, .c-1-6, .c-1-7, .c-6-13, .c-7-13, .c-8-13 { grid-column: 1 / 13; }
  .carpetas__cabeza p, .archivos__texto, .perfil__texto { margin-top: 20px; }
  #archivos .dialogo { order: 2; margin-top: 36px; }
  .pantalla--perfil { margin-top: 36px; }
  .descarga__detalle { margin-top: 48px; }
}
@media (max-width: 760px) {
  .barra__nav { display: none; }
  .barra__in { justify-content: space-between; height: 60px; }
  .portada__lado { grid-column: 1 / 13; }
  .preguntas__lista { grid-template-columns: 1fr; }
  .u-menu { left: auto; right: 8px; }
}
@media (max-width: 640px) {
  .hoja__palabras { display: none; }
  .u-perfil { width: 520px; }
  .u-fav__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
