/* ==========================================================================
   Siniestros Detail Page Styles
   ========================================================================== */

/* Hero */
.siniestros-hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: var(--space-10) var(--space-6);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.siniestros-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.siniestros-hero-title {
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-2);
    -webkit-text-fill-color: white;
}

.siniestros-hero-title i {
    margin-right: var(--space-2);
    opacity: 0.9;
}

.siniestros-hero-subtitle {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    margin: 0;
}

/* Claim Card */
.claim-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--space-5);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.claim-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Card Header */
.claim-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-4);
    flex-wrap: wrap;
}

.claim-card-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.claim-policy-badge {
    background: var(--color-primary-light);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.claim-type-badge {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.claim-type-badge.rc {
    background: #dbeafe;
    color: #1d4ed8;
}

.claim-type-badge.rb {
    background: #fef3c7;
    color: #92400e;
}

.claim-type-badge.terceros {
    background: #e0e7ff;
    color: #4338ca;
}

/* Status Badge */
.claim-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.claim-status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.claim-status-badge.status-green {
    background: #dcfce7;
    color: #166534;
}

.claim-status-badge.status-green .status-dot {
    background: #22c55e;
    animation: none;
    /* No pulse for completed */
}

.claim-status-badge.status-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.claim-status-badge.status-yellow .status-dot {
    background: #eab308;
}

.claim-status-badge.status-red {
    background: #fee2e2;
    color: #991b1b;
}

.claim-status-badge.status-red .status-dot {
    background: #ef4444;
    animation: none;
}

/* Card Body */
.claim-card-body {
    padding: var(--space-5) var(--space-6);
}

.claim-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.claim-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.claim-info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.claim-info-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.claim-info-value {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-secondary);
}

/* Description */
.claim-description {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-top: var(--space-2);
}

.claim-description-title {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    color: var(--color-gray-500);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.03em;
    margin: 0 0 var(--space-2);
}

.claim-description-text {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Status Timeline */
.claim-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border-color);
    background: var(--color-gray-50);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 3px solid var(--color-gray-300);
    background: var(--bg-surface);
    color: var(--color-gray-400);
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-step-icon {
    border-color: #eab308;
    background: #fef9c3;
    color: #854d0e;
}

.timeline-step.completed .timeline-step-icon {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

.timeline-step.cancelled .timeline-step-icon {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.timeline-step-label {
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.timeline-step.active .timeline-step-label,
.timeline-step.completed .timeline-step-label,
.timeline-step.cancelled .timeline-step-label {
    color: var(--color-secondary);
}

.timeline-connector {
    width: 60px;
    height: 3px;
    background: var(--color-gray-300);
    flex-shrink: 0;
    margin-bottom: 22px;
    /* Align with icon center */
}

.timeline-connector.completed {
    background: #22c55e;
}

/* Home Card Badge */
.home-claim-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-top: var(--space-3);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.home-claim-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.home-claim-badge.status-en-proceso {
    background: #fef9c3;
    border: 1px solid #fde68a;
}

.home-claim-badge.status-procesado {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.home-claim-badge.status-cancelado {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.home-claim-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.home-claim-badge.status-en-proceso .home-claim-badge-icon {
    background: #fde68a;
    color: #92400e;
}

.home-claim-badge.status-procesado .home-claim-badge-icon {
    background: #bbf7d0;
    color: #166534;
}

.home-claim-badge.status-cancelado .home-claim-badge-icon {
    background: #fecaca;
    color: #991b1b;
}

.home-claim-badge-text {
    flex: 1;
}

.home-claim-badge-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin: 0;
}

.home-claim-badge-status {
    font-size: 0.7rem;
    color: var(--color-gray-500);
    margin: 0;
}

.home-claim-badge-arrow {
    color: var(--color-gray-400);
    font-size: 0.8rem;
}

/* Empty State */
.siniestros-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.siniestros-empty-icon {
    font-size: 4rem;
    color: var(--color-gray-300);
    margin-bottom: var(--space-4);
}

.siniestros-empty h3 {
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

.siniestros-empty p {
    color: var(--color-gray-500);
    max-width: 400px;
    margin: 0 auto var(--space-6);
}

/* Dark Mode */
[data-theme="dark"] .claim-info-icon {
    background: var(--color-gray-700);
    color: var(--color-gray-300);
}

[data-theme="dark"] .claim-description {
    background: var(--color-gray-800);
}

[data-theme="dark"] .claim-description-text {
    color: var(--color-gray-300);
}

[data-theme="dark"] .claim-timeline {
    background: var(--color-gray-800);
}

[data-theme="dark"] .timeline-step-icon {
    background: var(--color-gray-700);
    border-color: var(--color-gray-600);
}

[data-theme="dark"] .claim-type-badge.rc {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .claim-type-badge.rb {
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

[data-theme="dark"] .claim-type-badge.terceros {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

[data-theme="dark"] .claim-status-badge.status-green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

[data-theme="dark"] .claim-status-badge.status-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

[data-theme="dark"] .claim-status-badge.status-red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

[data-theme="dark"] .home-claim-badge.status-en-proceso {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
}

[data-theme="dark"] .home-claim-badge.status-procesado {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .home-claim-badge.status-cancelado {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .claim-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .claim-info-grid {
        grid-template-columns: 1fr;
    }

    .claim-timeline {
        padding: var(--space-4) var(--space-3);
    }

    .timeline-connector {
        width: 30px;
    }

    .timeline-step-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .timeline-step-label {
        font-size: 0.6rem;
    }
}