/* PLAN4US — landing
   Estilo: corporativo moderno, retícula visible, mosaicos animados con los colores del logo. */

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Marca (del logo) */
  --plum: #5b2350;
  --berry: #a93d6f;
  --amber: #f2a23a;
  --butter: #fcdf94;
  --blush: #f4b9cc;
  --lilac: #b9aae8;

  --ink: #131113;
  --ink-2: #3b373a;
  --muted: #77716f;
  --paper: #ffffff;
  --canvas: #f6f5f3;
  --line: #e8e5e1;
  --line-strong: #d6d2cc;

  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --cell: 80px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  background: var(--butter);
}
:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.display em,
.manifesto-text .wd.accent {
  font-style: normal;
  font-weight: 650;
  color: var(--berry);
}

/* ---------- Marco de página ---------- */
.frame {
  /* De borde a borde: la página ocupa todo el ancho de la pantalla. */
  width: 100%;
  background: var(--paper);
  min-height: 100vh;
}
.grid-bg {
  background-color: var(--paper);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cw, var(--cell)) var(--ch, var(--cell));
  background-position: -1px -1px;
}

/* ---------- Marca arriba (sin header) ---------- */
.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 44px;
  height: 35px;
  overflow: visible;
}
.logo-word {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-word b {
  color: var(--amber);
}
.chev {
  transform-box: fill-box;
  transform-origin: center;
}
.c1 {
  fill: var(--plum);
  stroke: var(--plum);
}
.c2 {
  fill: var(--berry);
  stroke: var(--berry);
}
.c3 {
  fill: var(--amber);
  stroke: var(--amber);
}
.c4 {
  fill: var(--butter);
  stroke: var(--butter);
}
.brandbar .chev {
  animation: chev-in 0.8s var(--ease) both;
}
.brandbar .c2 {
  animation-delay: 0.08s;
}
.brandbar .c3 {
  animation-delay: 0.16s;
}
.brandbar .c4 {
  animation-delay: 0.24s;
}
.logo:hover .chev {
  animation: chev-pulse 0.9s var(--ease);
}
.logo:hover .c2 {
  animation-delay: 0.07s;
}
.logo:hover .c3 {
  animation-delay: 0.14s;
}
.logo:hover .c4 {
  animation-delay: 0.21s;
}
@keyframes chev-in {
  from {
    opacity: 0;
    transform: translateX(-60%);
  }
}
@keyframes chev-pulse {
  40% {
    transform: translateX(22%);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.sq {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--amber);
  box-shadow: 4px 0 0 var(--berry);
  margin-right: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Pantalla completa debajo de la marca; main.js afina el alto exacto. */
  min-height: var(--hero-h, calc(100vh - 76px));
  min-height: var(--hero-h, calc(100svh - 76px));
}
.field {
  position: relative;
  width: 100%;
  height: calc(var(--rows, 9) * var(--ch, var(--cell)));
}
.hero .field {
  cursor: crosshair;
}
.cell-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 6px;
  color: #a8a29c;
  font-size: 10px;
  pointer-events: none;
  z-index: 4;
}
.sketch {
  position: absolute;
  pointer-events: none;
  stroke: #c9c3bc;
  stroke-width: 1;
  fill: none;
}
.sketch path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.4s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.tile {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw, var(--cell));
  height: var(--ch, var(--cell));
  transition:
    transform 0.9s var(--ease),
    opacity 0.5s ease;
  z-index: 2;
}
.tile.static {
  z-index: 4;
}
.tile.is-new {
  opacity: 0;
}
.tile-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px 4px;
  white-space: nowrap;
}
.mosaic {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mosaic span {
  position: absolute;
  transition:
    left 1.1s var(--ease),
    top 1.1s var(--ease),
    width 1.1s var(--ease),
    height 1.1s var(--ease),
    background-color 1.1s ease;
}
.tile.locked {
  border: 1px dashed var(--ink-2);
  background: repeating-linear-gradient(135deg, transparent 0 4px, #e7e3de 4px 5px);
  display: grid;
  place-items: center;
}
.tile.locked .lock {
  width: 26px;
  height: 26px;
  background: var(--paper);
  border: 1px solid var(--ink-2);
  display: grid;
  place-items: center;
}
.tile.locked svg {
  width: 13px;
  height: 13px;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}

.cursor-cell {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw, var(--cell));
  height: var(--ch, var(--cell));
  border: 1px solid var(--ink);
  background: rgba(252, 223, 148, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.18s var(--ease),
    opacity 0.2s;
  z-index: 1;
}
.cursor-cell span {
  position: absolute;
  bottom: -18px;
  left: -1px;
  font-size: 9px;
  background: var(--ink);
  color: #fff;
  padding: 1px 4px;
}
.field:hover .cursor-cell {
  opacity: 1;
}

.hero-copy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 36px var(--gutter) 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.92) 40%);
  border-top: 1px solid var(--line);
  z-index: 3;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 500;
}
.eyebrow .bar {
  width: 16px;
  height: 9px;
  background: linear-gradient(to right, var(--amber) 70%, var(--berry) 70%);
}
.hero h1 {
  font-size: clamp(44px, 10vw, 84px);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero h1 .w {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease) forwards;
}
@keyframes rise {
  to {
    transform: none;
  }
}
.lede {
  font-size: clamp(17px, 1.15vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 32em;
  letter-spacing: -0.01em;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink::before {
  background: linear-gradient(90deg, var(--plum), var(--berry) 45%, var(--amber));
}
.btn-line {
  background: var(--paper);
}
.btn-line::before {
  background: var(--butter);
}
.btn:hover::before {
  transform: scaleX(1);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  animation: marquee 38s linear infinite;
}
.marquee-track i {
  width: 8px;
  height: 8px;
  background: var(--amber);
}
.marquee-track i:nth-of-type(3n + 2) {
  background: var(--berry);
}
.marquee-track i:nth-of-type(3n) {
  background: var(--butter);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Secciones ---------- */
.section {
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: grid;
  gap: 18px;
  padding: 72px var(--gutter) 40px;
}
.sec-num {
  color: var(--muted);
}
.h2 {
  font-size: clamp(34px, 5.2vw, 104px);
}
.h1 {
  font-size: clamp(40px, 7vw, 150px);
}
h3 {
  font-size: clamp(19px, 1.25vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section p:not(.lede) {
  color: var(--muted);
  font-size: clamp(15px, 0.95vw, 19px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.step {
  padding: 22px var(--gutter) 34px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-top .num {
  color: var(--muted);
}
.viz {
  position: relative;
  height: 180px;
  margin: 10px 0 14px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.viz-capture .drop {
  position: absolute;
  top: -30px;
  width: 30px;
  height: 30px;
}
.viz-capture .d1 {
  left: 30px;
  background: var(--amber);
}
.viz-capture .d2 {
  left: 90px;
  background: var(--blush);
}
.viz-capture .d3 {
  left: 150px;
  background: var(--lilac);
}
.viz-capture .d4 {
  left: 210px;
  background: var(--berry);
}
.in .viz-capture .drop {
  animation: drop 3.6s var(--ease) infinite;
}
.in .viz-capture .d2 {
  animation-delay: 0.5s;
}
.in .viz-capture .d3 {
  animation-delay: 1s;
}
.in .viz-capture .d4 {
  animation-delay: 1.5s;
}
@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  45%,
  70% {
    transform: translateY(150px) scale(0.8);
    opacity: 1;
  }
  85%,
  100% {
    transform: translateY(150px) scale(0.2);
    opacity: 0;
  }
}
.tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.tray b {
  font-weight: 500;
}

.viz-sort {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}
.viz-sort .col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 8px;
}
.viz-sort b {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
}
.viz-sort span {
  height: 22px;
  background: var(--butter);
  transform: translateY(160px);
  transition: transform 0.9s var(--ease);
}
.viz-sort .col:nth-child(2) span {
  background: var(--blush);
}
.viz-sort .col:nth-child(3) span {
  background: var(--lilac);
}
.in .viz-sort span {
  transform: none;
}
.viz-sort .col span:nth-of-type(2) {
  transition-delay: 0.15s;
}
.viz-sort .col span:nth-of-type(3) {
  transition-delay: 0.3s;
}
.viz-sort .col:nth-child(2) span {
  transition-delay: 0.35s;
}
.viz-sort .col:nth-child(3) span {
  transition-delay: 0.6s;
}

.viz-go {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}
.go-mark {
  width: 110px;
  height: 88px;
  overflow: visible;
}
.go-mark .chev {
  opacity: 0.12;
  transition: opacity 0.4s ease;
}
.go-mark .chev.on {
  opacity: 1;
}
.meter {
  width: 70%;
  height: 6px;
  background: var(--line);
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--plum), var(--berry), var(--amber), var(--butter));
  transition: width 0.5s var(--ease);
}
.pct {
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: 500;
}

/* Vistas */
.views {
  border-top: 1px solid var(--line);
}
.view-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.view-tabs button {
  position: relative;
  flex: 1 0 auto;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 18px 20px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.view-tabs button:hover {
  color: var(--ink);
}
.view-tabs button[aria-selected='true'] {
  color: var(--ink);
  background: var(--canvas);
}
.view-tabs button i {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--ink);
}
.view-tabs button[aria-selected='true'] i {
  animation: tabfill var(--cycle, 6s) linear forwards;
}
.views.paused .view-tabs button[aria-selected='true'] i {
  animation: none;
  width: 100%;
}
@keyframes tabfill {
  to {
    width: 100%;
  }
}
.view-stage {
  padding: 20px var(--gutter) 28px;
  background: var(--canvas);
}
.view-chrome {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  color: var(--ink-2);
}
.view-body {
  position: relative;
  min-height: 360px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.view-body .it {
  opacity: 0;
  transform: translateY(10px);
  animation: item-in 0.6s var(--ease) forwards;
}
@keyframes item-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.av {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--paper);
  margin-left: -6px;
}
.av:first-child {
  margin-left: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c);
}
/* Lista */
.v-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.v-list li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.v-list .box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-2);
}
.v-list .done .box {
  background: var(--ink);
  border-color: var(--ink);
}
.v-list .done .t {
  color: var(--muted);
  text-decoration: line-through;
}
.v-list .meta {
  display: none;
  gap: 18px;
  align-items: center;
}
.v-list .meta > .chip {
  min-width: 100px;
}
/* Tablero */
.v-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  padding: 14px;
  overflow-x: auto;
}
.v-board .col-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v-board .card {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  display: grid;
  gap: 10px;
}
.v-board .card .bar {
  height: 4px;
  background: var(--c);
  width: 40%;
}
.v-board .card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
/* Tabla */
.v-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}
.v-table-wrap {
  overflow-x: auto;
}
.v-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  background: var(--canvas);
}
.v-table th,
.v-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.v-table .pbar {
  width: 90px;
  height: 6px;
  background: var(--line);
}
.v-table .pbar span {
  display: block;
  height: 100%;
  background: var(--ink);
}
/* Calendario */
.v-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.v-cal .dow {
  padding: 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.v-cal .day {
  min-height: 62px;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: grid;
  align-content: start;
  gap: 4px;
}
.v-cal .day:nth-child(7n) {
  border-right: 0;
}
.v-cal .ev {
  background: var(--c);
  color: var(--ink);
  font-size: 10px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v-cal .today {
  color: var(--ink);
  font-weight: 700;
}
/* Timeline */
.v-tl {
  min-width: 620px;
}
.v-tl-wrap {
  overflow-x: auto;
}
.v-tl .scale {
  display: grid;
  grid-template-columns: 180px repeat(12, 1fr);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.v-tl .scale span {
  padding: 8px 6px;
  border-left: 1px solid var(--line);
}
.v-tl .scale span:first-child {
  border-left: 0;
}
.v-tl .row {
  display: grid;
  grid-template-columns: 180px repeat(12, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 46px;
  font-size: 13px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 180px) / 12) 100%;
  background-position: 180px 0;
  background-repeat: repeat-x;
}
.v-tl .row > b {
  font-weight: 500;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v-tl .gbar {
  height: 22px;
  background: var(--c);
  position: relative;
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 0.9s var(--ease) forwards;
}
@keyframes grow {
  to {
    transform: none;
  }
}
.v-tl .now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--berry);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.cell {
  position: relative;
  padding: 22px var(--gutter) 30px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 280px;
  overflow: hidden;
  transition: background-color 0.4s ease;
}
.cell:hover {
  background: #fcfbfa;
}
.cell .tag {
  margin-bottom: 8px;
}
.cell .tag::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--berry);
}
kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  border: 1px solid var(--ink);
  border-bottom-width: 3px;
  padding: 1px 6px;
}
.feed {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.feed li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 10px;
  font-size: 13px;
  animation: feed-in 0.7s var(--ease);
}
.feed li .sw {
  width: 26px;
  height: 26px;
  background: var(--c);
}
.feed li .mono {
  font-size: 10px;
  color: var(--muted);
}
.feed li.out {
  animation: feed-out 0.5s var(--ease) forwards;
}
@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes feed-out {
  to {
    opacity: 0;
    transform: translateY(14px);
  }
}
.cmd {
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--butter);
}
.cmd-input {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-transform: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.cmd-input::before {
  content: '⌘K';
  color: var(--muted);
  margin-right: 10px;
}
.caret {
  width: 7px;
  height: 15px;
  background: var(--berry);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.cmd-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.cmd-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  font-size: 13px;
  transition: background-color 0.25s;
}
.cmd-list li b {
  font-weight: 500;
}
.cmd-list li .mono {
  color: var(--muted);
  font-size: 10px;
}
.cmd-list li.hot {
  background: var(--butter);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color 0.4s;
}
.checks i {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-2);
  position: relative;
  flex: none;
  transition: background-color 0.3s;
}
.checks i::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease);
}
.checks li.done {
  color: var(--muted);
  text-decoration: line-through;
}
.checks li.done i {
  background: var(--ink);
}
.checks li.done i::after {
  transform: rotate(45deg) scale(1);
}
.lock-tile {
  width: 80px;
  height: 80px;
  border: 1px dashed var(--ink-2);
  background: repeating-linear-gradient(135deg, transparent 0 4px, #e7e3de 4px 5px);
  display: grid;
  place-items: center;
  margin: 6px 0 10px;
}
.lock-tile svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--ink-2);
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  box-sizing: content-box;
}
.cell-lock:hover .lock-tile svg path {
  animation: unlock 0.8s var(--ease);
}
@keyframes unlock {
  50% {
    transform: translateY(-2px);
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chips span {
  border: 1px solid var(--ink);
  padding: 6px 10px;
  background: var(--paper);
  transition:
    background-color 0.3s,
    transform 0.3s var(--ease);
}
.chips span:hover {
  background: var(--butter);
  transform: translateY(-2px);
}
.mini-field {
  --cell: 48px;
  position: relative;
  height: calc(var(--rows, 2) * var(--cell));
  margin-top: 14px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* Manifiesto */
.manifesto {
  padding: 80px var(--gutter) 96px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 26px;
}
.manifesto-text {
  font-size: clamp(32px, 5vw, 112px);
  line-height: 1.04;
  max-width: 19ch;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.85);
}
.manifesto-text .wd {
  color: #d9d4ce;
  transition: color 0.35s ease;
}
.manifesto-text .wd.lit {
  color: var(--ink);
}
.manifesto-text .wd.accent.lit {
  color: var(--berry);
}

/* Cifras */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 26px var(--gutter) 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.stat b {
  font-size: clamp(48px, 6.2vw, 128px);
}
.stat:nth-child(1) b {
  color: var(--plum);
}
.stat:nth-child(2) b {
  color: var(--berry);
}
.stat:nth-child(3) b {
  color: var(--amber);
}
.stat:nth-child(4) b {
  color: var(--ink);
}
.stat .mono {
  color: var(--muted);
  font-size: 10px;
}

/* CTA final */
.final {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.final .field {
  height: calc(var(--rows, 3) * var(--cell));
}
.final-copy {
  position: relative;
  z-index: 3;
  padding: 36px var(--gutter) 64px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95) 30%);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

/* Pie */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px var(--gutter);
  color: var(--muted);
}
.foot .logo-mark {
  width: 34px;
  height: 27px;
}
.foot .logo-word {
  font-size: 18px;
  color: var(--ink);
}
.foot-links {
  display: flex;
  gap: 22px;
}
.foot-links a {
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat;
  transition:
    background-size 0.35s var(--ease),
    color 0.2s;
}
.foot-links a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  :root {
    --gutter: 32px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step {
    border-right: 1px solid var(--line);
  }
  .step:last-child {
    border-right: 0;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell {
    border-right: 1px solid var(--line);
  }
  .cell:nth-child(2n) {
    border-right: 0;
  }
  .cell-int {
    grid-column: span 2;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    border-bottom: 0;
  }
  .stat:last-child {
    border-right: 0;
  }
  .v-list .meta {
    display: flex;
  }
  .sec-head {
    grid-template-columns: 1fr 2fr;
    align-items: start;
    padding-top: 96px;
    padding-bottom: 48px;
  }
  .sec-head .sec-num {
    padding-top: 12px;
  }
}

/* ---------- Escritorio: el texto del hero se monta sobre la retícula ---------- */
@media (min-width: 1024px) {
  :root {
    --gutter: clamp(40px, 3.2vw, 96px);
  }
  .hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--ch, var(--cell));
    height: calc(var(--ch, var(--cell)) * 4);
    padding: 0 var(--gutter);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-bottom: 22px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.82) 22%, rgba(255, 255, 255, 0.82) 100%);
    border-top: 0;
    pointer-events: none;
  }
  .hero-copy a {
    pointer-events: auto;
  }
  .hero h1 {
    white-space: nowrap;
    font-size: clamp(60px, 6.2vw, 150px);
  }
  .hero-right {
    justify-self: end;
    width: clamp(380px, 27vw, 640px);
    padding-bottom: 6px;
  }
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .cell,
  .cell:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .cell:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .cell:nth-child(3),
  .cell-int {
    border-right: 0;
  }
  .cell-int {
    grid-column: span 2;
  }
  .final-copy {
    position: absolute;
    inset: auto 0 0 0;
    height: calc(var(--cell) * 4);
    padding: 0 var(--gutter) 40px;
    align-content: end;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 35%);
    border-top: 0;
  }
  .final-copy .ctas {
    margin-top: 8px;
  }
}

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

@media (max-width: 559px) {
  .brandbar-tag {
    display: none;
  }
}

/* ---------- Selector de idioma ---------- */
.brandbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--ink);
}
.lang button {
  font: inherit;
  letter-spacing: inherit;
  background: var(--paper);
  color: var(--ink-2);
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.lang button + button {
  border-left: 1px solid var(--ink);
}
.lang button:hover {
  background: var(--butter);
  color: var(--ink);
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
