/* ============================================================
   Klik — Plataformas transaccionales
   Paleta: azul Onestrategia (#0d3f5a / #2f7fa7 / #dcecf3)
   + amarillo eléctrico (#ffe600) en superficies y CTAs.
   ============================================================ */

:root {
  /* Color */
  --paper: #f4f6f8;
  --paper-2: #e8edf1;
  --ink: #0d3f5a;
  --pine: #093048;
  --pine-2: #14527a;
  --leaf: #2f7fa7;
  --leaf-soft: #dcecf3;
  --tangerine: #ffe600;
  --tangerine-soft: #fff7c2;
  --gold-text: #8a6d00;
  --amber: #c0392b;
  --amber-soft: #fdeceb;
  --line: rgba(13, 63, 90, 0.14);
  --line-strong: rgba(13, 63, 90, 0.28);
  --line-inverse: rgba(244, 246, 248, 0.14);
  --ink-60: rgba(9, 44, 63, 0.66);
  --paper-70: rgba(244, 246, 248, 0.72);

  /* Type */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;

  /* Rhythm */
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --max-w: 76rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--tangerine); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.wrap {
  width: min(var(--max-w), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(9, 44, 63, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper);
  flex: none;
}
.brand-mark svg { width: 1.1rem; height: 1.1rem; }

.nav-links {
  display: flex;
  gap: 1.2rem;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-60);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.lang-switch a, .lang-switch span {
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  color: var(--ink-60);
}
.lang-switch .is-active {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font: inherit;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--tangerine);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(240, 210, 0, 0.35);
}
.btn-primary:hover {
  background: #f2d800;
  box-shadow: 0 12px 30px rgba(240, 210, 0, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(9, 44, 63, 0.05); }

.btn-inverse {
  background: var(--paper);
  color: var(--ink);
}
.btn-inverse:hover { background: #fff; transform: translateY(-1px); }

.btn-arrow { transition: transform 0.18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ------------------------------------------------------------
   Eyebrows, chips, placeholders
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--leaf);
}
.on-dark .eyebrow { color: #8fc9e8; }
.on-dark .eyebrow::before { background: #8fc9e8; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-60);
  white-space: nowrap;
}
.on-dark .chip { border-color: var(--line-inverse); color: var(--paper-70); }

/* Dato pendiente — no publicar hasta tener el dato real */
.tbd {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1.5px dashed var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
  white-space: nowrap;
}
.tbd::before { content: "⚠"; font-size: 0.8em; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 30rem at 85% 10%, rgba(47, 127, 167, 0.10), transparent 60%),
    radial-gradient(40rem 26rem at 5% 90%, rgba(240, 210, 0, 0.07), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
  mask-image: radial-gradient(46rem 30rem at 78% 34%, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: radial-gradient(46rem 30rem at 78% 34%, rgba(0,0,0,0.5), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 0.5em;
}
.hero h1 em {
  font-style: normal;
  color: inherit;
  position: relative;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 230, 0, 0.65) 58%);
  border-radius: 2px;
  padding: 0 0.06em;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-60);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Staggered reveal on load */
.hero .reveal-load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .reveal-load:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal-load:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal-load:nth-child(3) { animation-delay: 0.25s; }
.hero .reveal-load:nth-child(4) { animation-delay: 0.35s; }
.hero .reveal-load:nth-child(5) { animation-delay: 0.45s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Phone mockup (wallet) — interfaz ilustrativa
   ------------------------------------------------------------ */
.phone-scene {
  position: relative;
  display: grid;
  place-items: center;
  animation: rise 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.phone {
  width: min(19rem, 82%);
  aspect-ratio: 9 / 18.6;
  background: var(--ink);
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow:
    0 40px 80px rgba(9, 44, 63, 0.28),
    0 12px 28px rgba(9, 44, 63, 0.18);
  rotate: 3deg;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.phone-screen {
  background: #fbfaf6;
  border-radius: 2.1rem;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.1rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-60);
}

.phone-body { padding: 0.6rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

.phone-hello {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.2rem 0.2rem 0;
}
.phone-hello small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--ink-60);
}

.wallet-card {
  background: linear-gradient(135deg, var(--pine) 0%, var(--leaf) 120%);
  color: var(--paper);
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
}
.wallet-card .label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.wallet-card .amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.15rem 0 0.3rem;
}
.wallet-card .meta {
  font-size: 0.6rem;
  opacity: 0.85;
}

.bono {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.55rem 0.65rem;
}
.bono-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--leaf);
}
.bono-icon.alt { background: var(--tangerine-soft); color: var(--gold-text); }
.bono-icon svg { width: 0.95rem; height: 0.95rem; }
.bono b { display: block; font-size: 0.68rem; }
.bono small { color: var(--ink-60); font-size: 0.58rem; }

.phone-qr {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.9rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.7rem;
}
.phone-qr svg { width: 1.5rem; height: 1.5rem; flex: none; }

.phone-note {
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-60);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* Floating badge next to phone */
.float-badge {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: -4%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  box-shadow: 0 16px 40px rgba(9, 44, 63, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  rotate: -2deg;
  animation: floaty 8s 1s ease-in-out infinite;
}
.float-badge .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 127, 167, 0.18);
}

/* ------------------------------------------------------------
   Product cards (home)
   ------------------------------------------------------------ */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(9, 44, 63, 0.10);
}
.product-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.product-card h3 { font-size: 1.45rem; margin: 0; }
.product-card p { color: var(--ink-60); font-size: 1rem; margin: 0; }
.product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--pine);
}
.product-icon.alt { background: var(--paper-2); }
.product-icon svg { width: 1.5rem; height: 1.5rem; }
.product-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--pine);
  font-size: 0.98rem;
}
.product-link:hover { color: var(--leaf); }

/* Capacidades demostradas (chips block) */
.capability-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

/* "En implementación" — badge, banda de home y punto del menú */
.impl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1.5px dashed var(--gold-text);
  background: var(--tangerine-soft);
  color: var(--gold-text);
  white-space: nowrap;
}

.impl-band {
  margin-top: 1.2rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: 1.7rem 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.impl-band p { margin: 0; color: var(--ink-60); max-width: 56rem; }
.impl-band p strong { color: var(--ink); }

.nav-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tangerine);
  border: 1px solid var(--gold-text);
  margin-left: 0.3rem;
  vertical-align: super;
}

/* Callout de una línea (p. ej. ventanas y calendario en /campanas) */
.one-liner-callout {
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-70);
  text-align: center;
}

/* Mockup de votación (phone reutilizado) */
.vote-progress {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem 0.2rem 0;
}
.vote-progress span {
  flex: 1;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--line);
}
.vote-progress span.done { background: var(--leaf); }
.vote-progress span.now { background: var(--tangerine); }
.vote-art {
  border-radius: 1rem;
  aspect-ratio: 4 / 3.4;
  background:
    radial-gradient(60% 70% at 50% 15%, rgba(255, 230, 0, 0.5), transparent 60%),
    radial-gradient(45% 55% at 25% 45%, rgba(143, 201, 232, 0.4), transparent 65%),
    linear-gradient(180deg, var(--pine) 0%, var(--ink) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.7rem 0.8rem;
  color: var(--paper);
}
.vote-art b { font-size: 0.8rem; }
.vote-art small { font-size: 0.58rem; opacity: 0.8; }
.vote-btn {
  background: var(--tangerine);
  color: var(--ink);
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
}
.vote-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-60);
}
.vote-live::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------ */
.trust {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1.4rem 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
}
.trust-claim {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-left: auto;
  align-items: center;
}
.logo-slot {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-60);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
}
.trust-note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  margin: 0;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: var(--section-y) 0; position: relative; }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-head .lede { color: var(--ink-60); font-size: 1.1rem; margin: 0; }
.on-dark .section-head .lede { color: var(--paper-70); }

.on-dark {
  background: var(--ink);
  color: var(--paper);
}
.on-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46rem 26rem at 90% 0%, rgba(47, 127, 167, 0.22), transparent 60%);
}
.on-dark > .wrap { position: relative; }

.tint { background: var(--leaf-soft); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   Verticales
   ------------------------------------------------------------ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.vertical-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vertical-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(9, 44, 63, 0.10);
}
.vertical-card h3 { font-size: 1.25rem; margin: 0; }
.vertical-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--leaf-soft);
  color: var(--pine);
}
.vertical-icon svg { width: 1.4rem; height: 1.4rem; }

.pain-solution { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; }
.pain-solution p { margin: 0; font-size: 0.95rem; }
.pain-solution .pain { color: var(--ink-60); }
.pain-solution .pain::before,
.pain-solution .solution::before {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.pain-solution .pain::before { content: attr(data-label); color: var(--gold-text); }
.pain-solution .solution::before { content: attr(data-label); color: var(--leaf); }

/* ------------------------------------------------------------
   Módulos (banda oscura)
   ------------------------------------------------------------ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.module-card {
  background: var(--pine-2);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 201, 232, 0.45);
  background: #15517a;
}
.module-card h3 {
  font-size: 1.08rem;
  margin: 0.9rem 0 0.35rem;
}
.module-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--paper-70);
}
.module-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #8fc9e8;
  letter-spacing: 0.12em;
}
.module-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: rgba(143, 201, 232, 0.12);
  color: #8fc9e8;
  margin-top: 0.9rem;
}
.module-icon svg { width: 1.3rem; height: 1.3rem; }

/* ------------------------------------------------------------
   Roadmap IA
   ------------------------------------------------------------ */
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  counter-reset: roadmap;
}
.roadmap-item {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
  counter-increment: roadmap;
}
.roadmap-item::before {
  content: "0" counter(roadmap);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--leaf);
}
.roadmap-item h3 { font-size: 1.15rem; margin: 0.4rem 0 0.4rem; }
.roadmap-item p { font-size: 0.95rem; color: var(--ink-60); margin-bottom: 0.8rem; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--tangerine-soft);
  color: var(--gold-text);
}
.status-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ------------------------------------------------------------
   Casos
   ------------------------------------------------------------ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.case-card header { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.case-card h3 { font-size: 1.35rem; margin: 0; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--leaf);
}
.case-desc { margin: 0; color: var(--ink-60); font-size: 0.98rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.metrics li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
}
.metrics .metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.3rem;
}
.case-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--pine);
  font-size: 0.95rem;
}
.case-link:hover { color: var(--leaf); }

/* ------------------------------------------------------------
   Por qué nosotros
   ------------------------------------------------------------ */
.dna-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.dna-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.dna-card h3 { font-size: 1.2rem; }
.dna-card p { color: var(--ink-60); font-size: 0.97rem; margin: 0; }
.dna-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin-bottom: 0.7rem;
}
.compliance-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ------------------------------------------------------------
   CTA final
   ------------------------------------------------------------ */
.cta-band { overflow: clip; }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band .lede { color: var(--paper-70); }

.demo-form {
  background: var(--pine-2);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.demo-form input {
  background: rgba(246, 243, 236, 0.06);
  border: 1px solid var(--line-inverse);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.demo-form input:focus {
  outline: none;
  border-color: #8fc9e8;
}
.demo-form input::placeholder { color: rgba(246, 243, 236, 0.35); }
.form-note {
  font-size: 0.78rem;
  color: var(--paper-70);
  margin: 0;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8fc9e8;
  margin: 0;
  min-height: 1.2em;
}

.direct-contact {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--paper-70);
  padding: 2.6rem 0 2rem;
  border-top: 1px solid var(--line-inverse);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}
.footer-grid .brand { color: var(--paper); font-size: 1.1rem; }
.footer-grid .brand-mark { background: var(--paper); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--paper-70); text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.footer-meta {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid var(--line-inverse);
  padding-top: 1.4rem;
  font-size: 0.78rem;
}

/* ------------------------------------------------------------
   Subpáginas
   ------------------------------------------------------------ */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero .lede { color: var(--ink-60); font-size: 1.15rem; max-width: 40rem; }

.case-detail {
  border-top: 1px solid var(--line);
  padding: var(--section-y) 0;
}
.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.case-summary h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.psr { display: flex; flex-direction: column; gap: 1.4rem; }
.psr-step {
  border-left: 2px solid var(--ink);
  padding-left: 1.2rem;
}
.psr-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.psr-step h3 .psr-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.psr-step p { margin: 0; color: var(--ink-60); font-size: 0.97rem; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: var(--section-y);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.contact-card input, .contact-card textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.contact-card input:focus, .contact-card textarea:focus {
  outline: none;
  border-color: var(--leaf);
}

/* BIND page */
.bind-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.bind-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}
.video-frame {
  aspect-ratio: 16 / 9;
  width: min(56rem, 100%);
  background: var(--pine-2);
  border: 1px solid var(--line-inverse);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--paper-70);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1320px) {
  .nav .btn-primary { display: none; }
  .nav-links { gap: 1rem; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-scene { order: -1; }
  .phone { width: min(15rem, 70%); }
  .cards-3, .modules-grid, .roadmap-list { grid-template-columns: 1fr 1fr; }
  .cta-grid, .case-detail-grid, .contact-grid, .product-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.6rem var(--gutter) 1rem;
    box-shadow: 0 20px 40px rgba(9, 44, 63, 0.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 0; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .btn-primary { display: none; }
  .lang-switch { margin-left: 0; }
  .cards-3, .modules-grid, .roadmap-list, .cases-grid, .dna-grid, .metrics, .product-cards { grid-template-columns: 1fr; }
  .trust-logos { margin-left: 0; }
  .float-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero .reveal-load { opacity: 1; transform: none; }
}

/* ============================================================
   CAPA DE MARCA THEKLIKLAB — V.2 (versión clara, 29-ago-2026)
   Brandbook V.1: Azul Marino #0E1F52 · Azul Klik #152C6E · Azul
   Cielo #4AB5E8 · Amarillo Klik #FFD91F (máx 10%) · Bruma #F4F7FB.
   Space Grotesk + Archivo. Degradados oficiales: Chispa (hero),
   Marino profundo (bandas oscuras), Klik (CTA), Bruma (fondos).
   Botones estilo Apple (píldora). Para revertir: borrar la capa.
   ============================================================ */

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Archivo', sans-serif;
  --paper: #F4F7FB;
  --paper-2: #EAF2FA;
  --ink: #0C1B45;
  --ink-60: #44507A;
  --line: #E2E8F4;
  --line-strong: #C9D6EA;
  --line-inverse: rgba(143, 163, 217, 0.28);
  --paper-70: rgba(244, 247, 251, 0.78);
  --pine: #152C6E;
  --pine-2: #152C6E;
  --leaf: #4AB5E8;
  --leaf-soft: #DDF0FA;
  --tangerine: #FFD91F;
  --tangerine-soft: #FFF6CC;
  --gold-text: #A87900;
  --amber: #C0392B;
  --amber-soft: #FDECEB;
  --radius: 18px;
  --radius-sm: 12px;
}

body::before { opacity: 0.04; }
::selection { background: #FFD91F; color: #0E1F52; }
h1, h2, h3, h4 { letter-spacing: -0.01em; color: #152C6E; }

/* Wordmark thekliklab (§01) — más grande; positivo en claro, negativo en footer */
.brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1; gap: 0; font-size: 1.7rem; color: #152C6E; }
.brand .wm-light { color: #7C8BB8; font-weight: 500; }
.brand .wm-i { position: relative; font-style: normal; }
.brand .wm-dot { position: absolute; left: 0.0694em; top: 0.2865em; width: 0.1267em; height: 0.1267em; background: #FFD91F; }
.site-footer .brand { color: #FFFFFF; font-size: 1.35rem; }
.site-footer .brand .wm-light { color: #8FA3D9; }

/* Idiomas más pequeños */
.lang-switch { font-size: 0.6rem; border-color: var(--line-strong); }
.lang-switch a, .lang-switch span { padding: 0.25rem 0.5rem; }
.lang-switch .is-active { background: #152C6E; color: #F4F7FB; }

/* Botones estilo Apple: píldora, compactos, transiciones suaves */
.btn {
  border-radius: 980px;
  padding: 0.72rem 1.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.22s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn-primary {
  background: #FFD91F;
  color: #0E1F52;
  box-shadow: 0 1px 2px rgba(14, 31, 82, 0.18), 0 8px 22px rgba(255, 217, 31, 0.28);
}
.btn-primary:hover {
  background: #F5CF0A;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(14, 31, 82, 0.18), 0 10px 26px rgba(255, 217, 31, 0.36);
}
.btn-ghost { color: #152C6E; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: #FFFFFF; }
.btn-inverse { background: #F4F7FB; color: #0E1F52; }
.btn-inverse:hover { background: #FFFFFF; }

/* Hero — degradado «Chispa» (§07), texto claro */
.hero {
  background:
    radial-gradient(120% 120% at 78% 22%, rgba(255, 217, 31, 0.24) 0%, rgba(255, 217, 31, 0) 42%),
    linear-gradient(135deg, #0E1F52 0%, #1D4796 70%, #4AB5E8 150%);
}
.hero::before { background: none; }
.hero::after {
  background-image:
    linear-gradient(rgba(244, 247, 251, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 251, 0.09) 1px, transparent 1px);
}
.hero h1 { color: #FFFFFF; letter-spacing: -0.015em; font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.06; }
.hero h1 em { background: none; padding: 0; color: #FFD91F; }
.hero-sub { color: #C9D9F2; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero .eyebrow { color: #8FC9E8; }
.hero .eyebrow::before { background: #8FC9E8; }
.hero .chip { border-color: rgba(244, 247, 251, 0.38); color: rgba(244, 247, 251, 0.88); }
.hero .btn-ghost { color: #F4F7FB; border-color: rgba(244, 247, 251, 0.42); background: rgba(255, 255, 255, 0.06); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.phone-note { background: rgba(11, 26, 68, 0.55); border-color: rgba(244, 247, 251, 0.25); color: rgba(244, 247, 251, 0.8); }

/* Acentos estructurales en cielo; el amarillo solo CTA/punto/detalles */
.eyebrow { color: #4AB5E8; }
.eyebrow::before { background: #4AB5E8; }
.on-dark .eyebrow { color: #4AB5E8; }
.on-dark .eyebrow::before { background: #4AB5E8; }
.roadmap-item::before { color: #4AB5E8; }
.module-num { color: #4AB5E8; }
.module-icon { background: rgba(74, 181, 232, 0.14); color: #8FC9E8; }
.dna-kicker, .product-kicker, .psr-tag { color: #4AB5E8; }
.pain-solution .pain::before { color: var(--gold-text); }

/* Bandas: Marino profundo (§07) para secciones oscuras */
.on-dark { background: linear-gradient(160deg, #16307C 0%, #0E1F52 55%, #0B1A44 100%); }
.on-dark::before { background: none; }
.on-dark h2, .on-dark h3 { color: #F4F7FB; }
.on-dark .section-head .lede { color: #9DB2E4; }
.module-card { background: rgba(21, 44, 110, 0.55); border-color: rgba(143, 163, 217, 0.25); }
.module-card:hover { background: rgba(21, 44, 110, 0.85); border-color: rgba(143, 163, 217, 0.5); }
.module-card p { color: #9DB2E4; }

/* CTA grande — degradado «Klik» (§07) */
.cta-band { background: linear-gradient(135deg, #0E1F52 0%, #1D4796 65%, #4AB5E8 135%); }
.cta-band h2 { color: #FFFFFF; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band .lede { color: #C9D9F2; }
.demo-form { background: rgba(11, 26, 68, 0.45); border-color: rgba(143, 163, 217, 0.3); }

/* Fondos claros — degradado «Bruma» (§07) */
.tint { background: linear-gradient(180deg, #DDF0FA 0%, #F4F7FB 100%); }
.trust { background: #EAF2FA; border-color: var(--line); }
.impl-band { background: #FFFFFF; border-color: var(--line-strong); }

/* Tarjetas claras */
.vertical-card, .product-card, .dna-card, .case-card, .contact-card, .float-badge {
  background: #FFFFFF;
  border-color: var(--line);
}
.metrics li { background: #FFFFFF; }

/* Footer: marino profundo */
.site-footer { background: linear-gradient(160deg, #10265f 0%, #0B1A44 100%); }

/* Mockup de móvil (sobre hero oscuro) */
.phone { background: #0B1A44; }
.phone-screen { color: #152C6E; }
.phone-status { color: rgba(21, 44, 110, 0.6); }
.phone-hello small, .bono small { color: rgba(21, 44, 110, 0.66); }
.bono { background: #FFFFFF; border-color: rgba(21, 44, 110, 0.14); }
.phone-qr { background: #0E1F52; color: #F4F7FB; }
.wallet-card { background: linear-gradient(135deg, #0E1F52 0%, #1D4796 55%, #4AB5E8 120%); }
.vote-art {
  background:
    radial-gradient(60% 70% at 50% 15%, rgba(255, 217, 31, 0.4), transparent 60%),
    linear-gradient(180deg, #152C6E 0%, #0E1F52 100%);
}
.vote-progress span { background: rgba(21, 44, 110, 0.16); }
.vote-progress span.done { background: #4AB5E8; }
.vote-btn { background: #FFD91F; color: #0E1F52; }
.vote-live { color: rgba(21, 44, 110, 0.6); }

/* Página BIND y heros de subpágina claros */
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; }

/* Marquee sobre claro */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  background: #EAF2FA;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #44507A;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "∙"; color: #E5B800; font-size: 1.1em; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Marquees adyacentes: sin borde duplicado y direcciones opuestas */
.marquee + .marquee { border-top: 0; }
.marquee + .marquee .marquee-track { animation-direction: reverse; }

/* Páginas legales */
.legal-content { max-width: 46rem; padding-bottom: var(--section-y); }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal-content p, .legal-content li { color: var(--ink-60); font-size: 0.98rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.legal-content th, .legal-content td { text-align: left; padding: 0.55rem 0.7rem; border: 1px solid var(--line); color: var(--ink-60); }
.legal-content th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.legal-content .legal-updated { font-size: 0.85rem; color: var(--ink-60); margin-top: 2.5rem; }
.footer-meta a { color: var(--paper-70); text-decoration: none; }
.footer-meta a:hover { color: #FFFFFF; }

/* ============================================================
   PULIDO "APPLE FEEL" — botones y materiales (30-ago-2026)
   Basado en Designing Fluid Interfaces: el press responde al
   instante (pointer-down), el release usa curva de muelle
   crítico sin rebote, sombras en capas, cromo translúcido y
   variantes reduced-motion / reduced-transparency.
   ============================================================ */

/* Botones: feedback instantáneo en el press, muelle en el hover/release */
.btn {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.965);
  transition-duration: 0.08s; /* el press no espera al release */
}
.btn-primary {
  box-shadow:
    0 1px 1.5px rgba(14, 31, 82, 0.16),
    0 4px 10px rgba(14, 31, 82, 0.10),
    0 10px 26px rgba(255, 217, 31, 0.20);
}
.btn-primary:hover {
  background: #F0E14A;
  transform: translateY(-1.5px);
  box-shadow:
    0 2px 3px rgba(14, 31, 82, 0.14),
    0 8px 18px rgba(14, 31, 82, 0.10),
    0 16px 36px rgba(255, 217, 31, 0.28);
}
.btn-primary:active { transform: scale(0.965); }

/* Ghost como material translúcido (§12) */
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: #B6C6DF;
  transform: translateY(-1.5px);
}
.hero .btn-ghost { background: rgba(255, 255, 255, 0.08); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn .btn-arrow { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Cromo del header: material más rico + borde de scroll suave */
.site-header {
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(13, 63, 90, 0.06), 0 8px 24px rgba(13, 63, 90, 0.07);
}

/* Tarjetas: elevación con muelle crítico y sombra en capas */
.vertical-card, .product-card {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.vertical-card:hover, .product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(14, 31, 82, 0.05),
    0 12px 24px rgba(14, 31, 82, 0.08),
    0 28px 56px rgba(14, 31, 82, 0.07);
}

/* Materiales sin transparencia cuando el usuario lo pide (§14) */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn-ghost { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero .btn-ghost { background: rgba(11, 26, 68, 0.85); }
}

/* ============================================================
   AFINADO DESIGN ENGINEERING — Emil Kowalski (30-ago-2026)
   Duraciones <300ms en UI, reveals más ligeros, menú móvil con
   @starting-style, focus suave en inputs y hovers solo donde
   hay puntero fino. prefers-reduced-motion ya cubre todo (kill
   global en la capa base).
   ============================================================ */

/* UI por debajo de 300ms: el hover/release no debe sentirse lento */
.btn {
  transition:
    transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn .btn-arrow { transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1); }
.vertical-card, .product-card {
  transition:
    transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reveals: recorrido más corto y medio segundo — presencia sin espera */
.reveal {
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Menú móvil: entra con ease-out; el cierre es instantáneo (salida
   más rápida que la entrada) */
@media (max-width: 700px) {
  .nav-links.is-open {
    transition:
      opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  }
  @starting-style {
    .nav-links.is-open {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

/* El botón de menú también es pulsable */
.nav-toggle { transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1), background 0.2s ease; }
.nav-toggle:active { transform: scale(0.94); }

/* Inputs: el focus llega en transición, no de golpe */
.contact-card input, .contact-card textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.contact-card input:focus, .contact-card textarea:focus {
  border-color: #4AB5E8;
  box-shadow: 0 0 0 3px rgba(74, 181, 232, 0.22);
  background: #fff;
}

/* Hovers con transform solo con puntero fino: en táctil el hover
   se queda pegado tras el tap */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover, .btn-ghost:hover, .btn-inverse:hover,
  .vertical-card:hover, .product-card:hover {
    transform: none;
  }
  .btn:hover .btn-arrow { transform: none; }
}

/* ============================================================
   MOTION FINAL — /animate (30-ago-2026)
   Solo lo que faltaba: transición entre páginas, entrada del
   estado del formulario y stagger del menú móvil. Todo CSS,
   transiciones (interrumpibles), sin librerías.
   ============================================================ */

/* Cross-fade entre páginas (view transitions, mejora progresiva):
   evita el corte en blanco al navegar entre las 12 páginas */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.2s;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Estado del formulario: el mensaje entra, no se teletransporta */
.form-status {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.form-status:not(:empty) { opacity: 1; transform: none; }

/* Menú móvil: los enlaces entran en cascada corta (30ms),
   con transiciones — interrumpible si se abre/cierra rápido */
@media (max-width: 700px) {
  .nav-links.is-open li {
    transition:
      opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .nav-links.is-open li:nth-child(2) { transition-delay: 30ms; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 60ms; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 90ms; }
  @starting-style {
    .nav-links.is-open li {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
}

/* Estado del formulario: error en rojo de marca */
.form-status.is-error { color: #E5484D; }
.demo-form .form-status.is-error { color: #FFC9CB; }

/* Banner de consentimiento de cookies */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1200;
  width: min(46rem, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(14, 31, 82, 0.12);
  box-shadow:
    0 1px 2px rgba(14, 31, 82, 0.06),
    0 12px 28px rgba(14, 31, 82, 0.12),
    0 32px 64px rgba(14, 31, 82, 0.10);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}
.consent-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.consent-banner p {
  margin: 0;
  flex: 1 1 20rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #152C6E;
}
.consent-banner a { color: #1D4796; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 0.6rem; margin-left: auto; }
.consent-actions .btn { padding: 0.58rem 1.15rem; font-size: 0.88rem; }

@media (max-width: 560px) {
  .consent-banner { bottom: 0.75rem; padding: 1rem; }
  .consent-actions { width: 100%; margin-left: 0; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-transparency: reduce) {
  .consent-banner { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   PANTALLA DE VOTACIÓN — reconstrucción de la experiencia real
   (stories por noche, cielo con fuegos, recuento en vivo).
   Datos ficticios; ningún cliente identificado.
   ============================================================ */
.vote-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  justify-content: flex-end;
}
.vote-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vote-art > b,
.vote-art-tag { position: relative; z-index: 1; }
.vote-art-tag {
  align-self: flex-start;
  margin-bottom: auto;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.86);
  background: rgba(11, 26, 68, 0.55);
  border: 1px solid rgba(244, 247, 251, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Recuento en vivo: barras agregadas */
.vote-results {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0 0.1rem;
}
.vote-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(21, 44, 110, 0.7);
}
.vote-bar span { width: 1rem; flex: none; }
.vote-bar b { width: 1.7rem; flex: none; text-align: right; font-weight: 700; }
.vote-bar i {
  flex: 1;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(21, 44, 110, 0.12);
  position: relative;
  overflow: hidden;
}
.vote-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, #1D4796 0%, #4AB5E8 100%);
}
.vote-bar:first-child i::after { background: #FFD91F; }

/* ============================================================
   ESCRITORIO DE LA PLATAFORMA DE INVERSIÓN (hero de /inversion)
   Muestra el catálogo tal como lo ve quien aún no es miembro:
   precios velados. Los velos son barras CSS puras — no hay dato
   alguno, ni visible ni en el código fuente.
   ============================================================ */
.hero-grid-wide { grid-template-columns: minmax(0, 6fr) minmax(0, 6.5fr); }
/* El titular convive con una ventana ancha: un punto menos de escala */
.hero-grid-wide h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }

.app-scene {
  position: relative;
  animation: rise 0.9s 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.app-scene .float-badge { top: auto; bottom: -0.9rem; left: -1.3rem; }

.app-window {
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(244, 247, 251, 0.18);
  box-shadow:
    0 2px 6px rgba(6, 15, 40, 0.20),
    0 18px 40px rgba(6, 15, 40, 0.28),
    0 42px 90px rgba(6, 15, 40, 0.30);
}

/* Barra del navegador */
.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  background: #EAF2FA;
  border-bottom: 1px solid #DDE7F5;
}
.app-chrome i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #C9D6EA; }
.app-chrome i:first-child { background: #F0B6B2; }
.app-chrome i:nth-child(2) { background: #F5D98C; }
.app-chrome i:nth-child(3) { background: #A9D8B8; }
.app-chrome em {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.56rem;
  color: rgba(21, 44, 110, 0.55);
  background: #FFFFFF;
  border: 1px solid #DDE7F5;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

.app-body { display: grid; grid-template-columns: 6.2rem 1fr; min-height: 15rem; }

/* Barra lateral */
.app-side {
  background: linear-gradient(160deg, #16307C 0%, #0E1F52 100%);
  padding: 0.7rem 0.6rem;
}
.app-side-brand {
  display: block;
  width: 2.1rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.5);
  margin-bottom: 0.9rem;
}
.app-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.12rem; }
.app-side li {
  font-size: 0.56rem;
  color: rgba(216, 228, 250, 0.72);
  padding: 0.34rem 0.42rem;
  border-radius: 6px;
}
.app-side li.is-active { background: rgba(74, 181, 232, 0.22); color: #FFFFFF; font-weight: 600; }

/* Zona principal */
.app-main { padding: 0.75rem 0.85rem 0.95rem; background: #F8FAFD; }
.app-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.app-top b { font-family: var(--font-display); font-size: 0.72rem; color: #0E1F52; }

.app-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.app-tabs span {
  font-size: 0.5rem;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  border: 1px solid #DDE7F5;
  background: #FFFFFF;
  color: rgba(21, 44, 110, 0.62);
}
.app-tabs span.is-active { background: #0E1F52; border-color: #0E1F52; color: #F4F7FB; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.app-card {
  background: #FFFFFF;
  border: 1px solid #E6EDF8;
  border-radius: 8px;
  padding: 0.32rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}
.app-thumb { display: block; height: 2.1rem; border-radius: 5px; }
.app-thumb.t1 { background: linear-gradient(150deg, #1D4796, #4AB5E8); }
.app-thumb.t2 { background: linear-gradient(150deg, #152C6E, #1D4796); }
.app-thumb.t3 { background: linear-gradient(150deg, #0E1F52, #2F73B7); }

/* El velo: barra difuminada, sin texto detrás */
.veil {
  display: block;
  height: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(21, 44, 110, 0.30) 0%, rgba(21, 44, 110, 0.12) 22%,
    rgba(21, 44, 110, 0.28) 44%, rgba(21, 44, 110, 0.10) 68%,
    rgba(21, 44, 110, 0.26) 100%);
  filter: blur(1.6px);
}
.veil.v-lg { width: 82%; }
.veil.v-md { width: 54%; }
.veil.v-sm { width: 3.4rem; height: 0.4rem; }

.app-lock {
  margin-top: 0.08rem;
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.02em;
  color: rgba(21, 44, 110, 0.62);
  background: #F1F5FC;
  border: 1px solid #E2EAF7;
  border-radius: 999px;
  padding: 0.14rem 0.38rem;
  align-self: flex-start;
}
.app-lock::before {
  content: "";
  width: 0.3rem;
  height: 0.26rem;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -0.16rem 0 -0.08rem transparent, inset 0 0 0 10px currentColor;
  position: relative;
}
/* Solo la primera tarjeta lleva el acento: el amarillo se queda en el CTA */
.app-card:first-child .app-lock {
  color: #0E1F52;
  background: #FFD91F;
  border-color: #F0CB1A;
}

@media (max-width: 960px) {
  .hero-grid-wide { grid-template-columns: 1fr; }
  /* En una columna la ventana va DESPUÉS del titular: primero se entiende
     qué es, luego se ve. (Al contrario que el móvil de /campanas, que es
     pequeño y no tapa el mensaje.) */
  .app-scene { order: 0; margin-top: 2.4rem; }
  .app-scene .float-badge { left: 0; }
}
@media (max-width: 560px) {
  .app-body { grid-template-columns: 4.6rem 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card:nth-child(n+5) { display: none; }
  .app-tabs span:nth-child(n+5) { display: none; }
  .app-thumb { height: 1.7rem; }
}

/* La primera sección tras el hero llevaba padding-top: 0 y quedaba pegada.
   Le damos aire propio: menos que el ritmo entre secciones (el hero ya
   aporta su padding inferior), pero suficiente para que respire. */
.section-tras-hero { padding-top: clamp(3.5rem, 7vw, 6.25rem); }
