/* ============================================
   COBRANZA TEMPRANA & TARDÍA - ESTILOS VISUALES
   Diseño con imágenes e iconos integrados
   ============================================ */

/* ============================================
   COBRANZA TEMPRANA
   ============================================ */

.cobranza-temprana-visual {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border-radius: 16px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.cobranza-temprana-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #06b6d4, #10b981);
}

/* Imagen con overlay */
.temprana-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.temprana-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.temprana-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.temprana-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.temprana-badge i {
    font-size: 0.85rem;
}

/* Contenido */
.temprana-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.temprana-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Features grid */
.temprana-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.temprana-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.temprana-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.temprana-feature__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.temprana-feature__icon--time {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.temprana-feature__icon--deal {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.temprana-feature__icon--channel {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.temprana-feature__icon--doc {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
}

.temprana-feature__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.temprana-feature__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Beneficios tags */
.temprana-benefits {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 0 0 12px 12px;
    margin: -0.5rem -0.5rem -0.5rem -0.5rem;
}

.temprana-benefit-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.temprana-benefit-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.temprana-benefit-tag i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* ============================================
   COBRANZA TARDÍA
   ============================================ */

.cobranza-tardia-visual {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #fef3c7 0%, #fef9c3 30%, #f8fafc 100%);
    border-radius: 16px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.cobranza-tardia-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a870, #f59e0b, #ef4444);
}

/* Contenido */
.tardia-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tardia-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Grid de servicios */
.tardia-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tardia-service {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tardia-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.tardia-service__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tardia-service__icon--analysis {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.tardia-service__icon--plan {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.tardia-service__icon--follow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.tardia-service__icon--strategy {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
}

.tardia-service__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tardia-service__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* Imagen con overlay */
.tardia-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tardia-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.tardia-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.tardia-stats {
    display: flex;
    gap: 1rem;
}

.tardia-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.tardia-stat i {
    font-size: 0.85rem;
}

/* Beneficios tags */
.tardia-benefits {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(201, 168, 112, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 0 0 12px 12px;
    margin: -0.5rem -0.5rem -0.5rem -0.5rem;
}

.tardia-benefit-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tardia-benefit-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tardia-benefit-tag i {
    color: var(--gold-accent);
    font-size: 0.9rem;
}

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

@media screen and (max-width: 1024px) {
    .cobranza-temprana-visual,
    .cobranza-tardia-visual {
        gap: 1.5rem;
    }

    .temprana-image-wrapper,
    .tardia-image-wrapper {
        min-height: 250px;
    }

    .temprana-image-wrapper img,
    .tardia-image-wrapper img {
        min-height: 250px;
    }
}

@media screen and (max-width: 900px) {
    .cobranza-temprana-visual {
        grid-template-columns: 250px 1fr;
    }

    .cobranza-tardia-visual {
        grid-template-columns: 1fr 250px;
    }

    .temprana-features,
    .tardia-services-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .cobranza-temprana-visual,
    .cobranza-tardia-visual {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .cobranza-tardia-visual {
        direction: ltr;
    }

    .tardia-content {
        order: 2;
    }

    .tardia-image-wrapper {
        order: 1;
    }

    .temprana-image-wrapper,
    .tardia-image-wrapper {
        max-height: 220px;
    }

    .temprana-image-wrapper img,
    .tardia-image-wrapper img {
        min-height: 200px;
        max-height: 220px;
    }

    .temprana-features,
    .tardia-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .temprana-feature,
    .tardia-service {
        padding: 0.875rem;
    }

    .temprana-benefits,
    .tardia-benefits {
        justify-content: center;
        padding: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .temprana-features,
    .tardia-services-grid {
        grid-template-columns: 1fr;
    }

    .temprana-feature,
    .tardia-service {
        flex-direction: row;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .cobranza-temprana-visual,
    .cobranza-tardia-visual {
        padding: 1rem;
        border-radius: 12px;
        gap: 1.25rem;
        margin: 1rem 0;
    }

    .temprana-description,
    .tardia-description {
        font-size: 0.95rem;
    }

    .temprana-image-wrapper,
    .tardia-image-wrapper {
        max-height: 180px;
        border-radius: 10px;
    }

    .temprana-image-wrapper img,
    .tardia-image-wrapper img {
        min-height: 160px;
        max-height: 180px;
    }

    .temprana-badge,
    .tardia-stat {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .temprana-feature,
    .tardia-service {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .temprana-feature__icon,
    .tardia-service__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .temprana-feature__title,
    .tardia-service__title {
        font-size: 0.85rem;
    }

    .temprana-feature__desc,
    .tardia-service__desc {
        font-size: 0.75rem;
    }

    .temprana-benefits,
    .tardia-benefits {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .temprana-benefit-tag,
    .tardia-benefit-tag {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
}

@media screen and (max-width: 350px) {
    .cobranza-temprana-visual,
    .cobranza-tardia-visual {
        padding: 0.875rem;
    }

    .temprana-description,
    .tardia-description {
        font-size: 0.9rem;
    }

    .temprana-image-wrapper,
    .tardia-image-wrapper {
        max-height: 150px;
    }

    .temprana-image-wrapper img,
    .tardia-image-wrapper img {
        min-height: 140px;
        max-height: 150px;
    }

    .temprana-feature,
    .tardia-service {
        padding: 0.625rem;
    }

    .temprana-feature__icon,
    .tardia-service__icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .temprana-feature__title,
    .tardia-service__title {
        font-size: 0.8rem;
    }

    .temprana-feature__desc,
    .tardia-service__desc {
        font-size: 0.7rem;
    }

    .temprana-benefit-tag,
    .tardia-benefit-tag {
        font-size: 0.75rem;
    }
}
