/* Asesoría Financiera Luna — skin sobre motor Pro Integral / Piloto */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --ink: #0b1a33;
  --sand: #f3f7fc;
  --accent: #0066ff;
  --teal: #00d26a;
  --crimson: #c41e3a;
  --navy: #071428;
  --muted: #5b6b82;
  --card: #ffffff;
  --line: rgba(11, 26, 51, 0.1);
  --shadow: 0 22px 50px rgba(11, 26, 51, 0.1);
  --radius: 1.15rem;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

html { scroll-behavior: smooth; }

body.pi,
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 102, 255, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(0, 210, 106, 0.1), transparent 50%),
    var(--sand);
}

/* —— Nav corporativo —— */
.pi-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line) !important;
}
.pi-nav.is-scrolled {
  box-shadow: 0 10px 30px rgba(11, 26, 51, 0.08) !important;
}
.pi-nav__brand,
.pi-nav__brand.brand,
.brand {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-logo-wrap img.brand-logo {
  max-height: 52px;
  width: auto !important;
}
.pi-nav__links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.pi-nav__links a:hover { color: var(--accent); }
.pi-nav .btn-solid,
.btn-solid {
  background: var(--teal) !important;
  color: #062814 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 210, 106, 0.28);
}
.pi-nav .btn-solid:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(0, 102, 255, 0.28) !important;
  color: var(--accent) !important;
  background: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.btn-social {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--accent);
}
.btn-social svg { width: 18px; height: 18px; fill: currentColor; }
.pi-nav__burger span { background: var(--ink); }

/* —— Hero —— */
.pi-hero {
  min-height: min(92vh, 860px);
  overflow: hidden;
}
.pi-hero__media img,
.pi-hero__media video {
  transform: scale(1.06);
  animation: lunaKen 18s ease-in-out infinite alternate;
}
@keyframes lunaKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}
.pi-hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 20, 40, 0.82) 0%, rgba(7, 20, 40, 0.55) 48%, rgba(7, 20, 40, 0.22) 100%) !important;
}
.pi-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 210, 106, 0.16) !important;
  color: #b8ffd4 !important;
  border: 1px solid rgba(0, 210, 106, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.pi-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
  text-wrap: balance;
}
.pi-hero .lede {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}
.pi-hero .cta-row { gap: 0.75rem; }
.pi-hero .btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* —— Stats / counters —— */
.pi-stats { margin-top: -3.2rem; position: relative; z-index: 3; }
.pi-stats__card {
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pi-stat strong {
  font-family: var(--display);
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}
.pi-stat span { color: var(--muted); font-weight: 600; }

/* —— Cards animadas —— */
.pi-kicker {
  color: var(--accent) !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.pi-title {
  font-family: var(--display);
  letter-spacing: -0.03em;
}
.pi-cards { gap: 1.15rem; }
.pi-card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 26, 51, 0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.pi-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 102, 255, 0.16);
}
.pi-card__img:not(img) { display: none; }
.pi-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--accent), #3d8bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

/* —— Método / pasos —— */
.pi-steps, .pi-method__grid, .steps {
  gap: 1rem;
}
.step, .pi-step, .pi-method .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem 1.2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.step:hover, .pi-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(11, 26, 51, 0.08);
}
.step .n, .pi-step .n {
  color: var(--crimson);
  font-weight: 800;
  font-family: var(--display);
}

/* —— Barras de progreso —— */
.pi-bar__track, .mod-progress-track {
  height: 10px;
  background: #e7eef8;
  border-radius: 999px;
  overflow: hidden;
}
.pi-bar__fill, .mod-progress-fill {
  height: 100%;
  width: 0 !important;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.pi-bar.is-on .pi-bar__fill,
.mod-progress-row.is-on .mod-progress-fill {
  width: var(--bar, 80%) !important;
}
.pi-expertise h3 { font-family: var(--display); }

/* —— About / casos —— */
.pi-about__badge {
  background: var(--accent) !important;
  color: #fff !important;
}
.pi-check__dot {
  background: var(--teal) !important;
  color: #062814 !important;
}
.pi-cases .pi-card, .pi-case {
  border-top: 3px solid var(--accent);
}

/* —— Contacto —— */
.pi-contact {
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(0, 210, 106, 0.12), transparent 50%),
    #fff;
}
.pi-contact__ico {
  background: #eaf2ff;
  color: var(--accent);
}
.pi-foot {
  background: var(--navy) !important;
  color: rgba(255, 255, 255, 0.82);
}
.pi-foot a { color: #fff; }
.pi-foot__legal {
  font-size: 0.78rem;
  opacity: 0.72;
  max-width: 52rem;
}

/* —— Scroll reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.96); }
.pi-card[data-reveal] { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .pi-hero__media img,
  .pi-card,
  .step {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

.luna-wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}
.luna-wa-float:hover { transform: scale(1.06); }
.luna-wa-float svg { width: 28px; height: 28px; fill: #fff; }

.luna-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 46rem;
  text-align: center;
  padding: 0 1.25rem 2.5rem;
}

/* visibilidad inmediata del hero */
.pi-hero__content[data-reveal] { opacity: 1; transform: none; filter: none; }
.btn-social[hidden] { display: none !important; }
.pi-nav .btn-login { display: none !important; }
.brand-logo { mix-blend-mode: multiply; background: transparent; }
.pi-hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 20, 40, 0.62) 0%, rgba(7, 20, 40, 0.28) 52%, rgba(7, 20, 40, 0.12) 100%) !important;
}
.pi-hero h1, .pi-hero .lede { text-shadow: 0 8px 28px rgba(0,0,0,.45); }
.section-handle, .module-remove { display: none !important; }
body.is-editing .section-handle, body.is-editing .module-remove { display: block !important; }


/* ===== UX fix luna3: header, progress, contact, footer, WA ===== */
.pi-nav__inner {
  min-height: 88px;
  padding: 0.7rem 1.5rem;
}
.pi-nav__brand {
  overflow: visible;
  flex: 0 0 auto;
}
.pi-nav__brand img.brand-logo,
.brand-logo-wrap img.brand-logo,
.brand-logo {
  mix-blend-mode: normal !important;
  background: transparent !important;
  max-height: 72px !important;
  height: 72px !important;
  width: auto !important;
  max-width: min(280px, 58vw) !important;
}
.brand-logo-wrap { display: inline-flex; align-items: center; }

.section-module {
  padding: 4.5rem 1.5rem;
  background: #fff;
}
.section-module .section-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.section-module .kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.55rem;
}
.section-module h2 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 22ch;
}
.mod-progress {
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
  max-width: 640px;
}
.mod-progress-row { margin: 0; }
.mod-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.mod-progress-meta strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.mod-progress-track,
.pi-bar__track {
  height: 10px;
  background: #e7eef8;
  border-radius: 999px;
  overflow: hidden;
}
.mod-progress-fill,
.pi-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.mod-counters {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}
@media (min-width: 700px) {
  .mod-counters { grid-template-columns: repeat(3, 1fr); }
}
.mod-counter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(11, 26, 51, 0.05);
}
.mod-counter strong {
  font-family: var(--display);
  font-size: 2.3rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.mod-counter > span:last-child {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.pi-contact {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(0, 210, 106, 0.14), transparent 52%),
    #0c1628 !important;
  color: #f4f7fb !important;
}
.pi-contact .pi-kicker { color: #7dffb8 !important; }
.pi-contact .pi-title,
.pi-contact .pi-lead,
.pi-contact__row strong,
.pi-contact__row small {
  color: #f4f7fb !important;
}
.pi-contact .pi-lead,
.pi-contact__row small { color: rgba(244, 247, 251, 0.78) !important; }
.pi-contact__ico {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #9ec1ff !important;
}
.pi-contact__panel {
  background: #f6f7f9 !important;
  color: #1a2230 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pi-contact__panel h3 { color: #1a2230 !important; }
.pi-contact__panel p { color: #4b5568 !important; }
.ll-form label { color: #334155 !important; }
.ll-form input,
.ll-form textarea {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #c9d3e0 !important;
  caret-color: #0f172a;
}
.ll-form input::placeholder,
.ll-form textarea::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.pi-foot {
  background: #10151c !important;
  color: #c5cbd3 !important;
}
.pi-foot__brand img,
#footer-logo {
  max-height: 64px !important;
  width: auto !important;
  height: 64px !important;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none;
  object-fit: contain;
}

.wa-float { display: none !important; }
.luna-wa-float { display: none; }
@media (max-width: 899px) {
  .luna-wa-float {
    display: grid;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

.pi-nav__inner { min-height: 96px; }
.pi-nav__brand img.brand-logo,
.brand-logo-wrap img.brand-logo,
.brand-logo {
  height: 58px !important;
  max-height: 58px !important;
  max-width: min(320px, 62vw) !important;
  width: auto !important;
}

.pi-nav__inner { min-height: 92px; padding: 0.45rem 1.5rem !important; }
.pi-nav__brand img.brand-logo,
.brand-logo-wrap img.brand-logo,
.brand-logo {
  height: 76px !important;
  max-height: 76px !important;
  max-width: min(420px, 68vw) !important;
}

.ll-form .btn-solid {
  background: #0066ff !important;
  color: #fff !important;
  box-shadow: none;
}
.pi-contact__panel .pi-social-row .btn-solid {
  background: #00d26a !important;
  color: #062814 !important;
}
#footer-logo { background: transparent !important; border-radius: 0; }
