/* Base común de las tres versiones del hero. Cada versión agrega su propia
   hoja para la escena. Nada de esta hoja depende de una versión. */

:root {
  --noche: #061615;
  --tinta: #1c2423;
  --carbon: #414042;
  --gris: #6a696b;
  --linea: #7fd3c2;
  --linea-viva: #16c8a8;
  --linea-honda: #0e5a54;
  --papel: #f7f6f0;
  --blanco: #fff;
  --ambar: #f59e0b;
  --borde: rgba(28, 36, 35, .1);
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-lento: cubic-bezier(0, 0, .2, 1);
  --sombra: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 48px rgba(3, 20, 18, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- navegación ---------- */

.nav {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(6, 22, 21, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: nav-baja .6s cubic-bezier(.4, 0, .2, 1) both;
}
.nav-logo img { width: 88px; height: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .74); }
.nav-links a { transition: color .2s ease; }
.nav-cta {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .16s var(--ease-out);
}
.nav-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--blanco); }
}
@keyframes nav-baja { from { opacity: 0; transform: translate(-50%, -18px); } }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(118px, 15vh, 164px) 0 0;
  color: var(--blanco);
  text-align: center;
  background: var(--noche);
}
/* Campo de color aprobado. Un solo degradado lineal en diagonal. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(315deg, #8fe7d6 0%, #16c8a8 27%, #0e5a54 60%, #0a0a0a 93%);
}
/* Refuerzo de contraste detrás del texto. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(6, 22, 21, .55), rgba(6, 22, 21, .16) 60%, transparent);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }

.hero-copy { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.rotulo {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  animation: entra 2s var(--ease-lento) both;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
  animation: titular .9s cubic-bezier(.22, 1, .36, 1) both;
}
.bajada {
  width: min(660px, 100%);
  margin: 24px auto 0;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
  animation: entra 2s var(--ease-lento) .2s both;
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  animation: entra 2s var(--ease-lento) .4s both;
}
.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.boton:active { transform: scale(.97); }
.boton-lleno { background: var(--linea); color: var(--tinta); }
.boton-linea { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); color: var(--blanco); }
@media (hover: hover) and (pointer: fine) {
  .boton-lleno:hover { background: #9be3d4; }
  .boton-linea:hover { background: rgba(255, 255, 255, .1); }
}
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
@keyframes titular { from { opacity: 0; transform: scale(1.12); } }

/* ---------- escenario ---------- */

.escena {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(40px, 6vh, 64px) auto 0;
  text-align: left;
  color: var(--tinta);
  animation: entra 2.2s var(--ease-lento) .5s both;
}
.ficticio {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
}

/* ---------- clientes ---------- */

.clientes { padding: 44px 0 56px; background: var(--papel); text-align: center; }
.clientes p {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}
.cinta {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cinta-pista { display: flex; align-items: center; gap: 72px; width: max-content; animation: cinta 48s linear infinite; }
.cinta-pista img { height: 40px; width: auto; flex: none; filter: grayscale(1); opacity: .72; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- selector de versión, solo para la revisión ---------- */

.versiones {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(6, 22, 21, .88);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.versiones a { padding: 7px 13px; border-radius: 999px; }
.versiones a[aria-current] { background: var(--linea); color: var(--tinta); font-weight: 500; }

/* ---------- teléfono ---------- */

@media (max-width: 760px) {
  .nav { padding-left: 16px; }
  .nav-links { display: none; }
  .nav-logo img { width: 74px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .hero { padding-top: 104px; }
  .rotulo { font-size: 10.5px; }
  .boton { padding: 14px 22px; }
  .escena { width: calc(100% - 24px); }
  .cinta-pista { gap: 48px; }
  .cinta-pista img { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .rotulo, .hero h1, .bajada, .acciones, .escena { animation-duration: .01s; animation-delay: 0s; }
  .cinta-pista { animation: none; }
}
