/* =========================================
   SECCIÓN: METODOLOGÍA E INGENIERÍA (TEMA OSCURO PDF)
   ========================================= */

.metodologia-section {
    padding: 90px 0;
    background-color: var(--bg-secondary);
}

/* Contenedor de la línea de tiempo */
.timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

/* Línea vertical de conexión */
.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-red) 0%, rgba(227, 27, 35, 0.2) 100%);
}

/* Cada paso (Fase) */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    transition: var(--transition-base);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Círculo con número (Estilo Badge PDF) */
.timeline-marker {
    position: absolute;
    left: -50px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-red);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(227, 27, 35, 0.5);
    transition: var(--transition-base);
}

/* Tarjeta de Contenido */
.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.timeline-content h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Animaciones al pasar el cursor */
.timeline-item:hover .timeline-marker {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(227, 27, 35, 0.8);
}

.timeline-item:hover .timeline-content {
    border-color: var(--brand-red);
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsivo Móvil */
@media (max-width: 768px) {
    .metodologia-section { padding: 50px 0; }
    
    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-marker {
        left: -35px;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        top: 15px;
    }

    .timeline-content {
        padding: 20px;
    }
}