/* pymetrics — Estilos compartidos para todas las páginas */

:root {
  --midnight-900: #0f1620;
  --midnight-800: #1a2332;
  --midnight-700: #243042;
  --midnight-600: #334155;
  --gray-50:  #f5f5f7;
  --gray-100: #e8e8ea;
  --gray-200: #d1d1d6;
  --gray-300: #a8a8ad;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-600: #424245;
  --gray-700: #1d1d1f;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--midnight-900);
  color: #fff;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

/* ─── Logo Stack institucional ─── */
.ms-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-left: 1px solid currentColor;
  padding-left: 18px;
  line-height: 1;
}
.ms-stack[data-mono="true"] .ms-stack__est,
.ms-stack[data-mono="true"] .ms-stack__cat { opacity: 0.55; }
.ms-stack__est {
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ms-stack__name {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.ms-stack__amp { font-weight: 200; opacity: 0.6; }
.ms-stack__cat {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* Versión compacta inline (nav) */
.ms-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.ms-inline__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; letter-spacing: -0.04em;
}
.ms-inline__amp { font-weight: 200; opacity: 0.55; margin: 0 0.18em; }

.ms-inline.light .ms-inline__mark {
  background: rgba(26,35,50,0.06);
  border: 1px solid rgba(26,35,50,0.14);
  color: var(--midnight-800);
}

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  cursor: pointer;
}
.btn-primary { background: #fff; color: var(--midnight-800); }
.btn-primary:hover { background: var(--gray-100); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.btn-dark { background: var(--midnight-800); color: #fff; }
.btn-dark:hover { background: var(--midnight-700); }
.btn-light-ghost { background: transparent; color: var(--midnight-800); border-color: rgba(26,35,50,0.18); }
.btn-light-ghost:hover { background: rgba(26,35,50,0.04); }

/* ─── Caption uppercase ─── */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.55;
}

/* ─── Container ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

/* ─── Site nav ─── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav__links {
  display: flex; gap: 32px;
  font-size: 13.5px;
}
.site-nav__links a { opacity: 0.65; transition: opacity 0.15s; }
.site-nav__links a:hover { opacity: 1; }

/* ─── Footer ─── */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer h5 {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: #fff; margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { transition: color 0.15s; }
.site-footer ul a:hover { color: #fff; }
.site-footer__bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11.5px; color: rgba(255,255,255,0.4);
}

/* ─── Cards genéricas ─── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.18s ease;
}
.card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* light surface card */
.card-light {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.18s ease;
}
.card-light:hover {
  border-color: var(--gray-200);
  box-shadow: 0 12px 32px -16px rgba(15,22,32,0.18);
}

/* placeholder image */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, rgba(255,255,255,0.07) 8px 16px),
    var(--midnight-700);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex; align-items: flex-end; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
}
.ph-light {
  background:
    repeating-linear-gradient(135deg, rgba(26,35,50,0.04) 0 8px, rgba(26,35,50,0.07) 8px 16px),
    var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  display: flex; align-items: flex-end; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--gray-500); letter-spacing: 0.04em;
}
