/* Página Cómo funciona — narrativa de flujos operativos */
.cf-page {
  --cf-ink: #163a5f;
  --cf-accent: #1a8fd1;
  --cf-accent-deep: #0f6fa8;
  --cf-soft: #f3f8fc;
  --cf-muted: #5d6f82;
  --cf-line: #d7e6f2;
  --cf-content: 1180px;
  background: #fff;
  overflow-x: clip;
}

.cf-page .container {
  max-width: var(--cf-content);
}

.cf-page .section-title {
  margin-bottom: 1.75rem;
}

.cf-page .section-title h2 {
  color: var(--cf-ink);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.cf-page .section-title .subtitle {
  color: var(--cf-muted);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.05rem;
}

.cf-page .cf-section {
  padding: 64px 0;
}

.cf-page .section-bg-soft {
  background: var(--cf-soft);
}

/* —— Hero —— */
.cf-hero {
  padding: 56px 0 52px;
  background: linear-gradient(180deg, var(--cf-soft) 0%, #fff 100%);
}

.cf-hero h1 {
  color: var(--cf-ink);
  font-weight: 750;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.cf-hero-lead {
  color: var(--cf-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 0.65rem;
}

.cf-hero-sub {
  color: var(--cf-ink);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-weight: 500;
}

.cf-hero-cta .btn-get-started,
.cf-hero-cta .btn-whatsapp,
.cf-final-actions .btn-get-started,
.cf-final-actions .btn-whatsapp,
.cf-mid-cta .btn-get-started,
.cf-audience-card .btn-get-started {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
}

/* —— Flow tracks —— */
.cf-flow-section {
  padding: 56px 0 64px;
}

.cf-flow-track {
  list-style: none;
  margin: 0 auto 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  max-width: 1100px;
}

.cf-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 5.5rem;
  padding: 0 0.55rem 0.35rem;
  flex: 1 1 5.5rem;
  max-width: 7.5rem;
}

.cf-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: calc(50% + 1.1rem);
  width: calc(100% - 2.2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--cf-accent), var(--cf-line));
}

.cf-flow-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cf-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  z-index: 1;
}

.cf-flow-label {
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--cf-ink);
  font-weight: 600;
}

.cf-flow-highlight {
  text-align: center;
  max-width: 36rem;
  margin: 0.5rem auto 0;
  color: var(--cf-ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

/* —— Overview + quick links —— */
.cf-overview-video {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.cf-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.cf-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--cf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cf-ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cf-quick-link:hover,
.cf-quick-link:focus {
  border-color: var(--cf-accent);
  color: var(--cf-accent-deep);
  background: #fff;
}

/* —— Audience selector —— */
.cf-audience-card {
  height: 100%;
  padding: 1.5rem 1.4rem 1.55rem;
  border: 1px solid var(--cf-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 58, 95, 0.05);
}

.cf-audience-card h3 {
  color: var(--cf-ink);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
}

.cf-audience-card p {
  color: var(--cf-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
}

/* —— Video cards (page overrides) —— */
.cf-page .product-video-copy {
  padding: 1rem 1.15rem 1.2rem;
}

.cf-page .product-video-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.cf-page .product-video-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--cf-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cf-page .product-video-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cf-accent-deep);
}

.cf-page .product-video-copy h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.cf-page .product-video-copy p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cf-muted);
}

.cf-page .product-videos-grid {
  margin-top: 0.25rem;
}

.cf-more-wrap {
  margin-top: 1.35rem;
  text-align: center;
}

.cf-more-toggle {
  border: 0;
  background: transparent;
  color: var(--cf-accent-deep);
  font-weight: 650;
  font-size: 0.98rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cf-more-panel {
  margin-top: 1.25rem;
}

.cf-more-panel[hidden] {
  display: none !important;
}

/* —— Mid / final CTA —— */
.cf-mid-cta {
  padding: 28px 0;
}

.cf-mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--cf-line);
  border-radius: 12px;
  background: #fff;
}

.cf-mid-cta-centro .cf-mid-cta-inner {
  background: #fff;
}

.cf-mid-cta h2 {
  margin: 0;
  color: var(--cf-ink);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 34rem;
}

.cf-centros-videos {
  margin-top: 2rem;
}

.cf-centros-videos-title {
  text-align: center;
  color: var(--cf-ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
}

.cf-centros-link {
  margin-top: 1.5rem;
}

.cf-centros-link a {
  color: var(--cf-accent-deep);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
}

.cf-centros-link a:hover {
  text-decoration: underline;
}

.cf-specialty-strip {
  padding: 48px 0;
}

.cf-specialty-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.cf-specialty-inner h2 {
  color: var(--cf-ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.cf-specialty-inner p {
  color: var(--cf-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.cf-specialty-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cf-accent-deep);
  font-weight: 650;
  font-size: 1rem;
}

.cf-final-cta {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #fff 0%, var(--cf-soft) 100%);
}

.cf-final-pricing {
  margin: 1.15rem 0 0;
  color: var(--cf-muted);
  font-size: 0.92rem;
}

.cf-final-trial {
  margin: 0.35rem 0 0;
  color: var(--cf-muted);
  font-size: 0.88rem;
}

/* Audience focus: acento suave en bloques relevantes */
.cf-page.cf-focus-centro #cf-centros .section-title h2,
.cf-page.cf-focus-especialista #cf-agenda .section-title h2,
.cf-page.cf-focus-especialista #cf-clinica .section-title h2 {
  color: var(--cf-accent-deep);
}

.cf-page.cf-focus-centro #cf-centros,
.cf-page.cf-focus-especialista #cf-agenda {
  box-shadow: inset 0 0 0 1px rgba(26, 143, 209, 0.18);
}

/* —— Mobile —— */
@media (max-width: 991px) {
  .cf-flow-track {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 22rem;
  }

  .cf-flow-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: none;
    min-width: 0;
    padding: 0.45rem 0;
    gap: 0.75rem;
  }

  .cf-flow-step:not(:last-child)::after {
    top: calc(100% - 1px);
    left: 0.95rem;
    width: 2px;
    height: 0.55rem;
    background: var(--cf-line);
  }

  .cf-flow-dot {
    margin-bottom: 0;
  }

  .cf-flow-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .cf-hero {
    padding: 40px 0 36px;
  }

  .cf-page .cf-section {
    padding: 48px 0;
  }

  .cf-page .product-videos-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cf-mid-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cf-mid-cta .btn-get-started {
    width: 100%;
  }

  .cf-hero-cta .btn-get-started,
  .cf-hero-cta .btn-whatsapp,
  .cf-final-actions .btn-get-started,
  .cf-final-actions .btn-whatsapp,
  .cf-audience-card .btn-get-started {
    width: 100%;
  }

  .cf-page .product-video-copy h3 {
    font-size: 16px;
  }

  .cf-page .product-video-copy p {
    font-size: 14px;
  }
}
