:root {
  --crema: #f7efe2;
  --verde: #6a8a3a;
  --verde-osc: #4d6628;
  --morado: #5b2a86;
  --naranja: #e09b3d;
  --tinta: #2c2417;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--tinta);
  overflow-x: hidden;
}

/* ---------- Loader de carga (video / datos) ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #14110a;
  color: #f3ead9;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__text {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 1.1rem;
}
.page-loader__bar {
  width: min(72vw, 300px);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.page-loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--naranja);
  border-radius: 999px;
  transition: width 0.15s linear;
}
.page-loader__pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--naranja);
  letter-spacing: 1px;
}

/* ---------- Video de fondo ---------- */
.video-bg {
  position: fixed;
  top: 72px;          /* el video comienza justo debajo del menú */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
}
.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* llena toda la pantalla, sin franjas */
  object-position: center top;  /* móvil: ancla arriba, no corta la cabeza */
}

/* Escritorio: sube el encuadre del video */
@media (min-width: 1200px) {
  .video-bg video { object-position: center -250px; }
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,8,.55), rgba(20,16,8,.25) 40%, rgba(20,16,8,.7));
  z-index: -1;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 28px;
  background: transparent;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .5px;
}
.nav__logo {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
  transition: opacity .2s, color .2s;
}
.nav__links a:hover { color: var(--naranja); opacity: 1; }

/* ---------- Personaje giratorio ---------- */
.character {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  width: min(46vw, 420px);
  will-change: transform;
}
.character img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
  transition: transform .08s linear;
}

/* ---------- Secciones ---------- */
main { position: relative; z-index: 2; }

.section {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
/* La primera sección (hero) sí ocupa la pantalla para lucir el video */
.section.hero {
  min-height: 88vh;
  padding-top: 90px;
}

/* Hero */
.hero { text-align: center; }
.hero__content { max-width: 720px; }
.hero__eyebrow {
  color: var(--naranja);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .9rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.hero__title {
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.hero__title span { color: var(--naranja); }
.hero__subtitle {
  margin: 22px auto 30px;
  max-width: 540px;
  font-size: 1.2rem;
  color: #f3ead9;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* Cita destacada (doble de tamaño que el subtítulo) */
.hero__quote {
  margin: 26px auto 34px;
  max-width: 820px;
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1.25;
  color: #f3ead9;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
  border: none;
}
.hero__quote cite {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 700;
  color: var(--naranja);
}

.btn {
  display: inline-block;
  background: var(--naranja);
  color: #2c2417;
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(224,155,61,.45);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(224,155,61,.6); }
.btn__soon {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Scroll hint */
.scroll-hint {
  margin-top: 50px;
  color: #f3ead9;
  font-size: .85rem;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: .9;
}
.scroll-hint__mouse {
  width: 26px; height: 42px;
  border: 2px solid #f3ead9;
  border-radius: 14px;
  position: relative;
}
.scroll-hint__mouse i {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  background: #f3ead9;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.5s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 22px; }
}

/* Tarjetas de texto */
.text-section { text-align: center; }
.card {
  max-width: 620px;
  background: rgba(247,239,226,.94);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  border: 3px solid rgba(255,255,255,.5);
}
.card--wide { max-width: 920px; }
.card h2 {
  font-family: "Baloo 2", cursive;
  color: var(--verde-osc);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}
.card p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 14px; color: #4a4233; }

/* Grid de aventuras */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.grid__item {
  background: #fff;
  border-radius: 18px;
  padding: 26px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform .25s;
}
.grid__item:hover { transform: translateY(-6px); }
.grid__emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.grid__item h3 { font-family: "Baloo 2", cursive; color: var(--morado); margin-bottom: 8px; }
.grid__item p { font-size: .98rem; color: #5a5140; margin: 0; }

/* Formulario */
.form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #d8cdb6;
  font-size: 1rem;
  outline: none;
}
.form input:focus { border-color: var(--naranja); }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px;
  color: #f3ead9;
  background: rgba(20,16,8,.6);
  font-size: .9rem;
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .character { width: 62vw; opacity: .85; }
}
