/* ==========================================================================
   Mercedes Maspero — base: reset + guía de estilos (clases generales)
   Desktop: px de Figma / 16 = rem (root fluido en tokens.css).
   ≤991: escala tipográfica propia (criterio propio — el Figma no tiene mobile).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mm-color-bg);
  color: var(--mm-color-ink);
  font-family: var(--mm-font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }

/* Cursor pixelado — instancia "Cursor (preview)" 2482:1900 del hero.
   Criterio propio: se usa como cursor del sitio en dispositivos con mouse. */
@media (pointer: fine) {
  body { cursor: url("../assets/icons/cursor.svg") 0 0, auto; }
}

.mm-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Tipografía (Arimo 400 salvo indicación) ---------- */
.mm-heading-xl {   /* hero 2467:310 — 68/72.1, ls -1.02px */
  font-size: 4.25rem; line-height: 1.06; letter-spacing: -0.015em;
}
.mm-text-quote {   /* approach 2467:330 — 64/76.8 */
  font-size: 4rem; line-height: 1.2;
}
.mm-heading-l {    /* research title 2467:355 — 56/61.6 */
  font-size: 3.5rem; line-height: 1.1;
}
.mm-heading-m {    /* "Ways I can help" 2467:333 — 48/57.6 */
  font-size: 3rem; line-height: 1.2;
}
.mm-heading-s {    /* "Bio" 2467:363 — 36/45 */
  font-size: 2.25rem; line-height: 1.25;
}
.mm-text-large {   /* "Featured in…" 2467:358 — 24/33.6 */
  font-size: 1.5rem; line-height: 1.4;
}
.mm-text-lead {    /* intro hero 2467:314 — 22/33, ls -0.11px */
  font-size: 1.375rem; line-height: 1.5; letter-spacing: -0.005em;
}
.mm-text-m {       /* subtítulos / body research — 20/30 */
  font-size: 1.25rem; line-height: 1.5;
}
.mm-text-bio {     /* bio 2467:366 — 18/27.9 */
  font-size: 1.125rem; line-height: 1.55;
}
.mm-text-s {       /* body servicios, © — 16/24 */
  font-size: 1rem; line-height: 1.5;
}
.mm-title-service { /* News Cycle 700 32/40 */
  font-family: var(--mm-font-display); font-weight: 700;
  font-size: 2rem; line-height: 1.25;
}

/* ---------- Pill link (componente "Link", variantes Color × State) ----------
   Default: tinte 20% · Hover: tinte 45% (SMART_ANIMATE 0.3s ease-out) */
.mm-pill {
  --mm-pill-rgb: 210, 255, 108;
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 2.5rem;
  background: rgba(var(--mm-pill-rgb), 0.2);
  font-size: 1.25rem; line-height: 1.15;
  white-space: nowrap;
  transition: background-color var(--mm-dur-mid) var(--mm-ease);
}
.mm-pill:hover, .mm-pill:focus-visible { background: rgba(var(--mm-pill-rgb), 0.45); }
.mm-pill.is-lime   { --mm-pill-rgb: 210, 255, 108; color: var(--mm-color-lime-ink); }
.mm-pill.is-pink   { --mm-pill-rgb: 255, 108, 240; color: var(--mm-color-pink-ink); }
.mm-pill.is-blue   { --mm-pill-rgb: 108, 115, 255; color: var(--mm-color-blue-ink); }
.mm-pill.is-orange { --mm-pill-rgb: 253, 135, 0;   color: var(--mm-color-orange-ink); }
/* footer: label 16/24 en tinta (overrides de las instancias 2467:382-385) */
.mm-pill.is-small  { font-size: 1rem; line-height: 1.5; color: var(--mm-color-ink); }

/* ---------- Link tinta (variante Color=Ink 2465:2 → hover 2465:5) ----------
   Default: subrayado, pad 4/6 · Hover: sin subrayado, pill 8%, pad 4/12, 0.25s */
.mm-link-ink {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.375rem;
  border-radius: 2.5rem;
  background: rgba(17, 18, 29, 0);
  font-size: 1.25rem; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: background-color var(--mm-dur-base) var(--mm-ease),
              padding var(--mm-dur-base) var(--mm-ease);
}
.mm-link-ink:hover, .mm-link-ink:focus-visible {
  background: rgba(17, 18, 29, 0.08);
  padding: 0.25rem 0.75rem;
  text-decoration-color: transparent;
}

/* ---------- Arrow link (2407:1468 → 2407:1471: gap 10 → 18, 0.3s) ---------- */
.mm-arrow-link {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.25rem 0;
  font-size: 1.25rem; line-height: 1.15;
  transition: gap var(--mm-dur-mid) var(--mm-ease);
}
.mm-arrow-link:hover, .mm-arrow-link:focus-visible { gap: 1.125rem; }

/* ---------- Botón (2407:1476 → 2407:1479: ink → violeta, 0.25s) ---------- */
.mm-button {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.125rem 1.75rem;
  border-radius: 0.125rem;
  background: var(--mm-color-ink);
  color: var(--mm-color-cream);
  font-size: 1.125rem; line-height: 1.15;
  transition: background-color var(--mm-dur-base) var(--mm-ease);
}
.mm-button[hidden] { display: none; } /* el atributo hidden pierde contra display: inline-flex */
.mm-button:hover, .mm-button:focus-visible { background: var(--mm-color-violet); }

/* ---------- Isologo MM (símbolo inline, color por currentColor) ---------- */
.mm-iso { display: block; aspect-ratio: 51 / 20; height: auto; fill: currentColor; }

/* ======================= ≤991: escala propia ======================= */
@media (max-width: 991px) {
  .mm-heading-xl  { font-size: 2.75rem; line-height: 1.08; }
  .mm-text-quote  { font-size: 2.25rem; line-height: 1.2; }
  .mm-heading-l   { font-size: 2.5rem; line-height: 1.1; }
  .mm-heading-m   { font-size: 2.25rem; line-height: 1.2; }
  .mm-heading-s   { font-size: 1.875rem; line-height: 1.25; }
  .mm-text-large  { font-size: 1.25rem; line-height: 1.4; }
  .mm-text-lead   { font-size: 1.1875rem; }
  .mm-text-m      { font-size: 1.125rem; }
  .mm-text-bio    { font-size: 1.0625rem; }
  .mm-text-s      { font-size: 0.9375rem; }
  .mm-title-service { font-size: 1.625rem; }
  .mm-pill, .mm-link-ink, .mm-arrow-link { font-size: 1.0625rem; }
  .mm-pill.is-small { font-size: 0.9375rem; }
  .mm-button { font-size: 1rem; padding: 1rem 1.5rem; }
}
@media (max-width: 767px) {
  .mm-heading-xl  { font-size: 2.125rem; }
  .mm-text-quote  { font-size: 1.75rem; }
  .mm-heading-l   { font-size: 2rem; }
  .mm-heading-m   { font-size: 1.875rem; }
  .mm-heading-s   { font-size: 1.625rem; }
  .mm-text-large  { font-size: 1.125rem; }
  .mm-text-lead   { font-size: 1.0625rem; }
  .mm-text-m      { font-size: 1.0625rem; }
  .mm-title-service { font-size: 1.4375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Cartel "Powered by Netlify": iframe que inyecta Netlify (/.netlify/scripts/hud) en cuentas Free.
   La cuenta de Mercedes no puede apagarlo por configuración (can_remove_netlify_badge: false).
   Ocultado por pedido de Aaron, 2026-11-11. */
#nl-badge-frame,
iframe[title="Powered by Netlify"],
#nl-badge,
.nl-badge {
  display: none !important;
  opacity: 0 !important;
}
