/* checkbingo · landing · design system
   Paleta del icono: indigo (#2f3aa8 / #7c88f0), verde (#22c55e / #4ade80), blanco.
   Titulares en blanco puro, fondos oscuros con indigo profundo. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0d1f;
  --bg2: #10142b;
  --bg3: #171c38;
  --text: #eef0f7;
  --muted: #9aa1c0;
  --muted2: #6b7194;
  --border: #252b4a;
  --accent: #22c55e;
  --accent2: #4ade80;
  --indigo: #7c88f0;
  --indigo-deep: #2f3aa8;
  --amber: #fbbf24;
  --danger: #ff7b7b;
  --front: #22c55e;
  --data: #7c88f0;
  --vision: #fbbf24;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER (menu fijo) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 31, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.brand-logo {
  width: 38px;
  height: 29px;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name b {
  color: var(--accent);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--accent);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  position: relative;
  z-index: 60;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}
.nav-toggle-icon::before {
  top: -7px;
}
.nav-toggle-icon::after {
  bottom: -7px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0;
    z-index: 40;
  }
  .nav-links a {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
  }
  .nav-links[aria-expanded='true'] {
    display: flex;
  }
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  color: var(--accent);
  border-color: var(--border);
}

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, var(--indigo-deep) 0%, var(--bg) 50%);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  max-width: 760px;
  color: #ffffff;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}
.lead strong {
  color: var(--text);
  font-weight: 500;
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg2);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.btn:hover {
  border-color: var(--accent);
  background: var(--bg3);
}
.btn.primary {
  background: var(--accent);
  color: #06231a;
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

/* SECTIONS */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  color: #ffffff;
}
.section-head p {
  color: var(--muted);
  max-width: 640px;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--indigo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* STEPS (cómo funciona) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.step {
  padding: 1.4rem 1.3rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.step-n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}
.step-t {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.step-d {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* SHOTS (galeria de pantallas) */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .shots {
    grid-template-columns: repeat(5, 1fr);
  }
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.shot-cap {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.stack-block-h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.stack-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stack-block-dot.front {
  background: var(--front);
}
.stack-block-dot.data {
  background: var(--data);
}
.stack-block-dot.vision {
  background: var(--vision);
}
.stack-block-l {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.stack-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  background: var(--bg3);
}

/* JOURNEY (así se hizo) */
.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.jstep {
  position: relative;
  padding: 0 0 2rem 2.4rem;
  border-left: 2px solid var(--border);
}
.jstep:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.jstep::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.jstep.problem::before {
  border-color: var(--amber);
  background: var(--bg);
}
.jstep.turn::before {
  border-color: var(--indigo);
}
.jstep-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jstep-tag .n {
  color: var(--accent);
  font-weight: 600;
}
.jstep.problem .jstep-tag .n {
  color: var(--amber);
}
.jstep.turn .jstep-tag .n {
  color: var(--indigo);
}
.jstep-t {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.jstep-d {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 680px;
}
.jstep-d strong {
  color: var(--text);
  font-weight: 500;
}
.jstep-d code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--bg3);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* MANAGEMENT (gestion del proyecto) */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.mgmt-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.mgmt-t {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.mgmt-d {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
}

/* DEEP DIVE (profundizacion tecnica con Mermaid) */
.deep {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}
.deep > h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.deep-intro {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}
.deep-item {
  margin-bottom: 2.5rem;
}
.deep-item:last-child {
  margin-bottom: 0;
}
.deep-item h4 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.deep-item p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 680px;
  margin-top: 1rem;
  font-size: 0.94rem;
}
.deep-item p strong {
  color: var(--text);
  font-weight: 500;
}
.mermaid-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1rem;
  overflow-x: auto;
  min-height: 2rem;
}
.mermaid-block svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* MORAL / highlights */
.callout {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  margin-top: 1rem;
}
.callout p {
  color: var(--muted);
  line-height: 1.75;
}
.callout p strong {
  color: var(--text);
  font-weight: 500;
}
.crit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.crit-list li {
  color: var(--muted);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
}
.crit-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}
.tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg3);
}
.v1-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1.1rem;
  border-left: 2px solid var(--indigo);
}
.v1-note strong {
  color: var(--indigo);
  font-weight: 600;
}

/* LEGAL (privacidad) */
.legal {
  max-width: 760px;
}
.legal-ver {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted2);
  display: block;
  margin-bottom: 1.5rem;
}
.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.7rem 0 0.5rem;
  color: var(--text);
}
.legal p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.legal ul {
  list-style: none;
  margin: 0.4rem 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.legal li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}
.legal li::before {
  content: '·';
  position: absolute;
  left: 0.35rem;
  color: var(--accent);
  font-weight: 600;
}
.legal strong {
  color: var(--text);
  font-weight: 500;
}

/* MORE PROJECTS (replica de vobo.es; pildoras y lockup con teal NDG #5ED2BA) */
.project-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  max-width: 680px;
  margin: 2rem auto 0;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(94, 210, 186, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover {
  border-color: rgba(94, 210, 186, 0.4);
  box-shadow: 0 0 40px rgba(94, 210, 186, 0.08);
  transform: translateY(-3px);
}
.project-card:hover::before {
  opacity: 1;
}
.ndg-lockup {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.project-body {
  flex: 1;
  min-width: 0;
}
.project-name {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}
.project-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(94, 210, 186, 0.85);
  background: rgba(94, 210, 186, 0.08);
  border: 1px solid rgba(94, 210, 186, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.project-arrow {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition:
    transform 0.25s,
    color 0.25s;
}
.project-card:hover .project-arrow {
  transform: translateX(4px);
  color: rgba(94, 210, 186, 0.75);
}

@media (max-width: 640px) {
  .project-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .project-arrow {
    align-self: flex-end;
  }
}

/* FOOTER */
footer {
  padding: 2.5rem 0;
  color: var(--muted2);
  font-size: 0.8rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
footer .mono {
  font-family: var(--mono);
}
.footer-links {
  display: inline-flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--accent);
}
