/* ==========================================================================
   Centro Espacial Mexicano — styles.css
   Estética: mission control / telemetría · verde CEM + rojo bandera
   ========================================================================== */

:root {
  --ink: #040907;
  --ink-2: #071310;
  --paper: #eef5f1;
  --muted: #9fb0aa;
  --green: #1fe07c;
  --green-dim: rgba(31, 224, 124, 0.14);
  --red: #ff3350;
  --line: rgba(238, 245, 241, 0.12);
  --line-strong: rgba(238, 245, 241, 0.26);
  --glass: rgba(7, 19, 16, 0.62);
  --max: 1240px;
  --radius: 26px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- fondo ---------- */

#starfield {
  position: fixed;
  inset: 0;
  z-index: -6;
  width: 100%;
  height: 100%;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 12% 6%, rgba(0, 104, 71, 0.28), transparent 70%),
    radial-gradient(46% 34% at 88% 12%, rgba(206, 17, 38, 0.14), transparent 70%),
    radial-gradient(70% 50% at 50% 108%, rgba(31, 224, 124, 0.10), transparent 70%);
}

/* ---------- barra de progreso ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  background: rgba(238, 245, 241, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), #7cf3b6);
  box-shadow: 0 0 12px rgba(31, 224, 124, 0.7);
}

/* ---------- tipografía utilitaria ---------- */

.telemetry {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(31, 224, 124, 0.3);
  border-radius: 999px;
  background: var(--green-dim);
}

.blink {
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(var(--max), calc(100% - 28px));
  height: 72px;
  transform: translateX(-50%);
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  transition: height 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.compact {
  height: 60px;
  background: rgba(5, 12, 10, 0.85);
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.brand img {
  width: 150px;
  transition: width 0.4s var(--ease);
  filter: drop-shadow(0 0 16px rgba(238, 245, 241, 0.18));
}

.site-header.compact .brand img {
  width: 122px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(31, 224, 124, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-action .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.header-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 34px rgba(31, 224, 124, 0.55);
}

.nav-toggle {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  padding: 150px 0 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.hero-telemetry {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 700;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero h1 .accent {
  background: linear-gradient(92deg, var(--green) 0%, #8ff5c1 60%, var(--paper) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 46ch;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: 1.06rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 0 30px rgba(31, 224, 124, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(31, 224, 124, 0.5);
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: rgba(238, 245, 241, 0.03);
}

.btn-ghost:hover {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateY(-2px);
}

.btn-ghost span {
  transition: transform 0.25s var(--ease);
}

.btn-ghost:hover span {
  transform: translateX(4px);
}

/* --- imagen hero con HUD --- */

.hero-art {
  position: relative;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}

.hud-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hud-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s var(--ease);
}

.hero-art:hover .hud-frame img {
  transform: scale(1.08);
}

.hud-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  opacity: 0.9;
}

.hud-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 34%;
  background: linear-gradient(180deg,
      transparent,
      rgba(31, 224, 124, 0.07) 45%,
      rgba(31, 224, 124, 0.16) 50%,
      rgba(31, 224, 124, 0.07) 55%,
      transparent);
  animation: scan 5.5s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  to { top: 110%; }
}

.hud-chip {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hud-chip strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.chip-top {
  top: 26px;
  left: -26px;
  animation: floaty 7s ease-in-out infinite;
}

.chip-bottom {
  bottom: 30px;
  right: -20px;
  animation: floaty 8s ease-in-out 1.2s infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  margin: 10px calc(50% - 50vw) 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--green);
  font-size: 0.8rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- descripción ---------- */

.intro-section {
  padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 110px);
}

.intro-content {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.intro-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.intro-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(20px, 3vw, 36px);
}

/* ---------- misión / visión ---------- */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: clamp(70px, 9vw, 130px);
}

.feature-card {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 224, 124, 0.45);
}

.feature-card-red:hover {
  border-color: rgba(255, 51, 80, 0.5);
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 5s var(--ease);
}

.feature-card:hover .card-bg {
  transform: scale(1.1);
}

.card-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(190deg,
      rgba(4, 9, 7, 0.05) 0%,
      rgba(4, 9, 7, 0.55) 55%,
      rgba(4, 9, 7, 0.93) 100%);
}

.card-content {
  padding: clamp(26px, 3.4vw, 44px);
  display: grid;
  gap: 14px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.feature-card-red .feature-icon .icon {
  color: var(--red);
}

.feature-card-red .telemetry {
  color: var(--red);
}

.feature-card h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

.card-text {
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- valores ---------- */

.values-section {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.section-header {
  margin-bottom: 46px;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  max-width: 22ch;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  padding: 30px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(238, 245, 241, 0.025);
  transition: transform 0.4s var(--ease), border-color 0.4s ease,
    background 0.4s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 224, 124, 0.4);
  background: var(--green-dim);
}

.value-card .icon {
  width: 38px;
  height: 38px;
  color: var(--green);
  filter: drop-shadow(0 0 10px rgba(31, 224, 124, 0.35));
  transition: transform 0.4s var(--ease);
}

.value-card:hover .icon {
  transform: scale(1.1) rotate(-4deg);
}

.value-card h3 {
  font-size: 1.02rem;
  font-weight: 500;
}

.value-card p {
  font-size: 0.94rem;
  color: var(--muted);
}

.value-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(100deg,
      rgba(0, 104, 71, 0.18),
      rgba(238, 245, 241, 0.03) 50%,
      rgba(206, 17, 38, 0.12));
}

.value-card-wide .icon {
  width: 50px;
  height: 50px;
}

.value-card-wide div {
  display: grid;
  gap: 6px;
}

/* ---------- propósito ---------- */

.purpose-section {
  padding-bottom: clamp(70px, 9vw, 130px);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  grid-template-areas:
    "visual copy"
    "photo photo";
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}

.purpose-visual {
  grid-area: visual;
  display: grid;
  place-items: center;
}

.axolotl {
  width: min(340px, 90%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 40px rgba(31, 224, 124, 0.18));
}

.float {
  animation: floaty 6.5s ease-in-out infinite;
}

.purpose-copy {
  grid-area: copy;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.purpose-copy h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
}

.purpose-copy p {
  color: var(--muted);
  max-width: 54ch;
}

.purpose-quote {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--paper) !important;
  border-left: 2px solid var(--green);
  padding-left: 20px;
}

.purpose-photo {
  grid-area: photo;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.purpose-photo img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

/* ---------- meta 2050 ---------- */

.goal-section {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.goal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
}

.goal-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.goal-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goal-chip {
  left: 20px;
  bottom: 20px;
}

/* trayectoria */

.trajectory {
  position: relative;
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 10px 0 10px 34px;
}

.trajectory-line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 10px;
  width: 2px;
  background: rgba(238, 245, 241, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.trajectory-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--green), #7cf3b6);
  box-shadow: 0 0 14px rgba(31, 224, 124, 0.8);
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 1.4s var(--ease);
}

.trajectory.drawn .trajectory-line span {
  transform: scaleY(1);
}

.milestone {
  position: relative;
  padding: 20px 22px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(238, 245, 241, 0.025);
  transition: transform 0.4s var(--ease), border-color 0.4s ease,
    background 0.4s ease, opacity 0.9s var(--ease);
}

.milestone:hover {
  transform: translateX(6px);
  border-color: rgba(31, 224, 124, 0.4);
  background: var(--green-dim);
}

.milestone .node {
  position: absolute;
  top: 50%;
  left: -30px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--ink);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.milestone.in .node {
  background: var(--green);
  box-shadow: 0 0 16px rgba(31, 224, 124, 0.9);
}

.milestone p {
  font-size: 0.98rem;
}

/* ---------- cierre ---------- */

.closing {
  position: relative;
  margin: 0 calc(50% - 50vw);
  min-height: 78svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.closing > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 55%, rgba(4, 9, 7, 0.1), rgba(4, 9, 7, 0.82)),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}

.closing-content {
  text-align: center;
  display: grid;
  gap: 18px;
  padding: 40px 20px;
}

.closing-content h2 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.05;
}

.closing-content h2 span {
  background: linear-gradient(92deg, var(--green), #9ff7c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- footer ---------- */

.footer {
  padding: 60px 20px 44px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.footer img {
  width: 170px;
  opacity: 0.92;
}

.footer p {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-line {
  width: min(300px, 70%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #006847 0%, #eef5f1 50%, #ce1126 100%);
  opacity: 0.8;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    min-height: auto;
  }

  .hero-art {
    max-width: 560px;
  }

  .chip-top { left: -8px; }
  .chip-bottom { right: -6px; }

  .intro-content {
    grid-template-columns: 1fr;
  }

  .split-section,
  .goal-layout {
    grid-template-columns: 1fr;
  }

  .goal-main img {
    aspect-ratio: 16 / 10;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "photo";
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .site-nav,
  .header-action {
    display: none;
  }

  .nav-toggle {
    display: grid;
    gap: 6px;
    padding: 12px;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }

  .site-header.open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-header.open {
    border-radius: 28px;
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 16px;
  }

  .site-header.open .site-nav {
    display: grid;
    width: 100%;
    order: 3;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-header.open .site-nav a {
    padding: 12px 14px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card-wide {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .purpose-photo img {
    aspect-ratio: 16 / 10;
  }

  .hud-chip {
    padding: 10px 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.6rem);
  }
}

/* ---------- movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .hero h1 .line > span { transform: none; }
  .hero-text,
  .hero-actions,
  .hero-art { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .trajectory-line span { transform: scaleY(1); }
}
