/* ── Lead Capture Plugin – Frontend Styles ──────────────────────────── */

/* Wrapper y centrado */
.lc-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Tarjeta principal */
.lc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow:
        0 1px 3px rgba(0,0,0,.06),
        0 8px 30px rgba(99,102,241,.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decoración de fondo */
.lc-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
    pointer-events: none;
}
.lc-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Icono superior */
.lc-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99,102,241,.35);
}

/* Título y subtítulo */
.lc-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.25;
}

.lc-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Campo */
.lc-field-wrap {
    margin-bottom: 16px;
    text-align: left;
}

.lc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.lc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    outline: none;
}

.lc-input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.lc-input.lc-has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* Mensajes de error de campo */
.lc-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}
.lc-error.lc-visible {
    display: block;
}

/* Botón */
.lc-btn {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99,102,241,.4);
    letter-spacing: .2px;
}

.lc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(99,102,241,.45);
}

.lc-btn:active {
    transform: translateY(0);
}

.lc-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner animation */
@keyframes lc-spin {
    to { transform: rotate(360deg); }
}
.lc-spin {
    animation: lc-spin .8s linear infinite;
}

/* Texto privacidad */
.lc-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 14px;
    margin-bottom: 0;
}

/* Estado de éxito */
.lc-success {
    padding: 16px 0 8px;
    animation: lc-fadeIn .4s ease;
}

@keyframes lc-fadeIn {
    from { opacity:0; transform: scale(.95); }
    to   { opacity:1; transform: scale(1); }
}

.lc-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 18px rgba(16,185,129,.35);
}

.lc-success-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.lc-success-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Caja de error general */
.lc-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
}
.lc-error-box p {
    margin: 0;
    font-size: 13px;
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 480px) {
    .lc-card {
        padding: 28px 20px;
    }
    .lc-title {
        font-size: 19px;
    }
}
