﻿/* ═══════════════════════════════════════════
   ANTES / DESPUÉS
   Agregar al final de landing-prestadores.css
═══════════════════════════════════════════ */

.lp-antesdespues {
    background: var(--lp-bg);
}

/* Toggle */
.lp-ad-toggle {
    display: inline-flex;
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin: 2rem 0;
}

.lp-ad-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--lp-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lp-ad-btn-activo {
    background: var(--lp-bordo);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139,29,29,0.25);
}

/* Mockup contenedor */
.lp-ad-mockup {
    max-width: 580px;
    margin: 0 auto;
}

/* Panel */
.lp-ad-panel {
    background: var(--lp-white);
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15,23,42,0.06);
    animation: adFade 0.3s ease;
}

@keyframes adFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header del panel */
.lp-ad-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--lp-border);
}

.lp-ad-header-antes {
    background: rgba(239,68,68,0.04);
}

.lp-ad-header-despues {
    background: rgba(5,150,105,0.04);
}

.lp-ad-estado-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lp-badge-antes {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.15);
}

.lp-badge-despues {
    background: rgba(5,150,105,0.08);
    color: #059669;
    border: 1px solid rgba(5,150,105,0.15);
}

.lp-ad-empresa {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lp-muted);
}

/* Body */
.lp-ad-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* Perfil ANTES */
.lp-ad-perfil-antes {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lp-ad-avatar-vacio {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15,23,42,0.05);
    border: 2px dashed rgba(15,23,42,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15,23,42,0.2);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lp-ad-nombre-antes {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 0.2rem;
}

.lp-ad-sub-antes {
    font-size: 0.72rem;
    color: var(--lp-muted);
    margin-bottom: 0.3rem;
}

.lp-ad-contacto-antes {
    font-size: 0.7rem;
    color: var(--lp-muted);
    font-weight: 600;
}

/* Stats vacíos ANTES */
.lp-ad-stats-antes {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lp-ad-stat-vacio {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    background: rgba(15,23,42,0.03);
    border-radius: 9px;
    border: 1px solid rgba(15,23,42,0.06);
}

.lp-ad-stat-icono {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(239,68,68,0.07);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.lp-ad-stat-texto {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

    .lp-ad-stat-texto strong {
        font-size: 0.75rem;
        color: var(--lp-text);
        font-weight: 700;
    }

    .lp-ad-stat-texto span {
        font-size: 0.68rem;
        color: #ef4444;
        font-weight: 700;
    }

/* Barra visibilidad */
.lp-ad-visibilidad-antes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lp-ad-vis-label {
    font-size: 0.7rem;
    color: var(--lp-muted);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.lp-ad-vis-barra {
    flex: 1;
    height: 6px;
    background: rgba(15,23,42,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.lp-ad-vis-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-ad-vis-pct {
    font-size: 0.72rem;
    font-weight: 900;
    color: #ef4444;
    min-width: 2.5rem;
    text-align: right;
}

.lp-vis-pct-verde {
    color: #059669;
}

/* Items con ✓/✗ */
.lp-ad-items-antes,
.lp-ad-items-despues {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-top: 1px solid var(--lp-border);
    padding-top: 1rem;
}

.lp-ad-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.lp-item-no {
    color: var(--lp-muted);
}

    .lp-item-no i {
        color: #ef4444;
        font-size: 0.75rem;
    }

.lp-item-si {
    color: var(--lp-text);
}

    .lp-item-si i {
        color: #059669;
        font-size: 0.75rem;
    }

/* Perfil DESPUÉS */
.lp-ad-perfil-despues {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lp-ad-avatar-lleno {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--lp-bordo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
}

.lp-ad-verificado {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 0.65rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.lp-ad-nombre-despues {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 0.2rem;
}

.lp-ad-sub-despues {
    font-size: 0.72rem;
    color: var(--lp-muted);
    margin-bottom: 0.35rem;
}

.lp-ad-contactos-despues {
    display: flex;
    gap: 0.3rem;
}

.lp-ad-contacto-chip {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--lp-bordo-l);
    color: var(--lp-bordo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* KPIs después */
.lp-ad-stats-despues {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.lp-ad-kpi {
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lp-ad-kpi-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.lp-ad-kpi-label {
    font-size: 0.6rem;
    color: var(--lp-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-kpi-verde {
    color: #059669;
}

.lp-kpi-azul {
    color: #2563eb;
}

.lp-kpi-dorado {
    color: var(--lp-dorado);
}

.lp-kpi-bordo {
    color: var(--lp-bordo);
}

/* Chip IA */
.lp-ad-ia-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(139,29,29,0.04);
    border: 1px solid rgba(139,29,29,0.1);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.75rem;
    color: var(--lp-text);
    line-height: 1.5;
    font-weight: 500;
}

    .lp-ad-ia-chip i {
        color: var(--lp-bordo);
        font-size: 0.8rem;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .lp-ad-ia-chip strong {
        font-weight: 800;
        color: var(--lp-bordo);
    }

/* CTA final */
.lp-ad-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 480px) {
    .lp-ad-stats-despues {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-ad-toggle {
        flex-direction: column;
        width: 100%;
    }

    .lp-ad-btn {
        text-align: center;
    }
}
