/* Proceso Section Styles */
.proceso-title {
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.proceso-desc {
    font-size: 1.125rem;
    color: #9aa3c7;
    margin-bottom: 4rem;
}

/* Timeline Layout */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* The Line */
.timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #1d2547;
    z-index: 0;
}

.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Altura calculada por JS */
    height: var(--p);
    max-height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 15px var(--secondary);
    transition: height 0.1s ease-out; /* suavizado */
}

/* Steps */
.timeline-steps {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.t-step {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    gap: 24px;
    align-items: center;
}

/* Base Card Styles (Off State) */
.t-card {
    background: transparent;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    opacity: 0.4;
    transform: translateY(8px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.t-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.t-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(91, 91, 240, 0.1);
    color: var(--primary);
    transition: all 0.5s;
}

.t-tag-label {
    opacity: 0.7;
}

/* Left/Right alignments */
.step-left .t-card { text-align: right; }
.step-right .t-card { text-align: left; }

/* Base Circle Styles (Off State) */
.t-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d1226;
    border: 2px solid #1d2547;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 2;
}

.t-num {
    font-size: 1rem;
    font-weight: 700;
    color: #4a5578;
    transition: color 0.5s;
}

/* --- ON STATE --- */
.t-step.on .t-card {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(18,25,52,0.85) 0%, rgba(10,14,30,0.85) 100%);
    border-color: rgba(46, 230, 166, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.t-step.on .t-tag {
    background: rgba(46, 230, 166, 0.15);
    color: var(--success);
}

.t-step.on .t-circle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--secondary);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.t-step.on .t-num {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 760px) {
    .timeline-container {
        padding-left: 24px;
    }
    
    .timeline-track {
        left: 48px;
        transform: none;
    }
    
    .t-step {
        grid-template-columns: 48px 1fr; /* Central circle becomes left column */
        gap: 20px;
    }
    
    .t-step.step-left .t-empty,
    .t-step.step-right .t-empty {
        display: none;
    }
    
    /* Reorder for step-left: circle first, then card */
    .t-step.step-left .t-circle { order: 1; margin: 0; }
    .t-step.step-left .t-card { order: 2; text-align: left; }
    
    /* Reorder for step-right: circle first, then card */
    .t-step.step-right .t-circle { order: 1; margin: 0; }
    .t-step.step-right .t-card { order: 2; text-align: left; }
}

/* Footer Section */
.proceso-footer .footer-desc {
    font-size: 1.125rem;
    color: #9aa3c7;
}
