/* Made by Humans · sitio · sistema 02g Mono Technical */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,200;0,400;0,500;0,700;0,800;1,200;1,400;1,800&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --fg: #0a0a0a;
  --bg: #fff;
  --accent: #c0552a; /* terracota · CTAs y subrayados */
  --accent-dark: #9a3f1d;
  --dim-12: rgba(10,10,10,0.12);
  --dim-18: rgba(10,10,10,0.18);
  --dim-40: rgba(10,10,10,0.40);
  --dim-55: rgba(10,10,10,0.55);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --rule: 1px solid var(--dim-18);
  --rule-soft: 1px solid var(--dim-12);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'ss02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

::selection { background: var(--fg); color: var(--bg); }

/* tipografía base */
.mono { font-family: var(--mono); font-weight: 500; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim-55);
}
.tag.solid { color: var(--fg); }

/* Layout shell */
.shell { position: relative; }
.section {
  position: relative;
  border-top: var(--rule);
  padding: clamp(80px, 10vh, 140px) var(--gutter);
}
.section.dark {
  background: var(--fg);
  color: var(--bg);
  border-color: rgba(255,255,255,0.18);
}
.section.dark .tag { color: rgba(255,255,255,0.55); }
.section.dark ::selection { background: var(--bg); color: var(--fg); }

.section-head {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 32px;
  align-items: baseline;
  border-bottom: var(--rule);
  padding-bottom: 18px;
  margin-bottom: 56px;
}
.section.dark .section-head { border-bottom-color: rgba(255,255,255,0.18); }
.section-head .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; }
.section-head .title {
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-head .right { display: none; }

/* Header fijo */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.topbar.scrolled { border-bottom: var(--rule); }
.topbar.over-dark {
  background: rgba(10,10,10,0.78);
  color: var(--bg);
  border-bottom-color: rgba(255,255,255,0.18);
}
.topbar .left {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.topbar .left .b { font-weight: 600; }
.topbar .left .u {
  display: inline-block;
  width: 18px;
  height: 2.5px;
  background: currentColor;
  margin: 0 5px;
  transform: translateY(-4px);
}
.topbar .nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar .nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .2s ease;
  padding: 4px 0;
}
.topbar .nav a:hover { opacity: 1; }
.topbar .cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 12px 20px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.topbar .cta:hover { background: transparent; color: var(--accent); transform: translateY(-1px); }
.topbar.over-dark .cta { background: var(--accent); color: #fff; border-color: var(--accent); }
.topbar.over-dark .cta:hover { background: transparent; color: var(--accent); }

@media (max-width: 720px) {
  .topbar .nav { display: none; }
}

/* Reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Underscore baseline (compartido) */
.u-bar {
  display: inline-block;
  background: currentColor;
  vertical-align: baseline;
}

/* Botón / CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 18px 26px;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: currentColor; transform: translateY(-2px); }
.btn:hover .btn-label { color: var(--bg); }
.section.dark .btn:hover .btn-label { color: var(--fg); }

/* Footnotes / spec sheet rows */
.spec-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  column-gap: 32px;
  padding: 16px 0;
  border-top: var(--rule);
  align-items: baseline;
}
.spec-row:last-child { border-bottom: var(--rule); }
.spec-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim-55); }
.spec-row .v { font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 1.3vw, 17px); }
.spec-row .r { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; opacity: 0.5; }

/* Sticky CTA flotante · vertical mid-right · acento rojo */
.sticky-cta {
  position: fixed;
  top: 50%;
  right: 28px;
  z-index: 75;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 18px 26px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease, background .2s ease, color .2s ease;
}
.sticky-cta:hover { background: transparent; color: var(--accent); transform: translateY(-50%) translateX(-3px); }
.sticky-cta.over-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.sticky-cta.over-dark:hover { background: transparent; color: var(--accent); }
.sticky-cta.hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(20px); }
.sticky-cta .arr { display: inline-block; transition: transform .2s ease; }
.sticky-cta:hover .arr { transform: translateX(4px); }
@media (max-width: 720px) {
  .sticky-cta { top: auto; bottom: 16px; right: 16px; transform: none; padding: 14px 18px; font-size: 11px; }
  .sticky-cta:hover { transform: translateY(-3px); }
  .sticky-cta.hidden { transform: translateY(20px); }
}

/* Hero video — filtro cálido, no brilloso */
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: var(--rule);
  background: #1a1410;
  margin: 36px 0 24px;
}
.hero-video video, .hero-video img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(0.18) saturate(0.95) contrast(1.02) brightness(0.92) hue-rotate(-4deg);
}
.hero-video::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(60,30,10,0.25) 0%, rgba(20,10,5,0.45) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(20,10,5,0.55) 100%);
  pointer-events: none;
}
.hero-video .vlabel, .hero-video .vlabel-r {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,235,210,0.85); z-index: 2;
}
.hero-video .vlabel { left: 16px; }
.hero-video .vlabel-r { right: 16px; }

/* Logo by_H · recuadro · esquina inferior derecha del video */
.hero-video .vmark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  padding: 12px 16px;
  border: 1.5px solid #fff;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--sans);
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 0.9;
  user-select: none;
}
.hero-video .vmark-by {
  font-weight: 200;
  font-style: italic;
  font-size: 28px;
}
.hero-video .vmark-u {
  display: inline-block;
  width: 12px;
  height: 2.5px;
  background: currentColor;
  margin: 0 5px;
  vertical-align: baseline;
}
.hero-video .vmark-h {
  font-weight: 800;
  font-size: 34px;
  line-height: 0.9;
}
@media (max-width: 720px) {
  .hero-video .vmark { padding: 10px 14px; }
  .hero-video .vmark-h { font-size: 26px; }
  .hero-video .vmark-by { font-size: 22px; }
  .hero-video .vmark-u { width: 10px; height: 2px; margin: 0 4px; }
}

/* Hero lab — CSS-only treatment cuando no hay video */
.hero-lab {
  background: radial-gradient(ellipse at 30% 40%, #2a1a10 0%, #120a06 70%, #080403 100%);
}
.hero-lab::after {
  background:
    linear-gradient(180deg, rgba(60,30,10,0.18) 0%, rgba(20,10,5,0.35) 100%);
}
.hero-lab .lab-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,235,210,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,235,210,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-lab .lab-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,200,160,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,180,130,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,235,210,0.04) 0%, transparent 70%);
  animation: labDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes labDrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-20px,15px) scale(1.06); }
}
.hero-lab .lab-scan {
  position: absolute; left: 0; right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,220,180,0.08) 50%, transparent 100%);
  animation: labScan 9s linear infinite;
  pointer-events: none;
}
@keyframes labScan {
  0% { top: -10%; }
  100% { top: 100%; }
}
.hero-lab .lab-wave {
  position: absolute;
  left: 0; right: 0;
  bottom: 22%;
  width: 100%;
  height: 80px;
  pointer-events: none;
  animation: labWaveMove 7s ease-in-out infinite alternate;
}
@keyframes labWaveMove {
  0% { transform: translateX(0) scaleY(1); }
  100% { transform: translateX(-40px) scaleY(1.4); }
}
.hero-lab .lab-readout {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,235,210,0.78);
  z-index: 2;
}
.hero-lab .lab-readout-row {
  display: grid;
  grid-template-columns: 56px 14px 1fr;
  column-gap: 8px;
}
.hero-lab .lab-caption {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 280px;
}
.hero-lab .lab-caption-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,235,210,0.55);
  margin-bottom: 14px;
}
.hero-lab .lab-caption-text {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(255,235,210,0.94);
}
@media (max-width: 720px) {
  .hero-lab .lab-caption { left: 14px; max-width: 70%; }
  .hero-lab .lab-caption-text { font-size: 24px; }
  .hero-lab .lab-readout { font-size: 9px; }
  .hero-lab .lab-grid { background-size: 32px 32px; }
}

/* Manifiesto download · botonera grande · acento rojo */
.manifesto-dl {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 22px 32px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .3s ease;
  box-shadow: 0 8px 28px rgba(192,85,42,0.28);
}
.manifesto-dl:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 38px rgba(192,85,42,0.45); }
.section.dark .manifesto-dl { background: var(--accent); color: #fff; border-color: var(--accent); }
.section.dark .manifesto-dl:hover { background: var(--accent-dark); }
.manifesto-dl .arrow {
  width: 24px; height: 1.5px; background: currentColor; position: relative;
}
.manifesto-dl .arrow::after {
  content: ''; position: absolute; right: 0; top: -4px;
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ===========================================
   MOBILE — < 720px
   Override inline grid-template-columns con !important
   =========================================== */
@media (max-width: 720px) {
  /* secciones: padding más chico */
  .section { padding: 64px var(--gutter); }
  :root { --gutter: 18px; }

  /* section-head: bajar el num arriba, title abajo, en columna */
  .section-head {
    grid-template-columns: 1fr !important;
    row-gap: 8px;
    margin-bottom: 36px;
  }
  .section-head .num { font-size: 10px; }
  .section-head .title { font-size: 12px; }

  /* todas las grids inline pasan a 1 columna en mobile */
  .section [style*="grid-template-columns"],
  .section [style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    column-gap: 24px !important;
    row-gap: 24px !important;
  }
  /* spec-row mantiene su layout pero compacto */
  .spec-row {
    grid-template-columns: 70px 1fr !important;
    column-gap: 16px;
  }
  .spec-row .r { display: none; }

  /* topbar: logo más chico, CTA compacta */
  .topbar { padding: 14px 18px; }
  .topbar .left { font-size: 14px; }
  .topbar .left .u { width: 14px; height: 2px; margin: 0 4px; }
  .topbar .cta { padding: 10px 14px; font-size: 10px; letter-spacing: 0.14em; }

  /* hero-video: más alto en mobile */
  .hero-video { aspect-ratio: 4 / 5; margin: 24px 0 16px; }
  .hero-video .vlabel, .hero-video .vlabel-r { font-size: 9px; top: 12px; }
  .hero-video .vlabel { left: 12px; }
  .hero-video .vlabel-r { right: 12px; }

  /* btn / manifesto-dl: más compactos */
  .btn { padding: 14px 20px; font-size: 11px; }
  .manifesto-dl { padding: 16px 22px; font-size: 12px; gap: 12px; }
  .manifesto-dl .arrow { width: 18px; }

  /* sticky-cta: ya tiene mobile, solo refinar */
  .sticky-cta { padding: 12px 16px; font-size: 10px; gap: 10px; }

  /* tag más chica */
  .tag { font-size: 10px; letter-spacing: 0.14em; }
}

/* tablets */
@media (min-width: 721px) and (max-width: 1024px) {
  :root { --gutter: 32px; }
  .section { padding: 88px var(--gutter); }
  .section [style*="grid-template-columns"],
  .section [style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* mantener las grid de "auto-fit minmax" funcionales */
  .topbar .nav { gap: 18px; font-size: 10px; }
}
