/* Página de descargas: se apoya en /styles.css y solo añade lo propio */

/* Fondo: halo que toma el color de cada app (sustituye al shader de la portada) */
body { background: var(--bg); transition: background-color .2s; }
.dl-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% 10%, rgb(var(--acc-rgb) / .16), transparent 60%),
    radial-gradient(50vmax 40vmax at 5% 95%, rgb(var(--acc2-rgb) / .12), transparent 60%);
}
code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgb(var(--ink-rgb) / .1); }

/* hero */
.dl-hero { min-height: 92svh; }
.dl-hero__title { font-size: clamp(56px, 14.6vw, 280px); }
.hero__title .ch { transform: translateY(110%) rotate(6deg); }
.is-ready .hero__title .ch { transform: none; }

/* índice de apps */
.dl-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: rgb(var(--ink-rgb) / .16); border: 1px solid rgb(var(--ink-rgb) / .16); margin-top: clamp(40px, 8vh, 100px); }
.dl-index a { background: rgb(var(--bg-rgb) / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: clamp(20px, 2.4vw, 36px); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; }
.dl-index a::after { content: ''; position: absolute; inset: 0; background: var(--c); transform: translateY(101%); transition: transform .6s var(--ease-out); }
.dl-index a > * { position: relative; z-index: 1; transition: color .35s; }
.dl-index a:hover::after { transform: none; }
.dl-index a:hover > * { color: var(--cb); }
.dl-index b { font-family: var(--pf); font-size: clamp(44px, 5vw, 84px); line-height: .9; letter-spacing: -.05em; font-weight: 800; }
.dl-index p { font-size: 15px; opacity: .8; max-width: 30ch; }
.dl-index .mono { display: flex; justify-content: space-between; gap: 12px; opacity: .7; }
.dl-index .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; vertical-align: middle; margin-right: 8px; }
.dl-index a:hover .dot { background: var(--cb); }
.dl-index .soon { background: rgb(var(--bg-rgb) / .5); padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; border: 0; }
.dl-index .soon b { color: transparent; -webkit-text-stroke: 1.5px rgb(var(--ink-rgb) / .45); font-family: var(--display); }

/* ficha de cada app (reutiliza .project de la portada) */
.dl-app { align-items: start; padding-top: 140px; }
.dl-app .project__name { font-size: clamp(64px, 12vw, 210px); }
.dl-app .project__viz { position: sticky; top: 120px; max-width: 520px; }
.dl-app__feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgb(var(--ink-rgb) / .16); border: 1px solid rgb(var(--ink-rgb) / .16); margin: 32px 0 28px; }
.dl-app__feats div { background: rgb(var(--bg-rgb) / .7); padding: 18px 20px; }
.dl-app__feats b { display: block; font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; }
.dl-app__feats p { font-size: 14.5px; line-height: 1.4; opacity: .78; }

/* tarjetas de descarga */
.dl-files { display: grid; gap: 12px; margin-top: 8px; }
.dl-file { border: 1.5px solid rgb(var(--ink-rgb) / .22); border-radius: 20px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; background: rgb(var(--bg-rgb) / .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, transform .5s var(--ease-out); }
.dl-file:hover { border-color: var(--acc); transform: translateY(-3px); }
.dl-file--rec { border-color: rgb(var(--acc-rgb) / .8); box-shadow: 0 0 0 1px rgb(var(--acc-rgb) / .25), 0 20px 60px -30px rgb(var(--acc-rgb) / .7); }
.dl-file__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-file__kind { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.dl-file__rec { padding: 4px 10px; border-radius: 99px; background: var(--acc); color: var(--on-acc); }
.dl-file__meta { opacity: .65; margin-top: 6px; }
.dl-file__note { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.4; opacity: .8; max-width: 60ch; }
.dl-file .btn { white-space: nowrap; }
.dl-file .btn svg { transform: none; }
.dl-file .btn:hover svg { transform: translateY(3px); }
.dl-sha { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; border-top: 1px dashed rgb(var(--ink-rgb) / .2); padding-top: 12px; }
.dl-sha span { opacity: .6; flex: none; }
.dl-sha code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; font-size: 12px; opacity: .8; }
.dl-sha button { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; border: 1px solid rgb(var(--ink-rgb) / .3); transition: background-color .25s, color .25s, border-color .25s; }
.dl-sha button:hover, .dl-sha button.is-ok { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }

.dl-app__extra { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.dl-app__extra a { border-bottom: 1px solid rgb(var(--ink-rgb) / .35); transition: border-color .25s, color .25s; }
.dl-app__extra a:hover { border-color: var(--acc); color: var(--acc); }
.dl-app__tip { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--acc2); background: rgb(var(--ink-rgb) / .05); font-size: 14.5px; line-height: 1.45; max-width: 62ch; border-radius: 0 12px 12px 0; }
.dl-app__legal { margin-top: 14px; font-size: 13px; opacity: .6; max-width: 62ch; }

.dl-steps h3 { font-size: clamp(26px, 2.8vw, 46px); }
.dl-steps b { font-weight: 700; }
.dl-end__lead { font-size: clamp(18px, 1.6vw, 24px); max-width: 44ch; margin-top: 4vh; line-height: 1.35; }

@media (max-width: 900px) {
  .dl-app .project__viz { position: relative; top: 0; max-width: 260px; }
}
@media (max-width: 620px) {
  .dl-app__feats { grid-template-columns: 1fr; }
  .dl-file { grid-template-columns: 1fr; }
  .dl-file .btn { justify-content: center; }
}
