/* ============================================================
   DefenderSalud — Design System
   Health-law studio · premium clinic + fintech aesthetic
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Color — brand */
  --blue-deep:    #0B4A8B;
  --blue-health:  #118ACB;
  --turquoise:    #28C7C2;
  --white:        #FFFFFF;
  --gray-light:   #F4F7FA;
  --gray-text:    #475569;
  --gold:         #D8A641;
  --navy-footer:  #071F3D;
  --whatsapp:     #25D366;

  /* Derived tints */
  --blue-deep-90:  #103E73;
  --ink:           #0C1B2E;
  --ink-soft:      #1E3045;
  --line:          #E2EAF2;
  --line-soft:     #EDF2F7;
  --turquoise-08:  rgba(40,199,194,0.08);
  --turquoise-14:  rgba(40,199,194,0.14);
  --health-08:     rgba(17,138,203,0.08);

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing scale (4pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-sm: 12px;  --r-md: 16px;  --r-lg: 22px;  --r-xl: 30px;  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(11,74,139,.06), 0 2px 8px rgba(11,74,139,.05);
  --sh-md: 0 4px 14px rgba(11,74,139,.07), 0 12px 30px rgba(11,74,139,.06);
  --sh-lg: 0 10px 30px rgba(11,74,139,.10), 0 30px 60px rgba(11,74,139,.10);
  --sh-blue: 0 14px 30px rgba(17,138,203,.28);
  --sh-wa: 0 12px 26px rgba(37,211,102,.32);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 76px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-health);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--turquoise), var(--blue-health));
}
.eyebrow.center { justify-content: center; }
.lede { font-size: 19px; color: var(--gray-text); line-height: 1.65; text-wrap: pretty; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-9); position: relative; }
.section-head { max-width: 660px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-block: var(--s-3) var(--s-4); }
.section-head p { font-size: 18px; color: var(--gray-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-health), var(--blue-deep));
  box-shadow: var(--sh-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(17,138,203,.36); }
.btn-wa { color: #fff; background: var(--whatsapp); box-shadow: var(--sh-wa); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(37,211,102,.42); background: #22c35e; }
.btn-ghost {
  color: var(--blue-deep); background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line); box-shadow: var(--sh-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue-health); color: var(--blue-health); }
.btn-lg { font-size: 18px; padding: 19px 36px; }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11,74,139,.06);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand .mark { width: 38px; height: 38px; flex: none; object-fit: contain; display: block; }
.brand .name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--white); transition: color .3s; }
.brand .name b { color: var(--turquoise); font-weight: 700; }
.nav.scrolled .brand .name { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-links a {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--turquoise); border-radius: 2px; transition: width .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--gray-text); }
.nav.scrolled .nav-links a:hover { color: var(--blue-deep); }
.nav-cta { display: flex; align-items: center; gap: var(--s-4); }
.nav .btn-primary { padding: 11px 20px; font-size: 15px; box-shadow: 0 8px 20px rgba(17,138,203,.28); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-burger span { width: 20px; height: 2px; background: currentColor; position: relative; color: #fff; border-radius: 2px; }
.nav-burger span::before, .nav-burger span::after { content:""; position:absolute; left:0; width:20px; height:2px; background: currentColor; border-radius:2px; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav.scrolled .nav-burger span { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: var(--s-9);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 8%, #1aa0d8 0%, transparent 46%),
    radial-gradient(120% 100% at 92% 18%, #1fc7c2 0%, transparent 40%),
    radial-gradient(140% 120% at 80% 100%, #0a3d77 0%, transparent 55%),
    linear-gradient(165deg, #0d5596 0%, #0b4a8b 46%, #093865 100%);
}
.hero-bg .grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 30%, transparent 80%);
}
.hero-bg .glow1, .hero-bg .glow2 {
  position: absolute; border-radius: 50%; filter: blur(60px);
}
.hero-bg .glow1 { width: 420px; height: 420px; left: -120px; top: 8%; background: rgba(40,199,194,.30); }
.hero-bg .glow2 { width: 480px; height: 480px; right: -140px; bottom: -10%; background: rgba(17,138,203,.40); }
.hero-bg .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,31,61,.30), rgba(7,31,61,.46)); }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: var(--s-5);
  padding: 9px 16px 9px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(40,199,194,.28); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: clamp(38px, 6.2vw, 70px); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance; margin-bottom: var(--s-5);
}
.hero h1 .accent { color: var(--turquoise); }
.hero .sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.86); max-width: 640px; margin: 0 auto var(--s-7); line-height: 1.6; text-wrap: pretty; }
.hero-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

.hero-stats {
  position: relative; z-index: 2; margin-top: var(--s-8);
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  gap: 0; padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.18);
  max-width: 660px; width: 100%;
}
.hero-stats .stat { padding: 0 var(--s-6); position: relative; flex: 1; text-align: center; }
.hero-stats .stat + .stat::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px; background: rgba(255,255,255,.16); }
.hero-stats .num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; line-height: 1; }
.hero-stats .num .u { color: var(--turquoise); }
.hero-stats .lbl { font-size: 13.5px; color: rgba(255,255,255,.74); margin-top: 6px; font-weight: 500; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: grid; place-items: center; gap: 6px; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content:""; position:absolute; left:50%; top:7px; transform:translateX(-50%); width:3px; height:7px; border-radius:2px; background:#fff; animation: scrollcue 1.6s ease-in-out infinite; }
@keyframes scrollcue { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,9px)} }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios { background: var(--gray-light); }
.svc-grid {
  margin-top: var(--s-8);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: var(--sh-sm);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, var(--turquoise), var(--blue-health));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ico {
  width: 56px; height: 56px; border-radius: var(--r-md); margin-bottom: var(--s-4);
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--health-08), var(--turquoise-14));
  color: var(--blue-health); transition: background .3s, color .3s, transform .3s;
}
.svc-ico svg { width: 28px; height: 28px; }
.svc-card:hover .svc-ico { background: linear-gradient(145deg, var(--blue-health), var(--blue-deep)); color: #fff; transform: scale(1.04); }
.svc-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.svc-card p { font-size: 14.5px; color: var(--gray-text); line-height: 1.5; }

/* ============================================================
   BENEFICIOS
   ============================================================ */
.beneficios { background: #fff; }
.ben-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); align-items: center; }
.ben-copy h2 { font-size: clamp(30px, 3.6vw, 44px); margin-block: var(--s-3) var(--s-4); }
.ben-copy .lede { margin-bottom: var(--s-5); }
.ben-list { display: grid; gap: 14px; }
.ben-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-soft); font-size: 15.5px; }
.ben-list .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--turquoise-14); color: var(--blue-health); }
.ben-list .tick svg { width: 14px; height: 14px; }
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.ben-card {
  background: var(--gray-light); border-radius: var(--r-lg); padding: var(--s-5);
  border-left: 4px solid var(--turquoise);
  box-shadow: var(--sh-sm); transition: transform .28s, box-shadow .28s, background .28s;
}
.ben-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); background: #fff; }
.ben-card .b-ico { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: #fff; color: var(--blue-deep); box-shadow: var(--sh-sm); margin-bottom: var(--s-4); }
.ben-card .b-ico svg { width: 26px; height: 26px; }
.ben-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.ben-card p { font-size: 14px; color: var(--gray-text); line-height: 1.5; }

/* ============================================================
   PROCESO
   ============================================================ */
.proceso { background: var(--blue-deep); color: #fff; overflow: hidden; position: relative; }
.proceso::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.6;
  background: radial-gradient(60% 60% at 88% 0%, rgba(40,199,194,.18), transparent 60%),
              radial-gradient(50% 60% at 0% 100%, rgba(17,138,203,.28), transparent 60%);
}
.proceso .section-head h2, .proceso .section-head { color: #fff; }
.proceso .section-head p { color: rgba(255,255,255,.74); }
.proceso .eyebrow { color: var(--turquoise); }
.proceso .eyebrow::before { background: var(--turquoise); }
.steps { position: relative; z-index: 1; margin-top: var(--s-8); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); max-width: 760px; margin-inline: auto; }
.steps::before {
  content:""; position:absolute; top: 30px; height: 2px; z-index: 0;
  left: calc((100% - 2 * var(--s-5)) / 6);
  right: calc((100% - 2 * var(--s-5)) / 6);
  background: linear-gradient(90deg, var(--turquoise), rgba(255,255,255,.18));
}
.step { position: relative; z-index: 1; text-align: center; }
.step .num {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); color: rgba(255,255,255,.85);
  margin-bottom: var(--s-5); margin-inline: auto; transition: all .3s;
}
.step.active .num {
  background: linear-gradient(145deg, var(--turquoise), var(--blue-health));
  border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(40,199,194,.18), 0 14px 30px rgba(40,199,194,.3);
}
.step .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--turquoise); margin-bottom: 6px; text-transform: uppercase; }
.step.active .tag { color: var(--turquoise); }
.step h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: rgba(255,255,255,.72); line-height: 1.55; max-width: 230px; margin-inline: auto; }
.step .badge-active { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700; color: #fff; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(40,199,194,.2); border: 1px solid rgba(40,199,194,.45); }
.step .badge-active .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios { background: var(--gray-light); }
.tst-grid { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.tst-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: var(--s-4);
  transition: transform .28s, box-shadow .28s;
}
.tst-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.tst-quote { font-size: 16px; line-height: 1.62; color: var(--ink-soft); font-style: italic; flex: 1; }
.tst-result { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--blue-deep); padding: 8px 14px; border-radius: var(--r-pill); background: var(--turquoise-14); }
.tst-result svg { width: 15px; height: 15px; color: var(--blue-health); }
.tst-person { display: flex; align-items: center; gap: 12px; padding-top: var(--s-4); border-top: 1px solid var(--line-soft); }
.tst-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(140deg, var(--blue-health), var(--blue-deep)); }
.tst-person .pn { font-weight: 700; font-size: 15px; color: var(--ink); }
.tst-person .pc { font-size: 13px; color: var(--gray-text); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: var(--s-9); }
.cta-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(100% 120% at 0% 0%, #1aa0d8 0%, transparent 50%),
    radial-gradient(90% 120% at 100% 100%, #28c7c2 0%, transparent 45%),
    linear-gradient(120deg, var(--blue-deep), var(--blue-health));
}
.cta-bg .grid { position:absolute; inset:0; opacity:.4; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px,transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.025em; color: #fff; text-wrap: balance; margin-bottom: var(--s-4); }
.cta .sub { font-size: 19px; color: rgba(255,255,255,.88); margin-bottom: var(--s-7); }
.cta .btn-wa { box-shadow: 0 16px 36px rgba(37,211,102,.4); }
.cta-trust { margin-top: var(--s-5); display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: rgba(255,255,255,.82); font-weight: 500; }
.cta-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-footer); color: rgba(255,255,255,.6); padding-block: var(--s-7); }
.footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5); }
.footer .brand .name { color: #fff; font-size: 19px; }
.footer-meta { font-size: 13.5px; line-height: 1.7; text-align: center; }
.footer-meta a:hover { color: var(--turquoise); }
.footer-soc { display: flex; gap: 10px; justify-self: end; }
.footer-soc a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); transition: all .25s; }
.footer-soc a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.footer-soc svg { width: 18px; height: 18px; }

/* ============================================================
   MODAL — Consulta gratuita
   ============================================================ */
.modal-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(7,31,61,.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: var(--s-5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; width: 100%; max-width: 520px; border-radius: var(--r-xl);
  box-shadow: 0 40px 80px rgba(7,31,61,.4); overflow: hidden;
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-height: 92vh; overflow-y: auto;
}
.modal-scrim.open .modal { transform: none; }
.modal-head { padding: var(--s-6) var(--s-6) var(--s-4); position: relative; background: linear-gradient(135deg, var(--blue-deep), var(--blue-health)); color: #fff; }
.modal-head .eyebrow { color: rgba(255,255,255,.85); }
.modal-head .eyebrow::before { background: var(--turquoise); }
.modal-head h3 { font-family: var(--font-display); font-size: 25px; font-weight: 700; margin: 10px 0 4px; }
.modal-head p { font-size: 14.5px; color: rgba(255,255,255,.82); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; transition: background .2s; }
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-body { padding: var(--s-6); display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--gray-light); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-health); background: #fff; box-shadow: 0 0 0 4px var(--health-08); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e2553e; background: #fff5f3; }
.field .err { font-size: 12.5px; color: #d23b22; font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.modal .submit-note { font-size: 12.5px; color: var(--gray-text); text-align: center; }
.modal-success { padding: var(--s-8) var(--s-6); text-align: center; display: none; }
.modal-success.show { display: block; }
.modal-success .check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto var(--s-5); display: grid; place-items: center; background: var(--turquoise-14); color: var(--turquoise); }
.modal-success .check svg { width: 40px; height: 40px; }
.modal-success h3 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.modal-success p { color: var(--gray-text); font-size: 15px; max-width: 360px; margin: 0 auto var(--s-5); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: var(--sh-wa); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--whatsapp); animation: waring 2s ease-out infinite; }
@keyframes waring { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(1.5);opacity:0} }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; } .reveal.d4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } .scroll-cue .mouse::after, .wa-float::after { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .ben-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn-primary span { display: none; }
  .nav-burger { display: flex; }
  .section { padding-block: var(--s-8); }
  .tst-grid { grid-template-columns: 1fr; }
  .hero-stats .stat { padding: 12px var(--s-5); }
  .hero-stats .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: var(--s-4); }
  .svc-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; justify-items: center; }
  .footer-soc { justify-self: center; }
}
