:root {
  --bg: #fbfaff;
  --bg-tint: #f3f0ff;
  --surface: #ffffff;
  --text: #1c1830;
  --text-muted: #5f5a78;
  --accent: #6c4cf5;
  --accent-hover: #5a3be0;
  --accent-soft: #e9e3ff;
  --accent-2: #ff8fb1;
  --wa: #25d366;
  --wa-hover: #1ebe5b;
  --border: #e7e3f5;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(60, 40, 140, 0.18);
  --shadow-lg: 0 24px 50px -20px rgba(60, 40, 140, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 780px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }

/* ── Navegación ── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo img { height: 40px; width: auto; }
.logo__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: #121833;
}
.logo__text em { font-style: normal; color: #7b5ce0; }

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 14px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--accent); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn--small { padding: 9px 20px; font-size: 0.9rem; }
.btn--large { padding: 17px 32px; font-size: 1.05rem; }

.btn--wa { background: var(--wa); }
.btn--wa:hover { background: var(--wa-hover); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--accent-soft); }

.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; }

.microcopy { font-size: 0.88rem; color: var(--text-muted); margin-top: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ── Hero ── */
.hero { padding: 90px 0 100px; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__visual { position: relative; min-height: 440px; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.blob--1 { width: 320px; height: 320px; background: var(--accent); top: 10px; right: 20px; }
.blob--2 { width: 240px; height: 240px; background: var(--accent-2); bottom: 0; left: 10px; }

.hero__photo,
.about__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}


/* ── Secciones ── */
.section { padding: 100px 0; }
.section--tint { background: var(--bg-tint); }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section__head h2, .about h2, .calendly h2, .final h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section__head p { color: var(--text-muted); font-size: 1.08rem; }

.section__closing {
  text-align: center;
  margin-top: 48px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.center { text-align: center; margin-top: 48px; }

/* Dolores */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pain__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-tint);
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.pain p { color: var(--text-muted); }
.pain strong { color: var(--text); }

/* Antes / después */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.compare__col { border-radius: var(--radius); padding: 32px; }
.compare__col h3 { font-size: 1.15rem; margin-bottom: 18px; }
.compare__col ul { list-style: none; display: grid; gap: 12px; }
.compare__col li { padding-left: 30px; position: relative; }

.compare__col--before { background: #eeecf3; color: #7b7690; }
.compare__col--before li::before { content: "✕"; position: absolute; left: 4px; color: #aaa5bd; }

.compare__col--after {
  background: linear-gradient(150deg, var(--accent), #8a6bff);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.compare__col--after li::before { content: "✓"; position: absolute; left: 4px; font-weight: 800; }

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service--featured { border-color: var(--accent); box-shadow: var(--shadow); }

.service__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.service__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__num {
  position: absolute;
  top: 28px;
  right: 30px;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-soft);
}

.service h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service__lead { color: var(--text-muted); margin-bottom: 20px; }

.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; font-size: 0.95rem; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.service__result {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.service__result strong { color: var(--text); }

.link-arrow {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* Pasos */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.35;
}

.step { text-align: center; position: relative; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
  box-shadow: 0 0 0 8px var(--bg-tint);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Sobre Teresa */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about__visual { position: relative; }

.about__photo { max-width: 420px; object-position: center top; }

.badge {
  z-index: 2;
  position: absolute;
  bottom: -20px;
  right: 10px;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.badge strong { font-size: 2rem; color: var(--accent); line-height: 1; }
.badge span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

.about__text p { color: var(--text-muted); margin-bottom: 16px; }

.trust { list-style: none; display: grid; gap: 10px; margin: 26px 0; }
.trust li {
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.trust strong { color: var(--text); }

.signature {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
  color: var(--accent) !important;
  margin-bottom: 24px !important;
}

/* Calendly */
.calendly {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.calendly p { color: var(--text-muted); }
.calendly__cta { text-align: center; }

/* FAQ */
.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 24px;
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 22px; }

/* CTA final */
.final {
  background: linear-gradient(135deg, var(--accent) 0%, #8a6bff 55%, var(--accent-2) 130%);
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.final__inner { max-width: 760px; }

.final p { opacity: 0.92; font-size: 1.1rem; margin-bottom: 34px; }
.final__alt { margin: 26px 0 0 !important; font-size: 0.98rem !important; }
.final__alt a { color: #fff; font-weight: 700; }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--border); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer__logo { width: 120px; height: auto; }
.footer p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; max-width: 320px; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-top: 40px; }

/* ── Botones flotantes ── */
.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 50;
}

.fab {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.08); }

.fab--wa { width: 62px; height: 62px; background: var(--wa); }
.fab--wa svg { width: 34px; height: 34px; }

.fab--mail { width: 50px; height: 50px; background: var(--accent); }
.fab--mail svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab--wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fab:hover .fab__tip,
.fab:focus-visible .fab__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ══════════════ MOVIMIENTO ══════════════ */
main { overflow-x: clip; }

/* Logo vivo: el símbolo se dibuja y los nodos de la red se encienden en cadena */
.logo-mark { position: relative; display: inline-block; line-height: 0; font-size: 4px; }
.logo-mark img { animation: logo-draw 1.1s cubic-bezier(.6,.1,.2,1) both; transition: transform .4s ease; }
.logo:hover .logo-mark img { transform: rotate(-6deg) scale(1.06); }

@keyframes logo-draw {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

.node {
  position: absolute;
  width: 5%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: node-pulse 3.2s ease-out infinite;
  animation-delay: calc(1.1s + var(--d, 0s));
}
.n1 { left: 58.1%; top: 50%;   width: 2.6%; --d: 0s; }
.n2 { left: 72.2%; top: 47.3%; --d: .15s; }
.n3 { left: 78.8%; top: 36.9%; --d: .3s; }
.n4 { left: 86.5%; top: 23.9%; --d: .45s; }
.n5 { left: 95%;   top: 35.1%; --d: .5s; }
.n6 { left: 87.4%; top: 48.6%; --d: .55s; }

@keyframes node-pulse {
  0%   { background: transparent; box-shadow: 0 0 0 0 rgba(150, 120, 255, 0); }
  6%   { background: #c9b8ff; box-shadow: 0 0 0 .6em rgba(150, 120, 255, .45), 0 0 2em .8em rgba(150, 120, 255, .7); }
  28%  { background: transparent; box-shadow: 0 0 0 2em rgba(150, 120, 255, 0), 0 0 0 0 rgba(150, 120, 255, 0); }
  100% { background: transparent; box-shadow: 0 0 0 0 rgba(150, 120, 255, 0); }
}

.logo-mark--big { display: block; width: 160px; margin: 0 auto 30px; font-size: 10px; animation: float 6s ease-in-out infinite; }
.logo-mark--big img { width: 100%; height: auto; }
.logo-mark--big .node { animation-name: node-pulse-white; }
@keyframes node-pulse-white {
  0%   { background: transparent; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  6%   { background: #fff; box-shadow: 0 0 0 .5em rgba(255, 255, 255, .5), 0 0 2em .8em rgba(255, 255, 255, .8); }
  28%  { background: transparent; box-shadow: 0 0 0 1.6em rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0); }
  100% { background: transparent; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Titular con brillo */
.shine {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #8a6bff, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }

/* Fondos de color que se mueven */
.blob { animation: blob 14s ease-in-out infinite alternate; }
.blob--2 { animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 30px) scale(1.12); }
  100% { transform: translate(30px, -20px) scale(.92); }
}

/* Notificaciones flotantes junto a la foto */
.notif {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-lg);
  line-height: 1.3;
  white-space: nowrap;
  animation: notif-in .7s cubic-bezier(.2, .9, .3, 1.35) both, float 5s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) + .7s);
}
.notif strong { display: block; font-size: .85rem; }
.notif small { color: var(--text-muted); font-size: .72rem; }
.notif__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-tint);
  font-size: 1rem;
}
.notif__icon--ok { background: #dff7e8; color: #1ea85a; font-weight: 800; }

.notif--1 { top: 9%;  left: -6%;  --d: 1.3s; }
.notif--2 { top: 46%; right: -8%; --d: 2s; animation-duration: .7s, 6s; }
.notif--3 { bottom: 9%; left: -2%; --d: 2.7s; animation-duration: .7s, 5.5s; }

@keyframes notif-in {
  from { opacity: 0; transform: translateY(18px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Cinta en movimiento */
.marquee {
  background: linear-gradient(90deg, var(--accent), #8a6bff, var(--accent-2));
  color: #fff;
  padding: 16px 0;
  transform: rotate(-1.5deg);
  margin: 0 -40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 28px;
  white-space: nowrap;
}
.marquee span::after { content: "✦"; margin-left: 56px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Iconos de servicios con vida al pasar el ratón */
.service__icon { transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), background .3s ease; }
.service:hover .service__icon { transform: rotate(-10deg) scale(1.12); background: var(--accent); }
.service:hover .service__icon svg { stroke: #fff; }

@media (max-width: 720px) {
  .notif { padding: 7px 12px 7px 7px; gap: 8px; }
  .notif strong { font-size: .75rem; }
  .notif small { font-size: .65rem; }
  .notif__icon { width: 28px; height: 28px; font-size: .85rem; border-radius: 9px; }
  .notif--1 { left: -2%; }
  .notif--2 { right: -2%; }
  .notif--3 { left: 0; }
  .marquee span { font-size: .9rem; padding: 0 18px; }
  .marquee span::after { margin-left: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark img, .node, .logo-mark--big, .shine, .blob, .notif, .marquee__track { animation: none !important; }
}

/* ── Animación de aparición (solo si hay JavaScript) ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fab--wa::before { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__grid, .about, .calendly { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .hero__visual { min-height: 0; order: -1; }
  .hero__photo { max-width: 300px; }
  .pains, .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .about { gap: 56px; }
  .calendly { text-align: center; padding: 36px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .section { padding: 72px 0; }
  .pains, .services, .compare, .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .fab__tip { display: none; }
  .floating { right: 16px; bottom: 16px; }
  .container { padding: 0 16px; }
}
