/* ============================================
   mesafija.app — Design System v1
   Light theme: blanco + verde pastel
   ============================================ */

:root {
  /* --- Colores --- */
  --mf-white: #FFFFFF;        /* fondo base */
  --mf-mist: #F6FBF7;         /* fondo de sección alternada */
  --mf-green-50: #E7F4EA;     /* verde pastel: chips, fondos suaves, bordes de tarjeta */
  --mf-green-100: #CDE8D4;    /* bordes de botón secundario, hover suave */
  --mf-green-500: #3FA96F;    /* acento: dot de marca, borde destacado, progreso */
  --mf-green-600: #1F7A4D;    /* texto de acento, hover de links */
  --mf-green-900: #17402C;    /* texto principal, botón primario, fondos oscuros */
  --mf-ink-soft: #4A6657;     /* texto secundario */
  --mf-mp-blue: #00AEEF;      /* solo para el badge de Mercado Pago */

  /* --- Tipografía --- */
  --mf-font-display: 'Bricolage Grotesque', sans-serif; /* títulos, cifras, logo */
  --mf-font-body: 'Onest', sans-serif;                  /* todo lo demás */

  /* --- Radios --- */
  --mf-radius-card: 24px;
  --mf-radius-card-lg: 32px;
  --mf-radius-pill: 100px;
  --mf-radius-icon: 14px;
}

/* --- Base --- */
html, body { margin: 0; padding: 0; background: var(--mf-white); }
body {
  font-family: var(--mf-font-body);
  color: var(--mf-green-900);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mf-green-900); }
a:hover { color: var(--mf-green-600); }
::selection { background: var(--mf-green-100); }

/* --- Layout --- */
.mf-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}
.mf-container--narrow { max-width: 680px; padding-left: 24px; padding-right: 24px; }
.mf-section { padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.mf-band { background: var(--mf-mist); border-top: 1px solid var(--mf-green-50); border-bottom: 1px solid var(--mf-green-50); }

/* --- Marca --- */
.mf-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mf-logo__mark { height: 28px; width: auto; display: block; }
.mf-logo__word { font-family: var(--mf-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.5px; color: var(--mf-green-900); }
.mf-logo--sm .mf-logo__mark { height: 18px; }
.mf-logo--sm .mf-logo__word { font-size: 18px; }

/* --- Tipografía --- */
.mf-h1 { font-family: var(--mf-font-display); font-weight: 800; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -2px; margin: 0; }
.mf-h2 { font-family: var(--mf-font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; margin: 0; }
.mf-h3 { font-family: var(--mf-font-display); font-weight: 700; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -0.5px; margin: 0; }
.mf-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--mf-ink-soft); text-wrap: pretty; }
.mf-body { font-size: 15px; line-height: 1.5; color: var(--mf-ink-soft); }
.mf-price { font-family: var(--mf-font-display); font-weight: 800; letter-spacing: -1px; }

/* --- Botones --- */
.mf-btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mf-font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--mf-radius-pill);
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}
.mf-btn--primary { background: var(--mf-green-900); color: var(--mf-white); }
.mf-btn--primary:hover { background: var(--mf-green-600); color: var(--mf-white); }
.mf-btn--secondary { background: var(--mf-white); color: var(--mf-green-900); border: 1.5px solid var(--mf-green-100); padding: 15px 32px; }
.mf-btn--secondary:hover { background: var(--mf-green-50); color: var(--mf-green-900); }
.mf-btn--accent { background: var(--mf-green-500); color: var(--mf-white); }
.mf-btn--accent:hover { background: #4DBF80; color: var(--mf-white); }
.mf-btn--soft { background: var(--mf-green-50); color: var(--mf-green-900); font-size: 15px; padding: 10px 20px; }
.mf-btn--soft:hover { background: var(--mf-green-100); color: var(--mf-green-900); }
.mf-btn--sm { font-size: 15px; padding: 12px 22px; }

/* --- Chips / badges --- */
.mf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mf-green-50);
  color: var(--mf-green-600);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--mf-radius-pill);
}
.mf-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mf-green-500); display: inline-block; }
.mf-tag {
  display: inline-block;
  background: var(--mf-green-900);
  color: var(--mf-white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--mf-radius-pill);
  white-space: nowrap;
}

/* --- Tarjetas --- */
.mf-card { background: var(--mf-white); border: 1px solid var(--mf-green-50); border-radius: var(--mf-radius-card); padding: 32px 28px; }
.mf-card--outline { border: 1.5px solid var(--mf-green-50); }
.mf-card--featured { border: 1.5px solid var(--mf-green-500); background: var(--mf-mist); position: relative; }
.mf-card--soft { background: var(--mf-green-50); border: none; }
.mf-card--mist { background: var(--mf-mist); border: 1px solid var(--mf-green-50); }
.mf-card--dark { background: var(--mf-green-900); border: none; border-radius: var(--mf-radius-card-lg); color: var(--mf-white); }

/* --- Paso numerado --- */
.mf-step-num {
  width: 44px; height: 44px;
  border-radius: var(--mf-radius-icon);
  background: var(--mf-green-50);
  color: var(--mf-green-600);
  font-family: var(--mf-font-display);
  font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* --- Lista con checks / bullets --- */
.mf-check-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.mf-check-list > div { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--mf-ink-soft); }
.mf-check-list .mf-check { color: var(--mf-green-500); font-weight: 700; }

/* --- Barra de progreso de cupones --- */
.mf-coupons { display: flex; gap: 8px; }
.mf-coupons > span { flex: 1; height: 8px; border-radius: 4px; background: var(--mf-green-100); }
.mf-coupons > span.is-used { background: var(--mf-green-500); }

/* --- Badge Mercado Pago --- */
.mf-mp-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--mf-radius-pill);
  background: var(--mf-mp-blue);
}
.mf-mp-badge img { height: 16px; width: auto; display: block; }
