/**
 * Mecamin Thanks — editorial design system
 *
 * Scope:
 *   - body.has-mecamin-thanks  (set by the plugin via body_class filter)
 *   - .gr-stage and descendants (rendered by templates/mecamin-thanks.php)
 */

/* === MECAMIN · Gracias — Andean Editorial === */

body.has-mecamin-thanks .title_outer { display: none !important; height: 0 !important; }
body.has-mecamin-thanks .content { margin-top: 0 !important; }
body.has-mecamin-thanks .content .full_width,
body.has-mecamin-thanks .content .full_width_inner,
body.has-mecamin-thanks .content_inner { padding: 0 !important; margin: 0 !important; }

body.has-mecamin-thanks .gr-stage {
  --gr-ink: #0a1a32;
  --gr-cream: #f4ead7;
  --gr-cream-dim: rgba(244,234,215,0.72);
  --gr-cream-faint: rgba(244,234,215,0.38);
  --gr-rule: rgba(244,234,215,0.16);
  --gr-gold: #d99a2b;
  --gr-gold-warm: #e9b450;

  position: relative;
  background: var(--gr-ink) !important;
  color: var(--gr-cream);
  padding: clamp(120px, 14vw, 200px) clamp(20px, 5vw, 88px) clamp(120px, 14vw, 200px) !important;
  margin: 0 !important;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.has-mecamin-thanks .gr-stage::before,
body.has-mecamin-thanks .gr-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
body.has-mecamin-thanks .gr-stage::before {
  background:
    linear-gradient(180deg, rgba(10,26,50,0.78) 0%, rgba(10,26,50,0.92) 60%, rgba(6,18,42,1) 100%),
    url('https://www.mecamin.pe/wp-content/uploads/2026/02/bg-form.jpg?id=237') center/cover no-repeat;
  z-index: 0;
}
body.has-mecamin-thanks .gr-stage::after {
  background:
    radial-gradient(720px 540px at 50% 0%, rgba(217,154,43,0.22), transparent 60%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.55;
  z-index: 1;
}
body.has-mecamin-thanks .gr-stage > * { position: relative; z-index: 2; }

body.has-mecamin-thanks .gr-topo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  color: var(--gr-gold-warm);
  pointer-events: none;
}

body.has-mecamin-thanks .gr-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

body.has-mecamin-thanks .gr-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(217,154,43,0.5);
  border-radius: 50%;
  margin: 0 auto 36px;
  position: relative;
  background: rgba(217,154,43,0.06);
}
body.has-mecamin-thanks .gr-mark::before,
body.has-mecamin-thanks .gr-mark::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(217,154,43,0.18);
  border-radius: 50%;
  animation: gr-ripple 3s ease-out infinite;
}
body.has-mecamin-thanks .gr-mark::after { animation-delay: 1.5s; }
@keyframes gr-ripple {
  0% { transform: scale(0.95); opacity: 0.6; }
  80%,100% { transform: scale(1.4); opacity: 0; }
}
body.has-mecamin-thanks .gr-mark svg { color: var(--gr-gold-warm); }

body.has-mecamin-thanks .gr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gr-gold-warm);
  margin: 0 0 28px;
}
body.has-mecamin-thanks .gr-kicker::before,
body.has-mecamin-thanks .gr-kicker::after {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: var(--gr-gold-warm);
}

body.has-mecamin-thanks .gr-title {
  font-family: 'Red Rose', sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--gr-cream);
  margin: 0 0 28px;
}
body.has-mecamin-thanks .gr-title em {
  font-style: italic;
  color: var(--gr-gold-warm);
  font-weight: 400;
}

body.has-mecamin-thanks .gr-lead {
  font-family: 'Red Rose', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--gr-cream-dim);
  margin: 0 auto 48px;
  max-width: 520px;
}

body.has-mecamin-thanks .gr-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 auto 48px;
  max-width: 580px;
  border-top: 1px solid var(--gr-rule);
  border-bottom: 1px solid var(--gr-rule);
  padding: 24px 0;
  text-align: left;
}
body.has-mecamin-thanks .gr-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 14px 0;
  align-items: baseline;
}
body.has-mecamin-thanks .gr-summary-row + .gr-summary-row {
  border-top: 1px dashed rgba(244,234,215,0.10);
}
body.has-mecamin-thanks .gr-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gr-gold-warm);
}
body.has-mecamin-thanks .gr-value {
  font-family: 'Red Rose', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--gr-cream);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
body.has-mecamin-thanks .gr-value small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: var(--gr-cream-dim);
  margin-top: 4px;
  letter-spacing: 0;
}

body.has-mecamin-thanks .gr-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
body.has-mecamin-thanks .gr-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--gr-ink) !important;
  background: var(--gr-gold);
  border-radius: 999px;
  padding: 18px 32px;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.3,1), background 0.3s ease, box-shadow 0.4s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px -10px rgba(217,154,43,0.4);
}
body.has-mecamin-thanks .gr-cta:hover {
  background: var(--gr-gold-warm);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 30px -8px rgba(217,154,43,0.6);
}
body.has-mecamin-thanks .gr-cta-arrow { display: inline-block; transition: transform 0.3s; }
body.has-mecamin-thanks .gr-cta:hover .gr-cta-arrow { transform: translateX(4px); }
body.has-mecamin-thanks .gr-cta-ghost {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gr-cream-dim) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(244,234,215,0.32);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}
body.has-mecamin-thanks .gr-cta-ghost:hover { color: var(--gr-gold-warm) !important; border-bottom-color: var(--gr-gold-warm); }

body.has-mecamin-thanks .gr-stamp {
  position: absolute;
  top: -32px;
  right: -32px;
  width: 100px;
  aspect-ratio: 1;
  border: 1px solid rgba(217,154,43,0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  pointer-events: none;
  font-family: 'Red Rose', sans-serif;
  font-style: italic;
  color: var(--gr-gold-warm);
}
body.has-mecamin-thanks .gr-stamp svg { position: absolute; inset: 6px; width: calc(100% - 12px); animation: gr-spin 32s linear infinite; }
body.has-mecamin-thanks .gr-stamp .core {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--gr-gold-warm);
}
@keyframes gr-spin { to { transform: rotate(360deg); } }

body.has-mecamin-thanks .gr-anim-up { animation: gr-up 1s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes gr-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
body.has-mecamin-thanks .gr-d1 { animation-delay: 0.05s; }
body.has-mecamin-thanks .gr-d2 { animation-delay: 0.18s; }
body.has-mecamin-thanks .gr-d3 { animation-delay: 0.32s; }
body.has-mecamin-thanks .gr-d4 { animation-delay: 0.46s; }
body.has-mecamin-thanks .gr-d5 { animation-delay: 0.6s; }
body.has-mecamin-thanks .gr-d6 { animation-delay: 0.74s; }

@media (max-width: 720px) {
  body.has-mecamin-thanks .gr-stamp { display: none; }
  body.has-mecamin-thanks .gr-summary-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  body.has-mecamin-thanks .gr-stage { padding: 110px 22px 90px !important; min-height: 70vh; }
  body.has-mecamin-thanks .gr-cta-row { flex-direction: column; }
}

body.has-mecamin-thanks .lz-stage .wpb_text_column,
body.has-mecamin-thanks .gr-stage .wpb_text_column,
body.has-mecamin-thanks .gr-stage .wpb_text_column .wpb_wrapper { background: transparent !important; padding: 0 !important; margin: 0 !important; }
body.has-mecamin-thanks .gr-stage h1, body.has-mecamin-thanks .gr-stage h2, body.has-mecamin-thanks .gr-stage h3 { color: var(--gr-cream); margin: 0; padding: 0; }
body.has-mecamin-thanks .gr-stage p { color: inherit; margin: 0; padding: 0; }
body.has-mecamin-thanks .vc_empty_space { display: none !important; }