/* mesh — "Quiero ir / tomarlo / aplicar" intent toggle. The Calendar feature's
   own MAGENTA accent (#e5477f) so it reads as the mesh action, distinct from the
   purple official/application link on the same page. Two variants:
     .is-prominent → filled magenta pill with label (single-page CTA).
     .is-compact   → min-width icon+label, matches the Save/Rec/Share row.
   Active (is-quiero) CALMS to a tinted "done" chip so it never keeps shouting
   next to the purple CTA. Hardened with !important against Elementor bleed. */

.mesh-quiero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.mesh-quiero .mesh-quiero-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  border: 2px solid #111 !important;
  background: #e5477f !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  border-radius: 999px !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.mesh-quiero .mesh-quiero-btn:active { transform: scale(.96); }
.mesh-quiero .mesh-quiero-btn .ti { font-size: 18px; line-height: 1; }

/* ── Prominent (single-page CTA) ──────────────────────────────── */
.mesh-quiero.is-prominent .mesh-quiero-btn {
  height: 44px !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, .18) !important;
}
.mesh-quiero.is-prominent .mesh-quiero-btn:hover { background: #cf3a6d !important; }
/* Active → soft tinted "En tu calendario" chip (calms next to the purple CTA). */
.mesh-quiero.is-prominent.is-quiero .mesh-quiero-btn {
  background: #fbeaf0 !important; color: #993556 !important; border-color: #e5477f !important;
  box-shadow: none !important;
}
.mesh-quiero.is-prominent.is-quiero .mesh-quiero-btn:hover { background: #f6dbe6 !important; }

/* ── Compact (cards / search / feed) — mirrors .mesh-inline-btn box model ── */
.mesh-quiero.is-compact .mesh-quiero-btn {
  min-width: 46px !important;
  height: 46px !important;
  padding: 0 16px !important;
  gap: 7px;
  border: 1px solid rgba(0, 0, 0, .16) !important;
  background: #fff !important;
  color: #1a1a1a !important;
}
.mesh-quiero.is-compact .mesh-quiero-btn .ti { font-size: 22px !important; }
.mesh-quiero.is-compact .mesh-quiero-btn:hover { border-color: #e5477f !important; color: #c93368 !important; background: #fff !important; }
/* Active → filled magenta (mirrors the Save/Follow "is-on" look). */
.mesh-quiero.is-compact.is-quiero .mesh-quiero-btn { background: #e5477f !important; border-color: #e5477f !important; color: #fff !important; }
.mesh-quiero.is-compact.is-quiero .mesh-quiero-btn:hover { background: #cf3a6d !important; border-color: #cf3a6d !important; color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
  .mesh-quiero .mesh-quiero-btn { transition: none; }
}

/* ── Logged-out "create account" modal (persistent-intent prompt) ──────────── */
.mesh-quiero-signup {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(17, 17, 17, .6);
}
.mesh-quiero-signup.is-open { display: flex; }
.mesh-quiero-signup .mqs-card {
  position: relative; width: 100%; max-width: 400px;
  background: #fff !important; border: 2px solid #111; border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, .18); padding: 30px 26px 24px; text-align: center;
  font-family: "Space Grotesk", system-ui, sans-serif; color: #111;
}
.mesh-quiero-signup .mqs-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; background: transparent; color: #999; cursor: pointer; border-radius: 999px;
}
.mesh-quiero-signup .mqs-x:hover { background: rgba(0, 0, 0, .06); color: #333; }
.mesh-quiero-signup .mqs-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  background: #fbeaf0; color: #e5477f; display: flex; align-items: center; justify-content: center;
}
.mesh-quiero-signup .mqs-ic .ti { font-size: 26px; }
.mesh-quiero-signup .mqs-h {
  font-family: "Barlow Condensed", system-ui, sans-serif; font-weight: 800;
  font-size: 26px; line-height: 1.05; margin: 0 0 8px; text-transform: uppercase; color: #111;
}
.mesh-quiero-signup .mqs-sub { font-size: 14px; color: #555; margin: 0 0 20px; line-height: 1.4; }
.mesh-quiero-signup .mqs-cta {
  display: block; width: 100%; padding: 14px; box-sizing: border-box;
  background: #e5477f !important; color: #fff !important; border: 2px solid #111 !important;
  border-radius: 999px !important; font-weight: 700; text-decoration: none;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, .18) !important;
}
.mesh-quiero-signup .mqs-cta:hover { background: #cf3a6d !important; }
.mesh-quiero-signup .mqs-sec { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.mesh-quiero-signup .mqs-login { color: #c93368; font-weight: 600; font-size: 13px; text-decoration: none; }
.mesh-quiero-signup .mqs-login:hover { text-decoration: underline; }
.mesh-quiero-signup .mqs-dismiss { border: 0; background: transparent; color: #999; font-size: 13px; cursor: pointer; }
.mesh-quiero-signup .mqs-dismiss:hover { color: #555; }
