/* Fastfolio Certificación — Vercel/form look (aligned with /empezar) */
:root {
  --ff-ct-bg: #fafafa;
  --ff-ct-paper: #ffffff;
  --ff-ct-surface-2: #f5f5f5;
  --ff-ct-line: #e6e6e6;
  --ff-ct-line-2: #d4d4d4;
  --ff-ct-ink: #171717;
  --ff-ct-ink-2: #666666;
  --ff-ct-ink-3: #8f8f8f;
  --ff-ct-blue: #1d4ed8;
  --ff-ct-blue-bg: #e8eefc;
  --ff-ct-orange: #F84800;
  --ff-ct-orange-bg: #fff1ea;
  --ff-ct-ok: #0f766e;
  --ff-ct-ok-bg: #def0ee;
  --ff-ct-r: 10px;
  --ff-ct-r-ctl: 6px;
  --ff-ct-shadow: 0 8px 40px rgba(0,0,0,.12);
  --ff-ct-ease: cubic-bezier(.2,.8,.2,1);
  --ff-ct-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-ct-z: 2147483000;
}
#ff-ct-root { all: initial; font-family: var(--ff-ct-font); -webkit-font-smoothing: antialiased; }
#ff-ct-root, #ff-ct-root * { box-sizing: border-box; }
#ff-ct-root ol, #ff-ct-root ul { list-style: none; margin: 0; padding: 0; }
#ff-ct-root li { margin: 0; display: block; }
#ff-ct-root li:not(.ff-ct-item) { padding: 0; }
#ff-ct-root li::before, #ff-ct-root li::after { content: none !important; display: none !important; }
body.ff-ct-pad { padding-top: 64px; }

#ff-ct-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--ff-ct-z);
  background: var(--ff-ct-paper); color: var(--ff-ct-ink);
  border-bottom: 1px solid var(--ff-ct-line);
  border-top: 3px solid var(--ff-ct-orange);
  padding: 12px 20px; display: flex; align-items: center; gap: 14px;
  font: 400 14px/1.4 var(--ff-ct-font); min-height: 56px;
}
#ff-ct-banner b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
#ff-ct-banner span { display: block; color: var(--ff-ct-ink-3); font-size: 12px; margin-top: 2px; }
#ff-ct-banner .ff-ct-tag {
  flex: none; background: var(--ff-ct-orange-bg); color: var(--ff-ct-orange); font-weight: 600;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--ff-ct-r-ctl);
  border: 1px solid #fbc3a8;
}
#ff-ct-banner button {
  margin-left: auto; flex: none; height: 36px; padding: 0 14px; border-radius: var(--ff-ct-r-ctl);
  border: 1px solid var(--ff-ct-line-2); background: var(--ff-ct-paper); color: var(--ff-ct-ink);
  font: 500 13px var(--ff-ct-font); cursor: pointer;
}

#ff-ct-layer { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: calc(var(--ff-ct-z) - 1); }
.ff-ct-pin {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 999px;
  background: var(--ff-ct-ink); color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  font: 600 11px/1 var(--ff-ct-font);
  display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; padding: 0;
}
.ff-ct-pin.is-ok { background: var(--ff-ct-ok); }
.ff-ct-pin.is-fix { background: var(--ff-ct-orange); }
.ff-ct-pin.is-active { outline: 2px solid var(--ff-ct-blue); outline-offset: 2px; }
.ff-ct-pulse { animation: ffctp 1.1s ease-out 2; }
@keyframes ffctp { 0% { box-shadow: 0 0 0 0 rgba(29,78,216,.45); } 100% { box-shadow: 0 0 0 16px rgba(29,78,216,0); } }

#ff-ct-panel {
  position: fixed; z-index: var(--ff-ct-z);
  right: 32px; top: 88px; bottom: 32px; width: 420px; max-width: calc(100vw - 64px);
  background: var(--ff-ct-paper); color: var(--ff-ct-ink);
  border: 1px solid var(--ff-ct-line); border-radius: 12px;
  box-shadow: var(--ff-ct-shadow);
  display: flex; flex-direction: column; overflow: hidden;
  font: 400 14px/1.5 var(--ff-ct-font);
}
#ff-ct-panel[hidden] { display: none; }

.ff-ct-head {
  padding: 18px 20px 16px; border-bottom: 1px solid var(--ff-ct-line);
  display: flex; align-items: center; gap: 10px; background: var(--ff-ct-paper);
}
.ff-ct-head h2 { margin: 0; font: 600 15px/1.25 var(--ff-ct-font); flex: 1; letter-spacing: -.01em; }
.ff-ct-head .ff-ct-count { font-size: 12px; color: var(--ff-ct-ink-3); font-variant-numeric: tabular-nums; }
.ff-ct-close {
  min-width: 36px; min-height: 36px; border: 1px solid var(--ff-ct-line-2); border-radius: var(--ff-ct-r-ctl);
  background: var(--ff-ct-paper); font-size: 18px; cursor: pointer; color: var(--ff-ct-ink-2); display: none;
}

.ff-ct-tools { padding: 16px 20px 0; }
.ff-ct-tools .ff-ct-btn {
  width: 100%; height: 40px; background: var(--ff-ct-paper); border: 1px dashed var(--ff-ct-line-2);
  color: var(--ff-ct-ink); font-weight: 500;
}
.ff-ct-tools .ff-ct-btn:hover { border-color: var(--ff-ct-ink-3); }

.ff-ct-list { flex: 1; overflow-y: auto; padding: 16px 20px 8px 24px; -webkit-overflow-scrolling: touch; background: var(--ff-ct-bg); }
.ff-ct-sec {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--ff-ct-ink-3); padding: 4px 2px 10px;
}
.ff-ct-sec.ff { border-top: 1px solid var(--ff-ct-line); margin-top: 12px; padding-top: 18px; }
.ff-ct-empty { font-size: 13px; color: var(--ff-ct-ink-3); padding: 0 2px 16px; line-height: 1.4; }

#ff-ct-root .ff-ct-item,
.ff-ct-item {
  border: 1px solid var(--ff-ct-line); border-radius: var(--ff-ct-r);
  padding: 3mm; margin-bottom: 12px; cursor: pointer; background: var(--ff-ct-paper);
  transition: border-color .15s var(--ff-ct-ease);
}
.ff-ct-item:hover { border-color: var(--ff-ct-line-2); }
.ff-ct-item.is-active { border-color: var(--ff-ct-blue); box-shadow: 0 0 0 3px var(--ff-ct-blue-bg); }
.ff-ct-item.is-ok { border-color: #a9d4cf; background: #fbfffe; }
.ff-ct-item.is-fix { border-color: #fbc3a8; background: var(--ff-ct-orange-bg); }
.ff-ct-item.ff-ct-extra { border-style: solid; border-color: var(--ff-ct-line-2); background: var(--ff-ct-paper); }

.ff-ct-item .ff-ct-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--ff-ct-r-ctl);
  background: var(--ff-ct-surface-2); color: var(--ff-ct-ink-2); border: 1px solid var(--ff-ct-line);
  font: 600 11px/1 var(--ff-ct-font); margin-right: 8px; vertical-align: middle;
}
.ff-ct-item .ff-ct-n.ff { background: var(--ff-ct-paper); color: var(--ff-ct-ink); border-style: dashed; }
.ff-ct-item b { font-size: 13px; font-weight: 600; color: var(--ff-ct-ink); vertical-align: middle; }
.ff-ct-lbl {
  display: block; margin: 12px 0 4px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ff-ct-ink-3); font-weight: 600;
}
.ff-ct-q { margin: 8px 0 0; font-style: italic; color: var(--ff-ct-ink); font-size: 14px; line-height: 1.45; }
.ff-ct-c { margin: 0; color: var(--ff-ct-ink-2); font-size: 13px; line-height: 1.45; }

.ff-ct-acts { display: flex; gap: 8px; margin-top: 14px; }
.ff-ct-btn {
  height: 40px; padding: 0 14px; border-radius: var(--ff-ct-r-ctl);
  border: 1px solid var(--ff-ct-line-2); background: var(--ff-ct-paper); color: var(--ff-ct-ink);
  font: 500 13px/1 var(--ff-ct-font); cursor: pointer; flex: 1;
  transition: border-color .15s var(--ff-ct-ease), background .15s var(--ff-ct-ease), color .15s var(--ff-ct-ease);
}
.ff-ct-btn:hover:not(:disabled) { border-color: var(--ff-ct-ink-3); }
.ff-ct-btn:disabled { opacity: .4; cursor: not-allowed; }
.ff-ct-btn.ok.on { background: var(--ff-ct-ok-bg); border-color: #a9d4cf; color: var(--ff-ct-ok); }
.ff-ct-btn.fix.on { background: var(--ff-ct-orange-bg); border-color: #fbc3a8; color: var(--ff-ct-orange); }
.ff-ct-btn.primary { background: var(--ff-ct-ink); border-color: var(--ff-ct-ink); color: #fff; }
.ff-ct-btn.primary:hover:not(:disabled) { background: #2c2c2c; border-color: #2c2c2c; }
.ff-ct-btn.accent { background: var(--ff-ct-orange); border-color: var(--ff-ct-orange); color: #fff; }
.ff-ct-btn.accent:hover:not(:disabled) { filter: brightness(1.05); }

.ff-ct-note {
  width: 100%; margin-top: 12px; min-height: 80px; padding: 10px 12px;
  border: 1px solid var(--ff-ct-line-2); border-radius: var(--ff-ct-r-ctl);
  font: 400 16px/1.4 var(--ff-ct-font); resize: vertical; color: var(--ff-ct-ink); background: #fff;
}
.ff-ct-note:focus { outline: none; border-color: var(--ff-ct-blue); box-shadow: 0 0 0 3px var(--ff-ct-blue-bg); }

.ff-ct-foot {
  padding: 16px 20px; border-top: 1px solid var(--ff-ct-line);
  display: flex; flex-direction: column; gap: 10px; background: var(--ff-ct-paper);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.ff-ct-count { font-size: 12px; color: var(--ff-ct-ink-3); font-variant-numeric: tabular-nums; }
.ff-ct-hint { font-size: 12px; color: var(--ff-ct-ink-2); line-height: 1.4; margin: 0; }
.ff-ct-err { color: var(--ff-ct-ink); font-size: 12px; font-weight: 600; margin: 0; }
.ff-ct-confirm {
  background: var(--ff-ct-orange-bg); border: 1px solid #fbc3a8; border-radius: var(--ff-ct-r);
  padding: 12px 14px; font-size: 13px; color: var(--ff-ct-ink);
}
.ff-ct-confirm .ff-ct-acts { margin-top: 10px; }
.ff-ct-done { padding: 36px 22px; text-align: center; background: var(--ff-ct-bg); }
.ff-ct-done .ff-ct-check {
  width: 48px; height: 48px; border-radius: 999px; background: var(--ff-ct-ok); color: #fff;
  font-size: 24px; line-height: 48px; margin: 0 auto 14px;
}
.ff-ct-done h3 { margin: 0 0 8px; font: 600 16px/1.25 var(--ff-ct-font); }
.ff-ct-done p { margin: 0 0 6px; color: var(--ff-ct-ink-2); font-size: 13px; }

.ff-ct-xpin {
  width: auto; min-width: 34px; height: 24px; padding: 0 7px; border-radius: var(--ff-ct-r-ctl);
  margin: -12px 0 0 -17px; background: #fff; color: var(--ff-ct-ink);
  border: 1px dashed var(--ff-ct-ink); box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 10px;
}

#ff-ct-armed {
  position: fixed; top: 56px; left: 0; right: 0; z-index: var(--ff-ct-z);
  background: var(--ff-ct-ink); color: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; font: 500 13px var(--ff-ct-font);
}
#ff-ct-armed[hidden] { display: none; }
#ff-ct-armed button {
  margin-left: auto; height: 36px; padding: 0 14px; border-radius: var(--ff-ct-r-ctl);
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  font: 500 13px var(--ff-ct-font); cursor: pointer;
}
body.ff-ct-armed, body.ff-ct-armed * { cursor: crosshair; }
body.ff-ct-armed #ff-ct-root, body.ff-ct-armed #ff-ct-root * { cursor: auto; }

#ff-ct-composer {
  position: fixed; z-index: calc(var(--ff-ct-z) + 1); width: 320px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--ff-ct-ink); border: 1px solid var(--ff-ct-line); border-radius: 12px;
  padding: 16px; box-shadow: var(--ff-ct-shadow); font: 400 14px/1.45 var(--ff-ct-font);
}
#ff-ct-composer[hidden] { display: none; }

@media (max-width: 720px) {
  body.ff-ct-pad { padding-top: 64px; }
  #ff-ct-banner { padding: 12px 16px; }
  #ff-ct-banner span { display: none; }
  #ff-ct-panel {
    left: 14px; right: 14px; top: auto; bottom: 14px; width: auto; max-width: none;
    height: min(72vh, calc(100dvh - 96px)); border-radius: 12px;
  }
  #ff-ct-panel.is-min { height: auto; }
  #ff-ct-panel.is-min .ff-ct-list, #ff-ct-panel.is-min .ff-ct-foot, #ff-ct-panel.is-min .ff-ct-tools { display: none; }
  .ff-ct-close { display: inline-flex; align-items: center; justify-content: center; }
  #ff-ct-armed { top: 64px; }
  #ff-ct-composer {
    left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-width: none;
    border-radius: 12px; padding-bottom: max(16px, env(safe-area-inset-bottom));
    z-index: calc(var(--ff-ct-z) + 2);
  }
  .ff-ct-list { padding: 14px 14px 8px 14px; }
  .ff-ct-foot, .ff-ct-tools, .ff-ct-head { padding-left: 20px; padding-right: 16px; }
}

/* Bottom-sheet composer (desktop + mobile) */
#ff-ct-composer.ff-ct-sheet,
#ff-ct-composer {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  bottom: 12px;
  border-radius: 12px;
  padding: 18px 18px 16px;
  z-index: calc(var(--ff-ct-z) + 5);
}
#ff-ct-composer b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#ff-ct-composer .ff-ct-hint { margin: 0 0 12px; }
#ff-ct-composer .ff-ct-note { margin-top: 0; min-height: 96px; }
#ff-ct-composer .ff-ct-acts { margin-top: 14px; }

/* Panel spacing + CTA hierarchy */
.ff-ct-list { padding: 16px 16px 16px 16px; }
#ff-ct-root .ff-ct-item { padding: 3mm; margin-bottom: 14px; }
.ff-ct-q { font-size: 14px; line-height: 1.5; }
.ff-ct-c { font-size: 13px; line-height: 1.5; }
.ff-ct-head { padding: 20px 22px 16px 28px; }
.ff-ct-foot { padding: 16px 22px 18px 28px; gap: 12px; }
.ff-ct-sec { padding-left: 4px; }
.ff-ct-count, .ff-ct-hint { font-size: 13px; color: var(--ff-ct-ink-2); }
.ff-ct-err { font-size: 13px; }

.ff-ct-btn.ff-ct-cta {
  width: 100%;
  flex: none;
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: -.01em;
}
.ff-ct-btn.ff-ct-mark {
  width: 100%;
  flex: none;
  height: 44px;
  margin-top: 4px;
  background: var(--ff-ct-paper);
  border: 1px dashed var(--ff-ct-line-2);
  color: var(--ff-ct-ink);
  font-weight: 500;
  font-size: 13px;
}
.ff-ct-btn.ff-ct-mark:hover:not(:disabled) { border-color: var(--ff-ct-ink-3); }

@media (max-width: 720px) {
  .ff-ct-list { padding: 14px 14px 14px 14px; }
  .ff-ct-head, .ff-ct-foot { padding-left: 22px; padding-right: 18px; }
  #ff-ct-root .ff-ct-item { padding: 3mm; }
  .ff-ct-btn.ff-ct-cta { height: 54px; font-size: 16px; }
}
