/* Mimo · sitio web
   Carbón para todo, champán para el mimo.
   Tokens del sistema de diseño v1 (noviembre 2026). Oscuro es el tema principal;
   el claro sigue las mismas reglas y se activa con la apariencia del sistema. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;

  /* Neutros */
  --bg: #0E0E10;
  --surface-1: #18181B;
  --surface-2: #222226;
  --border: #2E2E33;
  --ink: #F4F4F5;
  --ink-muted: #A1A1AA;
  --ink-faint: #85858E;
  --on-ink: #0E0E10;
  --danger: #FF6B6B;

  /* Champán, solo para el mimo */
  --champan: #D8BC8A;
  --champan-ink: #3A2C12;
  --champan-text: #D8BC8A;
  --champan-edge: #D8BC8A;
  --champan-soft: rgb(216 188 138 / 0.12);

  /* Formas */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Espaciado */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  /* Tamaños */
  --stamp: 28px;
  --stamp-lg: 44px;
  --avatar: 40px;

  /* Tipografía */
  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;

  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F6F4;
    --surface-1: #FFFFFF;
    --surface-2: #EFEFEC;
    --border: #E2E2DE;
    --ink: #0E0E10;
    --ink-muted: #5F5F66;
    --ink-faint: #6E6E76;
    --on-ink: #F6F6F4;
    --danger: #C92A2A;
    --champan-text: #7D5F22;
    --champan-edge: #B08F52;
    --champan-soft: rgb(216 188 138 / 0.22);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}
.skip:focus { top: var(--space-4); }

/* ---------- Tipos ---------- */

.hero-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.headline { font-size: 17px; line-height: 22px; font-weight: 600; margin: 0; }
.callout { font-size: 15px; line-height: 20px; font-weight: 500; }
.caption { font-size: 13px; line-height: 18px; color: var(--ink-faint); }
.muted { color: var(--ink-muted); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34em;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--space-3);
}

/* ---------- Corazón ---------- */

.heart { fill: currentColor; }
.heart .eyes {
  fill: none;
  stroke: var(--heart-eyes, var(--bg));
  stroke-width: 38;
  stroke-linecap: round;
}

/* ---------- Barra superior ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
}
.top::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border);
  opacity: var(--top-line, 0);
  transition: opacity .2s;
}
.top.scrolled { --top-line: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-1); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 500 15px/20px var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, background-color .15s;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--surface-2); color: var(--ink); }
.btn-secondary:hover { background: var(--border); }
.btn-mimo {
  background: var(--champan);
  color: var(--champan-ink);
  box-shadow: inset 0 0 0 1px var(--champan-edge);
}
.btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.pill svg { width: 14px; height: 14px; }

/* ---------- Sellos y tarjetas (los mismos componentes de la app) ---------- */

.stamps { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.stamp {
  width: var(--stamp);
  height: var(--stamp);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.stamp svg { width: 16px; height: 16px; }
.stamp.empty  { box-shadow: inset 0 0 0 1.5px var(--border); }
.stamp.earned { background: var(--ink); color: var(--on-ink); }
.stamp.last   { box-shadow: inset 0 0 0 1.5px var(--champan-edge); color: var(--champan-text); }
.stamp.last svg { width: 14px; height: 14px; }
.stamp.mimo   { background: var(--champan); color: var(--champan-ink); box-shadow: inset 0 0 0 1px var(--champan-edge); }

.heart-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 64;
  stroke-linejoin: round;
}

.card {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-4);
}
.card-head {
  display: grid;
  grid-template-columns: var(--avatar) 1fr auto;
  align-items: center;
  gap: var(--space-3);
}
.avatar {
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
}
.card-head .status { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.card-head .status.accent { color: var(--champan-text); }
.card.ready {
  background: linear-gradient(var(--champan-soft), var(--champan-soft)), var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--champan-edge);
}
.card.ready .avatar { background: var(--surface-2); }
.card .btn { width: 100%; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { margin-top: var(--space-4); }

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.screen {
  background: var(--surface-1);
  border-radius: 36px;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  max-width: 400px;
  width: 100%;
  justify-self: end;
}
.screen-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 32px;
  padding: var(--space-4) var(--space-2) var(--space-2);
}
.screen .card { background: var(--surface-2); }
.screen .card.ready {
  background: linear-gradient(var(--champan-soft), var(--champan-soft)), var(--surface-2);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .screen { justify-self: stretch; max-width: 440px; margin-inline: auto; }
}

/* Animación: mimo listo. Los sellos pasan a champán uno tras otro, 40 ms entre cada uno. */
@media (prefers-reduced-motion: no-preference) {
  .animate .stamp.mimo {
    animation: to-mimo .32s ease-out both;
    animation-delay: calc(600ms + var(--i, 0) * 40ms);
  }
  @keyframes to-mimo {
    from { background: var(--ink); color: var(--on-ink); box-shadow: none; }
  }
}

/* Cómo funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.step .visual { min-height: 44px; display: flex; align-items: center; margin-block: var(--space-2); }
.step p { color: var(--ink-muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

.qr {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  place-items: center;
}
.qr svg { width: 26px; height: 26px; }

/* Dos apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.app {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.app img {
  width: 72px; height: 72px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border);
}
.app h3 { font-family: var(--font-display); font-size: 28px; line-height: 32px; margin: var(--space-2) 0 0; }
.app p { color: var(--ink-muted); }
.app ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.app li { display: flex; gap: var(--space-3); align-items: flex-start; }
.app li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink-faint); }
@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; }
}

/* Bloque de privacidad en la portada */
.privacy-band {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.privacy-band .title { margin-bottom: var(--space-4); }
.privacy-band .lede { margin-bottom: var(--space-6); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.facts li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.facts li:last-child { border-bottom: 0; }
.facts svg { width: 20px; height: 20px; margin-top: 2px; color: var(--ink-muted); }
.facts strong { font-weight: 600; display: block; }
.facts span { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
@media (max-width: 860px) {
  .privacy-band { grid-template-columns: 1fr; }
}

/* Cierre */
.closing { text-align: center; display: grid; justify-items: center; gap: var(--space-6); }
.closing .heart { width: 72px; height: 72px; }

/* ---------- Pie ---------- */

.foot { padding-block: var(--space-8) 48px; border-top: 1px solid var(--border); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}
.foot .brand { font-size: 18px; }
.foot .brand svg { width: 22px; height: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.foot nav a { font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .caption { width: 100%; }

/* ---------- Aviso de privacidad ---------- */

.legal-hero { padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px); }
.legal-hero .hero-type { font-size: clamp(40px, 6vw, 64px); }
.legal-hero .lede { margin-top: var(--space-6); }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: clamp(64px, 10vw, 120px);
}

.toc { position: sticky; top: 88px; }
.toc details { background: none; }
.toc summary {
  list-style: none;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-3);
  cursor: default;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink-muted);
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 10px;
  transition: color .15s, background-color .15s;
}
.toc a:hover { color: var(--ink); background: var(--surface-1); }
.toc a.active { color: var(--ink); background: var(--surface-1); font-weight: 500; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc details {
    background: var(--surface-1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
  }
  .toc summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    cursor: pointer;
  }
  .toc summary::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s;
  }
  .toc details[open] summary::after { transform: rotate(-135deg) translateX(-2px); }
  .toc details[open] summary { margin-bottom: var(--space-3); }
}

.doc { max-width: 700px; }
.doc section { padding-top: clamp(40px, 5vw, 56px); }
.doc section:first-child { padding-top: 0; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.doc h3 { font-size: 17px; line-height: 22px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.doc p, .doc li { color: var(--ink-muted); text-wrap: pretty; }
.doc p + p { margin-top: var(--space-4); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ol, .doc ul { margin: var(--space-3) 0 var(--space-4); padding-left: 1.4em; display: grid; gap: var(--space-2); }
.doc li::marker { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.doc a { text-underline-offset: 3px; text-decoration-color: var(--border); }
.doc a:hover { text-decoration-color: currentColor; }
.doc kbd {
  font: 500 15px/20px var(--font-text);
  color: var(--ink);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.summary {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.summary h2 { font-size: 22px; line-height: 28px; margin-bottom: var(--space-2); }
.summary > p { font-size: 15px; line-height: 22px; }
.summary .facts { margin-top: var(--space-2); }
.summary .facts li { padding: 14px 0; }

.who {
  list-style: none;
  padding: 0 !important;
  margin-top: var(--space-4) !important;
  gap: var(--space-3) !important;
}
.who li {
  background: var(--surface-1);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
}
.who li strong { display: block; margin-bottom: var(--space-1); }

/* Tablas */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  font-size: 15px;
  line-height: 22px;
}
.table th {
  text-align: left;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.table td {
  vertical-align: top;
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.table td:first-child { color: var(--ink); font-weight: 500; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .app-col { white-space: nowrap; }

@media (max-width: 640px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { margin-bottom: var(--space-1); }
  .table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-faint);
  }
  .table td:first-child::before { content: none; }
}

.note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-1);
  border-radius: var(--radius-md);
}
.updated { margin-top: clamp(48px, 6vw, 72px); font-style: italic; }

/* Datos por completar del responsable. Busca "pendiente" en el HTML. */
.pendiente {
  color: var(--ink);
  font-weight: 600;
  background: var(--surface-2);
  padding: 0 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Impresión del aviso */
@media print {
  .top, .toc, .foot, .skip { display: none !important; }
  .legal { grid-template-columns: 1fr; }
  body { background: #fff; color: #0E0E10; }
}

/* Las listas de datos dentro del aviso no llevan sangría ni viñetas */
.doc .facts { padding: 0; margin: var(--space-2) 0 0; gap: 0; }

.doc a[href^="mailto:"] { overflow-wrap: anywhere; }
