/* Easy Capture By Andoni — web oficial */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0B0F;
  --bg-2: #15151B;
  --card: #1D1D25;
  --card-hover: #23232D;
  --border: #2A2A35;
  --border-strong: #3A3A47;
  --text: #FFFFFF;
  --text-2: #B4B4C0;
  --text-3: #8A8A98;
  --accent: #E11D48;
  --accent-hover: #F43F5E;
  --accent-soft: rgba(225, 29, 72, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --header-h: 68px;
  --container: 1160px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.muted { color: var(--text-2); }
.small { font-size: .875rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.25em;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-lg { min-height: 52px; padding: .85em 1.5em; font-size: 1.04rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(225, 29, 72, .28); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(225, 29, 72, .36); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #50505f; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ------------------------------------------------------------------ cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 11, 15, .94); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; }
.brand-text { font-size: 1.05rem; }
.brand-by { color: var(--accent); font-weight: 650; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 550; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
}
.lang-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px;
  font-size: .84rem; font-weight: 600; color: var(--text-3); text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.lang-link:hover { color: var(--text); }
.lang-link.is-current { color: var(--text); background: var(--card); }
.lang-sep { color: var(--border-strong); font-size: .8rem; padding: 0 1px; }
.flag { width: 18px; height: 12px; border-radius: 2px; flex: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 18px; display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 12px; font-size: 1.02rem; color: var(--text); }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand-by { display: none; }
  .lang-link span { display: none; }     /* en móvil: solo banderas (con nombre accesible) */
  .lang-link { padding: 7px 8px; }
  .lang-sep { display: none; }
}

/* ------------------------------------------------------------------ portada */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(225, 29, 72, .16), rgba(225, 29, 72, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: #FDA4B8; border: 1px solid rgba(225, 29, 72, .3);
  font-size: .84rem; font-weight: 600;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .2em; }
.hero-slogan { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 700; color: var(--accent); margin-bottom: .6em; letter-spacing: -0.01em; }
.hero-subtitle { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; margin-bottom: .5em; }
.hero-description { color: var(--text-2); font-size: 1.06rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-meta { color: var(--text-3); font-size: .9rem; margin: 0; }

.hero-shot .shot-btn { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--border); }

.hero-diagram {
  margin: 0; padding: 28px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.diagram-title { margin: 0 0 18px; color: var(--text-3); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.diagram { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 8px; }
.diagram-node {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border);
  font-size: .86rem; font-weight: 600; color: var(--text-2);
}
.diagram-node .icon { width: 40px; height: 40px; color: var(--text); }
.diagram-node.is-accent { border-color: rgba(225, 29, 72, .5); background: rgba(225, 29, 72, .07); color: var(--text); }
.diagram-node.is-accent .icon { color: var(--accent); }
.diagram-link { flex: 0 0 42px; position: relative; height: 2px; background: linear-gradient(90deg, var(--border-strong), var(--accent)); border-radius: 2px; }
.diagram-link span {
  position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--text-3);
}
.diagram-note { margin: 20px 0 0; color: var(--text-2); font-size: .92rem; text-align: center; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .diagram { flex-direction: column; align-items: stretch; }
  .diagram-node { flex-direction: row; justify-content: flex-start; padding: 14px 16px; text-align: left; }
  .diagram-node .icon { width: 30px; height: 30px; }
  .diagram-link { flex: 0 0 26px; width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(180deg, var(--border-strong), var(--accent)); }
  .diagram-link span { left: 14px; top: 50%; transform: translateY(-50%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ secciones */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid #1c1c24; border-bottom: 1px solid #1c1c24; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.06rem; margin: 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(225, 29, 72, .4); background: var(--card-hover); }
.feature p { color: var(--text-2); font-size: .95rem; margin: 0; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon .icon { width: 22px; height: 22px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 20px; } }

/* Capturas */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot figcaption { margin-top: 10px; color: var(--text-2); font-size: .92rem; text-align: center; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; cursor: zoom-in; transition: border-color .2s ease, transform .2s ease;
}
.shot-btn:hover { border-color: rgba(225, 29, 72, .5); transform: translateY(-2px); }
.shot-btn img { width: 100%; }
.shots-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  max-width: 560px; margin: 0 auto; padding: 44px 28px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2);
}
.shots-empty .icon { width: 44px; height: 44px; color: var(--accent); }
.shots-empty p { margin: 0; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 5, 8, .88); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: min(96vw, 1600px); max-height: 84vh; width: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--text-2); }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text); border: 1px solid var(--border-strong); cursor: pointer;
}

/* Compatibilidad */
.compat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compat-item { display: flex; gap: 16px; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.compat-item p { margin: 0; color: var(--text-2); font-size: .95rem; }
.compat-icon { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.compat-icon .icon { width: 22px; height: 22px; }
@media (max-width: 760px) { .compat-grid { grid-template-columns: 1fr; } }

.note {
  display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025); border: 1px solid var(--border);
  color: var(--text-2); font-size: .9rem;
}
.note .icon { color: var(--text-3); margin-top: 2px; width: 18px; height: 18px; }

/* Banda de descarga */
.download-band {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--border);
}
.download-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.download-band-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.download-band-cta p { margin: 0; }
.logo-big { width: 64px; height: 64px; }
.notes-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes-list li { position: relative; padding-left: 22px; color: var(--text-2); }
.notes-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .download-band { grid-template-columns: 1fr; padding: 26px; gap: 26px; } }

/* Apoyo */
.support-card {
  max-width: 760px; margin: 0 auto; padding: 48px 40px; text-align: center;
  border-radius: 20px; background: linear-gradient(180deg, rgba(225, 29, 72, .08), var(--card) 55%);
  border: 1px solid rgba(225, 29, 72, .25);
}
.support-card p { color: var(--text-2); }
.support-card .support-lead { color: var(--text); font-size: 1.12rem; font-weight: 550; }
.support-card .btn { margin: 12px 0 18px; }
.support-card .small { margin: 0; color: var(--text-3); }
.support-icon { display: inline-flex; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.support-icon .icon { width: 26px; height: 26px; }
@media (max-width: 560px) { .support-card { padding: 34px 22px; } .support-card .btn { width: 100%; } }

/* Acerca de */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-text { color: var(--text-2); font-size: 1.04rem; }
.about-list { margin: 0; padding: 8px 22px; }
.about-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.about-list div:last-child { border-bottom: 0; }
.about-list dt { color: var(--text-3); }
.about-list dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------------ página de descarga */
.download-page { position: relative; overflow: hidden; padding: 56px 0 88px; min-height: calc(100vh - var(--header-h)); }
.download-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.dl-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.dl-card h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin: 18px 0 4px; }
.dl-name { color: var(--text-2); margin-bottom: 26px; }
.dl-version { color: var(--accent); font-weight: 700; }
.countdown { position: relative; width: 132px; height: 132px; margin-bottom: 20px; }
.countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.countdown circle { fill: none; stroke-width: 8; }
.countdown-track { stroke: var(--bg); }
.countdown-bar {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .95s linear;
}
.countdown-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.is-done .countdown-bar { stroke: #10B981; }
.dl-status { font-size: 1.08rem; font-weight: 600; min-height: 1.7em; margin-bottom: 10px; }
.dl-manual a { color: #FDA4B8; font-weight: 600; text-underline-offset: 3px; }
.dl-manual a:hover { color: #fff; }
.dl-actions { margin-top: 18px; }
.dl-unavailable { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-unavailable h2 { font-size: 1.35rem; margin: 6px 0 0; }
.dl-unavailable-icon .icon { width: 44px; height: 44px; color: var(--accent); }
.dl-side { display: grid; gap: 16px; }
.dl-side .card { padding: 24px; }
.dl-side h2 { font-size: 1.1rem; margin-bottom: 12px; }
.file-details { margin: 0; }
.file-details div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.file-details div:last-child { border-bottom: 0; }
.file-details dt { color: var(--text-3); flex: none; }
.file-details dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }
.file-hash { flex-direction: column; }
.file-hash dd { text-align: left; }
.file-hash code { display: block; word-break: break-all; color: var(--text-2); font-weight: 500; background: var(--bg); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.steps { margin: 0; padding-left: 1.3em; color: var(--text-2); display: grid; gap: 6px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.dl-side .note { margin-top: 16px; }
@media (max-width: 900px) { .download-wrap { grid-template-columns: 1fr; } .download-page { padding-top: 32px; } }
@media (max-width: 520px) { .dl-card { padding: 34px 20px; } }

/* ------------------------------------------------------------------ páginas legales */
.legal { padding-top: 56px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p { color: var(--text-2); }

/* ------------------------------------------------------------------ redirección y 404 */
.page-redirect { min-height: 100vh; display: grid; place-items: center; }
.redirect-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; text-align: center; }
.redirect-title { font-weight: 750; font-size: 1.3rem; margin: 0; }
.lang-choices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lang-choice { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.lang-choice:hover { border-color: var(--accent); }
.nf-code { font-size: 4rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.nf-block { max-width: 420px; }
.nf-block + .nf-block { padding-top: 18px; border-top: 1px solid var(--border); }
.nf-block h1 { font-size: 1.5rem; }
.nf-block p { color: var(--text-2); }

/* ------------------------------------------------------------------ pie */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-slogan { color: var(--text-3); margin: 10px 0 0; font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; max-width: 560px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: .94rem; padding: 4px 0; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #1c1c24; color: var(--text-3); font-size: .86rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-note { font-size: .8rem; }

/* ------------------------------------------------------------------ aparición suave */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
