/* ============================================
   CRUCE — Sistema de diseño
   ============================================ */

:root {
  /* Paleta */
  --paper: #F4EFE7;
  --paper-2: #EBE4D6;
  --paper-3: #E1D8C4;
  --ink: #141210;
  --ink-2: #2A2622;
  --ink-3: #5B534A;
  --ink-4: #8A8175;
  --line: rgba(20,18,16,.10);
  --line-2: rgba(20,18,16,.18);

  --red: #E63946;
  --red-2: #C42A38;
  --red-3: #8F1E28;
  --sage: #4A5D3A;
  --sage-2: #6B7F5A;
  --gold: #B8935A;
  --gold-2: #8F6E3D;

  /* Tipos */
  --serif: 'Instrument Serif', 'DM Serif Display', 'Times New Roman', serif;
  --sans: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Space Mono', ui-monospace, monospace;

  /* Radios */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(20,18,16,.05), 0 2px 6px rgba(20,18,16,.04);
  --shadow-md: 0 8px 24px rgba(20,18,16,.08), 0 2px 6px rgba(20,18,16,.04);
  --shadow-lg: 0 30px 60px rgba(20,18,16,.12), 0 10px 24px rgba(20,18,16,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; color: inherit; }

/* Tipografía utilitaria */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); vertical-align: middle; margin-right: 8px;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); transform: translateY(-1px); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-lg { padding: 18px 30px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Cards */
.card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-flat {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip.sage { background: rgba(74,93,58,.10); color: var(--sage); border-color: rgba(74,93,58,.20); }
.chip.red { background: rgba(230,57,70,.10); color: var(--red-2); border-color: rgba(230,57,70,.22); }
.chip.gold { background: rgba(184,147,90,.12); color: var(--gold-2); border-color: rgba(184,147,90,.28); }

/* Badge verificado */
.verified {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--sage); font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em;
}
.verified svg { width: 12px; height: 12px; }

/* Utilidades */
.divider { height: 1px; background: var(--line); width: 100%; }
.grain {
  position: relative;
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: .5; mix-blend-mode: multiply;
}

/* Retrato SVG genérico */
.portrait {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--paper-2), var(--paper-3));
}
.portrait-init {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 88px; color: var(--ink); opacity: .85;
  letter-spacing: -0.03em;
}
.portrait-tag {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(20,18,16,.72); color: white; backdrop-filter: blur(6px);
  font-size: 11px; font-family: var(--mono); letter-spacing: 0.04em;
}

/* Sello Cruce */
.sello {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em;
}
.sello::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,.15);
}

/* Scrollbar sutil */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(20,18,16,.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(20,18,16,.3); }
