/* ============================================
   PROCESO DE COBRANZA - ESTILOS VISUALES
   Diseño inspirado en diagrama de flujo profesional
   ============================================ */

/* Hero Header */
.hero-sectores__header {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-sectores__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.hero-sectores__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.hero-sectores__subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Proceso de Cobranza Container */
.proceso-cobranza {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 30%, #f0fdf4 70%, #f8fafc 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(6, 182, 212, 0.08),
        0 4px 15px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.proceso-cobranza::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-color) 0%,
        var(--gold-accent) 25%,
        var(--success-color) 50%,
        var(--info-color) 75%,
        var(--accent-color) 100%
    );
}

/* Decorative elements */
.proceso-cobranza::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Flow Row - Horizontal Process Steps */
.proceso-cobranza__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Individual Step */
.proceso-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.proceso-step:hover {
    transform: translateY(-5px);
}

.proceso-step__icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proceso-step__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.proceso-step:hover .proceso-step__icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icon Color Variants */
.proceso-step__icon--cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #0097a7;
}

.proceso-step__icon--gold {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f9a825;
}

.proceso-step__icon--teal {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #00897b;
}

.proceso-step__icon--green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #43a047;
}

.proceso-step__icon--blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

/* Badge icons */
.proceso-step__badge {
    position: absolute;
    font-size: 0.85rem;
    top: -5px;
    right: -5px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.proceso-step__badge--bottom {
    top: auto;
    bottom: -8px;
    right: -8px;
    color: #f9a825;
}

.proceso-step__badge--right {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    color: #1976d2;
}

.proceso-step__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
}

/* Arrows */
.proceso-arrow {
    color: var(--gray-400);
    font-size: 1rem;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.proceso-cobranza__flow:hover .proceso-arrow {
    opacity: 1;
    color: var(--accent-color);
}

/* Benefits Row */
.proceso-cobranza__benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px dashed var(--gray-300);
}

.proceso-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 240px;
}

.proceso-benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.proceso-benefit__icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    flex-shrink: 0;
}

.proceso-benefit__icon--multi {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
}

.proceso-benefit__icon--chart {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.proceso-benefit__badge {
    position: absolute;
    font-size: 0.7rem;
    bottom: -4px;
    right: -4px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    color: inherit;
}

.proceso-benefit__badge--gear {
    top: -4px;
    right: -4px;
    bottom: auto;
    color: #ef6c00;
}

.proceso-benefit__badge--pig {
    bottom: -4px;
    right: -8px;
    color: #2e7d32;
}

.proceso-benefit__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proceso-benefit__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.proceso-benefit__desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sectores Grid Tags */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sector-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: default;
}

.sector-tag:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sector-tag i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sector-tag span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.sector-tag--cyan {
    border-color: var(--accent-color);
}
.sector-tag--cyan i {
    color: var(--accent-color);
}

.sector-tag--gold {
    border-color: var(--gold-accent);
}
.sector-tag--gold i {
    color: var(--gold-accent);
}

.sector-tag--green {
    border-color: var(--success-color);
}
.sector-tag--green i {
    color: var(--success-color);
}

.sector-tag--blue {
    border-color: var(--info-color);
}
.sector-tag--blue i {
    color: var(--info-color);
}

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

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation on hover */
.proceso-step:hover .proceso-step__icon {
    animation: pulse-soft 0.6s ease;
}

.proceso-benefit:hover .proceso-benefit__icon {
    animation: pulse-soft 0.5s ease;
}

/* Flow arrows animation */
.proceso-cobranza__flow:hover .proceso-arrow i {
    animation: bounce-right 0.5s ease infinite;
}

@keyframes bounce-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

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

@media screen and (max-width: 1024px) {
    .proceso-cobranza__flow {
        gap: 0.75rem;
    }

    .proceso-step__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .sectores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-sectores__title {
        font-size: 2rem;
    }

    .hero-sectores__subtitle {
        font-size: 1rem;
    }

    .proceso-cobranza {
        padding: 2rem 1.25rem;
    }

    .proceso-cobranza__flow {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .proceso-step {
        flex: 0 0 auto;
    }

    .proceso-step__icon {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
        border-radius: 12px;
    }

    .proceso-step__label {
        font-size: 0.75rem;
        max-width: 70px;
    }

    .proceso-arrow {
        display: none;
    }

    .proceso-cobranza__benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .proceso-benefit {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        padding: 0.875rem 1rem;
    }

    .proceso-benefit__icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .sectores-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sector-tag {
        padding: 0.875rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-sectores__title {
        font-size: 1.75rem;
    }

    .hero-sectores__title::after {
        width: 60px;
        height: 3px;
    }

    .proceso-cobranza {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .proceso-cobranza__flow {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .proceso-step__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .proceso-step__badge {
        font-size: 0.7rem;
        padding: 3px;
    }

    .proceso-step__label {
        font-size: 0.7rem;
        max-width: 60px;
    }

    .proceso-cobranza__benefits {
        padding-top: 1.5rem;
    }

    .proceso-benefit {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .proceso-benefit__icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 10px;
    }

    .proceso-benefit__title {
        font-size: 0.85rem;
    }

    .proceso-benefit__desc {
        font-size: 0.75rem;
    }

    .sector-tag {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .sector-tag i {
        font-size: 1.15rem;
    }

    .sector-tag span {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 350px) {
    .hero-sectores__title {
        font-size: 1.5rem;
    }

    .proceso-step__icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .proceso-step__label {
        font-size: 0.65rem;
        max-width: 55px;
    }

    .proceso-benefit__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
