﻿.cf-body form { font-family: var(--font-body); }
.landing-body nav { font-family: var(--font-body); }

.cf {
  box-sizing: border-box;
  display: flex; flex-direction: column;
  max-width: 1120px;
  height: 100vh; height: 100dvh; min-height: 540px;
  margin: 0 auto;
  padding: calc(68px + 1.25rem) 5vw 1.5rem;
}

.cf-head { text-align: center; margin-bottom: 1.25rem; flex: 0 0 auto; }
.cf-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gps);
  margin-bottom: 0.4rem;
}
.cf-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}
.cf-lead {
  max-width: 560px; margin: 0 auto;
  color: var(--text-4); font-size: 0.95rem; line-height: 1.5;
}

.landing-body .cf-card {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.cf-visual {
  overflow: hidden;
  height: 100%; aspect-ratio: 1 / 1; max-width: 100%;
  border-radius: var(--radius-xl);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.cf-visual.is-dragging { cursor: grabbing; }
.cf-track {
  display: flex; height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.cf-track.no-anim { transition: none; }
.cf-paso { flex: 0 0 100%; min-width: 0; height: 100%; }
.cf-paso img {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cf-info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-height: 100%; }
.cf-step {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--electric-text);
  background: var(--electric-dim);
  border: 1px solid var(--electric-border);
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.cf-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--text-1);
  margin: 0 0 0.6rem;
}
.cf-step-desc {
  min-height: 0; overflow-y: auto; width: 100%;
  margin: 0 0 1.25rem;
  color: var(--text-3); font-size: 1rem; line-height: 1.6;
}

.cf-progress {
  width: 100%; height: 4px;
  background: var(--border-2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.cf-progress-bar {
  height: 100%; width: 0;
  background: var(--electric);
  border-radius: var(--radius-full);
  transition: width 0.45s ease;
}

.cf-dots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.cf-dot {
  width: 10px; height: 10px; padding: 0;
  border: none; border-radius: var(--radius-full);
  background: var(--border-1);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.cf-dot:hover { background: var(--text-4); }
.cf-dot.is-active { background: var(--electric); transform: scale(1.35); }
.cf-dot:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }

.cf-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; flex-shrink: 0; }
.cf-step, .cf-step-title, .cf-progress, .cf-dots { flex-shrink: 0; }
.cf-controls .btn:disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 820px) {
  .cf { padding-left: 4vw; padding-right: 4vw; padding-bottom: 1rem; }
  .cf-lead, .cf-eyebrow { display: none; }
  .cf-head { margin-bottom: 0.75rem; }
  .landing-body .cf-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.9rem; padding: 0.75rem;
  }
  .cf-visual { justify-self: center; }
  .cf-step { margin-bottom: 0.5rem; }
  .cf-step-title { font-size: 1.25rem; margin-bottom: 0.4rem; }
  .cf-step-desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem; }
  .cf-dots { display: none; }
  .cf-progress { margin-bottom: 0.75rem; }
}

@media (max-width: 820px) and (max-height: 740px) {
  .cf { padding-top: calc(68px + 0.6rem); padding-bottom: 0.6rem; }
  .cf-title { font-size: 1.35rem; margin-bottom: 0; }
  .cf-head { margin-bottom: 0.5rem; }
  .landing-body .cf-card { gap: 0.6rem; padding: 0.6rem; }
  .cf-progress { display: none; }
  .cf-step { font-size: 0.7rem; padding: 0.15rem 0.6rem; margin-bottom: 0.35rem; }
  .cf-step-title { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .cf-step-desc { font-size: 0.85rem; line-height: 1.4; margin-bottom: 0.6rem; max-height: 7em; }
  .cf-controls { gap: 0.4rem; }
  .cf-controls .btn-md { padding: 8px 14px; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .cf-lead, .cf-eyebrow { display: none; }
  .cf-step-desc { font-size: 0.95rem; line-height: 1.5; }
}

html.is-embedded .cf { padding-top: 1rem; padding-bottom: 1rem; min-height: 420px; }

@media (prefers-reduced-motion: reduce) {
  .cf-track, .cf-progress-bar { transition: none; }
}
