/* ============================================
   COBRANZA RECOVERY - VISUAL DIAGRAM
   Diseño basado en imagen con tarjetas y círculos
   ============================================ */

/* Container Principal */
.cobranza-recovery-visual {
    padding: 2rem;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 50%, #ecfdf5 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cobranza-recovery-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f172a, var(--gold-accent), #84cc16, var(--accent-color));
}

/* Descripción */
.recovery-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 800px;
}

/* ============================================
   FILA SUPERIOR - Tarjetas de Servicios
   ============================================ */

.recovery-services-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.recovery-service-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.recovery-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.recovery-service-card__icons {
    display: flex;
    gap: 0.5rem;
}

.recovery-service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.recovery-service-card:hover .recovery-service-card__icon {
    transform: scale(1.1);
}

.recovery-service-card__icon--search {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.recovery-service-card__icon--check {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.recovery-service-card__icon--chart {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-service-card__icon--legal {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-service-card__icon--negotiate {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-service-card__text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

/* ============================================
   FILA INFERIOR - Círculos de Beneficios
   ============================================ */

.recovery-benefits-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.recovery-benefit-circle {
    background: white;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 2px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.recovery-benefit-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.recovery-benefit-circle--highlight {
    border-color: rgba(132, 204, 22, 0.3);
    background: linear-gradient(145deg, #ffffff 0%, #f7fee7 100%);
}

.recovery-benefit-circle__icons {
    display: flex;
    gap: 0.5rem;
}

.recovery-benefit-circle__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.recovery-benefit-circle__icon:not([class*="--"]) {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-benefit-circle__icon--money {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-benefit-circle__icon--chart {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.recovery-benefit-circle__icon--lock {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.recovery-benefit-circle__icon--doc {
    background: linear-gradient(135deg, #d9f99d 0%, #bef264 100%);
    color: #3f6212;
}

.recovery-benefit-circle__text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.35;
}

/* Flechas entre círculos */
.recovery-benefit-arrow {
    color: #84cc16;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.recovery-benefits-row:hover .recovery-benefit-arrow {
    opacity: 1;
    animation: arrow-pulse 1s ease infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* ============================================
   DECORACIONES DE FONDO
   ============================================ */

.recovery-bg-coins {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 1;
    pointer-events: none;
}

.recovery-bg-coins i:first-child {
    font-size: 4rem;
    color: rgba(132, 204, 22, 0.12);
    position: relative;
}

.recovery-bg-coins i:last-child {
    font-size: 2.5rem;
    color: rgba(201, 168, 112, 0.1);
    position: absolute;
    top: -20px;
    right: -30px;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes card-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.recovery-service-card:nth-child(1) { animation-delay: 0s; }
.recovery-service-card:nth-child(2) { animation-delay: 0.1s; }
.recovery-service-card:nth-child(3) { animation-delay: 0.2s; }
.recovery-service-card:nth-child(4) { animation-delay: 0.3s; }

.cobranza-recovery-visual:hover .recovery-service-card {
    animation: card-float 3s ease infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 1024px) {
    .recovery-services-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .recovery-benefit-circle {
        width: 160px;
        height: 160px;
        padding: 1rem;
    }

    .recovery-benefit-circle__text {
        font-size: 0.75rem;
    }

    .recovery-bg-coins {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .cobranza-recovery-visual {
        padding: 1.5rem 1.25rem;
    }

    .recovery-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .recovery-services-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;
        margin-bottom: 2rem;
    }

    .recovery-service-card {
        padding: 1rem;
    }

    .recovery-service-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .recovery-service-card__text {
        font-size: 0.8rem;
    }

    .recovery-benefits-row {
        flex-direction: column;
        gap: 1rem;
    }

    .recovery-benefit-circle {
        width: 100%;
        max-width: 280px;
        height: auto;
        min-height: 120px;
        border-radius: 16px;
        flex-direction: row;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .recovery-benefit-circle__icons,
    .recovery-benefit-circle__icon:not([class*="--"]) {
        flex-shrink: 0;
    }

    .recovery-benefit-circle__text {
        font-size: 0.85rem;
        text-align: left;
    }

    .recovery-benefit-arrow {
        transform: rotate(90deg);
    }

    .recovery-benefits-row:hover .recovery-benefit-arrow {
        animation: arrow-pulse-vertical 1s ease infinite;
    }

    @keyframes arrow-pulse-vertical {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
        }
        50% {
            transform: rotate(90deg) translateX(5px);
        }
    }
}

@media screen and (max-width: 480px) {
    .cobranza-recovery-visual {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .recovery-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .recovery-services-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .recovery-service-card {
        flex-direction: row;
        align-items: center;
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .recovery-service-card__icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .recovery-service-card__text {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .recovery-benefit-circle {
        max-width: 100%;
        min-height: 100px;
        padding: 0.875rem 1rem;
        border-radius: 12px;
    }

    .recovery-benefit-circle__icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .recovery-benefit-circle__text {
        font-size: 0.8rem;
    }

    .recovery-benefit-arrow {
        font-size: 1rem;
    }
}

@media screen and (max-width: 350px) {
    .cobranza-recovery-visual {
        padding: 1rem 0.75rem;
    }

    .recovery-description {
        font-size: 0.85rem;
    }

    .recovery-service-card {
        padding: 0.75rem;
    }

    .recovery-service-card__icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .recovery-service-card__text {
        font-size: 0.75rem;
    }

    .recovery-benefit-circle {
        min-height: 90px;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .recovery-benefit-circle__icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .recovery-benefit-circle__text {
        font-size: 0.75rem;
    }
}
