:root {
  --stage-width: 1080;
  --stage-height: 1920;
  --scale: 1;
  --accent: #c6ff00;
  --accent-soft: rgba(198, 255, 0, 0.68);
  --white: #f7f9f8;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.66);
  --navy: #020913;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #00050b;
  color: var(--white);
  font-family:
    Inter, Montserrat, Avenir Next, Avenir, Helvetica Neue, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-screen {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--stage-width) * 1px);
  height: calc(var(--stage-height) * 1px);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  transform: translateX(-50%) scale(var(--scale));
  transform-origin: top center;
  opacity: 0;
  animation: screenReveal 900ms ease-out 120ms forwards;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.background,
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -5;
  background-image: url("../img/fondo-portada.png");
  background-position: center;
  background-size: cover;
  filter: saturate(1) contrast(1.04) brightness(1);
  transform: scale(1.04);
  animation: kenBurns 19s ease-in-out infinite alternate;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 76% 32%, rgba(110, 184, 255, 0.2), transparent 18%),
    radial-gradient(circle at 43% 49%, rgba(198, 255, 0, 0.1), transparent 20%);
}

.home-screen:not(.is-home) .background {
  opacity: 0;
  animation: none;
}

.home-screen:not(.is-home) .background-video {
  visibility: hidden;
}

.home-screen:not(.is-home) .ambient-stars {
  opacity: 0;
  animation: none;
}

.ambient-stars {
  z-index: -4;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(120, 200, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.4px);
  background-position:
    40px 50px,
    122px 78px;
  background-size:
    118px 124px,
    173px 191px;
  mask-image: linear-gradient(180deg, #000 0%, #000 36%, transparent 62%);
  animation: starDrift 26s linear infinite;
}

.ambient-vignette {
  z-index: -3;
  background: transparent;
}

.home-screen.is-models .ambient-vignette {
  background:
    radial-gradient(ellipse at 50% 45%, transparent 20%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 36%, rgba(0, 0, 0, 0.66) 100%);
}

.home-content {
  display: grid;
  grid-template-rows: 260px 1fr 470px;
  width: 100%;
  height: 100%;
  padding: 78px 72px 78px;
}

.models-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 116px 294px 920px 200px 134px;
  gap: 34px;
  width: 100%;
  height: 100%;
  padding: 52px 52px 50px;
  background:
    radial-gradient(circle at 74% 13%, rgba(198, 255, 0, 0.05), transparent 16%),
    radial-gradient(circle at 76% 36%, rgba(69, 132, 178, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(1, 8, 12, 0.91), rgba(0, 5, 8, 0.96));
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 116px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp 840ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms forwards;
}

.brand-logo {
  display: block;
  width: 226px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.brand-compact {
  height: 90px;
}

.brand-compact .brand-logo {
  width: 177px;
}

.copy-block {
  align-self: start;
  padding-top: 74px;
  max-width: 820px;
}

.headline {
  display: grid;
  gap: 16px;
  margin: 0;
  font-size: 75px;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(38px);
  animation: fadeSlideUp 980ms cubic-bezier(0.17, 0.84, 0.28, 1) forwards;
}

.headline span:first-child {
  color: #f8faf8;
  animation-delay: 620ms;
}

.headline span:last-child {
  color: var(--accent);
  animation-delay: 760ms;
  text-shadow:
    0 0 20px rgba(198, 255, 0, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.33);
}

.divider {
  width: 73px;
  height: 3px;
  margin-top: 46px;
  background: var(--accent);
  box-shadow: 0 0 17px rgba(198, 255, 0, 0.44);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  animation: dividerIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 1040ms forwards;
}

.subtext {
  margin: 31px 0 0;
  max-width: 540px;
  color: var(--text-soft);
  font-size: 29px;
  line-height: 1.34;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(22px);
  animation: fadeSlideUp 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 1140ms forwards;
}

.subtext span {
  color: var(--accent);
}

.actions {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 88px;
  width: 100%;
  padding-bottom: 12px;
}

.primary-cta {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  width: 700px;
  min-height: 142px;
  padding: 22px 43px 22px 62px;
  overflow: hidden;
  border: 2px solid rgba(198, 255, 0, 0.88);
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(0, 8, 14, 0.5), rgba(0, 4, 8, 0.32)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(198, 255, 0, 0.06) inset,
    0 0 23px rgba(198, 255, 0, 0.22),
    0 25px 62px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  animation:
    fadeButtonIn 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 1370ms forwards,
    buttonGlow 3.8s ease-in-out 2300ms infinite;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.13) 45%, transparent 62%);
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity 180ms ease,
    transform 700ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible,
.primary-cta.is-pressed {
  transform: translateY(0) scale(1.03);
  border-color: #dcff54;
  background:
    linear-gradient(180deg, rgba(13, 28, 21, 0.66), rgba(0, 5, 8, 0.38)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(198, 255, 0, 0.18) inset,
    0 0 40px rgba(198, 255, 0, 0.42),
    0 34px 78px rgba(0, 0, 0, 0.46);
}

.primary-cta:hover::before,
.primary-cta:focus-visible::before,
.primary-cta.is-pressed::before {
  opacity: 1;
  transform: translateX(74%);
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(198, 255, 0, 0.82);
  border-radius: 50%;
  color: #fff;
  box-shadow:
    0 0 14px rgba(198, 255, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.cta-icon svg {
  width: 42px;
  height: 42px;
}

.cta-icon path,
.chevrons path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.cta-label {
  color: #fbfcfb;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-align: center;
  text-transform: uppercase;
}

.secondary-cta {
  display: grid;
  justify-items: center;
  gap: 28px;
  min-width: 540px;
  padding: 4px 24px 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeSlideUp 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 1590ms forwards;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.secondary-cta:hover,
.secondary-cta:focus-visible,
.secondary-cta.is-pressed {
  color: #fff;
  transform: translateY(0) scale(1.02);
}

.secondary-cta span:last-child {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.38);
}

.chevrons {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(198, 255, 0, 0.38));
  animation: chevronBounce 1.85s ease-in-out infinite;
}

.chevrons svg {
  width: 54px;
  height: 54px;
}
@keyframes screenReveal {
  to {
    opacity: 1;
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.095) translate3d(-14px, -18px, 0);
  }
}

@keyframes starDrift {
  to {
    background-position:
      40px 174px,
      122px 269px;
  }
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dividerIn {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes fadeButtonIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(198, 255, 0, 0.06) inset,
      0 0 21px rgba(198, 255, 0, 0.2),
      0 25px 62px rgba(0, 0, 0, 0.4);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(198, 255, 0, 0.1) inset,
      0 0 34px rgba(198, 255, 0, 0.34),
      0 25px 62px rgba(0, 0, 0, 0.4);
  }
}

@keyframes chevronBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }

  50% {
    transform: translateY(13px);
    opacity: 1;
  }
}

@keyframes appRiseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.975);
  }

  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.004);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes specItemIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.982);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
