/* ==========================================================================
   Sonkore — sitio web
   Sistema de diseño de la marca Sonkore: grafito profundo, verde, una sola
   tipografía (Inter, variable con tamaño óptico), superficies planas,
   filetes finos y radios de 8 px como en la aplicación.
   ========================================================================== */

/* ---------- Tipografía (autoalojada, SIL OFL 1.1) ------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* color */
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --surface: #121216;
  --surface-hi: #1a1a1f;
  --hover: #22222a;
  --border: #212128;
  --border-hi: #34343d;
  --text: #f4f4f6;
  --text-dim: #9b9ba5;
  --text-faint: #6a6a75;
  --accent: #1ed760;
  --accent-hi: #24e86c;
  --accent-deep: #0a7a35;
  --on-accent: #000000;
  --accent-soft: rgba(30, 215, 96, .12);
  --accent-line: rgba(30, 215, 96, .32);
  --accent-glow: rgba(30, 215, 96, .30);
  --warn: #f5a524;
  --danger: #fa2d48;
  --info: #3fb6ff;

  /* tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font);
  --font-head: var(--font);
  --font-brand: var(--font);
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-0: clamp(.8125rem, .79rem + .12vw, .875rem);
  --fs-1: clamp(.9375rem, .9rem + .22vw, 1.0625rem);
  --fs-2: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  --fs-3: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  --fs-4: clamp(1.875rem, 1.45rem + 1.9vw, 2.875rem);
  --fs-5: clamp(2.625rem, 1.7rem + 4.4vw, 5.25rem);

  /* forma */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ring: 0 0 0 1px rgba(255,255,255,.035) inset;
  --shadow-1: 0 1px 2px rgba(0,0,0,.35);
  --shadow-2: 0 14px 40px -18px rgba(0,0,0,.7);
  --shadow-3: 0 50px 120px -40px rgba(0,0,0,.85);

  /* ritmo */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 200ms;
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: var(--fs-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .5em; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-5); letter-spacing: -.045em; line-height: .98; }
h2 { font-size: var(--fs-4); letter-spacing: -.035em; }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: .9em; }
code, kbd { background: var(--surface-hi); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: .08em .4em; color: var(--text); }
kbd { font-family: var(--font); font-weight: 600; font-size: .85em; box-shadow: 0 1px 0 var(--border-hi); }
pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; overflow: auto; scrollbar-color: var(--border-hi) transparent; line-height: 1.55; margin: 0 0 1em; }
pre code { background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:hover { background: rgba(255,255,255,.015); }
small { color: var(--text-dim); }

strong, b { font-weight: 600; color: var(--text); }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-xs); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 16px; text-decoration: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; position: relative; z-index: 1; }

section { padding-block: var(--section); position: relative; }
section + section { padding-top: 0; }

/* rótulo de sección: la marca como glifo + texto en versalitas */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: "\E000"; font-size: 1.15em; letter-spacing: 0; line-height: 1; font-weight: 700; }
.center .eyebrow::before { display: none; }
.lead { font-size: var(--fs-2); color: var(--text-dim); line-height: 1.5; text-wrap: pretty; letter-spacing: -.01em; }

/* ---------- Botones ------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface-hi); --btn-fg: var(--text); --btn-bd: var(--border-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font: 600 var(--fs-1)/1 var(--font); letter-spacing: -.012em; white-space: nowrap;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--hover); border-color: #454550; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: transparent; }
.btn-primary:hover { background: var(--accent-hi); border-color: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--surface-hi); border-color: transparent; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.btn .sub { font-weight: 500; color: inherit; opacity: .7; font-size: .85em; }
.btn-text { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; gap: 2px; }
.btn-text .sub { font-size: .75rem; font-weight: 500; opacity: .72; }
.btn-lg:has(.btn-text) { min-height: 60px; padding-block: 8px; }

/* ---------- Chips / etiquetas ------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8125rem; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* ---------- Tarjetas y rejillas ----------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); box-shadow: var(--ring); position: relative; overflow: hidden; }
.card h3, .card h4 { margin-bottom: .4em; }
.card p { color: var(--text-dim); font-size: var(--fs-0); line-height: 1.6; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; border: 1px solid rgba(30,215,96,.18); }
.card .icon svg { width: 20px; height: 20px; }

 

/* ---------- Navegación --------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,.7);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,10,12,.86); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.375rem; letter-spacing: -.045em; text-decoration: none; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 30px; height: 30px; border-radius: 8px; }
.brand .mark { width: .9em; height: .93em; color: var(--accent); border-radius: 0; flex: none; }
.brand .k { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: inline-block; padding: 8px 11px; border-radius: var(--radius); color: var(--text-dim); font-weight: 500; font-size: .9375rem; letter-spacing: -.01em; transition: color var(--dur), background var(--dur); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-hi); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px; background: rgba(10,10,12,.97); border-bottom: 1px solid var(--border); display: none; }
  .nav-links a { padding: 12px 14px; font-size: 1.0625rem; }
  .nav.open .nav-links { display: flex; }
}
@media (max-width: 480px) { .nav-cta { display: none; } .nav-inner { gap: 12px; } }

/* ---------- Hero --------------------------------------------------------- */

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }

/* ---------- Descargas ---------------------------------------------------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(48px, 7vw, 80px); }
.dl-grid > * { min-width: 0; }
@media (min-width: 1101px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 801px) and (max-width: 1100px) { .dl-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 800px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-card { padding: clamp(22px, 3vw, 32px); }
.dl-card .os { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dl-card .os svg { width: 30px; height: 30px; color: var(--text); }
.dl-card .os h3 { margin: 0; font-size: 1.375rem; }
.dl-card .req { color: var(--text-dim); font-size: .875rem; margin-bottom: 18px; }
.dl-card .btn { margin-bottom: 14px; }
.dl-card .steps { margin: 0; padding-left: 1.2em; color: var(--text-dim); font-size: .875rem; display: grid; gap: 6px; }
.dl-card .steps code { font-size: .8em; }
.dl-card.is-yours { border-color: var(--accent-line); }
.dl-card .yours { display: none; margin-left: auto; color: var(--accent); border-color: var(--accent-line); }
.dl-card.is-yours .yours { display: inline-flex; }
.dl-note { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: .875rem; }

.fname { overflow-wrap: anywhere; min-width: 0; }

.copy-wrap { position: relative; }
/* With the copy button the code scrolls in its own box, left of a gutter
   that holds the button, so the button never covers the text. */
.copy-wrap.has-copy pre { overflow: hidden; padding-right: 58px; padding-bottom: 6px; }
/* Room under the last line for the scrollbar, which Linux and macOS draw
   over the content when the pointer is on it. */
.copy-wrap.has-copy pre > code { display: block; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
.copy-btn { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); background: var(--surface-hi); color: var(--text-dim); border-radius: var(--radius-sm); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { color: var(--text); border-color: var(--border-hi); }
.copy-btn.done { color: var(--accent); border-color: var(--accent-line); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--dur); }
.faq details[open] { border-color: var(--border-hi); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: var(--fs-1); color: var(--text); letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-hi); background: center / 12px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba5' stroke-width='2.5' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>"); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--text-dim); font-size: var(--fs-0); line-height: 1.65; }
.faq .ans p:last-child { margin: 0; }

/* ---------- Footer ------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-2); position: relative; z-index: 1; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font: 600 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-dim); font-size: .9375rem; }
.footer a:hover { color: var(--text); }
.footer .brand { color: var(--text); font-size: 1.375rem; } /* the logo, as in the header */
.footer .about { color: var(--text-dim); font-size: .9375rem; max-width: 380px; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .8125rem; }
.footer-bottom a { color: var(--text-dim); font-size: inherit; }

/* ---------- Páginas de texto (legal y descargas) ------------------------ */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--border); margin-bottom: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: var(--fs-4); letter-spacing: -.035em; margin-bottom: 10px; }
.page-head .lead { font-size: var(--fs-1); max-width: 760px; }
.page-head .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc > * { min-width: 0; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.toc { position: sticky; top: 90px; font-size: .875rem; }
.toc h5 { font: 600 .72rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 14px; color: var(--text-dim); border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; border: 0; gap: 6px; } .toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; margin: 0; } .toc a.active { border-color: var(--accent); } }
.prose { max-width: 76ch; font-size: var(--fs-1); color: var(--text-dim); }
.prose h2 { color: var(--text); font-size: var(--fs-3); margin: 2.2em 0 .6em; padding-top: .4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: var(--fs-2); margin: 1.8em 0 .5em; }
.prose h4 { color: var(--text); font-size: 1rem; margin: 1.4em 0 .4em; }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .35em; }
.prose table { margin: 1em 0 1.5em; }
.prose pre.license { font-size: .78rem; line-height: 1.5; max-height: 560px; white-space: pre-wrap; word-break: break-word; }
.prose details.lic { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 1em 0; }
.prose details.lic summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--text); }
.prose details.lic pre { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); margin: 1.2em 0; font-size: var(--fs-0); }
.callout svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.callout.warn svg { color: var(--warn); }
.callout.warn { border-color: rgba(245,165,36,.3); }
.callout p { margin: 0; }
.anchor { color: var(--text-faint); font-weight: 400; margin-left: 8px; opacity: 0; font-size: .8em; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.2em 0 1.6em; }
@media (max-width: 760px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-grid .card { padding: 18px; }
.summary-grid .card h4 { font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.summary-grid .card h4 svg { width: 16px; height: 16px; color: var(--accent); }
.summary-grid .card ul { margin: 0; padding-left: 1.1em; font-size: .8438rem; color: var(--text-dim); }
.summary-grid .card.no h4 svg { color: var(--danger); }
.summary-grid .card.must h4 svg { color: var(--warn); }

/* ---------- 404 ---------------------------------------------------------- */
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err .big { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--surface-hi); letter-spacing: -.06em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Impresión ---------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .toc, .skip-link, .btn { display: none !important; }
  .prose, .prose * { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  pre.license { max-height: none; }
}

/* ---------- Portada: muro de discos y una idea por sección --------------- */

.dl-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin-inline: auto; }
@media (max-width: 640px) { .dl-simple { grid-template-columns: minmax(0, 1fr); } }
.dl-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px 28px 28px; text-align: center; display: flex; flex-direction: column; }
.dl-box .dl-os { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--text); }
.dl-box h3 { font-size: var(--fs-3); margin-bottom: .3em; }
.dl-box p { color: var(--text-dim); font-size: var(--fs-0); margin-bottom: 22px; }
.dl-box .btn { margin-top: auto; }
.dl-box .btn + .btn { margin-top: 12px; }
.dl-box .btn:has(.btn-text) { min-height: 58px; padding-block: 8px; }
.dl-more { text-align: center; color: var(--text-faint); font-size: var(--fs-0); margin-top: 24px; }

@keyframes wall-up { to { transform: translateY(-50%); } }

.btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }

  
 
  
@keyframes float { 50% { transform: translateY(-8px); } }

 

 

/* ==========================================================================
   Portada profesional: el escritorio a sangre, datos, funciones con recortes
   reales de la app, estilos, descargas, preguntas y cierre.
   ========================================================================== */
.p-hero { position: relative; overflow: hidden; padding: clamp(12px, 2vw, 28px) 0 clamp(48px, 6vw, 80px); }
.p-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.p-hero-copy h1 { font-size: clamp(2.4rem, 1.2rem + 3vw, 4rem); line-height: 1; letter-spacing: -.045em; margin: 0 0 20px; }
.p-hero-copy h1 .accent { color: var(--accent); }
.p-lead { font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); color: #c4c4cc; max-width: 30em; margin-bottom: 28px; line-height: 1.55; }

.p-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-alt { margin: 14px 0 0; color: var(--text-dim); font-size: .875rem; }
.p-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-dim); font-size: .875rem; }
.p-trust li { display: flex; align-items: center; gap: 7px; }
.p-trust svg { width: 15px; height: 15px; color: var(--accent); }
.p-hero-stage { position: relative; width: 100%; padding-bottom: 14%; }
.p-win { width: 100%; }
.p-mini { position: absolute; left: -6%; bottom: 0; width: 21%; filter: drop-shadow(0 0 1px rgba(255,255,255,.22)) drop-shadow(0 4px 8px rgba(0,0,0,.7)); }
@media (min-width: 1700px) { :root { --container: 1520px; } }
@media (max-width: 1000px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .p-hero-stage { width: 100%; }
  .p-mini { left: auto; right: 4%; width: 30%; }
}
@media (max-width: 480px) { .p-actions .btn { width: 100%; } .p-mini { width: 38%; right: 12%; } }

.p-facts { padding: 0 0 clamp(24px, 3vw, 40px); }
.p-facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.p-facts-row > div { padding: 22px 20px; }
.p-facts-row > div + div { border-left: 1px solid var(--border); }
.p-facts-row dt { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -.04em; color: var(--text); line-height: 1.1; }
.p-facts-row dd { margin: 4px 0 0; color: var(--text-dim); font-size: .9375rem; }
@media (max-width: 640px) { .p-facts-row { grid-template-columns: minmax(0, 1fr); } .p-facts-row > div + div { border-left: 0; border-top: 1px solid var(--border); } }

.p-feature { padding: clamp(32px, 4.5vw, 64px) 0; }
.p-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.p-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.p-row.flip .p-text { order: 2; }
@media (max-width: 900px) { .p-row, .p-row.flip { grid-template-columns: minmax(0, 1fr); } .p-row.flip .p-text { order: 0; } }
.p-text h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem); letter-spacing: -.035em; margin-bottom: 16px; }
.p-text > p { color: var(--text-dim); font-size: var(--fs-1); line-height: 1.65; }
.p-text .acc { color: var(--accent); }
.p-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--text); font-size: .9375rem; }
.p-points li { position: relative; padding-left: 26px; }
.p-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ed760' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.p-shot { position: relative; border-radius: 14px; padding: clamp(14px, 2vw, 28px); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.p-shot-mini { display: grid; place-items: center; }

.p-head { max-width: 640px; margin-bottom: clamp(24px, 3vw, 40px); }
.p-head.center { text-align: center; margin-inline: auto; }
.p-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem); letter-spacing: -.035em; margin-bottom: 10px; }
.p-head p { color: var(--text-dim); }

.p-styles { padding: clamp(32px, 4.5vw, 64px) 0; }
.p-styles .p-head { text-align: center; margin-inline: auto; }

.p-wide { max-width: 1180px; margin-inline: auto; }

.p-more { padding: clamp(32px, 4.5vw, 64px) 0; }
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .p-grid { grid-template-columns: minmax(0, 1fr); } }
.p-card { padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.p-card svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }
.p-card h3 { font-size: 1.0625rem; letter-spacing: -.02em; margin-bottom: 6px; }
.p-card p { color: var(--text-dim); font-size: .9375rem; line-height: 1.55; }

.p-download { padding: clamp(32px, 4.5vw, 64px) 0; }
.p-faq { padding: clamp(32px, 4.5vw, 64px) 0; }
.p-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .p-faq-grid { grid-template-columns: minmax(0, 1fr); } }

.p-close { padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 72px); }
.p-close-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 20px; border: 1px solid var(--accent-line); background: var(--surface); }
.p-close-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.035em; margin-bottom: 6px; }
.p-close-band p { color: var(--text-dim); margin: 0; }

/* Capturas reales de la app (assets/img/app/, generadas con la app misma) */
.shot { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.18)); }

.p-shot-mini .shot { width: min(100%, 360px); }
.p-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.p-tabs button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-hi); color: var(--text-dim); font-size: .9375rem; font-weight: 500; transition: color var(--dur), background var(--dur), border-color var(--dur); }
.p-tabs button:hover { color: var(--text); background: var(--surface-hi); }
.p-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.p-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); }
.lang-pick svg { width: 16px; height: 16px; }
.lang-pick select { background: var(--surface); color: var(--text); border: 1px solid var(--border-hi); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .875rem; cursor: pointer; }

/* Visualizador animado: cuadros reales de la app, encima de la captura */
.shot-wrap { position: relative; }
.viz-anim { position: absolute; left: calc(594 / 2640 * 100%); top: calc(1560 / 1680 * 100%); width: calc(198 / 2640 * 100%); height: auto; pointer-events: none; }
.viz-anim[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .viz-anim { display: none; } }

/* Japonés, chino y coreano: sin el interletrado apretado del latín y sin cortar palabras */
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; word-break: normal; line-break: strict; word-break: auto-phrase; }
:lang(ja) .p-hero-copy h1, :lang(zh) .p-hero-copy h1, :lang(ko) .p-hero-copy h1 { font-size: clamp(2rem, 1.1rem + 2.4vw, 3.25rem); }
:lang(ja) body, :lang(zh) body, :lang(ko) body { line-height: 1.75; }
