/* HRV CID · landing. Mundo visual de DESIGN.md: blanco con azul de Prusia, Hanken Grotesk, perfil del registro. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/hanken-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/hanken-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 {
  --paper: #f5f6f8; --surface: #fff; --ink: #0e1726; --ink-2: #36404f; --ink-3: #5b6474;
  --rule: #e3e6eb; --rule-strong: #c9ced8; --signal: #1e3a5f; --signal-deep: #142a46; --signal-soft: #e3ebf5; --halo: #bcd0ea;
  --navy: #0f1f4b; --blue: #2a6bd1; --cyan: #5cc8f2; --on-signal-2: #c9d7ea;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1240px, 100% - 48px);
  font-family: 'Hanken Grotesk', system-ui, sans-serif; color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.55; font-weight: 450; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: var(--rule-strong) transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
::selection { background: var(--halo); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--halo); border-radius: 4px; }
a { color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; font-weight: 720; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
td, .stat b { font-variant-numeric: tabular-nums; }
.wrap { width: var(--wrap); margin-inline: auto; }
html[lang="es"] [data-l="en"], html[lang="en"] [data-l="es"] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.top .brand { display: block; color: var(--navy); }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 560; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 2px; }
.lang button { font: inherit; font-size: 13px; font-weight: 640; border: 0; background: none; color: var(--ink-3); padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--signal); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 640; font-size: 16px; text-decoration: none; border-radius: 8px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--cyan); color: var(--navy); }
.btn.primary:hover { background: #82d6f6; text-decoration: none; }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost:hover { border-color: #fff; text-decoration: none; }
.btn.small { padding: 7px 14px; font-size: 14px; background: var(--signal); color: #fff; }
.btn.small:hover { background: var(--signal-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Héroe: banda de Prusia con el perfil del registro montado encima */
.hero { background: var(--signal); color: #fff; padding: 52px 0 0; position: relative; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 168px; background: var(--paper); }
.hero h1 { font-size: clamp(38px, 4.4vw, 64px); max-width: 19ch; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--on-signal-2); max-width: 60ch; margin-top: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.hero .meta { margin-top: 18px; font-size: 14px; color: var(--on-signal-2); }
.hero .grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--on-signal-2); counter-reset: s; min-width: 250px; }
.steps li { display: flex; gap: 12px; align-items: baseline; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); font-size: 12px; font-weight: 720; color: #fff; }
.steps b { color: #fff; font-weight: 640; }

.stage { position: relative; z-index: 1; margin-top: 40px; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 24px 60px -24px rgba(14,23,38,.45), 0 2px 6px rgba(14,23,38,.08); overflow: hidden; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 24px 4px; }
.stage-head h2 { font-size: 17px; font-weight: 640; letter-spacing: -0.01em; }
.tag { display: inline-block; font-size: 12px; font-weight: 640; background: var(--signal-soft); color: var(--signal); border-radius: 4px; padding: 3px 8px; }
.stage-head .hint { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.result { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); padding: 8px 24px 16px; gap: 16px; }
.stat > span { display: block; font-size: 13px; color: var(--ink-3); }
.stat b { font-size: clamp(24px, 2.6vw, 34px); font-weight: 720; letter-spacing: -0.02em; }
.stat small { font-size: 14px; color: var(--ink-3); margin-left: 4px; font-weight: 560; }
.stat.name b { font-size: clamp(20px, 2.1vw, 28px); display: inline-flex; align-items: center; gap: 8px; }
.stat.name i { width: 10px; height: 10px; border-radius: 2px; background: var(--signal); }
#chart { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
#chart text { font-family: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 24px 16px; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.flag { opacity: 0; transform: translateY(-10px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.flag.up { opacity: 1; transform: none; }
#cur text { font-variant-numeric: tabular-nums; }

/* Fondo del héroe: cuadrícula de papel milimetrado y la serie RR a la deriva */
.hero { overflow-x: clip; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; }
#hero-trace { position: absolute; left: 0; top: 210px; width: 200%; height: 200px; opacity: .13; pointer-events: none; animation: drift 90s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
@keyframes drift { to { transform: translateX(-50%); } }
.hero > .wrap { position: relative; }

/* Logotipo: la onda late una vez al cargar */
.brand .bar { transform-box: fill-box; transform-origin: center; animation: beat .9s var(--ease) both; }
.brand .bar:nth-of-type(2) { animation-delay: .06s; } .brand .bar:nth-of-type(3) { animation-delay: .12s; } .brand .bar:nth-of-type(4) { animation-delay: .18s; }
.brand .bar:nth-of-type(5) { animation-delay: .24s; } .brand .bar:nth-of-type(6) { animation-delay: .30s; } .brand .bar:nth-of-type(7) { animation-delay: .36s; } .brand .bar:nth-of-type(8) { animation-delay: .42s; }
@keyframes beat { 0% { transform: scaleY(.15); } 55% { transform: scaleY(1.12); } 100% { transform: scaleY(1); } }

/* Recursos */
.resources { padding: 40px 0 8px; }
.resources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 560; }
.resources li a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); }
.resources li a:hover { color: var(--signal); }
.resources svg { width: 18px; height: 18px; color: var(--signal); }

/* Secciones */
section.block { padding: 112px 0 0; }
.sec-title { font-size: clamp(30px, 3.4vw, 46px); max-width: 22ch; }
.sub { color: var(--ink-2); max-width: 62ch; margin-top: 16px; font-size: 18px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 72px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(22px, 2vw, 28px); }
.feature p { color: var(--ink-2); margin-top: 12px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15.5px; color: var(--ink-2); }
.feature li { padding-left: 18px; position: relative; }
.feature li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; border-radius: 1px; background: var(--blue); }
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface); box-shadow: 0 18px 40px -22px rgba(14,23,38,.35); }
/* Marco de ventana de escritorio: el programa es una app, no una web */
.shot::before { content: ''; display: block; height: 26px; border-bottom: 1px solid var(--rule); background:
  radial-gradient(circle at 15px 50%, #cfd5de 4.5px, transparent 5px), radial-gradient(circle at 31px 50%, #cfd5de 4.5px, transparent 5px),
  radial-gradient(circle at 47px 50%, #cfd5de 4.5px, transparent 5px), #f3f5f8; }
.feature .shot { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feature .shot:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -24px rgba(14,23,38,.42); }
.shot figcaption { font-size: 13px; color: var(--ink-3); padding: 10px 14px; border-top: 1px solid var(--rule); }

/* Galería */
.gallery { margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; --edge: max(24px, calc((100vw - 1240px) / 2)); padding: 4px var(--edge) 24px; scroll-padding-inline: var(--edge); scrollbar-width: thin; }
.gallery .shot { scroll-snap-align: start; box-shadow: none; }
.gallery a { display: block; }

/* Especificaciones */
.specs { margin-top: 40px; border-top: 2px solid var(--ink); }
.spec { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.spec h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.01em; }
.spec p, .spec li { color: var(--ink-2); font-size: 16px; }
.spec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.scroll-x { overflow-x: auto; }
table.defaults { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
table.defaults th, table.defaults td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.defaults th { font-weight: 560; color: var(--ink-3); font-size: 13px; }
table.defaults td:last-child { color: var(--ink-3); }
table.defaults tr:last-child td { border-bottom: 0; }

/* Validación */
.proof { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.proof .note { background: var(--signal-soft); border-radius: 10px; padding: 28px; display: grid; gap: 12px; }
.proof .note h3 { font-size: 20px; }
.proof .note p { color: var(--ink-2); }
.refs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.refs li { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }

/* FAQ */
.faq { margin-top: 32px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 640; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq code, .download code { font-size: .88em; }
.faq code { background: var(--signal-soft); padding: 1px 5px; border-radius: 4px; }

/* Descarga (cierre en Prusia) */
.download { background: var(--signal); color: #fff; margin-top: 120px; padding: 96px 0; }
.download h2 { font-size: clamp(32px, 3.8vw, 52px); max-width: 18ch; }
.download .sub { color: var(--on-signal-2); }
.dl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 44px; align-items: start; }
.platforms { border-top: 1px solid rgba(255,255,255,.25); }
.platform { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.platform b { font-weight: 640; font-size: 17px; }
.platform code { font-size: 13.5px; color: var(--on-signal-2); grid-column: 1; overflow-wrap: anywhere; }
.platform .req { font-size: 14px; color: var(--on-signal-2); grid-column: 1; }
.download .steps { font-size: 16px; gap: 16px; }
.download .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download .fine { font-size: 14px; color: var(--on-signal-2); margin-top: 26px; max-width: 60ch; }
.download .fine a { color: #fff; }

/* Contacto y pie */
.contact { padding: 88px 0; background: var(--surface); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(28px, 3vw, 40px); }
.contact .mail { font-size: clamp(24px, 2.6vw, 34px); font-weight: 720; letter-spacing: -0.02em; display: inline-block; margin-top: 14px; }
.contact p { color: var(--ink-2); margin-top: 12px; }
.giride { display: grid; gap: 14px; justify-items: start; }
.giride img { width: min(400px, 100%); height: auto; }
.giride p { font-size: 15px; color: var(--ink-3); margin: 0; }
footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }
footer p { max-width: 80ch; }

@media (max-width: 1000px) {
  .top nav { display: none; }
  .top .lang { margin-left: auto; }
  .hero .grid, .feature, .feature.flip, .proof, .dl-grid, .contact .wrap { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .feature { gap: 28px; margin-top: 56px; }
  .spec { grid-template-columns: 1fr; gap: 10px; }
  .result { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { --edge: 16px; }
  :root { --wrap: calc(100% - 32px); font-size: 16px; }
  .top .wrap { gap: 12px; }
  .top .btn.small { display: none; }
  .top .brand svg { height: 30px; width: auto; }
  .hero { padding-top: 44px; }
  .hero::after { height: 110px; }
  .stage-head, .result, .legend { padding-left: 16px; padding-right: 16px; }
  .stage-head .hint { margin-left: 0; }
  section.block { padding-top: 80px; }
  .hero .btn, .download .btn { width: 100%; justify-content: center; }
}
