/* tokens.css — Sistema de diseño compartido entre las 3 páginas.
   Paleta y tipografía idénticas al deck "Hijos de la Intimidad". */

:root {
  /* ─── Paleta (mismas tonalidades del deck) ──────────────────── */
  --abyss:    #0c0e1f;     /* fondo ultra profundo */
  --deep:     #15182f;     /* azul nocturno principal */
  --night:    #1d2240;     /* superficie elevada */
  --bg:       #f6efe1;     /* crema cálido (fondo claro) */
  --bg-soft:  #efe5d2;     /* crema apagado */
  --soft:     #d9c9a7;     /* divisor cálido */
  --medium:   #8a7c61;     /* texto secundario */
  --ink:      #2c2a23;     /* tinta principal */
  --ink-soft: #4a4439;     /* tinta secundaria */
  --warm:     #d4a437;     /* dorado cálido (acento) */
  --warm-deep:#9c7220;     /* dorado profundo */
  --warm-glow:#f5d27a;     /* dorado claro */

  /* ─── Tipografía ────────────────────────────────────────────── */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* ─── Spacing y radios ──────────────────────────────────────── */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* ─── Sombras ───────────────────────────────────────────────── */
  --shadow-card: 0 30px 60px rgba(12,14,31,0.10), 0 8px 20px rgba(12,14,31,0.06);
  --shadow-soft: 0 12px 24px rgba(12,14,31,0.08);
}

/* ─── Reset mínimo ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--warm-deep); text-decoration: none; }

/* ─── Utilidades de texto ──────────────────────────────────── */
.serif    { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
.serif-it { font-family: var(--serif); font-weight: 300; font-style: italic; }
.eyebrow  {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--warm-deep); font-weight: 600;
}
.muted    { color: var(--medium); }

/* ─── Botón principal cálido ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 32px;
  background: var(--warm);
  color: var(--abyss);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 20px rgba(212,164,55,0.35);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover    { background: var(--warm-glow); transform: translateY(-1px); }
.btn:active   { transform: translateY(1px); }
.btn:disabled { background: var(--soft); color: var(--medium); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--soft);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ─── Halo cálido reutilizable (para fondos) ───────────────── */
.warm-halo {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,164,55,0.35), rgba(212,164,55,0));
  filter: blur(20px);
}

/* ─── Animaciones globales ─────────────────────────────────── */
/* Las animaciones son DECORATIVAS — el contenido es visible por defecto.
   Si el navegador anima, hace una entrada suave; si no, simplemente aparece. */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes glow   { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pulse  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shine  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.fade-up { animation: fadeUp .5s ease both; }

/* Si el sistema prefiere menos movimiento (o si el navegador no anima),
   el contenido permanece totalmente visible. */
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
