/* DescargaLibre — estilos compartidos por todas las páginas */

:root {
  --bg: #f6f7f9;
  --bg-soft: #eef0f4;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e3e6ec;
  --line-strong: #cfd4dd;
  --text: #0f1419;
  --text-2: #4a5361;
  --text-3: #79828f;
  --brand: #0891b2;
  --brand-strong: #0e7490;
  --brand-soft: #e0f6fb;
  --on-brand: #ffffff;
  --ok: #059669;
  --ok-soft: #e6f7f0;
  --err: #dc2626;
  --err-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(15, 20, 25, .06);
  --shadow: 0 1px 2px rgba(15, 20, 25, .04), 0 12px 32px -12px rgba(15, 20, 25, .14);
  --radius: 14px;
  --radius-lg: 20px;
  --hero-glow: rgba(8, 145, 178, .10);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10;
    --bg-soft: #0f1218;
    --surface: #12161d;
    --surface-2: #171c24;
    --line: #232a35;
    --line-strong: #323b48;
    --text: #e9edf2;
    --text-2: #a7b0bd;
    --text-3: #6f7987;
    --brand: #22d3ee;
    --brand-strong: #67e8f9;
    --brand-soft: rgba(34, 211, 238, .12);
    --on-brand: #04141a;
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --err: #fb7185;
    --err-soft: rgba(251, 113, 133, .12);
    --shadow-sm: none;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
    --hero-glow: rgba(34, 211, 238, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-soft: #0f1218;
  --surface: #12161d;
  --surface-2: #171c24;
  --line: #232a35;
  --line-strong: #323b48;
  --text: #e9edf2;
  --text-2: #a7b0bd;
  --text-3: #6f7987;
  --brand: #22d3ee;
  --brand-strong: #67e8f9;
  --brand-soft: rgba(34, 211, 238, .12);
  --on-brand: #04141a;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .12);
  --err: #fb7185;
  --err-soft: rgba(251, 113, 133, .12);
  --shadow-sm: none;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --hero-glow: rgba(34, 211, 238, .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.logo-mark .icon { width: 18px; height: 18px; }
.logo b { color: var(--brand); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.icon-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }
:root[data-theme="dark"] .theme-light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-only { display: block; }
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 48px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: var(--text-2); font-size: 18px; margin: 16px auto 32px; max-width: 580px; }

/* ---------- Caja del descargador ---------- */
.downloader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 24px 70px -34px var(--a1); padding: 10px; text-align: left; transition: box-shadow .9s; }
.dl-row { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 6px 0 14px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field-icon { width: 22px; height: 22px; color: var(--text-3); flex: none; transition: color .2s; }
.field input { flex: 1; min-width: 0; height: 54px; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.field input::placeholder { color: var(--text-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, filter .15s, transform .05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); height: 58px; padding: 0 28px; font-size: 16px; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-soft { background: var(--bg-soft); border-color: var(--line); color: var(--text-2); padding: 8px 12px; font-size: 14px; }
.btn-soft:hover { color: var(--text); border-color: var(--line-strong); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); padding: 10px 14px; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }
.spinner { width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--err-soft); color: var(--text); }
.alert .icon { color: var(--err); margin-top: 1px; }

.platform-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px; box-shadow: var(--shadow-sm); }
.pchip svg { width: 16px; height: 16px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon-sm { color: var(--ok); }

/* Colores de marca */
.c-instagram { color: #e1306c; } .c-facebook { color: #0866ff; } .c-tiktok { color: var(--text); }
.c-pinterest { color: #e60023; } .c-x { color: var(--text); } .c-twitch { color: #9146ff; } .c-youtube { color: #ff0000; }

/* ---------- Resultado ---------- */
.result { margin-top: 10px; border-top: 1px solid var(--line); padding: 16px 6px 6px; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.result-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.result-head .badge-platform { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); flex: none; }
.result-head .badge-platform svg { width: 20px; height: 20px; }
.result-meta { min-width: 0; flex: 1; }
.result-meta .by { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.result-meta .by strong { color: var(--text-2); font-weight: 600; }
.result-meta h2 { font: 600 16px/1.45 "Inter", sans-serif; letter-spacing: 0; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.media-grid.single { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: start; gap: 18px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tile-media { position: relative; background: #000; aspect-ratio: 4 / 5; }
.tile-media video, .tile-media img { width: 100%; height: 100%; object-fit: contain; }
.tile-media img { object-fit: cover; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; pointer-events: none; }
.tile-actions { padding: 10px; display: grid; gap: 8px; }
.single .tile-actions { display: none; }

.actions { display: grid; gap: 8px; align-content: start; }
.action { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.action:hover { border-color: var(--brand); text-decoration: none; }
.action .meta { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.action.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.action.primary .meta { background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: inherit; }
.action.primary:hover { filter: brightness(1.07); }
.action[aria-busy="true"] { cursor: progress; opacity: .85; }
.action small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); }
.action.primary small { color: inherit; opacity: .8; }
.action > span:not(.meta) { min-width: 0; }
.action.compact { padding: 9px 12px; font-size: 14px; }
.result-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 14px; }
.link-btn { background: none; border: 0; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--text); }
.hint { font-size: 13px; color: var(--text-3); }

/* ---------- Mis descargas ---------- */
.recent { margin-top: 22px; text-align: left; }
.recent-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 8px; padding: 0 4px; }
.recent-head > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.recent-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; list-style: none; margin: 0; padding: 2px 2px 8px; scrollbar-width: thin; }
.recent-list li { flex: 0 0 136px; scroll-snap-align: start; }
.recent-list button { width: 100%; display: block; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text-2); }
.recent-list button:hover { border-color: var(--line-strong); color: var(--text); }
.rc-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--bg-soft) center / cover no-repeat; }
.rc-thumb svg { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--surface); }
.rc-body { display: block; padding: 7px 9px 9px; }
.rc-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; min-height: 2.7em; }
.rc-body time { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section.alt { background: color-mix(in srgb, var(--bg-soft) 76%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head .kicker { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); }
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 17px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card h3 .logo-box { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); }
.card h3 svg { width: 18px; height: 18px; }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 15px; display: grid; gap: 6px; }
.card li { display: flex; gap: 8px; align-items: flex-start; }
.card li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 4px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.note { margin-top: 18px; font-size: 14px; color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; }
.note .icon-sm { margin-top: 3px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 15px; }

.features { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature .ficon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--text-2); font-size: 15px; }

.tools { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tool p { color: var(--text-2); font-size: 15px; }
.tool .field input { height: 48px; font-size: 15px; }
.thumbs { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.thumbs a { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs span { position: absolute; bottom: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .75); color: #fff; }
.clean-out { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; }
.clean-out code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ok); font-size: 14px; }
.small { font-size: 13px; color: var(--text-3); }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--text-3); transition: transform .2s; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--text-2); padding-bottom: 20px; margin-top: -4px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 50; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }

/* ---------- Aurora y partículas ---------- */
@property --a1 { syntax: "<color>"; inherits: true; initial-value: #22d3ee; }
@property --a2 { syntax: "<color>"; inherits: true; initial-value: #14b8a6; }
@property --a3 { syntax: "<color>"; inherits: true; initial-value: #6366f1; }
:root { --a1: #22d3ee; --a2: #14b8a6; --a3: #6366f1; --aura-o: .2; transition: --a1 .9s ease, --a2 .9s ease, --a3 .9s ease; }
:root[data-theme="dark"] { --aura-o: .3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --aura-o: .3; } }
:root[data-net="instagram"] { --a1: #f58529; --a2: #dd2a7b; --a3: #8134af; }
:root[data-net="tiktok"] { --a1: #25f4ee; --a2: #fe2c55; --a3: #25f4ee; }
:root[data-net="facebook"] { --a1: #0866ff; --a2: #38bdf8; --a3: #6366f1; }
:root[data-net="pinterest"] { --a1: #e60023; --a2: #fb7185; --a3: #f97316; }
:root[data-net="x"] { --a1: #94a3b8; --a2: #64748b; --a3: #cbd5e1; }
:root[data-net="twitch"] { --a1: #9146ff; --a2: #bf94ff; --a3: #6441a5; }
:root[data-net="youtube"] { --a1: #ff0000; --a2: #ff6b6b; --a3: #f97316; }
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; opacity: var(--aura-o); will-change: transform; }
.aura i:nth-child(1) { background: radial-gradient(closest-side, var(--a1), transparent); top: -38vmax; left: -22vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aura i:nth-child(2) { background: radial-gradient(closest-side, var(--a2), transparent); top: -30vmax; right: -34vmax; animation: drift2 31s ease-in-out infinite alternate; }
.aura i:nth-child(3) { background: radial-gradient(closest-side, var(--a3), transparent); top: 18vmax; left: 10vmax; opacity: calc(var(--aura-o) * .7); animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(16vmax, 10vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-14vmax, 14vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(12vmax, -10vmax) scale(1.18); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Botones extra ---------- */
.btn-sm, .btn-primary.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg, .btn-primary.btn-lg { height: 52px; padding: 0 20px; font-size: 15px; }
.icon-btn-sm { width: 32px; height: 32px; border-radius: 9px; }
.btn-install { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; background: var(--text); color: var(--bg); }
.btn-install:hover { filter: brightness(1.15); }
@media (display-mode: standalone) { .btn-install { display: none; } }

/* ---------- Enlace copiado ---------- */
.clip-chip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; margin-bottom: 10px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); animation: rise .25s ease; }
.clip-logo svg { width: 22px; height: 22px; }
.clip-text { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.clip-text small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Varios enlaces ---------- */
.queue { margin-top: 10px; border-top: 1px solid var(--line); padding: 14px 6px 4px; animation: rise .25s ease; }
.queue-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.queue-head strong { flex: 1; font-size: 15px; }
.queue-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.q-thumb { width: 52px; height: 52px; flex: none; border-radius: 9px; background: var(--bg-soft) center / cover no-repeat; display: grid; place-items: center; }
.q-thumb svg { width: 20px; height: 20px; }
.q-text { flex: 1; min-width: 0; font-size: 14px; }
.q-text b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-text small { font-size: 12px; color: var(--text-3); }
.q-item[data-state="error"] .q-text small { color: var(--err); }
.q-item[data-state="ok"] .q-text small { color: var(--ok); }
.q-actions { display: flex; gap: 6px; flex: none; }
.q-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }

/* ---------- Crear con este video ---------- */
.make-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.make-row > small { width: 100%; font-size: 12px; color: var(--text-3); margin: 6px 0 2px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); }
.chip-btn:hover { border-color: var(--brand); color: var(--text); }
.action.wa { border-color: color-mix(in srgb, #25d366 45%, var(--line)); }
.action.wa .icon { color: #25d366; }

/* ---------- La app ---------- */
.promo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.promo-copy h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.promo-lead { color: var(--text-2); font-size: 17px; margin: 14px 0 22px; max-width: 34em; }
.promo-steps { list-style: none; counter-reset: ps; padding: 0; margin: 0; display: grid; gap: 8px; }
.promo-steps li { counter-increment: ps; display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; animation: 9s infinite; }
.promo-steps li::before { content: counter(ps); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 700; font-size: 14px; background: var(--brand-soft); color: var(--brand-strong); }
.promo.play .promo-steps li:nth-child(1) { animation-name: step1; }
.promo.play .promo-steps li:nth-child(2) { animation-name: step2; }
.promo.play .promo-steps li:nth-child(3) { animation-name: step3; }
@keyframes step1 { 0%, 27% { color: var(--text); } 31%, 100% { color: var(--text-3); } }
@keyframes step2 { 0%, 27% { color: var(--text-3); } 31%, 55% { color: var(--text); } 59%, 100% { color: var(--text-3); } }
@keyframes step3 { 0%, 55% { color: var(--text-3); } 59%, 100% { color: var(--text); } }
.install-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.install-help { margin-top: 14px; font-size: 14px; color: var(--text-2); max-width: 34em; }
.install-help.ok { color: var(--ok); display: flex; gap: 8px; align-items: center; font-weight: 600; }
.qr-box { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); max-width: 470px; }
.qr-svg { width: 116px; height: 116px; flex: none; color: #0f1419; background: #fff; border-radius: 10px; padding: 4px; }
.qr-box p { font-size: 14px; color: var(--text-2); }

/* Celular animado: 9 s por vuelta y solo mientras está en pantalla (.play).
   El estado por defecto es la escena final, así con "reducir movimiento" se ve el resultado. */
.phone { justify-self: center; width: 268px; aspect-ratio: 9 / 18.5; padding: 9px; border-radius: 42px; background: #0b0d12; box-shadow: inset 0 0 0 2px #2b313d, 0 40px 90px -30px rgba(0, 0, 0, .55), 0 30px 80px -40px var(--a1); }
.phone-screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #000; color: #fff; font-size: 12px; line-height: 1.3; }
.scene { position: absolute; inset: 0; }
.s-video { background: radial-gradient(120% 70% at 50% 35%, #7c4a1e, #2a160b 70%); }
.v-art { position: absolute; left: 12%; right: 22%; top: 30%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, #f3e3c3, #c9a46a 80%, transparent 82%); }
.v-art span { position: absolute; width: 38%; height: 30%; border-radius: 100px 100px 12px 12px; background: linear-gradient(#f6c46a, #c9822e); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.v-art span:nth-child(1) { left: 12%; top: 22%; transform: rotate(-12deg); }
.v-art span:nth-child(2) { left: 46%; top: 16%; transform: rotate(8deg); }
.v-art span:nth-child(3) { left: 30%; top: 52%; transform: rotate(-3deg); }
.v-side { position: absolute; right: 5%; bottom: 20%; display: grid; gap: 14px; }
.v-btn { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.v-btn svg { width: 17px; height: 17px; }
.v-caption { position: absolute; left: 6%; right: 26%; bottom: 7%; display: grid; gap: 2px; font-size: 11px; }
.v-caption b { font-size: 12px; }
.s-sheet { transform: translateY(105%); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 22px; border-radius: 22px 22px 0 0; background: #1c2029; display: grid; gap: 10px; }
.sheet-grip { justify-self: center; width: 36px; height: 4px; border-radius: 4px; background: #4a5263; }
.sheet-title { font-weight: 600; font-size: 12px; color: #c4cad6; }
.sheet-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-size: 9.5px; color: #c4cad6; }
.sa { position: relative; display: grid; justify-items: center; gap: 5px; }
.sa i { width: 40px; height: 40px; border-radius: 13px; background: #3a4150; display: grid; place-items: center; }
.sa .sa-wa { background: #25d366; border-radius: 50%; }
.sa-dl i { background: linear-gradient(135deg, #22d3ee, #0891b2 60%, #164e63); color: #fff; }
.sa-dl i svg { width: 20px; height: 20px; }
.s-app { background: #0a0c10; display: grid; align-content: start; gap: 12px; padding: 34px 12px 12px; }
.app-bar { display: flex; align-items: center; gap: 8px; font: 700 14px/1 "Bricolage Grotesque", sans-serif; }
.app-bar .logo-mark { width: 26px; height: 26px; border-radius: 8px; background: #22d3ee; color: #04141a; display: grid; place-items: center; }
.app-bar .logo-mark .icon { width: 15px; height: 15px; }
.app-card { background: #12161d; border: 1px solid #232a35; border-radius: 16px; padding: 10px; display: grid; gap: 9px; }
.app-thumb { aspect-ratio: 4 / 3.4; border-radius: 10px; background: radial-gradient(120% 80% at 50% 40%, #7c4a1e, #2a160b 70%); }
.app-meta { display: grid; gap: 2px; font-size: 11px; color: #a7b0bd; }
.app-meta b { color: #22d3ee; font-size: 11px; }
.app-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; background: #22d3ee; color: #04141a; font-weight: 700; font-size: 12.5px; }
.app-btn svg { width: 16px; height: 16px; }
.app-done { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #e9edf2; color: #0a0c10; font-weight: 600; }
.app-done svg { width: 16px; height: 16px; color: #059669; }
/* Toques del dedo: un círculo sobre cada botón, desfasado dentro de la vuelta de 9 s */
.v-share::after, .sa-dl::after, .app-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
.sa-dl::after { top: 20px; }
.play .s-sheet { animation: 9s infinite sheet-in; }
.play .s-app { animation: 9s infinite app-in; }
.play .app-done { animation: 9s infinite done-in; }
.play .sa-dl i { animation: 9s infinite dl-glow; }
.play .v-share::after, .play .sa-dl::after, .play .app-btn::after { animation: 9s infinite tap; }
.play .v-share::after { animation-delay: 1.1s; }
.play .sa-dl::after { animation-delay: 3.6s; }
.play .app-btn::after { animation-delay: 6.2s; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.5); } 4% { opacity: 1; transform: scale(1); } 7% { transform: scale(.7); } 10% { opacity: 1; transform: scale(1); } 14%, 100% { opacity: 0; transform: scale(1); } }
@keyframes sheet-in { 0%, 25% { transform: translateY(105%); } 30%, 54% { transform: translateY(0); } 60%, 100% { transform: translateY(105%); } }
@keyframes app-in { 0%, 52% { opacity: 0; transform: scale(1.04); } 58%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes done-in { 0%, 76% { opacity: 0; transform: translateY(12px); } 80%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes dl-glow { 0%, 36% { box-shadow: none; } 42%, 50% { box-shadow: 0 0 0 4px rgba(34, 211, 238, .45); } 56%, 100% { box-shadow: none; } }

/* ---------- Estudio ---------- */
.studio-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.promo-steps li > span { min-width: 0; }
.studio-card { display: grid; align-content: start; gap: 6px; text-align: left; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.studio-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.studio-card .sc-icon { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a3)); }
.studio-card b { font: 700 16.5px/1.25 "Bricolage Grotesque", "Inter", sans-serif; letter-spacing: -.01em; }
.studio-card > span:last-child { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.sub-head { font-size: 20px; margin: 48px 0 16px; }

@media (max-width: 860px) {
  .promo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cards, .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .site-header .wrap { gap: 10px; }
  .btn-install { margin-left: auto; height: 36px; padding: 0 12px; font-size: 13px; }
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .studio-card { padding: 14px; }
  .studio-card .sc-icon { width: 38px; height: 38px; margin-bottom: 4px; }
  .studio-card b { font-size: 15px; }
  .studio-card > span:last-child { font-size: 13px; }
  .queue-head strong { flex-basis: 100%; }
  .phone { width: 240px; }
  .qr-box { display: none; }
  .install-row .btn { flex: 1 1 100%; }
  .site-header .wrap { justify-content: space-between; }
  .hero { padding: 36px 0 32px; }
  .hero .lead { font-size: 16px; margin: 12px auto 22px; }
  .dl-row { flex-direction: column; }
  .btn-primary { width: 100%; }
  .media-grid.single { grid-template-columns: minmax(0, 1fr); }
  .media-grid.single .tile-media { max-height: 460px; aspect-ratio: auto; }
  .media-grid.single .tile-media video, .media-grid.single .tile-media img { max-height: 460px; height: auto; aspect-ratio: 4 / 5; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .trust { gap: 6px 16px; font-size: 13px; }
  .section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
