/* nowmad explorers · página "en construcción" (la usan explorers-glass.html y explorers-en.html mientras la rama está en pausa) */
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-be36af.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-59f169.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-a14563.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2A1A12;
  --ink-2: #3A2418;
  --terra: #B9482A;
  --amber: #F2B33A;
  --hielo: #F6E2D6;
  --muted: rgba(246, 226, 214, .62);
  --display: "Unbounded", "Arial Black", sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(185, 72, 42, .28), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(242, 179, 58, .10), transparent 70%),
    var(--ink);
  color: var(--hielo);
  font: 400 17px/1.5 var(--sans);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/topo.svg") center / 900px repeat;
  opacity: .07;
  pointer-events: none;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.top, .foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.top a { text-decoration: none; }
.top a:hover { color: var(--hielo); }
.brand { font: 800 18px/1 var(--display); letter-spacing: -.03em; text-transform: none; color: var(--hielo); }
.brand b { font-weight: 300; color: var(--amber); }
.lang { display: flex; gap: 10px; }
.lang [aria-current] { color: var(--amber); }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 24px 16px 40px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 179, 58, .4);
  border-radius: 99px;
  background: rgba(242, 179, 58, .08);
  font: 600 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: blink 1.4s steps(2) infinite; }

.rumbo { position: relative; width: clamp(130px, 28vw, 190px); aspect-ratio: 380 / 395; }
.rumbo img { width: 100%; height: 100%; animation: float 4s ease-in-out infinite; }
.rumbo::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -10px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  filter: blur(6px);
  animation: shadow 4s ease-in-out infinite;
}
.bubble {
  position: absolute;
  top: -6px;
  left: 82%;
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--hielo);
  color: var(--ink);
  font: 700 22px/1 var(--hand);
  white-space: nowrap;
  transform: rotate(4deg);
}

h1 {
  margin: 0;
  font: 800 clamp(30px, 9.4vw, 112px)/.92 var(--display);
  letter-spacing: -.05em;
}
h1 em { display: block; font-style: normal; font-weight: 300; font-size: .42em; letter-spacing: -.02em; color: var(--amber); margin-top: .35em; }
.dots span { animation: dot 1.4s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }

.lead { max-width: 34em; margin: 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.lead strong { color: var(--hielo); font-weight: 600; }

.loader { width: min(440px, 100%); }
.bar {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(246, 226, 214, .1);
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(135deg, var(--amber) 0 12px, #e09a22 12px 24px);
  background-size: 34px 100%;
  animation: fill 6s cubic-bezier(.2, .7, .2, 1) forwards, stripes .8s linear infinite;
}
.status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font: 500 12px/1.3 var(--mono);
  color: var(--muted);
  text-align: left;
}
.status [data-step] { transition: opacity .3s; }
.status b { color: var(--amber); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 99px;
  border: 1px solid rgba(246, 226, 214, .25);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--hielo); }
.btn-main { background: var(--hielo); border-color: var(--hielo); color: var(--ink); }
.btn-main:hover { background: #fff; }

.foot { display: block; text-align: center; text-transform: none; letter-spacing: .02em; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.8); opacity: .5; } }
@keyframes fill { 0% { width: 0; } 100% { width: 87%; } }
@keyframes stripes { to { background-position: 34px 0; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes dot { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .15; } }

@media (max-width: 520px) {
  .bubble { left: auto; right: -24px; top: -18px; font-size: 19px; }
  .status { flex-direction: column; gap: 4px; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .bar i { width: 87%; }
}
