/* ===================================
   TIMELINE COMPONENT
   =================================== */

.timeline {
    background-color: var(--color-bg-alt);
}

.timeline__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.timeline__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    font-weight: var(--font-medium);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

.timeline__visual {
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
}

.timeline__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.timeline__phases {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1240px;
    /* Aumentamos el ancho máximo para acomodar 4 columnas */
    margin: 0 auto;
}

@media (min-width: 640px) {
    .timeline__phases {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .timeline__phases {
        grid-template-columns: repeat(4, 1fr);
    }
}

.phase {
    padding: var(--space-xl);
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

.phase:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.phase__header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.phase__label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.phase__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 0;
}

.phase__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.phase__detail {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

.phase__detail strong {
    color: var(--color-text);
    font-weight: var(--font-semibold);
}