/*
Theme Name: Psicoterapia Migrante
Theme URI: https://www.psicoterapiamigrante.com
Author: Psicoterapia Migrante
Author URI: https://www.psicoterapiamigrante.com
Description: Tema personalizado para Psicoterapia Migrante — terapia online en español para la comunidad migrante latina en EE. UU. Incluye animaciones canvas de cometas y mapa migratorio.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psicomigrante
Tags: one-page, custom-background, custom-logo, accessibility-ready
*/

/* ──────────────────────────── Reset & base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-0: #0a0d1a;
  --bg-1: #10142a;
  --bg-2: #161b36;
  --ink: #e8ecff;
  --ink-soft: #b8bedc;
  --ink-mute: #7a7fa1;
  --mint:   #a8e6cf;
  --mint-d: #6fd1aa;
  --coral:  #ffb3b3;
  --coral-d:#ff8080;
  --lav:    #c4b5fd;
  --peach:  #ffd4b8;
  --rose:   #ffc2d4;
  --line:   rgba(200, 210, 255, 0.08);
  --glass:  rgba(255, 255, 255, 0.03);
  --glass-b:rgba(255, 255, 255, 0.06);
  --radius: 28px;
  --ease: cubic-bezier(.22,.8,.36,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Subtle aurora wash that covers the entire page */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 10%,  rgba(168,230,207,.08), transparent 60%),
    radial-gradient(50% 40% at 90% 25%,  rgba(196,181,253,.08), transparent 65%),
    radial-gradient(70% 55% at 50% 110%, rgba(255,194,212,.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────── SPACE BACKGROUND ──────────────────────────── */
.space {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;        /* promote to own compositor layer */
  contain: strict;
}
/* Canvas draws comets + foreground twinkling stars */
#spaceCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  will-change: contents;
}
/* Static deep-field stars behind the canvas (tiny, distant) */
.starfield {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(1px 1px at 8% 12%,   rgba(255,255,255,.6), transparent 55%),
    radial-gradient(1px 1px at 23% 78%,  rgba(232,236,255,.45), transparent 55%),
    radial-gradient(1.2px 1.2px at 42% 33%, #fff, transparent 55%),
    radial-gradient(1px 1px at 58% 64%,  rgba(196,181,253,.55), transparent 55%),
    radial-gradient(1.4px 1.4px at 71% 18%, #fff, transparent 55%),
    radial-gradient(1px 1px at 83% 48%,  rgba(168,230,207,.55), transparent 55%),
    radial-gradient(1px 1px at 92% 82%,  rgba(255,255,255,.4), transparent 55%),
    radial-gradient(1px 1px at 16% 52%,  rgba(255,194,212,.55), transparent 55%),
    radial-gradient(1px 1px at 35% 92%,  #fff, transparent 55%),
    radial-gradient(1.2px 1.2px at 64% 9%, #fff, transparent 55%),
    radial-gradient(0.8px 0.8px at 31% 58%, #fff, transparent 55%),
    radial-gradient(0.8px 0.8px at 87% 28%, #fff, transparent 55%),
    radial-gradient(0.8px 0.8px at 95% 64%, #fff, transparent 55%);
  animation: drift-a 120s linear infinite;
  opacity: .75;
}
@keyframes drift-a { from { transform: translate3d(0,0,0); } to { transform: translate3d(-120px,-40px,0); } }

/* Breathing nebulae clouds */
.nebula {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: breathe-nebula 14s ease-in-out infinite;
  will-change: transform, opacity;
}
/* Pre-blurred: larger size + softer gradient stops = same visual as blur(100px) but zero GPU blur cost */
.nebula.n1 { width: 820px; height: 820px; top: -2%;  left: -18%; background: radial-gradient(circle, rgba(168,230,207,.22), rgba(168,230,207,.08) 40%, transparent 70%); }
.nebula.n2 { width: 960px; height: 960px; top: 30%; right: -22%; background: radial-gradient(circle, rgba(196,181,253,.22), rgba(196,181,253,.08) 40%, transparent 70%); animation-delay: -5s; }
.nebula.n3 { width: 780px; height: 780px; bottom: -4%; left: 10%; background: radial-gradient(circle, rgba(255,194,212,.18), rgba(255,194,212,.06) 40%, transparent 70%); animation-delay: -9s; }
.nebula.n4 { width: 640px; height: 640px; top: 15%; left: 40%; background: radial-gradient(circle, rgba(255,220,180,.14), rgba(255,220,180,.04) 40%, transparent 70%); animation-delay: -3s; }
@keyframes breathe-nebula {
  0%,100% { transform: scale(1)   translate3d(0,0,0); opacity: .4; }
  50%     { transform: scale(1.12) translate3d(10px,-20px,0); opacity: .7; }
}

main, #nav, footer { position: relative; z-index: 1; }

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ──────────────────────────── NAV ──────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 20px 0;
  z-index: 100;
  transition: backdrop-filter .4s ease, background .4s ease;
}
#nav.scrolled {
  background: rgba(10, 13, 26, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 19px; letter-spacing: -0.01em; }
.logo-mark {
  width: 34px; height: 34px;
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--lav) 80%);
  border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%;
  box-shadow: 0 0 24px rgba(168,230,207,.35);
  animation: blob 12s var(--ease) infinite;
}
@keyframes blob {
  0%,100% { border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%; transform: rotate(0deg); }
  50%     { border-radius: 46% 54% 50% 50% / 48% 52% 48% 52%; transform: rotate(180deg); }
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; transition: color .25s; }
.nav-links a:hover { color: var(--mint); }
/* Higher-specificity selector so .nav-cta keeps its dark text on the mint background */
.nav-links a.nav-cta,
.nav-cta {
  background: linear-gradient(135deg, var(--mint), var(--mint-d));
  color: #0a0d1a;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-links a.nav-cta:hover,
.nav-cta:hover { color: #0a0d1a; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(168,230,207,.25); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ──────────────────────────── HERO ──────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

/* Breathing glow — uses an ::after pseudo-element animated with
   opacity only (GPU-composited, no layout / paint per frame). */
.breathe { position: relative; }
.breathe::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(168,230,207,.22), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  animation: breathe-opacity 7s ease-in-out infinite;
  will-change: opacity;
}
.breathe.lav::after {
  background: radial-gradient(circle at 50% 50%, rgba(196,181,253,.24), transparent 70%);
}
@keyframes breathe-opacity {
  0%, 100% { opacity: .15; }
  50%      { opacity: .85; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--mint) 0%, var(--lav) 50%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 300;
}
.hero p.lead {
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-d));
  color: #0a0d1a;
  box-shadow: 0 8px 28px rgba(168,230,207,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(168,230,207,.35); }
.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-b); border-color: rgba(196,181,253,.3); }

.hero-trust {
  display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap;
}
.hero-trust .t-item { display: flex; flex-direction: column; gap: 2px; }
.hero-trust .t-num {
  font-family: 'Fraunces', serif; font-size: 24px; color: var(--mint);
}
.hero-trust .t-lbl { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

/* ─── MAP container (v2 — SVG backdrop + Canvas overlay for dots) ─── */
.map-shell {
  position: relative;
  aspect-ratio: 1760 / 1950;        /* matches the SVG viewBox */
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow: visible;
  animation: map-breathe 8s ease-in-out infinite;
}
@keyframes map-breathe {
  0%,100% { filter: drop-shadow(0 0 30px rgba(168,230,207,.08)); }
  50%     { filter: drop-shadow(0 0 60px rgba(168,230,207,.22)); }
}
/* SVG backdrop: the real continent outlines, tinted mint to fit the theme.
   Loaded via <object> so its viewBox semantics are preserved 1:1. */
.map-shell .map-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: invert(1)
          brightness(.55)
          sepia(1)
          saturate(4)
          hue-rotate(92deg)
          brightness(1.05)
          opacity(.55);
}
/* Canvas overlay — shares the SVG's viewBox as its coordinate system,
   so dots sit exactly where they should on the underlying map. */
.map-shell .map-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

/* Therapy node label positioned by JS in pixel-space */
.t-node-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-100% - 18px));
  background: rgba(10,13,26,.82);
  border: 1px solid rgba(168,230,207,.45);
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 12px; color: var(--mint);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 8px;
  animation: float-lbl 5s ease-in-out infinite;
  z-index: 3;
  box-shadow: 0 0 24px rgba(168,230,207,.35);
  white-space: nowrap;
  pointer-events: none;
}
.t-node-label::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 50%;
  width: 1px; height: 14px;
  background: linear-gradient(to bottom, rgba(168,230,207,.6), transparent);
  transform: translateX(-50%);
}
.t-node-label .material-symbols-rounded { font-size: 14px; }
@keyframes float-lbl {
  0%,100% { transform: translate(-50%, calc(-100% - 18px)); }
  50%     { transform: translate(-50%, calc(-100% - 26px)); }
}

/* ──────────────────────────── SECTION SHARED ──────────────────────────── */
/* Reduced from 110px → 72px for tighter rhythm, especially when wrapped
   inside Elementor sections which add their own ~20px padding on top. */
section { padding: 72px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 52px 0; }
}
/* contain: layout style paint gives compositing hints without
   the scroll-triggered layout thrash of content-visibility:auto */
#enfoque, #proceso, #faq, #contacto { contain: layout style paint; }
.s-head { text-align: center; margin-bottom: 64px; }
.s-head .kicker {
  font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.s-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  max-width: 22ch;
  margin: 0 auto 16px;
}
.s-head h2 em { font-style: italic; color: var(--lav); }
.s-head p {
  color: var(--ink-soft);
  max-width: 60ch; margin: 0 auto;
}

/* ──────────────────────────── PILLARS ──────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  padding: 40px 36px;
  background: linear-gradient(155deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 34px 34px 60px 34px;
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s;
}
.pillar:nth-child(2) { border-radius: 34px 60px 34px 34px; margin-top: 36px; }
@media (max-width: 820px) { .pillar:nth-child(2) { margin-top: 0; } }
.pillar:hover { transform: translateY(-6px); border-color: rgba(196,181,253,.25); }
.pillar::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--glow, rgba(168,230,207,.18)), transparent 65%);
  pointer-events: none;
  filter: blur(4px);
}
.pillar:nth-child(2)::before { --glow: rgba(196,181,253,.18); }

.p-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(168,230,207,.18), rgba(168,230,207,.02));
  border: 1px solid rgba(168,230,207,.25);
  border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%;
  color: var(--mint);
  margin-bottom: 24px;
  animation: blob 14s var(--ease) infinite;
}
.pillar:nth-child(2) .p-icon {
  background: radial-gradient(circle at 35% 35%, rgba(196,181,253,.18), rgba(196,181,253,.02));
  border-color: rgba(196,181,253,.25);
  color: var(--lav);
}
.p-icon .material-symbols-rounded { font-size: 32px; }
.pillar h3 { font-size: 24px; margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: 15px; }

/* ──────────────────────────── PROCESO ──────────────────────────── */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 920px) { .process-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-track { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 30px 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background .4s;
}
.step:hover { transform: translateY(-4px); background: var(--glass-b); }
.step-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 34px;
  color: var(--mint);
  display: block; margin-bottom: 14px;
}
.step:nth-child(2) .step-num { color: var(--coral); }
.step:nth-child(3) .step-num { color: var(--lav); }
.step:nth-child(4) .step-num { color: var(--peach); }
.step h4 { font-family: 'Fraunces', serif; font-size: 19px; margin-bottom: 8px; font-weight: 500; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ──────────────────────────── ENFOQUES / ABUSOS ──────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .focus-grid { grid-template-columns: 1fr; } }

.focus-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s;
}
.focus-card:nth-child(odd) { border-radius: 32px 32px 56px 32px; }
.focus-card:nth-child(even) { border-radius: 32px 32px 32px 56px; }
.focus-card:hover { transform: translateY(-5px); border-color: rgba(168,230,207,.25); }
.focus-card .material-symbols-rounded {
  font-size: 30px;
  color: var(--mint);
  margin-bottom: 18px;
  display: inline-block;
  transition: transform .5s var(--ease);
}
.focus-card:nth-child(2) .material-symbols-rounded { color: var(--coral); }
.focus-card:nth-child(3) .material-symbols-rounded { color: var(--lav); }
.focus-card:nth-child(4) .material-symbols-rounded { color: var(--peach); }
.focus-card:nth-child(5) .material-symbols-rounded { color: var(--rose); }
.focus-card:nth-child(6) .material-symbols-rounded { color: var(--mint); }
.focus-card:hover .material-symbols-rounded { transform: translateY(-4px) rotate(-6deg); }
.focus-card h4 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 10px; font-weight: 500; }
.focus-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ──────────────────────────── TESTIMONIO ──────────────────────────── */
.quote {
  position: relative;
  max-width: 880px; margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(196,181,253,.08), rgba(168,230,207,.06));
  border: 1px solid var(--line);
  border-radius: 40px 40px 60px 40px;
  backdrop-filter: blur(14px);
  text-align: center;
}
.quote::before {
  content: '\201C';
  position: absolute; top: -6px; left: 30px;
  font-family: 'Fraunces', serif;
  font-size: 120px;
  color: var(--lav); opacity: .25;
  line-height: 1;
}
.quote blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
}
.quote cite {
  font-style: normal;
  color: var(--mint);
  font-size: 14px;
  letter-spacing: .06em;
}

/* ──────────────────────────── FAQ ──────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 8px;
  cursor: pointer;
  transition: padding .3s;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 400;
  color: var(--ink);
}
.faq-q .material-symbols-rounded {
  color: var(--mint);
  transition: transform .4s var(--ease);
}
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--ink-soft); font-size: 15px;
  transition: max-height .5s var(--ease), margin-top .3s var(--ease);
}
.faq-item.open .faq-a { max-height: 280px; margin-top: 14px; }
.faq-item.open .faq-q .material-symbols-rounded { transform: rotate(45deg); color: var(--lav); }

/* ──────────────────────────── CONTACTO ──────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.contact-copy h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  margin-bottom: 18px;
}
.contact-copy h2 em { color: var(--mint); font-style: italic; }
.contact-copy p { color: var(--ink-soft); max-width: 48ch; margin-bottom: 32px; }

.mini-bullets { display: grid; gap: 14px; }
.mini-bullets li {
  list-style: none;
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink-soft); font-size: 14.5px;
}
.mini-bullets li .material-symbols-rounded { color: var(--mint); font-size: 20px; margin-top: 1px; }

.form-card {
  background: linear-gradient(155deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 36px 36px 60px 36px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(168,230,207,.2), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.field { position: relative; margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10,13,26,.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(168,230,207,.45);
  background: rgba(10,13,26,.85);
}
.field textarea { resize: vertical; min-height: 90px; }

.contact-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(10,13,26,.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 5px;
}
/* Scoped to .contact-toggle so these rules beat `.field label` specificity. */
.contact-toggle .ct-opt {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 11px 10px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  cursor: pointer;
  /* Transparent border on every option so widths match active state */
  border: 1px solid transparent;
  box-sizing: border-box;
  min-height: 44px;
  transition: background .3s, color .3s, border-color .3s;
  user-select: none;
}
.contact-toggle .ct-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}
.contact-toggle .ct-opt .ct-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.contact-toggle .ct-opt .ct-label {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.contact-toggle .ct-opt.active {
  background: linear-gradient(135deg, rgba(168,230,207,.18), rgba(196,181,253,.14));
  color: var(--ink);
  border-color: rgba(168,230,207,.3);
}

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mint), var(--lav));
  color: #0a0d1a;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .3s, box-shadow .3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(168,230,207,.3); }

/* Privacy checkbox */
.privacy-check { margin-bottom: 10px !important; }
.check-label {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: var(--ink-soft);
  cursor: pointer; line-height: 1.45;
  user-select: none;
}
.check-label input { display: none; }
.checkmark {
  flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid rgba(168,230,207,.4);
  border-radius: 7px;
  background: rgba(10,13,26,.6);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s;
}
.checkmark::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity .2s;
}
.check-label input:checked + .checkmark {
  background: rgba(168,230,207,.15);
  border-color: var(--mint);
}
.check-label input:checked + .checkmark::after { opacity: 1; }
.check-label a { color: var(--mint); text-decoration: underline; text-underline-offset: 2px; }
.check-label a:hover { color: var(--lav); }
.check-label.error .checkmark { border-color: rgba(255,138,138,.7); }

.form-status {
  margin-top: 14px; font-size: 14px; color: var(--mint);
  display: none; align-items: center; gap: 8px;
}
.form-status.show { display: flex; }
.form-status.error { color: var(--coral-d); }
.form-submit.loading { opacity: .65; cursor: progress; }
.form-submit[disabled] { pointer-events: none; }

/* ──────────────────────────── LOGO CIERRE ──────────────────────────── */
.logo-cierre {
  padding: 100px 0 80px;
  position: relative;
}
.logo-big {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.logo-mark-big {
  width: 100px; height: 100px;
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--lav) 80%);
  border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%;
  box-shadow: 0 0 60px rgba(168,230,207,.35), 0 0 120px rgba(196,181,253,.15);
  animation: blob 12s var(--ease) infinite;
}
.logo-text-big {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.8vw, 54px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-text-big em {
  font-style: italic;
  color: var(--mint);
}
.logo-cierre-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ──────────────────────────── FOOTER ──────────────────────────── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}
.f-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .f-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .f-top { grid-template-columns: 1fr; } }

.f-col h5 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 18px;
}
.f-col a, .f-col p { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.f-col a:hover { color: var(--mint); }
.f-about p { max-width: 34ch; font-size: 14px; }
.f-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-mute);
  flex-wrap: wrap; gap: 12px;
}

/* ──────────────────────────── Reveal on scroll ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Skip-to-content (accessibility, hidden until focused) */
.skip-link {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: var(--mint);
  color: #0a0d1a;
  padding: 12px 24px;
  border-radius: 0 0 14px 14px;
  font-weight: 600; font-size: 14px;
  z-index: 9999;
  transition: top .3s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--lav);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   WORDPRESS UTILITIES
   Styles for WP admin bar, Gutenberg output, content flow,
   alignment classes, images, and generic page layouts.
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────── Admin Bar Offset ──────────────────────────── */
body.admin-bar #nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar #nav { top: 46px; } }

/* ──────────────────────────── Heading Hierarchy (h4–h6) ──────────────────────────── */
h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
h5 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
h6 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.4; }

/* ──────────────────────────── WordPress Alignments ──────────────────────────── */
.alignleft   { float: left;  margin: 0 24px 16px 0; }
.alignright  { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { width: calc(100% + 80px); max-width: calc(100% + 80px); margin-left: -40px; }
.alignfull   { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
@media (max-width: 600px) {
  .alignwide { width: 100%; max-width: 100%; margin-left: 0; }
}

/* ──────────────────────────── Images & Media ──────────────────────────── */
img       { max-width: 100%; height: auto; display: block; }
figure    { margin: 0 0 24px; }
figcaption,
.wp-caption-text {
  font-size: 13px; color: var(--ink-mute);
  margin-top: 10px; text-align: center;
}
.wp-caption { max-width: 100%; }
iframe, embed, object, video { max-width: 100%; }

/* ──────────────────────────── Entry Content (WP editor output) ──────────────────────────── */
/* All .entry-content rules are wrapped in :where() so they have 0 specificity,
   acting as editor defaults that never override section-specific styles
   (.s-head h2, .focus-card h4, .step h4, .quote blockquote, etc.) */
:where(.entry-content) p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 18px;
  line-height: 1.7;
}
:where(.entry-content) > *:last-child { margin-bottom: 0; }

:where(.entry-content) h1 { margin: 64px 0 24px; }
:where(.entry-content) h2 { margin: 56px 0 20px; font-size: clamp(26px, 3.2vw, 40px); }
:where(.entry-content) h3 { margin: 40px 0 16px; font-size: clamp(22px, 2.6vw, 30px); }
:where(.entry-content) h4 { margin: 32px 0 12px; }
:where(.entry-content) h5 { margin: 28px 0 10px; }
:where(.entry-content) h6 { margin: 24px 0 8px; }
:where(.entry-content) > h1:first-child,
:where(.entry-content) > h2:first-child,
:where(.entry-content) > h3:first-child { margin-top: 0; }

:where(.entry-content) ul,
:where(.entry-content) ol {
  color: var(--ink-soft);
  padding-left: 24px;
  margin-bottom: 18px;
  font-size: 15.5px;
}
:where(.entry-content) li { margin-bottom: 8px; }

:where(.entry-content) a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s;
}
:where(.entry-content) a:hover { color: var(--lav); }

:where(.entry-content) blockquote {
  border-left: 3px solid var(--lav);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--glass);
  border-radius: 0 18px 18px 0;
  font-style: italic;
  color: var(--ink-soft);
}
:where(.entry-content) blockquote p { margin-bottom: 0; }

:where(.entry-content) pre,
:where(.entry-content) code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
}
:where(.entry-content) code {
  background: rgba(168,230,207,.08);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--mint);
}
:where(.entry-content) pre {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}
:where(.entry-content) pre code { background: none; padding: 0; }

:where(.entry-content) hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

:where(.entry-content) table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14.5px;
}
:where(.entry-content) th,
:where(.entry-content) td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink-soft);
}
:where(.entry-content) th {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:where(.entry-content) img {
  border-radius: 18px;
}

/* ──────────────────────────── Gutenberg Block Defaults ──────────────────────────── */
.has-text-align-center { text-align: center; }
.has-text-align-right  { text-align: right; }
.has-text-align-left   { text-align: left; }

.wp-block-group   { margin-bottom: 32px; }
.wp-block-columns { gap: 24px; margin-bottom: 32px; }
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px auto;
  max-width: 200px;
}
.wp-block-separator.is-style-wide { max-width: 100%; }
.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  color: var(--ink-mute);
}

.wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  background: linear-gradient(135deg, var(--mint), var(--mint-d));
  color: #0a0d1a;
  box-shadow: 0 8px 28px rgba(168,230,207,.22);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(168,230,207,.35);
  color: #0a0d1a;
}
.is-style-outline .wp-block-button__link {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--glass-b);
  border-color: rgba(196,181,253,.3);
  transform: translateY(-2px);
}

.wp-block-image { margin-bottom: 24px; }
.wp-block-image img { border-radius: 18px; }
.wp-block-image figcaption { font-size: 13px; color: var(--ink-mute); margin-top: 10px; }

.wp-block-quote {
  border-left: 3px solid var(--lav);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--glass);
  border-radius: 0 18px 18px 0;
}
.wp-block-quote p { font-style: italic; color: var(--ink-soft); }
.wp-block-quote cite { color: var(--mint); font-size: 14px; font-style: normal; }

.wp-block-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.wp-block-embed { margin-bottom: 32px; }
.wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 18px;
}

/* ──────────────────────────── Generic Page Layout ──────────────────────────── */
.page-content {
  padding: 120px 0 80px;
}
.page-header {
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: clamp(34px, 4.5vw, 56px);
}

/* ──────────────────────────── Screen Reader Text (WP standard) ──────────────────────────── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  background: var(--mint);
  color: #0a0d1a;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100000;
  top: 5px;
  left: 5px;
  border-radius: 14px;
}

/* ──────────────────────────── Elementor Compatibility Overrides ────────────────────────────
   Section-header centering MUST win against any CSS Elementor (or other plugins)
   inject into the page. We re-declare the critical layout props with explicit
   margin-left/right: auto and high-specificity selectors as a safety net. */
.s-head,
.entry-content .s-head,
.elementor-widget-container .s-head,
.elementor-element .s-head {
  text-align: center;
}

.s-head > h2,
.entry-content .s-head > h2,
.elementor-widget-container .s-head > h2,
.elementor-element .s-head > h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.s-head > p,
.entry-content .s-head > p,
.elementor-widget-container .s-head > p,
.elementor-element .s-head > p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.s-head > .kicker,
.entry-content .s-head > .kicker,
.elementor-widget-container .s-head > .kicker,
.elementor-element .s-head > .kicker {
  text-align: center;
}

/* Same defense for quote/testimonial block (also centered) */
.quote,
.entry-content .quote,
.elementor-widget-container .quote {
  text-align: center;
}
.quote blockquote,
.entry-content .quote blockquote,
.elementor-widget-container .quote blockquote {
  margin-left: auto;
  margin-right: auto;
}

/* ──────────────────────────── Elementor — Structural Compatibility ────────────────────────────
   Neutralize wrapper padding/margins that Elementor injects into its
   sections, columns, widgets and containers. Our theme's sections
   carry their own .container + padding — we don't want double spacing. */

/* --- V2: classic sections / columns --- */
.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section-full_width > .elementor-container {
  /* keep Elementor's row max-width logic alone, but remove the implicit padding
     so theme sections stay flush to the viewport edges when needed */
}
.elementor-widget-html .elementor-widget-container,
.elementor-widget-text-editor .elementor-widget-container,
.elementor-widget-shortcode .elementor-widget-container {
  padding: 0;
  margin: 0;
}

/* --- Collapse Elementor wrapper padding when it contains a theme <section> ---
   Each HTML widget we paste is already a full <section> with its own 72px
   vertical padding. Elementor stacks .elementor-section + .elementor-column +
   .elementor-widget-wrap around it, each contributing ~10-20px extra.
   With :has() we detect when a wrapper ONLY holds our HTML widgets and
   collapse its padding/margin. */
.elementor-section:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-html > .elementor-widget-container > section),
.elementor-section:has(> .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-element.elementor-widget-html) {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.elementor-column:has(> .elementor-widget-wrap > .elementor-widget-html > .elementor-widget-container > section),
.elementor-column:has(> .elementor-element-populated > .elementor-widget-html) {
  padding-top: 0;
  padding-bottom: 0;
}
.elementor-widget-wrap:has(> .elementor-widget-html > .elementor-widget-container > section) {
  padding: 0;
}
.elementor-element-populated:has(> .elementor-widget-wrap > .elementor-widget-html > .elementor-widget-container > section),
.elementor-element:has(> .elementor-widget-container > section) {
  padding: 0;
}

/* --- Same treatment for V3 flexbox containers --- */
.e-con:has(> .e-con-inner > .elementor-widget-html > .elementor-widget-container > section),
.e-con:has(> .elementor-widget-html > .elementor-widget-container > section) {
  padding: 0;
  gap: 0;
}
.e-con-inner:has(> .elementor-widget-html > .elementor-widget-container > section) {
  padding: 0;
  gap: 0;
}

/* Fallback for older browsers without :has() support: apply a softer reset
   that won't break other Elementor widgets. */
@supports not selector(:has(*)) {
  .elementor-widget-html {
    padding: 0;
    margin: 0;
  }
  .elementor-widget-html > .elementor-widget-container {
    padding: 0;
    margin: 0;
  }
}

/* --- V3: flexbox containers (.e-con, .e-con-inner) ---
   Elementor V3 wraps everything in flex containers with gap:20px and padding.
   Zero them when the inner content is one of our full-width theme sections. */
.e-con > section[id="hero"],
.e-con > section[id="enfoque"],
.e-con > section[id="proceso"],
.e-con > section[id="faq"],
.e-con > section[id="contacto"],
.e-con > section[id="especialistas"] {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Elementor sometimes forces text-align: initial on flex children.
   Re-assert alignment for our custom structural classes. */
.elementor-widget-container .s-head,
.e-con .s-head { text-align: center; }

/* ──────────────────────────── Elementor — Typography Compatibility ────────────────────────────
   Elementor injects aggressive resets on paragraphs inside its widgets
   (zero margin, different line-height). Restore readable defaults
   for content that uses our semantic classes. */
.elementor-widget-html p,
.elementor-widget-text-editor p {
  margin: 0 0 18px;
  line-height: 1.7;
}
.elementor-widget-html p:last-child,
.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* Let theme-specific overrides (.s-head p, .focus-card p, .pillar p, etc.)
   continue to win — these defaults are generic. */
.elementor-widget-html h1,
.elementor-widget-html h2,
.elementor-widget-html h3,
.elementor-widget-html h4,
.elementor-widget-html h5,
.elementor-widget-html h6 {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

/* ──────────────────────────── Elementor — Icon Rendering ────────────────────────────
   Ensure Material Symbols inside Elementor widgets render properly
   (Elementor's default icon styles can force conflicting font properties). */
.elementor-widget-html .material-symbols-rounded,
.elementor-widget-container .material-symbols-rounded {
  font-family: 'Material Symbols Rounded', sans-serif !important;
  font-weight: 300;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ──────────────────────────── Elementor — Form Compatibility ────────────────────────────
   When the contact form lives inside an Elementor HTML widget, Elementor's
   global input reset can strip padding/border. Re-assert form field styles. */
.elementor-widget-html input[type="text"],
.elementor-widget-html input[type="email"],
.elementor-widget-html input[type="tel"],
.elementor-widget-html input[type="url"],
.elementor-widget-html input[type="number"],
.elementor-widget-html textarea,
.elementor-widget-html select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .25s, background .25s;
}
.elementor-widget-html input:focus,
.elementor-widget-html textarea:focus,
.elementor-widget-html select:focus {
  outline: none;
  border-color: var(--mint);
  background: rgba(168,230,207,.05);
}
.elementor-widget-html button[type="submit"] {
  font-family: inherit;
  cursor: pointer;
}

/* ──────────────────────────── Elementor — Full-Width Page Layout ────────────────────────────
   When the page uses "Elementor Full Width" layout, Elementor removes
   its default .elementor-container max-width. Our theme's header/footer
   still wrap around. Ensure no horizontal scroll is introduced. */
body.elementor-page.elementor-template-full-width,
body.elementor-page {
  overflow-x: hidden;
}

/* Elementor adds its own theme admin bar shift (32px/46px) — defer to the
   theme's rules which already handle admin-bar offset on #nav. */
body.admin-bar.elementor-page #nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar.elementor-page #nav { top: 46px; }
}

/* ──────────────────────────── Elementor — Reveal Animation Compatibility ────────────────────────────
   Elementor wraps widgets in elements with their own IntersectionObserver-triggered
   entrance animations. If the user accidentally enables one, the .reveal elements
   may render offscreen. Force visibility when animations are disabled. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Prevent Elementor's "Animation" widget setting from leaving .reveal stuck
   in the pre-animation state when scripts fail to load. */
.no-js .reveal { opacity: 1; transform: none; }

/* ──────────────────────────── FOOTER CTA BAND ──────────────────────────── */
/* The wrapping <footer> has padding: 60px 0 40px and its own border-top, so
   the CTA sits 60px down from the footer top. We use only a soft gradient
   (no extra borders) to delimit the band, and a generous bottom margin to
   keep clear breathing room before the .f-top columns below. */
.footer-cta {
  position: relative;
  padding: 56px 0 72px;
  margin-bottom: 36px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(168, 230, 207, .10), transparent 70%),
    linear-gradient(180deg, rgba(168, 230, 207, .04), rgba(196, 181, 253, .03));
  z-index: 1;
  isolation: isolate;
}
.footer-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, auto);
  gap: 32px 56px;
  align-items: center;
}
.footer-cta__copy {
  min-width: 0;
}
.footer-cta__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.footer-cta__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 22ch;
}
.footer-cta__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint), var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-cta__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}
.footer-cta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  justify-self: end;
}
.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mint);
  color: #0a0d1a;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(168, 230, 207, .22);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.footer-cta__btn:hover {
  transform: translateY(-2px);
  background: var(--mint-d);
  color: #0a0d1a;
  box-shadow: 0 20px 44px rgba(168, 230, 207, .32);
}
.footer-cta__btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  background: var(--mint-d);
}
.footer-cta__btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(168, 230, 207, .25);
}
.footer-cta__wa-icon {
  flex-shrink: 0;
  display: block;
}
.footer-cta__hint {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

/* Stack early — at <980px the right column gets cramped */
@media (max-width: 980px) {
  .footer-cta {
    padding: 48px 0 60px;
    margin-bottom: 32px;
  }
  .footer-cta__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    justify-items: center;
  }
  .footer-cta__title {
    max-width: 24ch;
  }
  .footer-cta__sub {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-cta__action {
    align-items: center;
    justify-self: center;
    width: 100%;
    max-width: 360px;
  }
  .footer-cta__hint {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-cta {
    padding: 40px 0 52px;
    margin-bottom: 24px;
  }
  .footer-cta__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta__btn { transition: none; }
  .footer-cta__btn:hover,
  .footer-cta__btn:active { transform: none; }
}
