/* ============================================================
   FisioMed Plus — Landing premium
   Design system + componentes
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca - violetas */
  --violet-900: #241247;
  --violet-800: #2e1a5e;
  --violet-700: #4521a6;
  --violet-600: #5b2bc9;
  --violet-500: #7c3aed;
  --violet-400: #9a63f0;
  --orchid-300: #b98dee;
  --lav-200: #e4daf7;
  --lav-100: #efe9fb;
  --lav-50: #f7f4fe;

  /* Acentos */
  --teal-600: #0e9384;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --gold: #c9a86a;
  --wa: #25d366;
  --wa-dark: #1ab94f;

  /* Texto */
  --ink: #1b1730;
  --ink-soft: #3a3357;
  --muted: #6e6688;
  --white: #ffffff;

  /* Superficies */
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(69, 33, 166, 0.12);

  /* Gradientes */
  --grad-brand: linear-gradient(120deg, #4521a6 0%, #7c3aed 45%, #14b8a6 115%);
  --grad-brand-soft: linear-gradient(120deg, #5b2bc9, #9a63f0);
  --grad-text: linear-gradient(100deg, #4521a6 0%, #7c3aed 55%, #14b8a6 110%);

  /* Sombras (tintadas violeta) */
  --shadow-sm: 0 4px 14px -6px rgba(36, 18, 71, 0.25);
  --shadow-md: 0 18px 40px -22px rgba(69, 33, 166, 0.45);
  --shadow-lg: 0 40px 80px -32px rgba(69, 33, 166, 0.45);
  --shadow-glass: 0 20px 50px -24px rgba(46, 26, 94, 0.4);

  /* Radios */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Tipografia */
  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --t-eyebrow: 0.8rem;
  --t-body: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --t-hero: clamp(2.6rem, 1.5rem + 4.8vw, 5.2rem);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 3rem + 6vw, 8.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--lav-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fondo atmosferico ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(185, 141, 238, 0.35), transparent 60%),
    radial-gradient(55% 50% at 92% 12%, rgba(45, 212, 191, 0.22), transparent 60%),
    radial-gradient(70% 60% at 80% 95%, rgba(124, 58, 237, 0.18), transparent 65%),
    linear-gradient(180deg, #f9f6ff 0%, #f3eefc 45%, #f6f2fe 100%);
}
.bg-blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}
.bg-blob.b1 { width: 42vw; height: 42vw; left: -10vw; top: 8vh; background: radial-gradient(circle, rgba(154, 99, 240, 0.5), transparent 70%); }
.bg-blob.b2 { width: 34vw; height: 34vw; right: -8vw; top: 40vh; background: radial-gradient(circle, rgba(45, 212, 191, 0.4), transparent 70%); }
.bg-grain { display: none; } /* desactivado por performance (el blend del grano encarecia el scroll) */
@keyframes float1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 5vh) scale(1.12); } }
@keyframes float2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-5vw, -4vh) scale(1.1); } }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-brand-soft); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); margin: 0.6rem 0 0.8rem; }
h3 { font-size: var(--t-h3); line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--violet-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: var(--r-pill); font-weight: 700; font-size: 0.98rem;
  color: var(--white); background: var(--b-bg); position: relative; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(-1px); }
.btn--brand { background: var(--grad-brand-soft); }
.btn--wa { background: var(--wa); box-shadow: 0 18px 36px -18px rgba(37, 211, 102, 0.7); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { background: rgba(255, 255, 255, 0.82); color: var(--violet-700); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.9); }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-glass);
  border-radius: var(--r-lg);
}

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1rem 0; transition: padding 0.4s var(--ease); }
.nav {
  display: flex; align-items: center; gap: 1.4rem; justify-content: space-between;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled { padding: 0.5rem 0; }
.site-header.scrolled .nav { background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-md); }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.18rem; }
.brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; flex-shrink: 0; }
.footer__brand .brand img { height: 52px; max-width: 200px; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-brand-soft); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); flex: none; }
.brand__mark svg { width: 22px; height: 22px; }
.brand b { font-weight: 600; }
.brand .plus { color: var(--violet-500); font-style: italic; }
.nav__links { display: flex; align-items: center; gap: 1.55rem; }
.nav__links a { font-size: 0.94rem; font-weight: 600; color: var(--ink-soft); transition: color 0.25s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--grad-brand-soft); border-radius: 2px; transition: width 0.3s var(--ease); }
.nav__links a:hover { color: var(--violet-700); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.7); place-items: center; box-shadow: var(--shadow-sm); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; } .nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(7.5rem, 13vh, 10rem) 0 var(--section-y); position: relative; overflow: hidden; }
.hero__watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 65%; max-width: 720px; opacity: 0.18; pointer-events: none; user-select: none; z-index: 0; filter: saturate(0.3) brightness(1.2); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: var(--t-hero); margin: 1.1rem 0 1.2rem; }
.hero__sub { max-width: 33ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.9rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--violet-700); background: rgba(255,255,255,0.65); padding: 0.5rem 0.9rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,0.7); }
.chip svg { width: 16px; height: 16px; color: var(--teal-600); }
.hero__visual { position: relative; }
.hero__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--lav-100); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(36,18,71,0.28)); }
.hero__badge {
  position: absolute; left: -1.2rem; bottom: 1.8rem; padding: 0.9rem 1.1rem; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 0.75rem; background: var(--glass-strong);
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.8);
}
.hero__badge .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-brand-soft); display: grid; place-items: center; color: #fff; flex: none; }
.hero__badge small { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.hero__badge strong { font-size: 0.95rem; color: var(--ink); }
.hero__halo { position: absolute; inset: -8% -6% -6% -8%; z-index: -1; background: var(--grad-brand); border-radius: var(--r-xl); filter: blur(8px); opacity: 0.25; transform: rotate(-2deg); }

/* ---------- Logo (hero + footer) ---------- */
.hero__logo { width: min(340px, 82%); height: auto; margin-bottom: 1.5rem; }
.footer__logo { display: inline-block; margin-bottom: 1rem; }
.footer__logo img { width: min(260px, 72%); height: auto; }

/* ---------- Trust bar ---------- */
.trust { padding-bottom: var(--section-y); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); }
.trust__item { text-align: center; padding: 0.4rem 1rem; }
.trust__item svg { width: 30px; height: 30px; margin: 0 auto 0.6rem; color: var(--violet-500); }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.trust__item span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Especialidades intro ---------- */
.specs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.spec-pillar { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 0.8rem; position: relative; overflow: hidden; }
.spec-pillar__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.spec-pillar.fisio .spec-pillar__icon { background: linear-gradient(135deg, var(--violet-600), var(--violet-400)); }
.spec-pillar.medic .spec-pillar__icon { background: linear-gradient(135deg, var(--teal-600), var(--teal-400)); }
.spec-pillar__icon svg { width: 30px; height: 30px; }
.spec-pillar h3 { margin-top: 0.3rem; }
.spec-pillar .who { font-size: 0.9rem; font-weight: 700; color: var(--violet-600); }
.spec-pillar.medic .who { color: var(--teal-600); }

/* ---------- Servicios ---------- */
.service { position: relative; }
.service + .service { margin-top: var(--section-y); }
.service__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.service.reverse .service__grid { grid-template-columns: 1.15fr 0.85fr; }
.service.reverse .service__media-wrap { order: -1; }
.service__media-wrap { position: relative; }
.service__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--lav-100); }
.service.medic .service__media { aspect-ratio: 4/3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__pro { position: absolute; right: -0.9rem; bottom: 1.4rem; padding: 0.8rem 1rem; border-radius: var(--r-md); background: var(--glass-strong); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.7rem; border: 1px solid rgba(255,255,255,0.8); }
.service.reverse .service__pro { right: auto; left: -0.9rem; }
.service__pro .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; flex: none; }
.service__pro small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.service__pro strong { font-size: 0.92rem; color: var(--ink); }
.service__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.6rem 0; }
.svc-card { padding: 1.1rem 1.15rem; border-radius: var(--r-md); background: rgba(255,255,255,0.74); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 0.7rem; background: var(--lav-100); color: var(--violet-600); }
.service.medic .svc-card__ic { background: rgba(20,184,166,0.12); color: var(--teal-600); }
.svc-card__ic svg { width: 22px; height: 22px; }
.svc-card h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.svc-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.service__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Equipo ---------- */
.team__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.member { padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; gap: 1.3rem; align-items: flex-start; }
.member__photo { width: 92px; height: 92px; border-radius: 22px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: #fff; position: relative; box-shadow: var(--shadow-md); }
.member.fisio .member__photo { background: linear-gradient(140deg, var(--violet-700), var(--orchid-300)); }
.member.medic .member__photo { background: linear-gradient(140deg, var(--teal-600), var(--teal-400)); }
.member h3 { font-size: 1.25rem; }
.member .role { font-size: 0.86rem; font-weight: 700; color: var(--violet-600); margin-bottom: 0.6rem; }
.member.medic .role { color: var(--teal-600); }
.member p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: step; }
.step { padding: clamp(1.5rem, 3vw, 2.1rem); position: relative; }
.step__n { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.7rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--muted); }
.step__ic { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: 12px; background: var(--lav-100); color: var(--violet-600); display: grid; place-items: center; }
.step__ic svg { width: 22px; height: 22px; }

/* ---------- Testimonios ---------- */
.tst__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.tst { padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: 1rem; }
.tst__stars { display: flex; gap: 0.15rem; color: var(--gold); }
.tst__stars svg { width: 18px; height: 18px; }
.tst p { font-size: 0.96rem; color: var(--ink-soft); font-style: italic; }
.tst__who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.tst__who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand-soft); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); flex: none; }
.tst__who strong { display: block; font-size: 0.9rem; color: var(--ink); }
.tst__who span { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-radius: var(--r-md); margin-bottom: 0.8rem; overflow: hidden; background: rgba(255,255,255,0.6); border: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; text-align: left; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.faq__q .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--lav-100); color: var(--violet-600); display: grid; place-items: center; flex: none; transition: transform 0.35s var(--ease), background 0.35s; }
.faq__q .ic svg { width: 18px; height: 18px; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); background: var(--violet-500); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding: 0 1.4rem 1.25rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA final ---------- */
.cta-final { padding: var(--section-y) 0; }
.cta-final__box { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.6rem, 6vw, 5rem); text-align: center; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-lg); }
.cta-final__box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(255,255,255,0.25), transparent 60%); }
.cta-final h2 { color: #fff; position: relative; }
.cta-final p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0.8rem auto 2rem; position: relative; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; position: relative; }
.cta-final .btn--ghost { background: rgba(255,255,255,0.16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.cta-final .btn--ghost:hover { background: rgba(255,255,255,0.28); }

/* ---------- Footer ---------- */
.footer { padding: var(--section-y) 0 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer h4 { font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet-600); margin-bottom: 1rem; }
.footer__col p, .footer__col a { font-size: 0.92rem; color: var(--muted); display: block; margin-bottom: 0.55rem; }
.footer__col a:hover { color: var(--violet-700); }
.footer__brand .brand { margin-bottom: 0.9rem; }
.footer__brand p { max-width: 34ch; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.7); display: grid; place-items: center; color: var(--violet-600); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.footer__social a:hover { transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.footer__bottom .disclaimer { max-width: 60ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-fab { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.8rem; }
.wa-fab__btn { width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 36px -12px rgba(37,211,102,0.7); transition: transform 0.35s var(--ease); position: relative; }
.wa-fab__btn svg { width: 32px; height: 32px; }
.wa-fab__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
.wa-fab__btn:hover { transform: scale(1.07); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-menu { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.8rem; border-radius: var(--r-md); width: 270px; opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); transform-origin: bottom right; }
.wa-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wa-menu__title { font-size: 0.78rem; font-weight: 700; color: var(--muted); padding: 0.2rem 0.4rem 0.3rem; }
.wa-opt { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.7rem; border-radius: var(--r-sm); transition: background 0.25s; text-align: left; }
.wa-opt:hover { background: var(--lav-100); }
.wa-opt .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display); flex: none; }
.wa-opt.fisio .av { background: linear-gradient(140deg, var(--violet-700), var(--orchid-300)); }
.wa-opt.medic .av { background: linear-gradient(140deg, var(--teal-600), var(--teal-400)); }
.wa-opt strong { display: block; font-size: 0.9rem; color: var(--ink); }
.wa-opt span { font-size: 0.76rem; color: var(--muted); }

.to-top { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80; width: 48px; height: 48px; border-radius: 50%; background: var(--glass-strong); box-shadow: var(--shadow-md); color: var(--violet-700); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 30px; height: 30px; border: 1.5px solid var(--violet-500); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 999; transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s; }
.cursor.hover { width: 54px; height: 54px; background: rgba(124,58,237,0.12); border-color: var(--violet-400); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Ambiance band ---------- */
.ambiance { position: relative; min-height: clamp(320px, 52vh, 520px); display: grid; place-items: center; text-align: center; overflow: hidden; color: #fff; margin: clamp(1rem, 3vw, 2.5rem) 0; }
.ambiance__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ambiance::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,18,71,0.62), rgba(14,147,132,0.34)); }
.ambiance__inner { position: relative; z-index: 1; max-width: 640px; padding: clamp(2rem, 6vw, 4rem); }
.ambiance__inner .eyebrow { color: #fff; }
.ambiance__inner .eyebrow::before { background: #fff; }
.ambiance h2 { color: #fff; }
.ambiance p { color: rgba(255,255,255,0.92); max-width: 46ch; margin: 0.6rem auto 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .service__grid, .service.reverse .service__grid { grid-template-columns: 1fr; }
  .service.reverse .service__media-wrap { order: 0; }
  .service__media-wrap { max-width: 480px; margin-inline: auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn span.lbl { display: none; }
  .nav__toggle { display: grid; }
  .nav.open .nav__links { display: flex; position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.4rem 1.6rem; background: rgba(255,255,255,0.95); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
  .nav { position: relative; }
  .specs__cards, .team__cards { grid-template-columns: 1fr; }
  .steps, .tst__track { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}
@media (max-width: 560px) {
  .service__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .member { flex-direction: column; }
  .hero__cta .btn { flex: 1 1 100%; }
  .cursor { display: none; }
}

/* ---------- Ubicacion ---------- */
.location__wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.location__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 1.25rem;
}
.location__row {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.location__row svg { flex-shrink: 0; color: var(--violet-600); margin-top: .15rem; }
.location__row div { display: flex; flex-direction: column; gap: .2rem; }
.location__row strong { font-size: .9rem; color: var(--ink); }
.location__row span { font-size: .85rem; color: var(--muted); }
.location__map { border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-md); }
.location__map iframe { display: block; }
@media (max-width: 768px) {
  .location__wrap { grid-template-columns: 1fr; }
}

/* ---------- Trust bar — shimmer top border ---------- */
@keyframes shimmer-line {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.trust__inner { position: relative; overflow: hidden; }
.trust__inner::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #7c3aed 25%, #14b8a6 50%, #b98dee 75%, transparent 100%);
  background-size: 200% auto;
  animation: shimmer-line 3.5s linear infinite;
}

/* ---------- Step numbers — glow pulse ---------- */
@keyframes step-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(124,58,237,0.15)); }
  50%       { filter: drop-shadow(0 0 16px rgba(124,58,237,0.55)) drop-shadow(0 0 32px rgba(20,184,166,0.2)); }
}
.step__n { animation: step-pulse 3s ease-in-out infinite; }
.step:nth-child(2) .step__n { animation-delay: 1s; }
.step:nth-child(3) .step__n { animation-delay: 2s; }

/* ---------- Glass cards — shine sweep on hover ---------- */
.spec-pillar, .member { position: relative; overflow: hidden; }
.spec-pillar::after, .member::after, .step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-100%); transition: transform 0.7s ease;
}
.spec-pillar:hover::after, .member:hover::after, .step:hover::after { transform: translateX(100%); }

/* ---------- Ubicacion — ambient atmosphere ---------- */
#ubicacion { position: relative; }
#ubicacion::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(69,33,166,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(20,184,166,0.06) 0%, transparent 55%);
}
#ubicacion .container { position: relative; z-index: 1; }

/* ---------- Como funciona — teal ambient glow ---------- */
#como-funciona { position: relative; }
#como-funciona::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 90%, rgba(20,184,166,0.07) 0%, transparent 60%);
}
#como-funciona .container { position: relative; z-index: 1; }

/* ---------- Aurora shader (Hero) ---------- */
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}
.hero__aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__aurora-inner {
  position: absolute; inset: -10px;
  background-image:
    repeating-linear-gradient(100deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.45) 7%, transparent 10%, transparent 12%, rgba(0,0,0,0.45) 16%),
    repeating-linear-gradient(100deg, #4521a6 10%, #b98dee 15%, #7c3aed 20%, #c4b5fd 25%, #14b8a6 30%);
  background-size: 300% 200%;
  background-position: 50% 50%;
  filter: blur(10px);
  opacity: 0.52;
  animation: aurora 60s linear infinite;
  will-change: background-position;
  -webkit-mask-image: radial-gradient(ellipse at 78% 8%, black 10%, transparent 68%);
  mask-image: radial-gradient(ellipse at 78% 8%, black 10%, transparent 68%);
}
.hero__aurora-inner::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(100deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.45) 7%, transparent 10%, transparent 12%, rgba(0,0,0,0.45) 16%),
    repeating-linear-gradient(100deg, #4521a6 10%, #b98dee 15%, #7c3aed 20%, #c4b5fd 25%, #14b8a6 30%);
  background-size: 200% 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
  animation-delay: -30s;
}

/* ---------- Particles shader (Hero) ---------- */
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; display: block; }

/* ---------- Gradient Mesh shader (CTA) ---------- */
#cta-mesh { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; opacity: 0.6; mix-blend-mode: overlay; }
#cta-mesh canvas { display: block; width: 100% !important; height: 100% !important; }
.cta-final__box::before { z-index: 1; }
.cta-final h2, .cta-final p { position: relative; z-index: 2; }
.cta-final__btns { position: relative; z-index: 2; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bg-blob { animation: none; }
  .cursor { display: none; }
}
