/* ---------- Tokens (de Figma) ---------- */
:root {
  --color-bg: #F8F7F2;
  --color-text: #171717;
  --color-accent: #1638C8;
  --color-logo: #4A4A4A;

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Noto Serif Display', serif;
  --font-hand: 'Caveat', cursive;

  --block-max-width: 1200px;
  --block-height: 738px;
  --block-padding: 48px 64px 54px 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
}

/* ---------- Sistema de pantallas: el scroll dispara el cambio, no hay scroll real ---------- */
.screens {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.3s ease;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Bloque genérico ---------- */
.block {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ---------- BLOQUE 1: HERO ---------- */
.block--hero {
  min-height: 100vh;
  align-items: center;
  background: var(--color-bg);
}

.hero__inner {
  width: 100%;
  max-width: var(--block-max-width);
  min-height: var(--block-height);
  padding: var(--block-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

/* Nav */
.hero__nav {
  display: flex;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 7.5pt;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.hero__nav .dot {
  opacity: 0.6;
}

/* Centro: logo + descripción */
.hero__center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: auto 0;
  transition: opacity 0.6s ease;
}

.hero__logo {
  position: relative;
  width: 100%;
  max-width: 580px;
  line-height: 0;
}

.logo-placeholder,
.logo-video {
  display: block;
  width: 100%;
  height: auto;
}

.logo-placeholder {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* Keep the video in the render tree so the browser can load/decode it.
   Hiding it with display:none can prevent reliable first-frame detection. */
.logo-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

.hero__logo.has-video .logo-placeholder {
  opacity: 0;
}

.hero__logo.has-video .logo-video {
  opacity: 1;
}

.hero__desc {
  max-width: 580px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 11pt;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
}

/* Footer */
.hero__footer {
  width: 100%;
  transition: opacity 0.6s ease;
}

.hero__footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__link {
  font-family: var(--font-sans);
  font-size: 7.5pt;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-decoration: none;
}

.hero__link:hover,
.hero__link:focus-visible {
  text-decoration: underline;
}

.hero__asterisk {
  color: var(--color-accent);
  font-size: 13px;
}

.hero__scroll {
  color: var(--color-accent);
  font-size: 13px;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Animación de entrada (carga inicial) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.9s ease forwards;
  animation-delay: calc(var(--delay) * 160ms);
}

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

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


.hero__footer-inner .hero__link a {
  color: inherit;
  text-decoration: none;
}
.hero__footer-inner .hero__link a:hover,
.hero__footer-inner .hero__link a:focus-visible {
  text-decoration: underline;
}
