/* MXWhatsapp Theme — style.css
   Compiled CSS — no CDN dependency, no Tailwind Play CDN.
   Tokens defined once, used everywhere. WCAG AA compliant. */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --c-bg:          #f6fff9;
  --c-surface:     #ffffff;
  --c-raised:      #f8fafc;
  --c-border:      #e2e8f0;
  --c-border-em:   #a7f3d0;
  --c-text:        #0f172a;
  --c-muted:       #475569;
  --c-faint:       #94a3b8;
  --c-accent:      #16a34a;
  --c-accent-light:#dcfce7;
  --c-accent-bg:   #f0fdf4;
  --c-accent-dark: #052e16;
  --c-wa:          #25d366;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-full: 9999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;

  color-scheme: light;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-raised) 40%, var(--c-raised) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────── */
.mx-page {
  margin: 0 auto;
  max-width: 448px;
  min-height: 100vh;
  background: var(--c-surface);
  box-shadow: 0 0 0 1px rgba(15,23,42,.04);
}
.mx-hero-wrap {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
}

/* ── Header ──────────────────────────────────────────── */
#mxh { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
#mxh .inner { max-width: 448px; margin: 0 auto; padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; justify-content: space-between; }
#mxh .brand { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--c-text); text-decoration: none; }
#mxh #menu ul { list-style: none; display: flex; gap: var(--sp-4); }
#mxh #menu a { font-size: 13px; font-weight: 500; color: var(--c-muted); text-decoration: none; }
#mxh #menu a:hover { color: var(--c-accent); }

/* ── Badge ───────────────────────────────────────────── */
.mx-badge-row { display: flex; justify-content: center; margin-bottom: var(--sp-3); }
.mx-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--c-accent-bg); border: 1px solid var(--c-border-em);
  border-radius: var(--r-full); padding: 6px var(--sp-3);
  font-size: 11px; font-weight: 600; color: var(--c-accent);
  backdrop-filter: blur(8px);
}
.mx-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; }

/* ── Hero ────────────────────────────────────────────── */
.mx-hero { text-align: center; margin-bottom: var(--sp-5); }
.mx-brand-tag {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.8); border: 1px solid var(--c-border);
  border-radius: var(--r-full); padding: 4px 10px;
  font-size: 10px; font-weight: 500; color: var(--c-muted);
  margin-bottom: var(--sp-2);
}
.mx-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-text); color: #fff; font-size: 9px; font-weight: 700; flex-shrink: 0;
}
.mx-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 2.2rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.04em; color: var(--c-text);
  margin-bottom: var(--sp-3);
}
.mx-subtitle { font-size: 14px; line-height: 1.7; color: var(--c-muted); max-width: 300px; margin: 0 auto var(--sp-3); }
.mx-social-proof {
  display: inline-block; background: var(--c-raised); border-radius: var(--r-full);
  padding: 4px var(--sp-3); font-size: 11px; font-weight: 500; color: var(--c-muted);
}

/* ── CTA button ──────────────────────────────────────── */
.mx-cta-wrap { margin-bottom: var(--sp-5); }
.mx-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; font-size: 16px; font-weight: 800;
  border: none; border-radius: var(--r-lg); cursor: pointer;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(34,197,94,.3);
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 56px;
}
.mx-cta-btn:hover { text-decoration: none; box-shadow: 0 22px 50px rgba(34,197,94,.4); color: #fff; }
.mx-cta-btn:active { transform: scale(.98); }
.mx-cta-btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.mx-cta-note { text-align: center; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-top: var(--sp-2); }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 18px 45px rgba(34,197,94,.28); }
  50%       { box-shadow: 0 20px 52px rgba(34,197,94,.52); }
}
@keyframes breatheRing {
  0%        { opacity: .8; transform: scale(1); }
  70%, 100% { opacity: 0;  transform: scale(1.12); }
}
.pulse-glow {
  position: relative;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.pulse-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--r-lg) + 3px);
  border: 2px solid rgba(34,197,94,.65);
  animation: breatheRing 2.4s ease-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-glow, .pulse-glow::before { animation: none; }
}

/* ── Benefits card ───────────────────────────────────── */
.mx-benefits {
  border: 1px solid var(--c-border-em);
  background: linear-gradient(135deg, var(--c-accent-bg), var(--c-surface));
  border-radius: var(--r-lg); padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  box-shadow: 0 12px 32px rgba(16,185,129,.08);
}
.mx-section-label { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-3); }
.mx-benefit-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.mx-benefit-list li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 14px; color: #334155; line-height: 1.55; }
.mx-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; margin-top: 5px; }

/* ── Feature cards ───────────────────────────────────── */
.mx-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.mx-feature-card {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  border: 1px solid var(--c-border); background: var(--c-raised);
  border-radius: var(--r-md); padding: var(--sp-3);
}
.mx-feature-num {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-light); border-radius: var(--sp-2);
  font-size: 13px; font-weight: 700; color: var(--c-accent);
}
.mx-feature-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.mx-feature-desc  { font-size: 12px; line-height: 1.55; color: var(--c-muted); }

/* ── Article / page body ─────────────────────────────── */
.mx-article-wrap { padding: var(--sp-6) var(--sp-4) var(--sp-5); }
.mx-category-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-2); }
.mx-article-title { font-family: var(--font-display); font-size: clamp(1.3rem, 6vw, 1.75rem); font-weight: 800; line-height: 1.2; margin-bottom: var(--sp-3); }
.mx-article-meta  { font-size: 11px; color: var(--c-faint); margin-bottom: var(--sp-5); }
.post-body { font-size: 15px; line-height: 1.75; color: #334155; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--font-display); font-weight: 700; margin: var(--sp-5) 0 var(--sp-3); color: var(--c-text); }
.post-body p  { margin-bottom: var(--sp-4); }
.post-body ul, .post-body ol { margin: 0 0 var(--sp-4) var(--sp-5); }
.post-body blockquote { border-left: 3px solid var(--c-accent); padding-left: var(--sp-4); color: var(--c-muted); margin: var(--sp-4) 0; }
.post-body a { color: var(--c-accent); }
.post-body img { border-radius: var(--r-sm); margin: var(--sp-4) 0; }
.mx-cta-inline {
  background: var(--c-accent-bg); border: 1px solid var(--c-border-em);
  border-radius: var(--r-lg); padding: var(--sp-4); margin-top: var(--sp-6);
}
.mx-cta-inline .mx-disclaimer-sm { font-size: 11px; line-height: 1.6; color: var(--c-muted); margin-bottom: var(--sp-3); }
.mx-cta-inline .mx-cta-btn { margin: 0; }

/* ── Footer ──────────────────────────────────────────── */
.mx-footer { border-top: 1px solid var(--c-border); padding: var(--sp-5) var(--sp-4); text-align: center; }
.mx-disclaimer { font-size: 11px; line-height: 1.7; color: var(--c-muted); margin-bottom: var(--sp-4); }
.mx-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px var(--sp-3); margin-bottom: var(--sp-3); }
.mx-legal a { font-size: 11px; font-weight: 500; color: var(--c-muted); text-decoration: none; }
.mx-legal a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.mx-legal a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
.mx-copy { font-size: 11px; color: var(--c-faint); margin-bottom: 4px; }
.mx-copy a { color: var(--c-faint); }
.mx-address { font-size: 10px; color: var(--c-faint); }
.mx-footer .powered { font-size: 10px; color: var(--c-faint); margin-top: 4px; }
.mx-footer .powered a { color: var(--c-faint); }

/* ── Hero image ──────────────────────────────────────── */
.mx-hero-img-wrap {
  margin: 0 calc(-1 * var(--sp-4)) var(--sp-5);
  overflow: hidden;
  border-radius: var(--r-lg);
}
.mx-hero-img {
  width: 100%; height: auto;
  border-radius: var(--r-lg);
  display: block;
  object-fit: cover;
}
.mx-hero-svg-wrap {
  width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  margin-bottom: var(--sp-5);
}
.mx-hero-svg { width: 100%; height: auto; display: block; }

.mx-cta-btn--uncfg {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 8px 20px rgba(100,116,139,.25);
  cursor: default;
  pointer-events: none;
}
.mx-cta-btn--uncfg::after {
  content: ' (配置 WhatsApp 号码后生效)';
  font-size: 11px; font-weight: 400; opacity: .8;
}
.mx-feature-img {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Para quién es / no es ────────────────────────────── */
.mx-for-who {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.mx-for-who-col {
  border-radius: var(--r-md); padding: var(--sp-4);
  border: 1px solid var(--c-border);
}
.mx-for-yes { background: var(--c-accent-bg); border-color: var(--c-border-em); }
.mx-for-no  { background: #fff7ed; border-color: #fed7aa; }
.mx-section-label--no { color: #ea580c; }
.mx-for-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.mx-for-list li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 13px; color: #334155; line-height: 1.5; }
.mx-for-icon {
  flex-shrink: 0; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff; font-size: 10px; font-weight: 700;
}
.mx-for-icon--no { background: #ea580c; }

/* ── FAQ ─────────────────────────────────────────────── */
.mx-faq {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  background: var(--c-raised);
}
.mx-faq-list { display: flex; flex-direction: column; gap: 0; }
.mx-faq-item { border-bottom: 1px solid var(--c-border); padding: var(--sp-3) 0; }
.mx-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.mx-faq-q {
  font-size: 14px; font-weight: 600; color: var(--c-text);
  margin-bottom: var(--sp-2); line-height: 1.4;
}
.mx-faq-a { font-size: 13px; line-height: 1.65; color: var(--c-muted); }

/* ── Second CTA block ────────────────────────────────── */
.mx-cta-wrap--bottom { margin-top: var(--sp-2); }
.mx-search-results { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-5); }
.mx-search-item { border-bottom: 1px solid #f1f5f9; padding-bottom: var(--sp-4); }
.mx-search-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mx-search-title a { color: var(--c-text); text-decoration: none; }
.mx-search-title a:hover { color: var(--c-accent); }
.mx-search-meta { font-size: 12px; color: var(--c-faint); margin-bottom: var(--sp-2); }
.mx-search-intro { font-size: 14px; line-height: 1.6; color: var(--c-muted); }

/* ── Pagination ─────────────────────────────────────── */
.mx-pagebar { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); flex-wrap: wrap; }
.mx-page-btn {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-border); background: var(--c-surface);
  border-radius: var(--r-sm); padding: 6px var(--sp-3);
  font-size: 14px; color: var(--c-muted); text-decoration: none;
}
.mx-page-btn:hover { border-color: var(--c-accent); color: var(--c-accent); text-decoration: none; }
.mx-page-current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 700; }
.mx-page-current:hover { color: #fff; }

/* ── Lead form ───────────────────────────────────────── */
.mx-lead-form-wrap {
  border: 1px solid var(--c-border-em);
  background: linear-gradient(135deg, var(--c-accent-bg) 0%, var(--c-surface) 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  margin-bottom: var(--sp-5);
  box-shadow: 0 8px 24px rgba(16,185,129,.08);
}
.mx-form-subtitle { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-bottom: var(--sp-4); }
.mx-lead-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.mx-field-group { display: flex; flex-direction: column; gap: 5px; }
.mx-field-label { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1; }
.mx-required { color: #dc2626; margin-left: 2px; }
.mx-optional { font-size: 11px; font-weight: 400; color: var(--c-faint); margin-left: 4px; }
.mx-field-input {
  width: 100%; padding: 11px var(--sp-3);
  border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  font-size: 15px; font-family: var(--font-body);
  color: var(--c-text); background: var(--c-surface);
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.mx-field-input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.mx-field-textarea { resize: vertical; min-height: 72px; }
.mx-field-error { font-size: 12px; color: #dc2626; font-weight: 500; min-height: 16px; line-height: 1.4; }
.mx-form-submit {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%; padding: var(--sp-3) var(--sp-4);
  background: var(--c-accent); color: #fff;
  font-size: 15px; font-weight: 700; font-family: var(--font-body);
  border: none; border-radius: var(--r-md); cursor: pointer; min-height: 48px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(22,163,74,.25);
}
.mx-form-submit:hover:not(:disabled) { background: #15803d; box-shadow: 0 6px 18px rgba(22,163,74,.35); }
.mx-form-submit:active:not(:disabled) { transform: scale(.98); }
.mx-form-submit:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.mx-form-submit:disabled { opacity: .65; cursor: not-allowed; }
.mx-form-success {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--c-accent-bg); border: 1px solid var(--c-border-em);
  border-radius: var(--r-md); padding: var(--sp-4);
  font-size: 14px; font-weight: 600; color: var(--c-accent);
}
.mx-form-privacy { font-size: 11px; color: var(--c-faint); text-align: center; line-height: 1.5; }
.mx-form-divider {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-4) 0; color: var(--c-faint); font-size: 12px;
}
.mx-form-divider::before, .mx-form-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.mx-wa-direct {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%; padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--c-wa); border-radius: var(--r-md);
  color: var(--c-wa); font-size: 14px; font-weight: 700;
  text-decoration: none; min-height: 48px;
  transition: background .15s, color .15s;
}
.mx-wa-direct:hover { background: var(--c-wa); color: #fff; text-decoration: none; }
.mx-wa-direct:focus-visible { outline: 3px solid var(--c-wa); outline-offset: 3px; }
