/* ============================================================
   ENFOQUE CRM — página de producto
   Diseño de Claude Design (Enfoque CRM.dc.html) con el design
   system Enfoque CRM: navy dominante, lima solo para "listo para
   comprar" y para el CTA sobre navy, la dona como gráfico.
   ============================================================ */

:root {
  --cr-lima: #A8CC4E;        /* lima dato: relleno, gráfico, CTA y texto sobre navy */
  --cr-lima-hover: #94B83C;
  --cr-lima-text: #526B1C;   /* lima sobre blanco (6.4:1) */
  --cr-celeste: #71A3CD;
  --cr-gradient: linear-gradient(90deg, #1C80BD 0%, #71A3CD 55%, #A8CC4E 100%);
  --cr-shadow: 0 8px 28px rgba(20,24,44,.12);
  --cr-focus: 0 0 0 3px rgba(28,128,189,.35);
}

@keyframes crDrift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5%,6%) scale(1.12); } }
@keyframes crHalo { 0% { box-shadow: 0 0 0 0 rgba(168,204,78,.55); } 70% { box-shadow: 0 0 0 14px rgba(168,204,78,0); } 100% { box-shadow: 0 0 0 0 rgba(168,204,78,0); } }

.cr { background: var(--ec-white); color: var(--ec-ink); }
.cr .faq__body a:hover { color: var(--ec-navy); }

/* ---------- Botón (componente Button del design system Enfoque CRM) ---------- */
.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--fh); font-size: 14px; font-weight: 700; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cr-btn--lg { padding: 18px 32px; font-size: 16px; }
.cr-btn--full { width: 100%; }
.cr-btn--lima { background: var(--cr-lima); color: var(--ec-navy); }
.cr .cr-btn--lima:hover { background: var(--cr-lima-hover); color: var(--ec-navy); }
.cr-btn__arrow { transition: transform .2s var(--ease); }
.cr-btn:hover .cr-btn__arrow { transform: translateX(3px); }
.cr-btn:focus-visible { outline: none; box-shadow: var(--cr-focus); }

/* CTA magnético con halo lima */
.cr-mag, .cr-mag__halo { border-radius: 6px; }
.cr-mag__halo { animation-name: crHalo; }

/* ---------- Hero ---------- */
.cr-hero { position: relative; overflow: hidden; background: var(--ec-navy); color: var(--ec-white); }
.cr-hero__field {
  position: absolute; right: -20%; top: -50%; width: 85%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(168,204,78,.26) 0%, rgba(113,163,205,.18) 40%, rgba(28,128,189,.10) 65%, rgba(20,24,44,0) 100%);
  animation: crDrift 26s ease-in-out infinite;
  pointer-events: none;
}
.cr-hero__inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: calc(80px + clamp(40px, 7vh, 96px)) var(--gutter) clamp(64px, 9vh, 104px);
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
@media (min-width: 960px) {
  .cr-hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

.cr-rise { animation: ecRise .8s var(--ease-out) both; }
.cr-crumbs { animation-duration: .7s; }
.cr-hero__logo { animation-duration: .7s; animation-delay: .08s; }
.cr-hero__title { animation-delay: .16s; }
.cr-hero__lead { animation-delay: .26s; }
.cr-hero__cta { animation-delay: .36s; }
.cr-hero__viz { animation-duration: 1s; animation-delay: .3s; }

.cr-hero__logo { display: block; margin-top: 28px; height: clamp(40px, 4vw, 52px); width: auto; }
.cr-hero__title {
  margin-top: 32px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.02em;
  color: var(--ec-white); text-wrap: balance;
}
.cr-hero__lead {
  margin-top: 24px; max-width: 520px;
  font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6;
  color: var(--ec-on-navy-dim); text-wrap: pretty;
}
.cr-hero__cta { margin-top: 36px; display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.cr-hero__price { display: flex; flex-direction: column; gap: 2px; }
.cr-hero__price-big { font-family: var(--fh); font-weight: 700; font-size: 18px; color: var(--ec-white); }
.cr-hero__price-small { font-size: 12px; color: var(--ec-on-navy-faint); }

.cr-hero__viz { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.cr-toggle button[data-dona-ver="1"][aria-pressed="true"] { background: var(--cr-lima); color: var(--ec-navy); }

/* ---------- La dona (componente DonaChart) ---------- */
.cr-dona { position: relative; flex: none; }
.cr-dona svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cr-dona--hero { width: 260px; height: 260px; }
@media (min-width: 960px) { .cr-dona--hero { width: 320px; height: 320px; } }
.cr-dona--mini { width: 60px; height: 60px; }
.cr-dona__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.cr-dona__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ec-on-navy-faint); }
.cr-dona__label { margin-top: 6px; font-family: var(--fh); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--ec-white); }

.cr-legend { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.cr-legend__item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ec-on-navy-dim); }
.cr-legend__item strong { display: block; color: var(--ec-white); font-weight: 600; }
.cr-legend__dot { flex: none; margin-top: 4px; width: 10px; height: 10px; border-radius: 50%; }
.cr-legend__dot--empty { border: 2px solid var(--ec-navy-hair); }

/* ---------- Secciones ---------- */
.cr-sec { padding: clamp(72px, 9vw, 112px) 0; }
.cr-sec--white { background: var(--ec-white); }
.cr-sec--soft { background: var(--ec-card); }
.cr-sec--navy { position: relative; overflow: hidden; background: var(--ec-navy); color: var(--ec-white); }
.cr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.cr-wrap--narrow { max-width: 840px; }

.cr-eyebrow--celeste { color: var(--cr-celeste); }
.cr-h2 {
  margin-top: 16px; max-width: 820px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -.02em;
  color: var(--ec-navy); text-wrap: balance;
}
.cr-h2--on-dark { color: var(--ec-white); }
.cr-h2--faq { max-width: none; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; text-wrap: wrap; }
.cr-rule { width: 32px; height: 3px; margin-top: 24px; background: var(--ec-blue); }
.cr-h3 { margin-top: 10px; font-family: var(--fh); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ec-navy); }
.cr-p { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.cr-lead { margin-top: 18px; max-width: 460px; font-size: 17px; line-height: 1.6; }

.cr-grid {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px;
}
.cr-card { border-radius: 8px; padding: 30px 28px; }
.cr-card--filled { background: var(--ec-card); transition: transform .3s, box-shadow .3s; }
.cr-card--filled:hover { transform: translateY(-4px); box-shadow: var(--cr-shadow); }
.cr-card--outlined { background: var(--ec-white); border: 1px solid var(--ec-border); transition: border-color .3s, transform .3s; }
.cr-card--outlined:hover { border-color: var(--ec-blue); transform: translateY(-4px); }
.cr-card--outlined .cr-h3 { margin-top: 14px; }
.cr-card__eyebrow { margin-top: 22px; }
.cr-card__eyebrow--lima { color: var(--cr-lima-text); }
.cr-card__num { font-family: var(--fh); font-weight: 700; font-size: 15px; color: var(--ec-blue); }

/* ---------- El seguimiento: línea de cinco mensajes ---------- */
.cr-line { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.cr-line__track {
  position: absolute; left: 10%; right: 10%; top: 15px; height: 3px;
  border-radius: 3px; background: var(--cr-gradient); opacity: .9;
}
.cr-line__steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cr-step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 4px; border: 0; background: transparent; cursor: pointer;
}
.cr-step__dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ec-navy);
}
.cr-step__dot span {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.14);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), box-shadow .35s;
}
.cr-step.is-active .cr-step__dot span { width: 22px; height: 22px; box-shadow: 0 0 0 8px rgba(255,255,255,.14); }
.cr-step__when {
  font-size: clamp(11px, 1.1vw, 14px); font-weight: 700; text-align: center;
  color: var(--ec-on-navy-faint); transition: color .3s;
}
.cr-step.is-active .cr-step__when, .cr-step:hover .cr-step__when { color: var(--ec-white); }
.cr-step:focus-visible { outline: none; }
.cr-step:focus-visible .cr-step__dot { box-shadow: var(--cr-focus); }

.cr-msg { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 620px; }
.cr-msg__card { background: var(--ec-navy-card); border: 1px solid var(--ec-navy-hair); border-radius: 12px; padding: 22px 22px 24px; }
.cr-msg__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-msg__tipo { display: grid; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--cr-celeste); }
.cr-msg__tipo.is-ultimo { color: var(--cr-lima); }
.cr-msg__canal { font-size: 12px; color: var(--ec-on-navy-faint); }
.cr-msg__bubble {
  margin-top: 16px; max-width: 88%;
  background: var(--ec-navy-hair); color: var(--ec-white);
  font-size: 16px; line-height: 1.5;
  border-radius: 14px 14px 14px 4px; padding: 13px 16px;
  display: grid;
}
.cr-msg__txt { grid-area: 1 / 1; visibility: hidden; }
.cr-msg__txt.is-on { visibility: visible; }
.cr-msg__meta { margin-top: 6px; font-size: 12px; color: var(--ec-on-navy-faint); }
.cr-msg__note { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--ec-on-navy-dim); text-align: center; text-wrap: pretty; }

/* ---------- Precio y calculadora ---------- */
.cr-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.cr-split--calc { gap: clamp(32px, 5vw, 72px); }
.cr-split--calc .cr-lead { margin-top: 16px; }

.cr-box {
  background: var(--ec-navy); color: var(--ec-white);
  border-radius: 12px; padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--cr-shadow);
}
.cr-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cr-price__big, .cr-total__big {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.02em;
}
.cr-price__per { font-size: 17px; color: var(--ec-on-navy-dim); }
.cr-price__anual { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ec-white); }
.cr-price__anual span { font-weight: 400; color: var(--ec-on-navy-dim); }
.cr-price__var { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--cr-lima); }
.cr-price__calc {
  margin-top: 8px; display: inline-block; padding-bottom: 2px;
  font-size: 13px; font-weight: 600; color: var(--ec-on-navy-dim);
  border-bottom: 1px solid var(--ec-navy-hair);
  transition: color .2s, border-color .2s;
}
.cr .cr-price__calc:hover { color: var(--ec-white); border-bottom-color: var(--cr-lima); }
.cr-incl { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cr-incl li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; line-height: 1.5; }
.cr-incl li::before { content: ''; flex: none; width: 14px; height: 3px; background: var(--cr-lima); }
.cr-box > .cr-btn { margin-top: 32px; }

.cr-sliders { margin-top: 36px; display: flex; flex-direction: column; gap: 32px; }
.cr-slider { display: flex; flex-direction: column; gap: 12px; }
.cr-slider__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cr-slider__name { font-size: 15px; font-weight: 600; color: var(--ec-navy); }
.cr-slider__val { font-family: var(--fh); font-weight: 700; font-size: 22px; color: var(--ec-blue); font-variant-numeric: tabular-nums; }
.cr-slider input { width: 100%; margin: 0; accent-color: var(--ec-blue); cursor: pointer; }
.cr-slider__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ec-muted); }
.cr-calc__pend { margin-top: 24px; font-size: 12px; color: var(--ec-muted); }

.cr-box--glow { position: relative; overflow: hidden; }
.cr-box__glow {
  position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(168,204,78,.18), rgba(113,163,205,.10), rgba(20,24,44,0));
  pointer-events: none;
}
.cr-total { position: relative; display: flex; flex-direction: column; }
.cr-total__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ec-navy-hair); font-size: 15px;
}
.cr-total__row span:first-child { color: var(--ec-on-navy-dim); }
.cr-total__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-total__label { margin-top: 22px; }
.cr-total__big { margin-top: 8px; color: var(--cr-lima); font-variant-numeric: tabular-nums; }
.cr-total > .cr-btn { margin-top: 28px; }

/* ---------- Reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .cr-rise, .cr-hero__field, .cr-mag__halo { animation: none; }
  .cr-step__dot span { transition: none; }
}
