/* ================= TOKENS ================= */

:root{
  --paper: #ffffff;
  --paper-warm: #e6f6f3;
  --mist-1: #e6f6f3;
  --mist-2: #c9efe9;

  /* Sampled from LOGO MULTICLINICAS / COLOR — the gradient of the pulse mark,
     left (light) to right (deep), plus the grey of the "clínicas" wordmark. */
  --brand-light: #a4ede2;
  --brand-mid: #4fafb3;
  --brand-deep: #2898a2;
  --brand-grey: #a7a7a7;
  --brand-gradient: linear-gradient(105deg, var(--brand-light) 0%, var(--brand-mid) 45%, var(--brand-deep) 100%);

  --ink: #07090c;
  --ink-deep: #152636;

  --text: #151d23;
  --text-muted: #5a6b70;
  --text-soft: #99a8a4;
  --border: #dfe7e6;
  --border-soft: #eef4f3;

  --teal-950: #07090c;
  --teal-900: #151d23;
  --teal-800: #0a3541;
  --teal-700: #0f4855;
  --teal-600: #155f6b;
  --teal-500: #1c7f8b;
  --teal-50: #e6f6f3;

  --accent: #0f4855;
  --accent-hover: #0a3541;

  --success: #2c8a7a;

  --shadow-sm: 0 1px 2px rgba(7,9,12,.04), 0 1px 1px rgba(7,9,12,.03);
  --shadow-md: 0 2px 6px rgba(7,9,12,.05), 0 8px 24px rgba(7,9,12,.04);
  --shadow-lg: 0 10px 30px rgba(7,9,12,.08), 0 30px 60px rgba(7,9,12,.06);
  --shadow-card: 0 1px 1px rgba(7,9,12,.03), 0 4px 14px rgba(7,9,12,.05);

  --font-serif: 'Gabarito', system-ui, -apple-system, sans-serif;
  --font-sans: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ================= RESET ================= */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","ss02";
}
img,svg{ display: block; max-width: 100%; }
button{ font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.cursor-default{ cursor: default; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5{ margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p{ margin: 0; }
ul{ margin: 0; padding: 0; list-style: none; }

/* ================= LAYOUT ================= */
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================= NAV ================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(251,250,246,.72);
  border-bottom: 1px solid rgba(11,19,17,.04);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo{
  display: flex;
  align-items: center;
}
.logo img{ display: block; width: auto; }
.logo .logo-mini{ display: none; }

/* Header takes the secundario lockup (mark + wordmark, no tagline — it would be
   illegible at this height); the footer has room for the full primario. Below the
   nav's own 760px breakpoint both fall back to the submark. */
.nav .logo-full{ height: 44px; }
.nav .logo-mini{ height: 30px; }
.foot-brand .logo-full{ height: 46px; }
.foot-brand .logo-mini{ height: 32px; }

@media (max-width: 760px){
  .logo .logo-full{ display: none; }
  .logo .logo-mini{ display: block; }
}
.nav-links{
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a{ position: relative; transition: color .2s ease; }
.nav-links a:hover{ color: var(--ink); }
.nav-links a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--teal-700);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after{ transform: scaleX(1); }
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--teal-500);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 18px rgba(28,127,139,.22);
}
.btn-primary:hover{ background: var(--teal-600); transform: translateY(-1px); }
.btn-light{
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(11,19,17,.06), 0 6px 18px rgba(11,19,17,.05);
}
.btn-light:hover{ transform: translateY(-1px); }
.btn-ghost{
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); }


.nav-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= HERO ================= */
.hero{
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(79, 140, 151, .08), transparent 60%),
    radial-gradient(700px 600px at 10% 100%, rgba(38, 68, 65, .06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist-1) 100%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px){
  .hero{ padding: 40px 0 72px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 48px; }
}
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 500;
  margin-bottom: 24px;
}
.kicker::before{
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}
.hero h1{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 96;
}
.hero h1 em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.hero-lede{
  font-size: 18px;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-cta{
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.hero-visual{
  position: relative;
  height: 560px;
}
@media (max-width: 980px){ .hero-visual{ height: 480px; } }
@media (max-width: 560px){ .hero-visual{ height: 440px; } }

.hero-dash{
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0deg);
}
.hero-dash::before{
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11,19,17,.05);
  border-radius: 20px;
  pointer-events: none;
}

.hero-float{
  position: absolute;
  right: -24px;
  bottom: 36px;
  width: 260px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11,19,17,.04);
  z-index: 2;
}
@media (max-width: 560px){
  .hero-float{ right: 0; width: 220px; }
}
.hero-float-label{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.hero-float-value{
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}
.hero-float-trend{
  font-size: 12px;
  color: var(--success);
  display: flex; align-items: center; gap: 4px;
}

/* ================= SCHEDULE MOCKUP (hero + agenda) ================= */
.sched{
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sched-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.sched-title{
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.sched-title span.dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(44,138,122,.22);
}
.sched-tabs{
  display: flex; gap: 4px;
  background: var(--paper-warm);
  padding: 3px;
  border-radius: 8px;
  font-size: 12px;
}
.sched-tab{ padding: 5px 10px; border-radius: 6px; color: var(--text-muted); font-weight: 500; }
.sched-tab.active{ background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.sched-grid{
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  font-size: 11px;
  flex: 1;
  gap: 0;
}
.sched-grid > .day-col{
  border-left: 1px solid var(--border-soft);
  padding: 0 6px;
  display: flex; flex-direction: column;
  gap: 5px;
  padding-top: 28px;
  position: relative;
}
.sched-grid > .day-col::before{
  content: attr(data-day);
  position: absolute;
  top: 4px; left: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.sched-grid > .day-col::after{
  content: attr(data-date);
  position: absolute;
  top: 4px; right: 6px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
}
.day-col.today::after{
  color: var(--teal-700);
}
.day-col.today::before{
  color: var(--teal-700);
}
.time-col{
  display: flex; flex-direction: column;
  font-size: 10px;
  color: var(--text-soft);
  padding-top: 28px;
  gap: 20px;
}
.time-col span{ display: block; height: 16px; }

.appt{
  background: #eef5ed;
  color: #1a5c42;
  border-left: 3px solid #4ca97b;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(11,19,17,.02);
}
.appt b{ display: block; font-weight: 600; letter-spacing: -0.01em; }
.appt .sp{ font-size: 9px; opacity: .75; font-weight: 500; }

.appt.teal{ background: #e6f6f3; color: #0f4855; border-color: #1c7f8b; }
.appt.sand{ background: #f5eede; color: #7a5b1d; border-color: #c9a961; }
.appt.rose{ background: #f4e3e6; color: #843c48; border-color: #c07684; }
.appt.slate{ background: #e8edf2; color: #152636; border-color: #1c7f8b; }
.appt.mint{ background: #d7f2ee; color: #0f4855; border-color: #1c7f8b; }

/* ================= STATS BAR ================= */
.stats{
  background: var(--ink-deep);
  color: #fff;
}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 760px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}
.stat{
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat:last-child{ border-right: 0; }
@media (max-width: 760px){
  .stat:nth-child(2n){ border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2){ border-bottom: 1px solid rgba(255,255,255,.07); }
}
.stat-num{
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
  font-variation-settings: "opsz" 96;
}
.stat-num em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.stat-label{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ================= SECTION: FRICCIONES ================= */
.section{
  padding: clamp(72px, 11vw, 128px) 0;
}
.section-head{
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 20px;
  font-weight: 500;
}
.eyebrow::before, .eyebrow::after{
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5;
}
.section-title{
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 96;
}
.section-title em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.section-lede{
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

.fcard{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fcard:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.fcard-icon{
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mist-1);
  display: grid; place-items: center;
  color: var(--teal-700);
  margin-bottom: 36px;
}
.fcard h3{
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.fcard p{
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
}
.fcard ul{
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.fcard li{
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.fcard li svg{
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--teal-700);
}
.fcard.featured{
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
  position: relative;
}
.fcard.featured::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 200px at 80% 0%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(300px 200px at 20% 100%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}
.fcard.featured h3{ color: #fff; }
.fcard.featured p{ color: rgba(255,255,255,.78); }
.fcard.featured .fcard-icon{
  background: rgba(255,255,255,.12);
  color: #fff;
}
.fcard.featured ul{ border-top-color: rgba(255,255,255,.14); }
.fcard.featured li{ color: rgba(255,255,255,.92); }
.fcard.featured li svg{ color: var(--teal-500); }

/* ================= FEATURE DEEP SECTIONS ================= */
.feature{
  padding: clamp(64px, 10vw, 120px) 0;
}
.feature-alt{
  background: var(--paper-warm);
}
.feature-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.feature-grid.reverse{
  grid-template-columns: 1.1fr 1fr;
}
.feature-grid.reverse .feature-copy{ order: 2; }
.feature-grid.reverse .feature-visual{ order: 1; }
@media (max-width: 900px){
  .feature-grid, .feature-grid.reverse{ grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-copy{ order: 1; }
  .feature-grid.reverse .feature-visual{ order: 2; }
}
.feature-copy .eyebrow{ margin-bottom: 18px; }
.feature-copy h2{
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 96;
}
.feature-copy h2 em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.feature-copy .lede{
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 460px;
}
.feature-list{
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 36px;
}
.feature-list li{
  display: flex; gap: 14px;
  padding: 0;
}
.feature-list .check{
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list .check svg{ width: 12px; height: 12px; }
.feature-list strong{
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.feature-list p{
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.feature-link{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-700);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.feature-link svg{
  transition: transform .2s ease;
}
.feature-link:hover svg{ transform: translateX(3px); }

/* ================= UI MOCKUPS ================= */
.mock{
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(11,19,17,.04);
  position: relative;
}
.mock-browser{
  height: 30px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-browser .dot{ width: 10px; height: 10px; border-radius: 50%; background: #dcdcd4; }

/* --- Historia Clínica Mockup --- */
.hc{
  padding: 22px 24px 24px;
}
.hc-head{
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 22px;
}
.hc-title{
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.hc-sub{
  font-size: 13px;
  color: var(--text-muted);
}
.hc-btn{
  background: var(--teal-700);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  pointer-events: none;
  cursor: default;
}
.hc-filters{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  background: var(--paper-warm);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.hc-filter{
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-soft);
  display: flex; align-items: center; gap: 6px;
}
.hc-filter svg{ width: 12px; height: 12px; opacity: .6; }

.hc-table{
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.hc-table th{
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
}
.hc-table td{
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.hc-table tr:last-child td{ border-bottom: 0; }
.hc-table td.muted{ color: var(--text-muted); font-size: 12.5px; }
.pill{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.pill.ok{ background: #d8eee5; color: #1c5544; }
.pill.warn{ background: #fdf2d7; color: #7a5a16; }
.pill.cancel{ background: #f9e1e4; color: #8e2d3b; }
.pill.done{ background: #e6f6f3; color: #0f4855; }
.hc-action{
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 500;
}

/* --- Caja Mockup --- */
.caja{
  padding: 22px 24px 24px;
}
.caja-head{
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
}
.caja-title{
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.caja-banner{
  background: #e9f6ed;
  border: 1px solid #c9e6d2;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.caja-banner-left{ display: flex; align-items: center; gap: 12px; }
.caja-banner-dot{
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--success); color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.caja-banner b{ font-weight: 600; font-size: 14px; color: #1a5c42; display: block; }
.caja-banner span{ font-size: 12px; color: #3a7a58; }
.caja-banner .caja-btn{
  background: #fff;
  border: 1px solid #c9e6d2;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #1a5c42;
  display: flex; align-items: center; gap: 6px;
}
.caja-stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.caja-stat{
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 12px 14px;
}
.caja-stat-label{
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.caja-stat-val{
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.caja-stat.hl .caja-stat-val{ color: var(--success); }

.caja-total{
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.caja-total::after{
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  pointer-events: none;
}
.caja-total-label{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 6px;
}
.caja-total-val{
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 96;
}
.caja-total-sub{
  font-size: 12px;
  opacity: .8;
}

.caja-list-title{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.caja-row{
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.caja-row:last-child{ border-bottom: 0; }
.caja-row-name b{ display: block; font-weight: 600; color: var(--ink); }
.caja-row-name span{ font-size: 11px; color: var(--text-muted); }
.caja-row-amt{ text-align: right; }
.caja-row-amt b{ display: block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.caja-row-amt .tag{
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--mist-1);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Precios Mockup --- */
.precios{
  padding: 22px 24px 24px;
}
.precios .precios-h{
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}
.precios-sub{
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.precios-group{
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.precios-group-title{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.precios-group-title .ic{
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.precio-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px dashed var(--border-soft);
  font-size: 13px;
}
.precio-row:first-of-type{ border-top: 0; }
.precio-row .tag-sm{
  background: #eef5ed;
  color: #1a5c42;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.precio-row .name b{ display: block; font-weight: 600; color: var(--ink); }
.precio-row .name span{ font-size: 11px; color: var(--text-muted); }
.precio-row .amt{ text-align: right; }
.precio-row .amt b{ display: block; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.precio-row .amt .disc{
  font-size: 10px;
  color: var(--teal-700);
  font-weight: 600;
}

/* --- Métricas Dashboard Mockup --- */
.metrics{
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, #fafaf7 0%, #fff 100%);
}
.metrics-head{
  margin-bottom: 16px;
}
.metrics-title{
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.metrics-sub{
  font-size: 12px;
  color: var(--text-muted);
}
.metrics-kpis{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.kpi{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
}
.kpi-label{
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.kpi-val{
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-val.teal{ color: var(--teal-700); }
.kpi-trend{
  font-size: 10px;
  color: var(--success);
  display: inline-flex; align-items: center; gap: 3px;
}

.metrics-charts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chart-card{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.chart-head{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.chart-title{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.chart-period{
  font-size: 10px;
  color: var(--text-soft);
  background: var(--paper-warm);
  padding: 3px 8px;
  border-radius: 999px;
}
.chart-bars{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  height: 100px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.chart-bars::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 20px;
  height: 1px;
  background: var(--border-soft);
}
.chart-bar{
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 8px;
  margin-bottom: 20px;
}
.chart-bar.alt{
  background: linear-gradient(180deg, #c9a961, #9e7f3f);
}
.chart-bar::after{
  content: attr(data-label);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Turnos Mockup --- */
.turnos{
  padding: 18px 20px;
}
.turnos-head{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.turnos-title{
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.turnos-count{
  font-size: 11px;
  color: var(--text-soft);
  background: var(--paper-warm);
  padding: 3px 8px;
  border-radius: 999px;
}
.turno-row{
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
}
.turno-row:last-child{ border-bottom: 0; }
.turno-time{
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.turno-info b{ display: block; font-weight: 600; color: var(--ink); font-size: 12.5px; }
.turno-info span{ font-size: 10.5px; color: var(--text-muted); }


/* ================= CRM (conversaciones) ================= */
/* Its own full-bleed band: this is a module suite, not another feature row.
   Teal gradient rather than --ink-deep so it does not read as a third near-black
   band alongside .stats and .ecosystem. Both stops clear 4.5:1 with white. */
.crm{
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 100%);
  color: #fff;
  padding: clamp(72px, 11vw, 128px) 0;
  position: relative;
  overflow: hidden;
}
.crm::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 10%, rgba(164,237,226,.20), transparent 60%);
  pointer-events: none;
}
.crm .wrap{ position: relative; z-index: 1; }
.crm-head{ max-width: 720px; }
.crm-head h2{ color: #fff; }
.crm-head h2 em{ color: var(--brand-light); font-style: normal; }
.crm-head .lede{ color: rgba(255,255,255,.82); }
.eyebrow-light{ color: var(--brand-light) !important; }
.eyebrow-light::before, .eyebrow-light::after{ background: rgba(255,255,255,.35) !important; }

/* the CRM's own navigation, as tabs that swap the screenshot below */
.crm-tabs{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 28px 0 22px;
}
.crm-tab{
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.crm-tab:hover{ background: rgba(255,255,255,.14); color: #fff; }
.crm-tab.active{
  color: var(--teal-700);
  background: #fff;
  border-color: #fff;
  font-weight: 600;
}
.crm-tab:focus-visible{ outline: 2px solid var(--brand-light); outline-offset: 2px; }

/* one frame, four stacked screenshots — all cropped to the same 880x500 window
   so every module reads at the same density and nothing jumps between tabs */
.crm-main{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
@media (max-width: 900px){ .crm-main{ grid-template-columns: 1fr; gap: 36px; } }

.crm-shot{
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 30px 60px -14px rgba(7,9,12,.48),
    0 12px 24px -10px rgba(7,9,12,.34);
}
.crm-shot .mock-browser{
  height: 34px;
  background: linear-gradient(180deg, #fbfdfc 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid rgba(11,19,17,.07);
  gap: 6px;
}
.crm-title{
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--teal-700);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 12px;
}
.crm-frame{
  position: relative;
  aspect-ratio: 880 / 500;
}
.crm-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .22s ease;
}
.crm-img.is-on{ opacity: 1; }
@media (prefers-reduced-motion: reduce){ .crm-img{ transition: none; } }

/* On narrow screens the shot goes portrait and crops to the left of each window —
   which is where the meaningful column lives in all four. */
@media (max-width: 760px){
  .crm-frame{ aspect-ratio: 4 / 5; }
  .crm-img{ object-position: left top; }
}

.crm-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.crm-list strong{
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  margin-bottom: 6px;
  color: #fff;
}
.crm-list p{ margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.6; }

/* ================= ECOSYSTEM (DARK) ================= */
.ecosystem{
  background: var(--ink-deep);
  color: #fff;
  padding: clamp(72px, 11vw, 128px) 0;
  position: relative;
  overflow: hidden;
}
.ecosystem::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(79, 140, 151, .12), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(38, 68, 65, .08), transparent 60%);
  pointer-events: none;
}
.ecosystem .wrap{ position: relative; }
.ecosystem-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px){ .ecosystem-grid{ grid-template-columns: 1fr; } }
.ecosystem h2{
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
  font-variation-settings: "opsz" 96;
}
.ecosystem h2 em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.ecosystem p.lede{
  color: rgba(255,255,255,.7);
  font-size: 17px;
  max-width: 440px;
  margin-bottom: 40px;
}
.spec-pills{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.spec-pill{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px 20px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  cursor: pointer;
}
.spec-pill:hover{
  background: rgba(79, 140, 151, .08);
  border-color: rgba(79, 140, 151, .35);
  transform: translateY(-3px);
}
.spec-icon{
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--teal-500);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.spec-pill-title{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.spec-pill p{
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

/* ================= FINAL CTA ================= */
.final-cta{
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
  color: #fff;
  padding: clamp(72px, 10vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(79, 140, 151, .18), transparent 60%);
  pointer-events: none;
}
.final-cta-inner{
  text-align: center;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2{
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #fff;
  font-variation-settings: "opsz" 96;
}
.final-cta h2 em{
  font-style: normal;
  font-weight: 500;
  font-size: 1.15em;
  color: var(--teal-500);
  letter-spacing: -0.04em;
}
.final-cta p{
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.final-cta .ctas{
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ================= FOOTER ================= */
footer{
  background: var(--paper);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px){
  .foot-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
}
.foot-brand p{
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  margin-top: 16px;
  line-height: 1.55;
}
.foot-col .foot-h{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.foot-col ul{ display: flex; flex-direction: column; gap: 11px; }
.foot-col a{
  color: var(--text);
  font-size: 14px;
  transition: color .2s ease;
}
.foot-col a:hover{ color: var(--teal-700); }

.foot-bottom{
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: var(--text-soft);
}
.foot-powered{
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-soft);
}
.foot-powered a{
  color: var(--ink);
  transition: color .2s ease;
}
.foot-powered a:hover{ color: var(--teal-700); }

/* ================= REVEAL / ANIMATIONS ================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale{
  opacity: 0;
  transform: translateY(28px) scale(.96);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter 1s cubic-bezier(.2,.7,.2,1);
}
.reveal-scale.in{ opacity: 1; transform: none; filter: none; }
.reveal.d1, .reveal-scale.d1{ transition-delay: .08s; }
.reveal.d2, .reveal-scale.d2{ transition-delay: .16s; }
.reveal.d3, .reveal-scale.d3{ transition-delay: .24s; }
.reveal.d4, .reveal-scale.d4{ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-scale{ opacity: 1; transform: none; filter: none; transition: none; }
}

/* ================= RESPONSIVE TWEAKS ================= */
@media (max-width: 560px){
  .hero-dash{ font-size: 90%; }
  .sched-grid{ grid-template-columns: 32px repeat(5, 1fr); }
  .caja-stats{ grid-template-columns: repeat(2, 1fr); }
  .metrics-kpis{ grid-template-columns: repeat(2, 1fr); }
  .metrics-charts{ grid-template-columns: 1fr; }
  .hc-filters{ grid-template-columns: 1fr 1fr; }
  .hc-table td.hide-m, .hc-table th.hide-m{ display: none; }
  .spec-pills{ grid-template-columns: 1fr; }
  .fcard{ padding: 28px 24px; }
}

.cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  display: flex; justify-content: center; pointer-events: none;
}
.cookie-inner{
  pointer-events: auto; width: min(100%, 880px);
  display: flex; align-items: center; gap: 24px;
  background: var(--teal-800); color: #ffffff;
  border-radius: 16px; padding: 18px 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.cookie-text{ flex: 1 1 auto; min-width: 0; }
.cookie-title{ display: block; font-family: 'Gabarito', sans-serif; font-size: 16px; margin-bottom: 4px; }
.cookie-body{ margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); }
.cookie-link{ color: var(--brand-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions{ display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn{ padding: 10px 18px; font-size: 14px; }
.cookie-reject{ color: #ffffff; border: 1px solid rgba(255,255,255,.4); }
@media (max-width: 48em){
  .cookie-inner{ flex-direction: column; align-items: stretch; }
  .cookie-actions{ justify-content: flex-end; }
}

.legal-bar{ border-bottom: 1px solid var(--border); background: var(--paper); }
.legal-bar-inner{ display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.legal-bar .logo-full{ height: 36px; width: auto; display: block; }
.legal-back{ font-size: 14px; color: var(--text-muted); text-decoration: none; }
.legal-back:hover{ color: var(--teal-700); }
.legal-wrap{ max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal-doc h1{ font-family: 'Gabarito', sans-serif; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; color: var(--ink-deep); margin: 0 0 8px; }
.legal-date{ font-size: 14px; color: var(--text-soft); margin: 0 0 32px; }
.legal-doc section{ margin-top: 32px; }
.legal-doc h2{ font-family: 'Gabarito', sans-serif; font-size: 20px; color: var(--ink-deep); margin: 0 0 12px; }
.legal-doc p, .legal-doc li{ font-size: 15px; line-height: 1.8; color: var(--text); }
.legal-doc p{ margin: 0 0 12px; }
.legal-doc ul{ margin: 0 0 12px; padding-left: 22px; }
.legal-doc li{ margin-bottom: 8px; }

/* ================= NAV MENUS ================= */
.nav-links{ align-items: center; gap: 28px; }
.nav-group{ position: relative; }
.nav-top{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.nav-top svg{ opacity: .6; transition: transform .2s ease; }
.nav-links a[aria-current="page"]{ color: var(--ink); }
.nav-links .nav-drop a::after{ display: none; }
.nav-drop{
  position: absolute; top: calc(100% + 10px); left: -16px;
  min-width: 270px;
  display: grid; gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* bridges the gap so the pointer can travel from the label into the menu */
.nav-drop::before{ content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group:hover:not(.is-dismissed) .nav-drop, .nav-group:focus-within:not(.is-dismissed) .nav-drop{ opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-top svg, .nav-group:focus-within .nav-top svg{ transform: rotate(180deg); }
.nav-drop a{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 14px; color: var(--text);
}
.nav-drop a:hover, .nav-drop a[aria-current="page"]{ background: var(--mist-1); color: var(--teal-700); }
.nav-drop-icon{
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--mist-1); color: var(--teal-700);
  display: grid; place-items: center;
}
.nav-toggle{
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span{ width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle:focus-visible{ outline: 2px solid var(--teal-500); outline-offset: 2px; }

@media (max-width: 960px){
  .nav-toggle{ display: inline-flex; }
  .nav-links{
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 20px;
    max-height: calc(100vh - 80px); overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-links{ display: flex; }
  .nav-links > a, .nav-top{
    display: flex; padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 15px; color: var(--ink);
  }
  .nav-links a::after{ display: none; }
  .nav-top svg{ display: none; }
  .nav-drop{
    position: static; min-width: 0;
    grid-template-columns: 1fr 1fr;
    padding: 6px 0 10px;
    border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-drop::before{ display: none; }
  .nav.is-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 520px){
  .nav-drop{ grid-template-columns: 1fr; }
  .nav-cta{ padding: 10px 16px; font-size: 13px; }
}

/* ================= HOME ================= */
.home .hero h1{ font-size: clamp(40px, 5.4vw, 72px); }
.home .hero-lede{ max-width: 520px; }
.hero-lede strong{ color: var(--text); font-weight: 600; }
.feature-h{
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.feature-h em{ font-style: normal; font-weight: 500; font-size: 1.15em; color: var(--teal-500); letter-spacing: -0.04em; }
.crm-head .feature-h{ color: #fff; }
.crm-head .feature-h em{ color: var(--brand-light); }
.crm-head .lede{ margin-bottom: 28px; font-size: 17px; }
.crm-main .crm-tabs{ margin-top: 0; }
.mock-stack{ display: grid; gap: 18px; }
.modules-foot{ padding: 0 0 clamp(64px, 9vw, 112px); text-align: center; }
.eco-head{ max-width: 720px; margin-bottom: 48px; }
.ecosystem .eco-head p.lede{ margin-bottom: 0; max-width: 560px; }
.spec-links{ grid-template-columns: repeat(3, 1fr); }
.spec-links li{ display: flex; }
.spec-links .spec-pill{ display: block; width: 100%; }
.spec-links .spec-icon{ margin-bottom: 18px; }
.spec-links .spec-pill-title{ display: block; font-size: 12px; margin-bottom: 8px; }
.spec-links .spec-pill p{ font-size: 14px; color: rgba(255,255,255,.62); }
.spec-links .spec-pill:focus-visible{ outline: 2px solid var(--teal-500); outline-offset: 3px; }
@media (max-width: 900px){ .spec-links{ grid-template-columns: repeat(2, 1fr); } }
.ecosystem .block-cta{ margin-top: 40px; }
.why-card{ padding: 28px 24px; }
.why-card p{ margin: 0; font-size: 15px; color: var(--text-muted); }
.why-card strong{ display: block; margin-bottom: 6px; font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.check-badge{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.final-cta-inner.wide{ max-width: 1040px; }
.steps{
  counter-reset: step;
  list-style: none; padding: 0;
  margin: 36px 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  text-align: left;
}
.steps li{
  counter-increment: step;
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86);
}
.steps li::before{
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--font-serif); font-size: 28px; line-height: 1;
  color: var(--brand-light);
}
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

/* ================= INNER PAGES ================= */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 36px 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(79, 140, 151, .08), transparent 60%),
    radial-gradient(700px 600px at 10% 100%, rgba(38, 68, 65, .06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist-1) 100%);
}
.page-hero-grid{ display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.page-hero.has-visual .page-hero-grid{ grid-template-columns: 1.05fr 1fr; }
.page-hero:not(.has-visual) .page-hero-copy{ max-width: 820px; }
@media (max-width: 980px){ .page-hero.has-visual .page-hero-grid{ grid-template-columns: 1fr; gap: 44px; } }
.page-hero h1{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}
.page-hero h1 em{ font-style: normal; font-weight: 500; font-size: 1.12em; color: var(--teal-500); letter-spacing: -0.04em; }
.page-hero .hero-lede{ max-width: 580px; }
.page-hero-visual{ position: relative; }
.page-hero-visual .stage{ position: relative; }
.page-hero-visual .hero-dash{ position: relative; height: 460px; }
@media (max-width: 560px){ .page-hero-visual .hero-dash{ height: 420px; } }

.crumbs ol{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 28px; padding: 0; list-style: none;
  font-size: 13px; color: var(--text-soft);
}
.crumbs li + li::before{ content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a{ color: var(--text-muted); transition: color .2s ease; }
.crumbs a:hover{ color: var(--teal-700); }
.crumbs [aria-current]{ color: var(--teal-700); }

.block{ padding: clamp(64px, 9vw, 112px) 0; }
.block-alt{ background: var(--paper-warm); }
.block:not(.block-alt) + .block:not(.block-alt){ padding-top: 0; }
.block:not(.block-alt) + .block:not(.block-alt) > .wrap{
  border-top: 1px solid var(--border-soft);
  padding-top: clamp(56px, 7vw, 88px);
}
.block-title{
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.feature-copy .block-title{ margin-bottom: 28px; }
.block-head{ max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.block-head.center{ text-align: center; margin-left: auto; margin-right: auto; }
.block-head p{ margin-top: 16px; font-size: 17px; color: var(--text-muted); }
.prose-grid{
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px){ .prose-grid{ grid-template-columns: 1fr; gap: 24px; } }
.prose p{ font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.prose p + p{ margin-top: 16px; }
.prose strong, .fcard p strong, .section-lede strong{ color: var(--text); font-weight: 600; }
.prose p a, .lede a, .section-lede a, .fcard p a, .hero-lede a{
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: rgba(15,72,85,.28);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.prose p a:hover, .lede a:hover, .section-lede a:hover, .fcard p a:hover{ text-decoration-color: currentColor; }
.block-cta{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.modules-foot .block-cta, .block-head.center + .card-grid + .block-cta{ justify-content: center; }
.feature-list p strong{ color: var(--ink); font-weight: 600; }
.feature-list p{ font-size: 15.5px; }

.card-grid{ display: grid; gap: 20px; }
.card-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .card-grid.cols-3, .card-grid.cols-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px){ .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4{ grid-template-columns: 1fr; } }
.card-grid .fcard{ padding: 32px 28px; }
.card-grid .fcard-icon{ margin-bottom: 24px; }
.card-grid .fcard h3{ font-size: 21px; line-height: 1.2; }
.card-grid .fcard p{ margin-bottom: 0; }
.link-card .feature-link{ margin-top: 20px; }
.link-card:hover h3{ color: var(--teal-700); }
.link-card:focus-visible{ outline: 2px solid var(--teal-500); outline-offset: 3px; }

.band{
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) 0;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 100%);
}
.band::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 85% 10%, rgba(164,237,226,.20), transparent 60%);
  pointer-events: none;
}
.band-inner{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px){ .band-inner{ grid-template-columns: 1fr; gap: 24px; } }
.band .block-title{ color: #fff; }
.band .prose p{ color: rgba(255,255,255,.86); }
.band .prose strong{ color: #fff; }
.band .prose p a{ color: #fff; text-decoration-color: rgba(255,255,255,.5); }

.faq{ display: grid; gap: 12px; }
.faq-item{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open]{ border-color: rgba(28,127,139,.35); box-shadow: var(--shadow-card); }
.faq-item summary{
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary:focus-visible{ outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: var(--radius-md); }
.faq-item summary h3{ font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.faq-plus{ position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--teal-50); }
.faq-plus::before, .faq-plus::after{
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 2px; margin: -1px 0 0 -5px;
  border-radius: 2px; background: var(--teal-700);
  transition: transform .2s ease;
}
.faq-plus::after{ transform: rotate(90deg); }
.faq-item[open] .faq-plus::after{ transform: rotate(0deg); }
.faq-item > p{ padding: 0 22px 22px; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.crm-head .lede a{ color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.foot-brand .foot-mail{ margin-top: 20px; }
.foot-mail a{ color: var(--teal-700); font-size: 14px; }
.foot-mail a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.foot-social{ display: flex; gap: 10px; margin-top: 18px; }
.foot-social a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.foot-social a:hover{ color: var(--teal-700); border-color: var(--teal-700); }

/* ================= DEMO FORM ================= */
.demo-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px){ .demo-grid{ grid-template-columns: 1fr; } }
.demo-list{ display: grid; gap: 14px; margin-top: 8px; }
.demo-list li{ display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.demo-list-icon{
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: #fff; color: var(--teal-700);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.lead-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.5vw, 36px);
}
.lead-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-full{ grid-column: 1 / -1; }
@media (max-width: 560px){ .lead-grid{ grid-template-columns: 1fr; } }
.lead-field{ display: flex; flex-direction: column; gap: 7px; }
.lead-field > span{ font-size: 13px; font-weight: 500; color: var(--text); }
.lead-field > span em{ font-style: normal; font-weight: 400; color: var(--text-soft); }
.lead-field input, .lead-field select, .lead-field textarea{
  width: 100%;
  font: 400 15px/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-field textarea{ resize: vertical; min-height: 92px; }
.lead-field input::placeholder, .lead-field textarea::placeholder{ color: var(--text-soft); }
.lead-field select{
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6b70' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus{
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(28,127,139,.15);
}
.lead-field.invalid input, .lead-field.invalid select, .lead-field.invalid textarea{ border-color: #c8364d; }
.lead-trap{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-submit{ width: 100%; justify-content: center; margin-top: 22px; padding: 14px 22px; font-size: 15px; }
.lead-submit[disabled]{ opacity: .6; cursor: wait; transform: none; }
.lead-status{ min-height: 1.4em; margin-top: 12px; font-size: 14px; text-align: center; color: var(--text-muted); }
.lead-status.ok{ color: var(--success); font-weight: 500; }
.lead-status.err{ color: #c8364d; }
.lead-legal{ margin-top: 6px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--text-soft); }
.lead-legal a{ color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.lead-captcha{ display: flex; justify-content: center; margin-top: 18px; }
.lead-captcha:empty{ display: none; }

/* ================= ELEGANCE PASS =================
   Motion, depth and light on top of the existing palette. Everything here is
   additive: it overrides earlier rules by order, and every animation is switched
   off under prefers-reduced-motion at the bottom of the block. */

:root{
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.3,.64,1);
  --text-gradient: linear-gradient(100deg, var(--teal-500) 0%, var(--brand-mid) 55%, var(--teal-700) 100%);
  --text-gradient-light: linear-gradient(100deg, #d7fbf4 0%, var(--brand-light) 45%, #7fd9d2 100%);
  --glow: rgba(79,175,179,.32);
}
html{ scroll-behavior: smooth; }
/* the glows behind the visuals reach past the viewport on tablets; clip without creating a scroll container */
main{ overflow-x: clip; }
::selection{ background: rgba(79,175,179,.28); color: var(--ink); }

/* --- scroll progress + sticky nav --- */
.progress{
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--brand-gradient);
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}
.nav{
  background: rgba(255,255,255,.72);
  transition: box-shadow .35s ease, background .35s ease;
}
.nav-inner{ transition: padding .35s ease; }
.nav.scrolled{
  background: rgba(255,255,255,.88);
  box-shadow: 0 1px 0 rgba(11,19,17,.05), 0 12px 32px -16px rgba(7,9,12,.16);
}
.nav.scrolled .nav-inner{ padding: 12px 0; }
.logo img{ transition: transform .4s var(--ease-spring); }
.logo:hover img{ transform: translateY(-1px); }

/* --- buttons --- */
.btn{
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease, background .3s ease;
}
.btn svg{ transition: transform .3s var(--ease-spring); }
.btn:hover svg{ transform: translateX(3px); }
.btn:active{ transform: translateY(0) scale(.98); }
.btn-primary{
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 55%, var(--teal-700) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px -6px rgba(28,127,139,.45);
}
.btn-primary::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.26) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s ease;
}
.btn-primary:hover{
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 40%, var(--teal-700) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 32px -10px rgba(28,127,139,.6);
}
.btn-primary:hover::after{ transform: translateX(130%); }
.btn-light:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(7,9,12,.3); }
.feature-link{ position: relative; }
.feature-link::after{
  content: ""; position: absolute; left: 0; right: 22px; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.feature-link:hover::after{ transform: scaleX(1); }

/* --- gradient accents in headings --- */
.stagger em .w, .section-title em, .feature-h em, .block-title em{
  background: var(--text-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.crm-head .feature-h em, .ecosystem h2 em, .final-cta h2 em, .band .block-title em, .stat-num em{
  background: var(--text-gradient-light);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* --- staggered headline --- */
.stagger .w{
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(1.5deg);
  transform-origin: 0 100%;
  padding-bottom: .12em; margin-bottom: -.12em;
  animation: word-in .9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 55ms + .12s);
}
.stagger em{ color: inherit; }
@keyframes word-in{ to{ opacity: 1; transform: none; } }

/* --- mesh gradient behind the heroes --- */
.hero, .page-hero{ isolation: isolate; }
.hero > .wrap, .page-hero > .wrap{ position: relative; z-index: 1; }
.mesh{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh span{
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: .6;
  animation: drift 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.mesh span:nth-child(1){ width: 560px; height: 560px; right: -140px; top: -200px; background: radial-gradient(circle, rgba(164,237,226,.95), rgba(164,237,226,.4) 35%, rgba(164,237,226,0) 70%); }
.mesh span:nth-child(2){ width: 480px; height: 480px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(79,175,179,.5), rgba(79,175,179,0) 70%); animation-duration: 23s; animation-delay: -7s; }
.mesh span:nth-child(3){ width: 380px; height: 380px; left: 38%; top: 28%; background: radial-gradient(circle, rgba(201,239,233,.9), rgba(201,239,233,0) 70%); animation-duration: 27s; animation-delay: -13s; }
@keyframes drift{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(70px, 50px, 0) scale(1.18); }
}
.hero::after, .page-hero::after{
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,72,85,.12) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 10%, transparent 70%);
}

.is-visible .mesh span, .is-visible .aurora span{ animation-play-state: running; will-change: transform; }

/* --- hero --- */
.hero-trust{
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 28px;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust li{ display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg{ color: var(--teal-500); }
.hero-visual{ perspective: 1400px; isolation: isolate; }
.hero-visual::before{
  content: ""; position: absolute; inset: 12% -8% -10% -8%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(40px);
}
.hero-visual > .stage{ position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-dash{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 40px 80px -28px rgba(15,72,85,.38),
    0 12px 32px -12px rgba(7,9,12,.14);
}
.hero-float{
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 28px 56px -18px rgba(15,72,85,.38);
  animation: floaty 7s ease-in-out infinite;
}
.hero-float-wa{
  right: auto; top: auto; left: -36px; bottom: 112px;
  width: 262px; padding: 14px 16px;
  animation-delay: -3.2s;
}
@keyframes floaty{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
.wa-row{ display: flex; gap: 12px; align-items: flex-start; }
.wa-icon{
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(37,211,102,.18);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70%{ box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-row b{ display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.wa-row span{ font-size: 12px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 560px){ .hero-float-wa{ display: none; } }

/* appointments in the schedule mock pop in once the mock is on screen */
.appt{ opacity: 0; transform: translateY(8px) scale(.96); }
.in .appt{ animation: pop .55s var(--ease-spring) forwards; animation-delay: calc(.55s + var(--d, 0s)); }
.day-col:nth-child(3) .appt:nth-child(1){ --d: 0s; }
.day-col:nth-child(3) .appt:nth-child(2){ --d: .32s; }
.day-col:nth-child(4) .appt:nth-child(1){ --d: .08s; }
.day-col:nth-child(4) .appt:nth-child(2){ --d: .4s; }
.day-col:nth-child(4) .appt:nth-child(3){ --d: .72s; }
.day-col:nth-child(5) .appt:nth-child(1){ --d: .16s; }
.day-col:nth-child(5) .appt:nth-child(2){ --d: .48s; }
.day-col:nth-child(6) .appt:nth-child(1){ --d: .24s; }
.day-col:nth-child(6) .appt:nth-child(2){ --d: .56s; }
@keyframes pop{ to{ opacity: 1; transform: none; } }

/* --- stats band --- */
.stats{ position: relative; overflow: hidden; }
.stats::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164,237,226,.7), transparent);
}
.stats::after{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 50% 130%, rgba(79,175,179,.22), transparent 70%);
}
.stat{ position: relative; z-index: 1; }
.stat-num{ font-variant-numeric: tabular-nums; }
.count{ display: inline-block; min-width: 1ch; }

/* --- product visuals: depth + tilt --- */
.feature-visual, .page-hero-visual{ position: relative; perspective: 1400px; isolation: isolate; }
.feature-visual::before, .page-hero-visual::before{
  content: ""; position: absolute; inset: 14% -6% -8% -6%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(40px); opacity: .8;
}
.tilt > *, .tilt-self{
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s ease;
  transform-style: preserve-3d;
}
.mock{
  border-radius: 18px;
  border: 1px solid rgba(15,72,85,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 32px 64px -26px rgba(15,72,85,.36),
    0 12px 28px -12px rgba(7,9,12,.12);
}
.mock-browser .dot{ background: #d8e3e0; }
.mock-browser .dot:first-child{ background: #ffb4a8; }
.mock-browser .dot:nth-child(2){ background: #ffd98a; }
.mock-browser .dot:nth-child(3){ background: #a4ede2; }
.crm-shot .dot:first-child{ background: #ffb4a8; }
.crm-shot .dot:nth-child(2){ background: #ffd98a; }
.crm-shot .dot:nth-child(3){ background: #a4ede2; }

/* rows, bars and cards inside the mocks animate in with the mock */
.turno-row, .hc-table tbody tr{ opacity: 0; transform: translateX(-10px); }
.in .turno-row, .in .hc-table tbody tr{ animation: slide-in .6s var(--ease-out) forwards; animation-delay: calc(.4s + var(--n, 0) * 90ms); }
.turno-row:nth-child(3), .hc-table tbody tr:nth-child(2){ --n: 1; }
.turno-row:nth-child(4), .hc-table tbody tr:nth-child(3){ --n: 2; }
.turno-row:nth-child(5), .hc-table tbody tr:nth-child(4){ --n: 3; }
.turno-row:nth-child(6), .hc-table tbody tr:nth-child(5){ --n: 4; }
.turno-row:nth-child(7){ --n: 5; }
@keyframes slide-in{ to{ opacity: 1; transform: none; } }
.chart-bar{ transform: scaleY(0); transform-origin: bottom; transition: transform 1.1s var(--ease-out); }
.in .chart-bar{ transform: scaleY(1); }
.chart-bar:nth-child(2){ transition-delay: .08s; }
.chart-bar:nth-child(3){ transition-delay: .16s; }
.chart-bar:nth-child(4){ transition-delay: .24s; }
.chart-bar:nth-child(5){ transition-delay: .32s; }
.kpi, .caja-stat, .precio-row{ opacity: 0; transform: translateY(10px); }
.in .kpi, .in .caja-stat, .in .precio-row{ animation: pop .6s var(--ease-out) forwards; animation-delay: calc(.35s + var(--n, 0) * 90ms); }
.kpi:nth-child(2), .caja-stat:nth-child(2), .precio-row:nth-child(3){ --n: 1; }
.kpi:nth-child(3), .caja-stat:nth-child(3), .precio-row:nth-child(4){ --n: 2; }
.kpi:nth-child(4), .caja-stat:nth-child(4), .precio-row:nth-child(5){ --n: 3; }
.caja-total{ box-shadow: 0 16px 32px -16px rgba(15,72,85,.5); }
.hc-btn, .caja-banner-dot{ box-shadow: 0 6px 14px -6px rgba(15,72,85,.5); }

/* --- spotlight cards --- */
.spot{ position: relative; overflow: hidden; }
.spot::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(79,175,179,.16), transparent 62%);
  opacity: 0; transition: opacity .4s ease;
}
.spot:hover::after{ opacity: 1; }
.spec-pill.spot::after{ background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(164,237,226,.16), transparent 62%); }
.fcard{ transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.fcard.reveal{ transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.fcard.reveal.in{ transition: opacity .9s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.fcard:hover{
  transform: translateY(-5px);
  border-color: rgba(79,175,179,.35);
  box-shadow: 0 24px 48px -22px rgba(15,72,85,.32), 0 2px 6px rgba(7,9,12,.04);
}
.fcard-icon, .check-badge, .spec-icon, .demo-list-icon, .nav-drop-icon{
  transition: transform .4s var(--ease-spring), background .3s ease, color .3s ease;
}
.fcard:hover .fcard-icon, .why-card:hover .check-badge{
  transform: scale(1.08) rotate(-5deg);
  background: var(--teal-500); color: #fff;
}
.spec-pill:hover .spec-icon{ transform: scale(1.08) rotate(-5deg); background: rgba(164,237,226,.18); color: var(--brand-light); }
.nav-drop a:hover .nav-drop-icon{ transform: scale(1.08); }
.spec-pill{ transition: background .35s ease, border-color .35s ease, transform .4s var(--ease-out), box-shadow .4s ease; }
.spec-pill:hover{ transform: translateY(-5px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }

/* --- aurora behind the dark bands --- */
.crm, .band, .ecosystem, .final-cta{ isolation: isolate; }
.crm > .wrap, .band > .wrap, .ecosystem > .wrap, .final-cta > .wrap{ position: relative; z-index: 1; }
.aurora{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span{
  position: absolute;
  width: 60vw; max-width: 760px; aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(48px); opacity: .5;
  animation: aurora 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.aurora span:nth-child(1){ left: -12%; top: -35%; background: radial-gradient(circle, rgba(164,237,226,.6), rgba(164,237,226,.25) 35%, transparent 65%); }
.aurora span:nth-child(2){ right: -16%; bottom: -45%; background: radial-gradient(circle, rgba(79,175,179,.7), rgba(79,175,179,.3) 35%, transparent 65%); animation-duration: 28s; animation-delay: -10s; }
.aurora.dim span{ opacity: .32; }
@keyframes aurora{
  from{ transform: translate3d(0,0,0) rotate(0deg); }
  to{ transform: translate3d(9%, 12%, 0) rotate(25deg); }
}

/* --- CRM band --- */
.crm-tab{ transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s var(--ease-spring), box-shadow .3s ease; }
.crm-tab:hover{ transform: translateY(-1px); }
.crm-tab.active{ box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.crm-img{ transform: scale(1.03); transition: opacity .4s ease, transform .9s var(--ease-out); }
.crm-img.is-on{ transform: scale(1); }
.crm-shot{ box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 40px 80px -24px rgba(7,9,12,.6), 0 14px 28px -12px rgba(7,9,12,.4); }
.crm-list li{ padding-left: 18px; border-left: 2px solid rgba(255,255,255,.14); transition: border-color .3s ease, padding-left .3s var(--ease-out); }
.crm-list li:hover{ border-color: var(--brand-light); padding-left: 24px; }

/* --- ECG trace in the heroes --- */
.hero-ecg{
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 0;
  width: 100%; height: 120px;
  pointer-events: none;
}
/* room for the trace under the copy */
.hero{ padding-bottom: 200px; }
.page-hero{ padding-bottom: clamp(150px, 14vw, 190px); }
@media (max-width: 980px){ .hero{ padding-bottom: 180px; } }
.hero-ecg path{ fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base{ stroke: rgba(79,175,179,.22); stroke-width: 1.5; }
.ecg-pulse{
  stroke: var(--brand-mid); stroke-width: 2.2;
  stroke-dasharray: .14 .86;
  animation: ecg 4.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(79,175,179,.55));
}
@keyframes ecg{ from{ stroke-dashoffset: 1; } to{ stroke-dashoffset: 0; } }
.demo-hero .hero-ecg{ height: 100px; bottom: 24px; }

/* --- scattered clinic icons --- */
.section, .feature, .block, .stats, .crm, .ecosystem, .final-cta, .band, .hero, .page-hero{ position: relative; }
.scatter{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.scatter ~ .wrap{ position: relative; z-index: 1; }
.scatter .sc{
  position: absolute;
  color: var(--teal-700); opacity: .12;
  transform: rotate(var(--r));
  animation: sc-float var(--d) ease-in-out infinite alternate;
  animation-delay: var(--dl);
}
.scatter .sc svg{ width: var(--s); height: var(--s); stroke-width: 1.4; display: block; }
.scatter.light .sc{ color: var(--brand-light); opacity: .14; }
.feature-alt .scatter .sc, .block-alt .scatter .sc{ opacity: .16; }
@keyframes sc-float{
  from{ transform: translateY(0) rotate(var(--r)); }
  to{ transform: translateY(-16px) rotate(calc(var(--r) + 8deg)); }
}
@media (max-width: 960px){ .scatter .sc:nth-child(n+5){ display: none; } .scatter .sc{ opacity: .09; } }

/* --- related pages block --- */
.related-head{ max-width: 780px; margin-bottom: clamp(28px, 4vw, 40px); }
.related-lede{ margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--text-muted); }
.related-lede a{
  color: var(--teal-700); text-decoration: underline;
  text-decoration-color: rgba(15,72,85,.28); text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.related-lede a:hover{ text-decoration-color: currentColor; }
.related-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.related-card{
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: var(--shadow-card);
  font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.related-card:hover{
  transform: translateY(-4px);
  border-color: rgba(79,175,179,.4);
  box-shadow: 0 22px 44px -22px rgba(15,72,85,.32), 0 2px 6px rgba(7,9,12,.04);
}
.related-card:focus-visible{ outline: 2px solid var(--teal-500); outline-offset: 3px; }
.related-icon{
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--mist-1); color: var(--teal-700);
  display: grid; place-items: center;
  transition: transform .4s var(--ease-spring), background .3s ease, color .3s ease;
}
.related-card:hover .related-icon{ transform: scale(1.08) rotate(-5deg); background: var(--teal-500); color: #fff; }
.related-arrow{ margin-left: auto; color: var(--teal-700); opacity: .45; display: inline-flex; transition: transform .3s var(--ease-spring), opacity .3s ease; }
.related-card:hover .related-arrow{ transform: translateX(4px); opacity: 1; }
.related .block-cta{ margin-top: clamp(28px, 4vw, 40px); }

/* --- editorial blocks: icon mark, accent rule, prose card, check cards --- */
.block-side{ position: relative; }
.block-mark{
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
  box-shadow: 0 12px 24px -10px rgba(28,127,139,.6), inset 0 1px 0 rgba(255,255,255,.2);
  transform: rotate(-4deg);
  transition: transform .4s var(--ease-spring);
}
.block-side:hover .block-mark{ transform: rotate(0deg) scale(1.05); }
.block-rule{
  display: block; width: 56px; height: 3px; border-radius: 3px;
  margin-top: 22px;
  background: var(--brand-gradient);
  transform-origin: left; transform: scaleX(0);
  transition: transform .9s var(--ease-out) .35s;
}
.reveal.in .block-rule{ transform: scaleX(1); }
.prose-card{
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.prose-card::before{
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px;
  border-radius: 3px; background: var(--brand-gradient);
}
.block-alt .prose-card{ border-color: rgba(79,175,179,.18); }
.check-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px){ .check-grid{ grid-template-columns: 1fr; } }
.check-card{
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 20px 22px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.check-card.reveal{ transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.check-card.reveal.in{ transition: opacity .9s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s ease, border-color .4s ease; }
.check-card:hover{ transform: translateY(-4px); border-color: rgba(79,175,179,.4); box-shadow: 0 22px 44px -22px rgba(15,72,85,.32); }
.check-card .check{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center;
  transition: transform .4s var(--ease-spring), background .3s ease, color .3s ease;
}
.check-card .check svg{ width: 14px; height: 14px; }
.check-card:hover .check{ background: var(--teal-500); color: #fff; transform: scale(1.1) rotate(-6deg); }
.check-card p{ font-size: 15.5px; line-height: 1.55; color: var(--text-muted); }
.check-card p strong{ display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.block-alt .check-card{ border-color: rgba(79,175,179,.18); }

/* --- steps, FAQ, footer --- */
.steps li{ transition: transform .4s var(--ease-out), background .3s ease, border-color .3s ease; position: relative; }
.steps li:hover{ transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: rgba(164,237,226,.45); }
.steps li::before{ transition: color .3s ease; }
.steps li:hover::before{ color: #fff; }
.steps li{ opacity: 0; }
.in .steps li{ animation: fade-in .7s var(--ease-out) both; }
@keyframes fade-in{ to{ opacity: 1; } }
.in .steps li:nth-child(2){ animation-delay: .1s; }
.in .steps li:nth-child(3){ animation-delay: .2s; }
.in .steps li:nth-child(4){ animation-delay: .3s; }
.faq-item{ transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.faq-item:hover{ border-color: rgba(28,127,139,.35); }
.faq-item[open]{ box-shadow: 0 14px 30px -18px rgba(15,72,85,.3); }
.faq-item[open] > p{ animation: fade-down .4s var(--ease-out); }
@keyframes fade-down{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
.faq-plus{ transition: background .25s ease, transform .3s var(--ease-spring); }
.faq-item[open] .faq-plus{ background: var(--teal-500); transform: rotate(180deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after{ background: #fff; }
footer{ position: relative; }
footer::before{
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,175,179,.5), transparent);
}
.foot-col a{ display: inline-block; transition: color .2s ease, transform .3s var(--ease-out); }
.foot-col a:hover{ transform: translateX(3px); }

/* --- demo form --- */
.lead-card{ isolation: isolate; border-color: transparent; background: transparent; }
.lead-card::before{
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(164,237,226,.9), rgba(79,175,179,.25) 40%, rgba(15,72,85,.12));
}
.lead-card::after{ content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; }
.lead-field input, .lead-field select, .lead-field textarea{ transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus{ transform: translateY(-1px); }
.demo-list li{ transition: transform .3s var(--ease-out); }
.demo-list li:hover{ transform: translateX(4px); }
.demo-list li:hover .demo-list-icon{ background: var(--teal-500); color: #fff; }

/* --- motion budget --- */
@media (max-width: 760px){
  .mesh span, .aurora span{ animation: none; }
  .hero::after, .page-hero::after{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .stagger .w{ opacity: 1; transform: none; animation: none; }
  .mesh span, .aurora span, .hero-float, .wa-icon, .ecg-pulse, .scatter .sc{ animation: none; }
  .ecg-pulse{ stroke-dasharray: none; stroke: rgba(79,175,179,.35); filter: none; }
  .appt, .turno-row, .hc-table tbody tr, .kpi, .caja-stat, .precio-row, .steps li{ opacity: 1; transform: none; animation: none; }
  .chart-bar{ transform: none; transition: none; }
  .tilt > *, .tilt-self{ transform: none; transition: none; }
  .btn, .fcard, .spec-pill, .steps li, .crm-img, .nav, .nav-inner, .progress{ transition: none; }
  .btn-primary::after{ display: none; }
  .faq-item[open] > p{ animation: none; }
  .crm-img{ transform: none; }
}

/* ================= WHATSAPP BUBBLE ================= */
/* Injected by whatsapp.js. Sits under the cookie banner (z 300) so the banner
   covers it on narrow screens until the visitor answers it. */
.wa-bubble{
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #ffffff;
  box-shadow: 0 10px 28px rgba(7,9,12,.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.wa-bubble:hover, .wa-bubble:focus-visible{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(7,9,12,.36);
  color: #ffffff;
}
.wa-bubble:focus-visible{ outline: 3px solid var(--brand-light); outline-offset: 3px; }
@media (max-width: 768px){
  .wa-bubble{ right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce){
  .wa-bubble{ transition: none; }
  .wa-bubble:hover, .wa-bubble:focus-visible{ transform: none; }
}
