/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Copyright (C) 2026 Daniel Pulgarín */
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0d1217; --bg-2: #121a21; --card: #151e26; --ink: #eaf1f6; --muted: #93a4b2; --line: rgba(255, 255, 255, .1);
  --sea: #6ba5ce; --amber: #f2b24f; --on-amber: #1a1204; --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --display: 'Space Grotesk', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
  --wrap: min(1160px, calc(100vw - 48px));
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f3ec; --bg-2: #ede9df; --card: #fffdf8; --ink: #0f1a22; --muted: #55646f; --line: rgba(15, 26, 34, .14);
  --sea: #2f7cae; --amber: #e39a1d; --on-amber: #1a1204; --shadow: 0 24px 60px rgba(20, 30, 40, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f6f3ec; --bg-2: #ede9df; --card: #fffdf8; --ink: #0f1a22; --muted: #55646f; --line: rgba(15, 26, 34, .14);
    --sea: #2f7cae; --amber: #e39a1d; --on-amber: #1a1204; --shadow: 0 24px 60px rgba(20, 30, 40, .18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: 10px; z-index: 100; padding: 8px 14px; background: var(--amber); color: var(--on-amber); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100vw - 48px)); }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 12px max(24px, calc((100vw - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 24px var(--display); letter-spacing: -.03em; }
.nav { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 13px var(--body); cursor: pointer; }
.chip:hover { background: var(--bg-2); }
.chip--icon { width: 36px; padding: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--amber); color: var(--on-amber); font: 700 15px var(--body); cursor: pointer; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--small { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--big { height: 58px; padding: 0 34px; font-size: 17px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-2); filter: none; }
.btn--off { opacity: .55; cursor: default; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--sea); font-weight: 700; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; width: var(--wrap); margin: 0 auto; padding: 84px 0 56px; }
.hero__beam { position: absolute; z-index: -1; top: -120px; left: -22vw; width: 80vw; height: 520px; pointer-events: none; opacity: .5; transform-origin: 0 50%; background: conic-gradient(from 168deg at 0% 50%, transparent 0deg, color-mix(in srgb, var(--amber) 34%, transparent) 12deg, transparent 28deg); filter: blur(10px); animation: sweep 11s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
.kicker { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; }
.hero h1 span { color: var(--amber); }
.hero__sub { margin-top: 24px; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero__art { position: relative; }
.hero__window img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__menu { position: absolute; right: -2%; bottom: -12%; width: 38%; }
.hero__menu img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; width: var(--wrap); margin: 36px auto 0; padding: 22px 0; list-style: none; border-block: 1px solid var(--line); font: 600 14px var(--body); color: var(--muted); }
.facts li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--amber); vertical-align: middle; }

/* Secciones */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-2); }
.section h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; margin-top: 110px; }
.feature:first-of-type { margin-top: 70px; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature__text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.feature__lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature li { position: relative; padding-left: 22px; font-size: 15.5px; }
.feature li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--amber); }
.shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.shot--small img { box-shadow: none; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card h4 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

.steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.step { display: flex; gap: 22px; align-items: flex-start; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.step__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--on-amber); font: 700 17px var(--display); }
.step h4 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15.5px; }

.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.table-wrap + .muted { margin-top: 18px; font-size: 14px; }

.tl__title { margin-top: 80px; font-size: 26px; font-weight: 600; }
.tl { list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.tl li { position: relative; display: flex; gap: 18px; align-items: baseline; }
.tl li::before { content: ''; position: absolute; left: -33px; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }
.tl__v { flex: none; width: 44px; font: 700 15px var(--display); color: var(--amber); }
.open h2 { margin-bottom: 14px; }
.open p + p { margin-top: 18px; }

.final { padding: 110px 0 120px; text-align: center; }
.final img { margin: 0 auto 24px; }
.final h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; margin-bottom: 28px; }

/* Descargas */
.dl { padding: 90px 0 70px; text-align: center; }
.dl__icon { margin: 0 auto 26px; border-radius: 26px; }
.dl h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 600; }
.dl .lead { margin: 16px auto 0; }
.dl__cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.prose h3 { font-size: 22px; font-weight: 600; margin: 44px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose p + p, .prose .code + p, .prose p + .code { margin-top: 12px; }
.code { margin: 12px 0 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.code code { word-break: break-all; white-space: pre-wrap; }

/* Pie */
.foot { padding: 56px 0 36px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; width: var(--wrap); margin: 0 auto; }
.foot__brand { display: flex; gap: 14px; align-items: center; max-width: 340px; }
.foot__brand strong { font: 600 20px var(--display); }
.foot__brand p { font-size: 14px; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.foot__links a:hover { color: var(--ink); }
.foot__by { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.foot__by a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
:root[data-theme='light'] .foot__by img { filter: invert(1); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .foot__by img { filter: invert(1); } }
.foot__legal { width: var(--wrap); margin: 32px auto 0; font-size: 13px; color: var(--muted); }

/* Aparición suave */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 44px; }
  .hero__menu { width: 34%; right: 0; bottom: -8%; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 30px; margin-top: 80px; }
  .feature--flip .feature__text { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top { gap: 10px; padding-inline: 16px; }
  .top__tools .btn { display: none; }
  .grid, .grid--4 { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .facts { gap: 8px 22px; }
  .tl li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__beam { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

.dl--left { text-align: left; padding-bottom: 50px; }
.dl--left h1 { font-size: clamp(36px, 4.6vw, 54px); }
.dl--left .lead { margin: 18px 0 0; }
.dl--left .hero__note { margin-top: 18px; }
