/* ═══════════════════════════════════════════════════════════════
   CAPTACIÓN — página pública (.ld) y sección Prospectos (.lds)
   ═══════════════════════════════════════════════════════════════ */

/* ── Página pública ────────────────────────────────────────────── */
.ld {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    background: #000;
    color: var(--ap-label);
}

.ld-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px);
    gap: 56px;
    align-items: center;
    max-width: 1080px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 48px 28px;
}

.ld-pitch > * { animation: ap-rise 0.7s var(--ap-ease-out) both; }
.ld-pitch > *:nth-child(2) { animation-delay: 0.06s; }
.ld-pitch > *:nth-child(3) { animation-delay: 0.12s; }
.ld-pitch > *:nth-child(4) { animation-delay: 0.18s; }
.ld-pitch > *:nth-child(5) { animation-delay: 0.24s; }

.ld-logo { display: block; width: 132px; height: auto; margin-bottom: 28px; }

.ld-invite {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 7px 14px 7px 11px;
    font-size: 14px;
    color: var(--ap-on-accent);
    background: var(--ap-accent);
    border-radius: 999px;
}

.ld-invite[hidden] { display: none; }
.ld-invite .ap-icon { width: 17px; height: 17px; }

.ld h1 {
    margin: 0 0 16px;
    font-family: var(--ap-font-display);
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.03;
    text-wrap: balance;
}

.ld-lead { margin: 0 0 30px; max-width: 46ch; font-size: 18px; line-height: 1.45; color: var(--ap-label-2); }
.ld-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ld-points li { display: flex; gap: 14px; align-items: flex-start; }

.ld-points .ap-icon {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    padding: 9px;
    box-sizing: content-box;
    color: var(--ap-accent);
    background: rgba(200, 230, 0, 0.12);
    border-radius: 12px;
}

.ld-points span { display: grid; gap: 1px; font-size: 14.5px; line-height: 1.4; color: var(--ap-label-2); }
.ld-points strong { font-size: 16px; font-weight: 600; color: var(--ap-label); }

.ld-card {
    padding: 28px 26px 22px;
    background: rgba(28, 28, 30, 0.7);
    -webkit-backdrop-filter: saturate(160%) blur(40px);
    backdrop-filter: saturate(160%) blur(40px);
    border: 0.5px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--ap-r-xl);
    box-shadow: var(--ap-shadow-3);
    animation: ap-sheet-in 0.7s var(--ap-ease-out) 0.1s both;
}

.ld-card h2 { margin: 0 0 4px; font-family: var(--ap-font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; outline: none; }
.ld-sub { margin: 0 0 20px; font-size: 14px; color: var(--ap-label-2); }
.ld-field { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.ld-field label, .ld-field legend { padding: 0; font-size: 13px; font-weight: 500; color: var(--ap-label-2); }
.ld-field label span { font-weight: 400; color: var(--ap-label-3); }

.ld-field input[type="text"], .ld-field input[type="tel"], .ld-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    font-family: var(--ap-font);
    font-size: 16px;
    color: var(--ap-label);
    background: rgba(118, 118, 128, 0.24);
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: border-color var(--ap-fast) var(--ap-ease), box-shadow var(--ap-fast) var(--ap-ease);
}

.ld-field textarea { min-height: 68px; resize: vertical; line-height: 1.4; }
.ld-field input::placeholder, .ld-field textarea::placeholder { color: var(--ap-label-3); }
.ld-field input:focus, .ld-field textarea:focus { border-color: var(--ap-accent); box-shadow: 0 0 0 3.5px rgba(200, 230, 0, 0.22); }

.ld-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-goals legend { margin-bottom: 8px; }
.ld-goals label { position: relative; cursor: pointer; }
.ld-goals input { position: absolute; opacity: 0; inset: 0; }

.ld-goals span {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ap-label);
    background: rgba(118, 118, 128, 0.24);
    border: 1.5px solid transparent;
    border-radius: 999px;
    transition: background var(--ap-fast) var(--ap-ease), border-color var(--ap-fast) var(--ap-ease), color var(--ap-fast) var(--ap-ease);
}

.ld-goals input:checked + span { color: var(--ap-on-accent); background: var(--ap-accent); font-weight: 600; }
.ld-goals input:focus-visible + span { border-color: #fff; }
.ld-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ld-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    padding: 12px 20px;
    font-family: var(--ap-font);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--ap-on-accent);
    text-decoration: none;
    background: var(--ap-accent);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--ap-fast) var(--ap-ease), transform var(--ap-fast) var(--ap-ease);
}

.ld-submit:hover { background: var(--ap-accent-hover); }
.ld-submit:active { transform: scale(0.98); }
.ld-submit:disabled { opacity: 0.6; cursor: default; }
.ld-error { margin: 0 0 10px; padding: 10px 12px; font-size: 13.5px; color: #ff6961; background: rgba(255, 69, 58, 0.14); border-radius: 10px; }
.ld-foot { margin: 16px 0 0; font-size: 13px; text-align: center; color: var(--ap-label-3); }
.ld-foot a { color: var(--ap-accent); text-decoration: none; }
.ld-foot a:hover { text-decoration: underline; }

.ld-done { display: grid; justify-items: center; gap: 6px; padding: 18px 0 8px; text-align: center; }
.ld-done p { margin: 0 0 14px; max-width: 30ch; font-size: 15px; color: var(--ap-label-2); }
.ld-benefit { margin-top: 14px !important; font-size: 13.5px !important; color: var(--ap-accent) !important; }
.ld-done-ring { width: 84px; height: 84px; margin-bottom: 10px; fill: none; stroke: var(--ap-accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ld-done-ring circle { stroke-dasharray: 264; stroke-dashoffset: 264; transform: rotate(-90deg); transform-origin: center; animation: ld-draw 0.8s var(--ap-ease-out) forwards; }
.ld-done-ring path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: ld-draw 0.45s var(--ap-ease-out) 0.55s forwards; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
    .ld-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 16px 40px; align-items: start; }
    .ld-logo { width: 96px; margin-bottom: 18px; }
    .ld-lead { font-size: 16px; margin-bottom: 20px; }
    .ld-points { display: none; }
    .ld-card { padding: 22px 18px 18px; }
}

/* ── Prospectos ────────────────────────────────────────────────── */
#app-container .lds-share {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--ap-surface-1);
    border: 0.5px solid var(--ap-separator);
    border-radius: var(--ap-r-lg);
}

#app-container .lds-share h2 { margin: 0 0 4px; font-size: 18px; }
#app-container .lds-share p { margin: 0; max-width: 70ch; font-size: 14px; color: var(--ap-label-2); }
.lds-link { display: flex; flex-wrap: wrap; gap: 8px; }
#app-container .lds-link input { flex: 1 1 260px; min-width: 0; font-family: var(--ap-font-mono); font-size: 13.5px; color: var(--ap-accent); }
#app-container .lds-note { font-size: 13px; color: var(--ap-label-3); }
#app-container .lds-warn { color: var(--ap-orange); }
#app-container .lds-inline { display: inline; min-height: 0; padding: 0 2px; font: inherit; font-weight: 600; color: var(--ap-accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.lds-summary { margin-bottom: 16px; }
.lds-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lds-bar .ap-segmented { max-width: 100%; overflow-x: auto; }
.lds-list { display: grid; gap: 10px; }

#app-container .lds-lead {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--ap-surface-1);
    border: 0.5px solid var(--ap-separator);
    border-radius: var(--ap-r-md);
    animation: ap-rise 0.45s var(--ap-ease-out) both;
}

.lds-lead-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 4px; }
.lds-lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lds-lead-top strong { font-size: 16px; font-weight: 600; }
#app-container .lds-lead-meta { margin: 0; font-size: 13px; color: var(--ap-label-3); font-variant-numeric: tabular-nums; }
#app-container .lds-lead-ref { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 13px; color: var(--ap-accent); }
.lds-lead-ref .ap-icon { width: 15px; height: 15px; }
#app-container .lds-lead-msg { margin: 6px 0 0; padding: 8px 12px; font-size: 14px; line-height: 1.45; color: var(--ap-label-2); background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
#app-container .lds-notes { width: 100%; min-height: 34px; margin-top: 8px; padding: 6px 10px; font-size: 13.5px; resize: vertical; }
.lds-lead-actions { display: flex; align-items: center; gap: 8px; }
#app-container .lds-lead-actions select { min-height: 30px; padding: 4px 30px 4px 10px; font-size: 13px; }

@media (max-width: 600px) {
    .lds-lead-actions { width: 100%; }
    .lds-lead-actions .btn { flex: 1; }
    .lds-link .btn { flex: 1; }
}

.lds-bar > .btn { flex: none; }
