/* Bocetos de hero — Trianametría Software
   Tokens tomados del Manual de Identidad Visual v1.0 */
:root {
  --cosmos: #090d1d;
  --orbital: #151c35;
  --violet: #7a3ab0;
  --purple: #542980;
  --nebula: #a76bff;
  --cyan: #66dfff;
  --white: #f3f5ff;
  --gray: #a4acc6;
  --line: rgba(164, 172, 198, 0.14);
  --line-strong: rgba(164, 172, 198, 0.28);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --ui: 'Inter', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { background: var(--cosmos); }
body {
  margin: 0;
  background: var(--cosmos);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--nebula); color: var(--cosmos); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .iso { width: 30px; height: auto; }
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.brand-word small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--nebula);
}
.site-nav { display: flex; gap: 32px; font-size: 14px; color: var(--gray); }
.site-nav a:hover { color: var(--white); }
.header-cta {
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(21, 28, 53, 0.5);
  backdrop-filter: blur(8px);
}
.header-cta:hover { border-color: var(--nebula); }
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(21, 28, 53, 0.5);
  color: var(--white);
  place-items: center;
}

/* ---------- Hero base ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 640px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 2.4s ease-in-out infinite;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--nebula); display: block; }
.hero-desc {
  margin: 26px 0 0;
  max-width: 470px;
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--gray);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--nebula);
  color: var(--cosmos);
  box-shadow: 0 10px 40px -12px rgba(167, 107, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(167, 107, 255, 0.9); }
.btn-ghost {
  background: var(--orbital);
  border: 1px solid var(--line);
}
.text-link { font-size: 15px; color: var(--gray); display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { color: var(--white); }

/* Reveal escalonado para el copy */
.reveal { opacity: 0; transform: translateY(18px); }
.is-ready .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* ---------- Sección siguiente (stub) ---------- */
.next {
  position: relative;
  z-index: 2;
  padding: 120px var(--gutter) 140px;
  border-top: 1px solid var(--line);
  background: var(--cosmos);
}
.next h2 {
  margin: 0 0 48px;
  max-width: 720px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.next-card {
  padding: 28px;
  border-radius: 18px;
  background: var(--orbital);
  border: 1px solid var(--line);
}
.next-card b { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 20px; }
.next-card span { color: var(--gray); font-size: 15px; }
.next-card i { display: block; margin-bottom: 18px; font-style: normal; font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); }

/* ---------- Etiqueta de boceto ---------- */
.sketch-tag {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--gray);
  background: rgba(9, 13, 29, 0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.sketch-tag b { color: var(--white); font-weight: 600; }
.sketch-tag:hover { border-color: var(--nebula); }
.is-embedded .sketch-tag { display: none; }

/* ---------- Starfield ---------- */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

@keyframes blink { 50% { opacity: 0.35; } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .brand .iso { width: 26px; }
  .next { padding-block: 80px 100px; }
  .next-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 14px 22px; margin-top: 28px; }
  .hero-desc { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
