/*
 * Site-wide "Profesionales" modal. Tokens from Figma.
 * Layout: split (photo left, cream copy right), full content centred.
 * Mobile: photo on top, copy stacked below — same pattern as the
 * suscripción popup.
 */
:root {
  --weilo-mp-bg:        #EFE8DC;     /* brand/cream-dark */
  --weilo-mp-text:      #14120F;
  --weilo-mp-radius:    32px;
}

.weilo-mp, .weilo-mp * { box-sizing: border-box; }

.weilo-mp {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 220ms ease;
}
.weilo-mp.is-hidden { display: none; }
.weilo-mp.is-leaving { opacity: 0; pointer-events: none; }

.weilo-mp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.62);
  cursor: pointer;
}

.weilo-mp__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1232px, 100%);
  min-height: min(768px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  background: var(--weilo-mp-bg);
  border-radius: var(--weilo-mp-radius);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

/* Close button — bumped specificity (button.X) and !important on
   sizing because Astra ships global `button { ... }` rules that win
   over plain class selectors. */
button.weilo-mp__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px !important;
  height: 36px !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  background: rgba(20, 18, 15, 0.08) !important;
  color: var(--weilo-mp-text) !important;
  border-radius: 50% !important;
  cursor: pointer;
  z-index: 2;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: background 150ms ease;
}
button.weilo-mp__close:hover { background: rgba(20, 18, 15, 0.18) !important; }
button.weilo-mp__close span  { display: block; line-height: 1; }

/* ---------- Photo (left) ---------- */
.weilo-mp__photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.weilo-mp__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Copy + form (right) ---------- */
.weilo-mp__copy {
  padding: 56px 56px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: var(--weilo-mp-text);
}

.weilo-mp__eyebrow {
  margin: 0 0 24px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.weilo-mp__email,
.weilo-mp__phone {
  margin: 0;
  font-family: "PP Nikkei Journal", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-align: center;
}
.weilo-mp__email {
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1;
}
.weilo-mp__phone {
  margin-top: 4px;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 0.8;
}
.weilo-mp__email a,
.weilo-mp__phone a {
  color: inherit;
  text-decoration: none;
}
.weilo-mp__email a:hover,
.weilo-mp__phone a:hover { text-decoration: underline; text-underline-offset: 2px; }

.weilo-mp__lead {
  margin: 32px auto 0;
  max-width: 480px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.weilo-mp__cta-text {
  margin: 18px auto 0;
  max-width: 420px;
  font-family: "Google Sans Flex", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) and (min-width: 769px) {
  .weilo-mp__copy { padding: 48px 36px; }
}

/* ---------- Mobile — photo on top, copy below ---------- */
@media (max-width: 768px) {
  .weilo-mp { padding: 12px; }
  .weilo-mp__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto;
    min-height: 0;
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
  }
  .weilo-mp__copy { padding: 32px 20px 28px; }
  .weilo-mp__email { font-size: clamp(20px, 6.4vw, 32px); }
  .weilo-mp__phone { font-size: clamp(36px, 11vw, 56px); margin-top: 6px; }
  .weilo-mp__lead, .weilo-mp__cta-text { font-size: 13px; }
  .weilo-mp__lead { margin-top: 24px; }
}
