/* ═══════════════════════════════════════════════════════════════════════════
   Hoja compartida por las cuatro páginas de enlaces compartidos: /u/ (perfil),
   /post/ (publicación del foro), /e/ (evento) y /m/ (anuncio del Mercado).

   Las cuatro son la misma pieza con distinto texto: alguien recibió un link de
   la app y aterriza acá. Ninguna muestra el contenido —las reglas de Firestore
   no dejan leer nada sin sesión iniciada y la landing es estática—, así que
   explican de qué se trata y llevan a la app.

   Paleta: los mismos valores que NomadColors en lib/app_theme.dart. Si allá
   cambia un color, cambiarlo también acá — son la misma marca.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --teal-900: #134E4A;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --cream: #F5F0E8;
  --surface: #FFFFFF;
  --slate-200: #E2E8F0;
  --gray-500: #6B7280;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--teal-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.wordmark {
  font-family: 'Pacifico', cursive; font-weight: 400;
  color: var(--teal-600); letter-spacing: 0.01em; font-size: 1.65rem;
}

/* ── Barra superior ───────────────────────────────────────────────────────── */
.topbar {
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; box-shadow: 0 10px 28px rgba(13, 148, 136, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13, 148, 136, 0.42); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-100); }
.btn-ghost:hover { background: var(--teal-100); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 0.94rem; }

/* ── Tarjeta central ──────────────────────────────────────────────────────── */
main { flex: 1; display: flex; align-items: center; padding: 56px 0 72px; }

.card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 44px 40px;
  max-width: 620px; margin: 0 auto;
  box-shadow: 0 18px 48px rgba(19, 78, 74, 0.08);
  text-align: center;
}
.kicker {
  font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal-600);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; margin: 10px 0 0; line-height: 1.15; }
.lead { margin: 14px 0 0; font-size: 1.05rem; color: var(--teal-900); opacity: 0.85; }
.acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.ref {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--slate-200);
  font-size: 0.82rem; color: var(--gray-500);
}
.ref code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--teal-100); color: var(--teal-700);
  padding: 2px 8px; border-radius: 6px; font-size: 0.82rem;
  overflow-wrap: anywhere;
}

/* ── Pie ──────────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--slate-200); padding: 26px 0; font-size: 0.86rem; color: var(--gray-500); }
footer .container { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--teal-700); text-decoration: none; font-weight: 700; }

@media (max-width: 560px) {
  .card { padding: 34px 24px; border-radius: 20px; }
  /* Los dos botones de la tarjeta van a ancho completo, pero el de la barra
     superior no: ahí compite con el logotipo y se le achica el relleno. */
  main .btn { width: 100%; }
  .topbar .btn-sm { padding: 10px 18px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
