/* === NEWEST · Coming Soon === */

:root {
  --cream: #EFE7D6;
  --cream-2: #E7DEC9;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #6B6357;
  --line: rgba(10, 10, 10, 0.18);
  --line-strong: rgba(10, 10, 10, 0.55);

  --display: 'Archivo Black', Impact, 'Helvetica Neue', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  /* Sutil ruido textil */
  background-image:
    radial-gradient(rgba(10,10,10,0.025) 1px, transparent 1px),
    radial-gradient(rgba(10,10,10,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* === Topbar === */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: block;
  width: 78px;
  color: var(--ink);
  transition: transform .35s var(--ease);
}
.brand-mark:hover { transform: scale(1.04); }
.brand-mark svg { width: 100%; height: auto; }

.top-meta {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-toggle span { opacity: .45; transition: opacity .2s var(--ease); }
.lang-toggle span.active { opacity: 1; }

/* === Stage === */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 56px);
}

.hero {
  width: 100%;
  max-width: var(--max);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.2vh, 36px);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .9s var(--ease) .1s forwards;
}

/* Wordmark */
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 17vw, 260px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  user-select: none;
}
.wordmark .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: charIn .9s var(--ease) forwards;
  animation-delay: calc(0.08s * var(--i) + 0.15s);
}
@keyframes charIn {
  to { transform: translateY(0); opacity: 1; }
}

.claim {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: 0.32em;
  color: var(--ink);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .9s forwards;
}

.stripes {
  width: 60px;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.1s forwards;
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(8px, 1.6vw, 18px);
  margin-top: 8px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.2s forwards;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
}
.cd-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-sep {
  font-family: var(--mono);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--line-strong);
  padding-bottom: 16px;
}

/* === Form === */
.subscribe {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.35s forwards;
}

.form-intro {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.field {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}

.field input[type="email"] {
  appearance: none;
  border: 0;
  background: transparent;
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  padding: 18px 22px;
  width: 100%;
  outline: none;
  letter-spacing: 0.01em;
}
.field input[type="email"]::placeholder { color: var(--muted); }

.submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .2s var(--ease), padding .2s var(--ease);
}
.submit:hover { background: var(--ink-2); padding-right: 26px; }
.submit:disabled { opacity: .6; cursor: not-allowed; }
.submit .arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.submit:hover .arrow { transform: translateX(3px); }

.gdpr {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 460px;
  text-align: left;
}
.gdpr a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.gdpr input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  margin-top: 1px;
  cursor: pointer;
  position: relative;
  flex: 0 0 16px;
  transition: background .15s var(--ease);
}
.gdpr input[type="checkbox"]:checked { background: var(--ink); }
.gdpr input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 5px; height: 10px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gdpr input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-msg {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.form-msg.is-ok    { color: #196b2e; }
.form-msg.is-error { color: #a3231f; }

/* === Footer === */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer .socials {
  display: inline-flex;
  gap: 22px;
  justify-self: center;
}
.footer .socials a {
  position: relative;
  color: var(--ink);
  padding: 4px 0;
}
.footer .socials a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .25s var(--ease);
}
.footer .socials a:hover::after { right: 0; }
.footer-right { justify-self: end; }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Defensive: si JS no carga, asegúrate de que el contenido es visible */
.no-js .wordmark .char,
.no-js .eyebrow,
.no-js .claim,
.no-js .stripes,
.no-js .countdown,
.no-js .subscribe { opacity: 1 !important; transform: none !important; animation: none !important; }

/* === Mobile === */
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto auto; row-gap: 8px; }
  .top-meta { grid-column: 1 / -1; justify-self: start; order: 3; }

  .wordmark { font-size: clamp(72px, 22vw, 200px); }

  .countdown { padding: 12px 14px; gap: 6px; }
  .cd-unit { min-width: 44px; }
  .cd-sep { padding-bottom: 14px; }

  .field { grid-template-columns: 1fr; border-radius: 18px; }
  .field input[type="email"] { padding: 16px 18px; }
  .submit { padding: 16px 18px; justify-content: center; }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer .socials { justify-self: center; gap: 16px; }
  .footer-right { justify-self: center; }
}
