/* cro.css — Técnicas de CRO: toasts, mid-article CTA, slide-in */

/* ── Social proof toasts ─────────────────────────────────────── */
.cro-toast-wrap {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}
.cro-toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid #d0d7de;
    border-left: 3px solid #0066cc;
    border-radius: 10px;
    padding: .65rem .9rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    font-size: .82rem;
    font-family: 'Montserrat', sans-serif;
    color: #1a1f2e;
    max-width: 280px;
    pointer-events: auto;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.cro-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.cro-toast.hide {
    transform: translateX(-120%);
    opacity: 0;
}
.cro-toast-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #00875a);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cro-toast-text { line-height: 1.4; }
.cro-toast-text strong { display: block; font-weight: 600; font-size: .83rem; }
.cro-toast-text span { color: #57606a; font-size: .78rem; }
.cro-toast-close {
    background: none; border: none;
    color: #57606a; cursor: pointer;
    font-size: .9rem; margin-left: auto;
    flex-shrink: 0; line-height: 1;
    padding: 0 0 0 .4rem;
}

/* ── Mid-article CTA ─────────────────────────────────────────── */
.cro-mid-cta {
    background: linear-gradient(135deg, #f0f7ff 0%, #eef6ff 100%);
    border: 1.5px solid #b3d4f5;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cro-mid-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.cro-mid-body { flex: 1; min-width: 180px; }
.cro-mid-body strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: .2rem;
    font-family: 'Montserrat', sans-serif;
}
.cro-mid-body p {
    font-size: .84rem;
    color: #57606a;
    margin: 0;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}
.cro-mid-btn {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}
.cro-mid-btn:hover { background: #0052a3; transform: translateY(-1px); color: #fff; }

/* ── Slide-in 70% scroll ─────────────────────────────────────── */
.cro-slidein {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 300px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.16);
    z-index: 7500;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
    font-family: 'Montserrat', sans-serif;
}
.cro-slidein.show {
    transform: translateY(0);
    opacity: 1;
}
.cro-slidein-close {
    position: absolute; top: .6rem; right: .8rem;
    background: none; border: none;
    font-size: 1rem; cursor: pointer;
    color: #57606a; line-height: 1;
}
.cro-slidein-icon { font-size: 1.6rem; margin-bottom: .4rem; }
.cro-slidein h4 {
    font-size: .95rem; font-weight: 700;
    color: #1a1f2e; margin: 0 0 .35rem;
}
.cro-slidein p {
    font-size: .82rem; color: #57606a;
    margin: 0 0 .9rem; line-height: 1.5;
}
.cro-slidein-btn {
    display: block;
    background: #0066cc;
    color: #fff;
    padding: .65rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .88rem;
    text-align: center;
    text-decoration: none;
    transition: background .15s;
}
.cro-slidein-btn:hover { background: #0052a3; color: #fff; }
.cro-slidein-fine {
    font-size: .73rem;
    color: #57606a;
    text-align: center;
    margin-top: .5rem;
}

@media (max-width: 480px) {
    .cro-slidein { width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
    .cro-toast-wrap { left: .75rem; bottom: .75rem; }
    .cro-toast { max-width: calc(100vw - 3rem); }
    .cro-mid-cta { flex-direction: column; text-align: center; }
    .cro-mid-btn { width: 100%; text-align: center; }
}
