/* ============================================================================
   Farven — landings de producto (Static · Calc · IfcViewer)
   Sistema compartido. Archivo único copiado a los tres repos; el acento de cada
   aplicación se elige con `data-app` en el <html>.

   Reglas de la casa:
   - Fuentes auto-hospedadas en ./assets/fonts/ (Space Grotesk display,
     Manrope texto, JetBrains Mono rótulos y códigos). Nunca Google Fonts.
   - Un solo acento por página (--brand). El resto son neutros fríos.
   - Radios: --r-sm 10px (chips y campos), --r-md 16px (tarjetas y botones),
     --r-lg 24px (medios y bloques grandes). No inventar otros.
   - Sombras teñidas del fondo (nunca negro puro).
   - Todo lo interactivo tiene entrada y salida (hover/focus) y una transición.
   - Animación con transform/opacity y siempre bajo prefers-reduced-motion.
   - Sin JS la página se ve completa: los revelados parten visibles y sólo el
     script añade .is-pending.
   ========================================================================== */

/* ── Fuentes ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  --bg: #f4f6f8;
  --bg-deep: #e9edf1;
  --surface: #ffffff;
  --surface-soft: #f8fafb;

  --ink: #0e141a;
  --muted: #5a6673;
  --faint: #8a95a1;
  --line: #dde3e9;
  --line-strong: #c6ced8;

  /* Acento por defecto (Farven). Cada landing lo redefine abajo. */
  --brand: #0b6478;
  --brand-deep: #084c5c;
  --brand-soft: rgba(11, 100, 120, 0.08);
  --brand-line: rgba(11, 100, 120, 0.22);

  --ok: #10714f;
  --ok-soft: rgba(16, 113, 79, 0.1);
  --warn: #9a5b06;
  --warn-soft: rgba(154, 91, 6, 0.1);
  --wait: #55606c;
  --wait-soft: rgba(85, 96, 108, 0.1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-1: 0 1px 2px rgba(14, 20, 26, 0.04), 0 6px 16px rgba(14, 20, 26, 0.05);
  --shadow-2: 0 2px 4px rgba(14, 20, 26, 0.05), 0 18px 44px rgba(14, 20, 26, 0.09);
  --shadow-brand: 0 10px 30px color-mix(in srgb, var(--brand) 22%, transparent);

  --max: 1120px;
  --gutter: 24px;
  --nav-h: 66px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Acento por aplicación: el mismo del catálogo de farven.cl. */
html[data-app="static"] {
  --brand: #1d4ed8;
  --brand-deep: #153aa6;
  --brand-soft: rgba(29, 78, 216, 0.08);
  --brand-line: rgba(29, 78, 216, 0.22);
}
html[data-app="calc"] {
  --brand: #6d28d9;
  --brand-deep: #55209f;
  --brand-soft: rgba(109, 40, 217, 0.08);
  --brand-line: rgba(109, 40, 217, 0.22);
}
html[data-app="ifcviewer"] {
  --brand: #0f7a5c;
  --brand-deep: #0b5c45;
  --brand-soft: rgba(15, 122, 92, 0.08);
  --brand-line: rgba(15, 122, 92, 0.22);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Lámina técnica de fondo: retícula tenue, muy baja, sólo detrás del hero. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 78% at 68% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

code,
kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  background: var(--bg-deep);
  border-radius: 6px;
  padding: 1px 6px;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Rótulo monoespaciado (kicker / eyebrow) ─────────────────────────────── */
.mono-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Barra de navegación ─────────────────────────────────────────────────── */
.site-nav {
  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 transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}
.brand img {
  display: block;
  height: 30px;
  width: auto;
}
.brand__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* El menú va centrado: los dos extremos se reparten el espacio sobrante. */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease),
    background 0.22s var(--ease);
}

/* Punto de acento: entra deslizando desde la izquierda al pasar el cursor. */
.nav__link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-6px) scale(0.4);
  opacity: 0;
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease);
}

/* Subrayado que entra desde la izquierda y sale hacia la derecha. */
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.nav__link:hover::before,
.nav__link:focus-visible::before {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}
/* Salida: el subrayado se repliega hacia el otro lado. */
.nav__link:not(:hover):not(:focus-visible)::after {
  transform-origin: right center;
}
.nav__link:not(:hover):not(:focus-visible)::before {
  transform: translateX(6px) scale(0.4);
  opacity: 0;
}

.nav__link[aria-current="true"] {
  color: var(--ink);
}
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav__link[aria-current="true"]::before {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.site-nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Entrada del menú al cargar: cascada corta, sólo la primera vez. */
.js .site-nav__inner > * {
  animation: nav-in 0.5s var(--ease) both;
}
.js .nav__link {
  animation: nav-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease), background 0.22s var(--ease),
    color 0.22s var(--ease);
}
.btn:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: none;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--brand-deep);
  padding-inline: 10px;
}
.btn--quiet:hover {
  background: var(--brand-soft);
  border-color: transparent;
  box-shadow: none;
}

.btn__go {
  transition: transform 0.22s var(--ease);
}
.btn:hover .btn__go {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Secciones ───────────────────────────────────────────────────────────── */
.section {
  padding: 72px 0 0;
}
.section__head {
  max-width: 62ch;
  margin-bottom: 28px;
}
.section__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-deep);
}
.section__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.section__lead {
  margin-top: 12px;
  max-width: 65ch;
  color: var(--muted);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0 0;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.hero__kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.hero__title {
  font-size: clamp(2.05rem, 4.4vw, 3.1rem);
  letter-spacing: -0.03em;
}
.hero__lead {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--muted);
}
.hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}
.hero__actions {
  margin-top: 26px;
}

.hero__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__art img {
  width: min(100%, 340px);
  filter: drop-shadow(0 26px 40px rgba(14, 20, 26, 0.16));
}
.hero__art-caption {
  color: var(--faint);
}

/* ── Galería ─────────────────────────────────────────────────────────────── */
.gallery {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.gallery__stage {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}
.gallery__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  pointer-events: none;
}
.gallery__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Sin capturas todavía: se deja la lámina con un texto honesto en vez de un
   marco vacío. Si el archivo se publica, `has-media` la esconde sola. */
.gallery__ph {
  display: grid;
  gap: 8px;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.gallery__ph b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.gallery__ph span {
  max-width: 48ch;
  font-size: 0.88rem;
}
.gallery.has-media .gallery__ph {
  display: none;
}
/* Sin capturas todavía: la lámina se ve como un casillero reservado, no como un
   marco roto. Si el archivo se publica, `has-media` esconde el aviso solo. */
.gallery.is-empty .gallery__stage {
  aspect-ratio: auto;
  min-height: 200px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

.gallery__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.gallery__caption {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.gallery__count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.gallery__dots {
  display: flex;
  gap: 6px;
}
.gallery__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}
.gallery__dot:hover {
  transform: scale(1.25);
}
.gallery__dot[aria-selected="true"] {
  background: var(--brand);
}

.gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.16s var(--ease);
}
.gallery__btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.gallery__btn:active {
  transform: scale(0.94);
}
.gallery__btn svg {
  width: 16px;
  height: 16px;
}

/* Una sola imagen: no hay nada que pasar, así que sobran los controles. */
.gallery.is-single .gallery__dots,
.gallery.is-single .gallery__count,
.gallery.is-single .gallery__btn {
  display: none;
}

/* ── Racimos de capacidades (viñetas) ────────────────────────────────────── */
.clusters {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .clusters {
    grid-template-columns: repeat(3, 1fr);
  }
  .clusters--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cluster {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}
.cluster:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.cluster__index {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
}
.cluster h3 {
  font-size: 1.04rem;
  margin-bottom: 12px;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.75;
}
.bullets strong {
  color: var(--ink);
  font-weight: 600;
}
.bullets--check li::before {
  content: "✓";
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--ok);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 700;
}

/* ── Tipos de suscripción ────────────────────────────────────────────────── */
.plans {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.plans__tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  overflow-x: auto;
}
.plans__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 130px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.plans__tab:hover {
  background: var(--brand-soft);
  color: var(--ink);
}
.plans__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: var(--shadow-1);
}
.plans__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
}

.plans__panel {
  display: grid;
  gap: 28px;
  padding: 26px;
}
@media (min-width: 760px) {
  .plans__panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
  }
}
.plans__panel[hidden] {
  display: none;
}

.plan-head__name {
  font-size: 1.35rem;
}
.plan-head__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}
.plan-head__price span {
  font-family: Manrope, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-head__desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
/* Precio que todavía no es un número (en desarrollo, por definir). */
.plan-head__price--text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}
.plan-head__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan-head__meta b {
  color: var(--ink);
  font-weight: 600;
}
.plan-head__cta {
  margin-top: 20px;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.state--on {
  color: var(--ok);
  background: var(--ok-soft);
}
.state--preview {
  color: var(--warn);
  background: var(--warn-soft);
}
.state--plan {
  color: var(--wait);
  background: var(--wait-soft);
}

/* ── Descargas ───────────────────────────────────────────────────────────── */
.dl-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .dl-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}
.dl-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.dl-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.dl-card__icon svg {
  width: 20px;
  height: 20px;
}
.dl-card__body {
  min-width: 0;
}
.dl-card__os {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.dl-card__file {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dl-card__go {
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.dl-card:hover .dl-card__go {
  color: var(--brand);
  transform: translateX(3px);
}

/* ── Contacto ────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.contact-card:hover {
  border-color: var(--brand-line);
  transform: translateY(-2px);
}
.contact-card h3 {
  font-size: 1rem;
}
.contact-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Utilidades ──────────────────────────────────────────────────────────── */
.gap-top {
  margin-top: 18px;
}

/* ── Aviso ───────────────────────────────────────────────────────────────── */
.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--brand-line);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  font-size: 0.92rem;
  color: var(--muted);
}
.notice strong {
  color: var(--ink);
}

.note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--faint);
}

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  font-size: 0.86rem;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-footer a {
  transition: color 0.2s var(--ease);
}
.site-footer a:hover {
  color: var(--brand);
}

/* ── Revelado al hacer scroll ────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .hero__body,
.js .hero__art {
  animation: hero-in 0.7s var(--ease) both;
}
.js .hero__art {
  animation-delay: 0.12s;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Movimiento reducido ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── Pantallas chicas ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --gutter: 18px;
  }
  .site-nav__inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 8px 16px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav__end {
    margin-left: auto;
  }
  .section {
    padding-top: 56px;
  }
  .hero {
    padding-top: 28px;
  }
  .site-footer {
    margin-top: 64px;
  }
}
