/* vernos — sitio estático. Paleta y voz del brand sheet (docs/BrandVoice.png).
   Como la app (D-03), el sitio NO sigue el modo del sistema: cada sección elige su
   atmósfera. Día = Moderno cercano; Noche = Noche serena.
   Tipografías de marca (Recoleta/Inter) aún sin licencia (D-17): se usan las mismas
   familias de respaldo que la app — serif del sistema para títulos, sans del sistema
   para cuerpo. */

:root {
  /* Día · Moderno cercano */
  --day-bg: #f6f2ec;
  --day-surface: #efe6d8;
  --day-ink: #1f1f1f;
  --day-ink-2: rgba(31, 31, 31, 0.64);
  --day-accent: #d76f5a;
  --day-accent-text: #a8442f;
  --day-sage: #8fa08e;
  --day-separator: rgba(31, 31, 31, 0.1);

  /* Noche · Noche serena */
  --night-bg: #0b0b0e;
  --night-surface: #1a1714;
  --night-ink: #f3efe6;
  --night-ink-2: rgba(243, 239, 230, 0.68);
  --night-accent: #c5832a;
  --night-soft: #6e543b;
  --night-separator: rgba(243, 239, 230, 0.12);

  --serif: "New York", "Iowan Old Style", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --radius: 20px;
}

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

/* El atributo `hidden` debe ganar siempre — sin esto, cualquier clase con `display`
   propio (como .pill) lo anula y aparecen elementos que la página pidió esconder. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--day-bg);
  color: var(--day-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* --------------------------------------------------------------- atmósferas */

.day { background: var(--day-bg); color: var(--day-ink); }
.day-surface { background: var(--day-surface); }
.night { background: var(--night-bg); color: var(--night-ink); }

/* ------------------------------------------------------------------- texto */

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  max-width: var(--measure);
  color: var(--day-ink-2);
}

.night .lead, .night p { color: var(--night-ink-2); }

.accent { color: var(--day-accent-text); }
.night .accent { color: var(--night-accent); }

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--day-accent-text);
}

/* -------------------------------------------------------------------- nav */

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.75rem 0;
}

nav .wordmark { font-size: 1.5rem; text-decoration: none; color: inherit; }

nav .links a {
  color: var(--day-ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

nav .links a:hover { color: var(--day-accent-text); }

/* ------------------------------------------------------------------ botones */

.pill {
  display: inline-block;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.14s ease-out;
}

.pill:active { transform: scale(0.98); }

.pill-primary { background: var(--day-accent); color: var(--day-ink); }
.night .pill-primary { background: var(--night-accent); color: var(--night-bg); }

.pill-quiet {
  color: var(--day-accent-text);
  border: 1.5px solid var(--day-separator);
}
.night .pill-quiet { color: var(--night-accent); border-color: var(--night-separator); }

.soon {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--day-ink-2);
  margin-top: 0.9rem;
}

/* ------------------------------------------------------------------- cards */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--day-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.card .n {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--day-accent-text);
  display: block;
  margin-bottom: 0.75rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--day-ink-2); font-size: 0.975rem; }

/* -------------------------------------------------------- la brasa (noche) */

.ember {
  width: 132px;
  height: 132px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--night-accent) 0%,
    rgba(110, 84, 59, 0.45) 38%,
    transparent 70%
  );
  filter: blur(14px);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.65; }
  50% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ember { animation: none; }
}

/* ------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--day-separator);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--day-ink-2);
}

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--day-accent-text); }

footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
}

/* ----------------------------------------------------------- página legal */

.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.5rem; }
.legal .updated { color: var(--day-ink-2); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: var(--measure); color: var(--day-ink-2); }
.legal ul { padding-left: 1.25rem; margin: 0.75rem 0; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--day-ink); }
.legal .placeholder {
  background: var(--day-surface);
  border-radius: 6px;
  padding: 0 0.4rem;
}

/* ------------------------------------------------------------- invitación */

.invite {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.invite main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.invite .code {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* compensa el letter-spacing del último carácter */
  color: var(--night-ink);
  margin: 1.5rem 0 0.5rem;
}

.invite .hint { font-size: 0.95rem; max-width: 26rem; }

.invite ol {
  text-align: left;
  max-width: 24rem;
  margin: 2rem auto 0;
  padding-left: 1.4rem;
  color: var(--night-ink-2);
}

.invite ol li { margin-bottom: 0.6rem; }
