/* ============================================================
   Landing Mundo Tierra Firme — estilos
   El espacio domina; la marca acompaña (clay #F58634, Zilla Slab).
   ============================================================ */

:root {
  --mtf-bg: #06070c;
  --mtf-panel: rgba(16, 18, 26, 0.82);
  --mtf-panel-solid: #12141c;
  --mtf-line: rgba(255, 255, 255, 0.1);
  --mtf-text: #ece7de;
  --mtf-text-dim: #a9a49a;
  --mtf-clay: #f58634;
  --mtf-clay-deep: #dc6f22;
  --mtf-ochre: #c99a3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--mtf-bg);
  color: var(--mtf-text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}
img { max-width: 100%; }

::selection { background: rgba(245, 134, 52, 0.4); }

h1, h2, h3 { font-family: 'Zilla Slab', Georgia, serif; line-height: 1.08; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: 'Special Elite', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--mtf-clay);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; color: inherit;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mtf-clay); color: #1a120a; box-shadow: 0 8px 30px rgba(245, 134, 52, 0.3); }
.btn-primary:hover { background: #ff974c; }
.btn-ghost { background: var(--mtf-panel); color: var(--mtf-text); border-color: var(--mtf-line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 7, 12, 0.8); backdrop-filter: blur(12px); border-color: var(--mtf-line); }
.nav img { height: 38px; display: block; }
.nav .spacer { flex: 1; }
.nav .seg {
  display: flex; gap: 2px; padding: 3px;
  background: var(--mtf-panel); border: 1px solid var(--mtf-line); border-radius: 10px;
  backdrop-filter: blur(10px);
}
.nav .seg button {
  min-width: 38px; min-height: 30px; padding: 0 8px;
  background: transparent; color: var(--mtf-text-dim);
  border: 0; border-radius: 7px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.nav .seg button.active { background: var(--mtf-clay); color: #1a120a; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---- hero: canvas absoluto dentro del hero ---- */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
  z-index: 1;
  background: transparent;
}

.ticker {
  position: relative; z-index: 2;
  background: rgba(6, 7, 12, 0.96);
}
section {
  position: relative; z-index: 2;
  background: var(--mtf-bg);
}
.signup {
  position: relative; z-index: 2;
  background: var(--mtf-bg);
  text-align: center;
}
footer {
  position: relative; z-index: 2;
  background: var(--mtf-bg);
}
.hero-content { position: relative; z-index: 1; margin-top: 18vh; max-width: 880px; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 18px 0 20px;
  text-shadow: 0 4px 40px rgba(6, 7, 12, 0.8);
}
.hero h1 em { font-style: normal; color: var(--mtf-clay); }
.hero .sub {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--mtf-text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-foot {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 1;
  display: flex; justify-content: center;
}
.hero-foot .scroll-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(236, 231, 222, 0.5);
}
.hero-foot svg { width: 15px; height: 15px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* huevo de pascua lunar */
.moon-egg {
  position: absolute; z-index: 1;
  top: 13%; right: 12%;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4ecd8, #b9b0a0 70%);
  box-shadow: 0 0 12px 3px rgba(244, 236, 216, 0.25);
  border: 0; padding: 0; cursor: pointer;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.moon-egg-tip {
  position: absolute; z-index: 2;
  top: calc(13% + 20px); right: 12%;
  max-width: 240px; padding: 10px 14px;
  background: var(--mtf-panel-solid); border: 1px solid var(--mtf-line); border-radius: 12px;
  font-size: 13px; color: var(--mtf-text); text-align: left;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.moon-egg-tip.show { opacity: 1; transform: translateY(0); }

/* ---------- cinta de lugares ---------- */
.ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--mtf-line);
  border-bottom: 1px solid var(--mtf-line);
  background: rgba(10, 11, 17, 0.55);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 38s linear infinite;
  font-family: 'Special Elite', monospace;
  font-size: 14px; letter-spacing: 0.12em;
  color: var(--mtf-text-dim);
}
.ticker-track span { margin: 0 14px; }
.ticker-track .dot { color: var(--mtf-clay); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
section { position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 96px 24px; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 16px; }
.sec-head p { color: var(--mtf-text-dim); font-size: 17px; line-height: 1.6; margin: 0; }

/* divisor de marca: la “i” con su punto naranja */
.imark { display: flex; justify-content: center; padding: 6px 0 0; }
.imark img { height: 60px; opacity: 0.85; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 28px 24px;
  background: var(--mtf-panel-solid);
  border: 1px solid var(--mtf-line); border-radius: 18px;
}
.step .num {
  font-family: 'Special Elite', monospace;
  color: var(--mtf-clay); font-size: 15px;
}
.step h3 { font-size: 21px; margin: 12px 0 8px; }
.step p { color: var(--mtf-text-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--mtf-line); border-radius: 18px;
  transition: transform 0.25s, border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(245, 134, 52, 0.45); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 134, 52, 0.12); border: 1px solid rgba(245, 134, 52, 0.3);
  margin-bottom: 16px;
}
.feature .ico svg { width: 21px; height: 21px; color: var(--mtf-clay); }
.feature h3 { font-size: 18px; margin: 0 0 7px; }
.feature p { color: var(--mtf-text-dim); font-size: 14px; line-height: 1.55; margin: 0; }

/* historia */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-photo {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--mtf-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.6deg);
}
.story-photo img { display: block; width: 100%; height: 460px; object-fit: cover; }
.story-text h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 18px; }
.story-text p { color: var(--mtf-text-dim); font-size: 16.5px; line-height: 1.75; }
.story-text .sign {
  font-family: 'Special Elite', monospace;
  color: var(--mtf-clay); font-size: 15px; margin-top: 26px;
}

/* planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--mtf-line); border-radius: 20px;
}
.plan.featured { border-color: var(--mtf-clay); background: rgba(245, 134, 52, 0.07); }
.plan .pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--mtf-clay); color: #1a120a;
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.plan h3 { font-size: 22px; }
.plan .price { font-size: 17px; font-weight: 800; color: var(--mtf-clay); margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--mtf-text-dim); line-height: 1.45; }
.plan li svg { width: 15px; height: 15px; color: var(--mtf-ochre); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; }

/* faq */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--mtf-line); border-radius: 14px;
  background: var(--mtf-panel-solid);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  font-weight: 700; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 17px; height: 17px; color: var(--mtf-clay); flex: none; transition: transform 0.25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 22px 18px; color: var(--mtf-text-dim); font-size: 14.5px; line-height: 1.65; }

/* registro */
.signup { text-align: center; }
.signup .wrap { padding-top: 110px; padding-bottom: 110px; }
.signup h2 { font-size: clamp(32px, 5vw, 54px); margin: 14px 0 14px; }
.signup p { color: var(--mtf-text-dim); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }
.signup form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.signup input {
  width: min(260px, 100%); padding: 13px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--mtf-line); border-radius: 999px;
  color: var(--mtf-text); font-family: inherit; font-size: 15px;
  outline: none;
}
.signup input[type="email"] { width: min(300px, 100%); }
.signup input:focus { border-color: var(--mtf-clay); box-shadow: 0 0 0 3px rgba(245, 134, 52, 0.25); }
.signup input::placeholder { color: rgba(236, 231, 222, 0.35); }
.signup .ok {
  display: none;
  align-items: center; justify-content: center; gap: 10px;
  font-size: 16.5px; font-weight: 600; color: var(--mtf-text);
}
.signup .ok svg { width: 19px; height: 19px; color: var(--mtf-clay); }
.signup .note { font-size: 12.5px; color: rgba(236, 231, 222, 0.4); margin-top: 18px; }

/* footer */
footer {
  border-top: 1px solid var(--mtf-line);
  padding: 40px 24px 50px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
footer img { height: 44px; opacity: 0.9; }
footer .credit { font-size: 13px; color: var(--mtf-text-dim); letter-spacing: 0.03em; }
footer a { color: var(--mtf-clay); text-decoration: none; font-weight: 600; font-size: 14px; }
footer a:hover { text-decoration: underline; }

/* reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-foot svg { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 34px; }
  .story-photo img { height: 320px; }
  .wrap { padding: 64px 20px; }
  .nav .hide-mobile { display: none; }
  .hero-content { margin-top: 15vh; }
}
